OpenOCD
|
Go to the source code of this file.
Data Structures | |
struct | list_head |
Macros | |
#define | list_entry(ptr, type, field) container_of(ptr, type, field) |
#define | list_first_entry(ptr, type, member) list_entry((ptr)->next, type, member) |
#define | list_first_entry_or_null(ptr, type, member) (!list_empty(ptr) ? list_first_entry(ptr, type, member) : NULL) |
#define | list_for_each(p, head) for (p = (head)->next; p != (head); p = (p)->next) |
#define | list_for_each_entry(p, h, field) |
#define | list_for_each_entry_continue(p, h, field) |
#define | list_for_each_entry_continue_reverse(p, h, field) |
#define | list_for_each_entry_direction(is_fwd, p, h, field) |
list_for_each_entry_direction - iterate forward/backward over list of given type More... | |
#define | list_for_each_entry_from(p, h, field) |
#define | list_for_each_entry_from_reverse(p, h, field) |
#define | list_for_each_entry_reverse(p, h, field) |
#define | list_for_each_entry_safe(p, n, h, field) |
#define | list_for_each_entry_safe_from(pos, n, head, member) |
#define | list_for_each_entry_safe_reverse(p, n, h, field) |
#define | list_for_each_prev(p, h) for (p = (h)->prev; p != (h); p = (p)->prev) |
#define | list_for_each_safe(p, n, head) for (p = (head)->next, n = (p)->next; p != (head); p = n, n = (p)->next) |
#define | LIST_HEAD(name) struct list_head name = LIST_HEAD_INIT(name) |
#define | LIST_HEAD_INIT(name) { &(name), &(name) } |
#define | list_last_entry(ptr, type, member) list_entry((ptr)->prev, type, member) |
#define | list_next_entry(ptr, member) list_entry(((ptr)->member.next), typeof(*(ptr)), member) |
#define | list_prev_entry(ptr, member) list_entry(((ptr)->member.prev), typeof(*(ptr)), member) |
#define | list_safe_reset_next(ptr, n, member) (n) = list_next_entry(ptr, member) |
Functions | |
static void | __list_cut_position (struct list_head *list, struct list_head *head, struct list_head *entry) |
static void | __list_del (struct list_head *prev, struct list_head *next) |
static void | __list_del_entry (struct list_head *entry) |
static void | INIT_LIST_HEAD (struct list_head *list) |
static void | linux_list_add (struct list_head *new, struct list_head *prev, struct list_head *next) |
static void | linux_list_splice (const struct list_head *list, struct list_head *prev, struct list_head *next) |
static void | list_add (struct list_head *new, struct list_head *head) |
static void | list_add_tail (struct list_head *new, struct list_head *head) |
static void | list_bulk_move_tail (struct list_head *head, struct list_head *first, struct list_head *last) |
static size_t | list_count_nodes (const struct list_head *list) |
static void | list_cut_position (struct list_head *list, struct list_head *head, struct list_head *entry) |
static void | list_del (struct list_head *entry) |
static void | list_del_init (struct list_head *entry) |
static int | list_empty (const struct list_head *head) |
static int | list_empty_careful (const struct list_head *head) |
static int | list_is_first (const struct list_head *list, const struct list_head *head) |
static int | list_is_last (const struct list_head *list, const struct list_head *head) |
static int | list_is_singular (const struct list_head *head) |
static void | list_move (struct list_head *list, struct list_head *head) |
static void | list_move_tail (struct list_head *entry, struct list_head *head) |
static void | list_replace (struct list_head *old, struct list_head *new) |
static void | list_replace_init (struct list_head *old, struct list_head *new) |
static void | list_rotate_left (struct list_head *h) |
list_rotate_left - rotate the list to the left More... | |
static void | list_rotate_to_front (struct list_head *entry, struct list_head *head) |
static void | list_splice (const struct list_head *list, struct list_head *head) |
static void | list_splice_init (struct list_head *list, struct list_head *head) |
static void | list_splice_tail (struct list_head *list, struct list_head *head) |
static void | list_splice_tail_init (struct list_head *list, struct list_head *head) |
#define list_entry | ( | ptr, | |
type, | |||
field | |||
) | container_of(ptr, type, field) |
#define list_first_entry | ( | ptr, | |
type, | |||
member | |||
) | list_entry((ptr)->next, type, member) |
#define list_first_entry_or_null | ( | ptr, | |
type, | |||
member | |||
) | (!list_empty(ptr) ? list_first_entry(ptr, type, member) : NULL) |
#define list_for_each | ( | p, | |
head | |||
) | for (p = (head)->next; p != (head); p = (p)->next) |
#define list_for_each_entry | ( | p, | |
h, | |||
field | |||
) |
#define list_for_each_entry_continue | ( | p, | |
h, | |||
field | |||
) |
#define list_for_each_entry_continue_reverse | ( | p, | |
h, | |||
field | |||
) |
#define list_for_each_entry_direction | ( | is_fwd, | |
p, | |||
h, | |||
field | |||
) |
list_for_each_entry_direction - iterate forward/backward over list of given type
is_fwd | the iterate direction, true for forward, false for backward. |
p | the type * to use as a loop cursor. |
h | the head of the list. |
field | the name of the list_head within the struct. |
#define list_for_each_entry_from | ( | p, | |
h, | |||
field | |||
) |
#define list_for_each_entry_from_reverse | ( | p, | |
h, | |||
field | |||
) |
#define list_for_each_entry_reverse | ( | p, | |
h, | |||
field | |||
) |
#define list_for_each_entry_safe | ( | p, | |
n, | |||
h, | |||
field | |||
) |
#define list_for_each_entry_safe_from | ( | pos, | |
n, | |||
head, | |||
member | |||
) |
#define list_for_each_entry_safe_reverse | ( | p, | |
n, | |||
h, | |||
field | |||
) |
#define list_for_each_prev | ( | p, | |
h | |||
) | for (p = (h)->prev; p != (h); p = (p)->prev) |
#define list_for_each_safe | ( | p, | |
n, | |||
head | |||
) | for (p = (head)->next, n = (p)->next; p != (head); p = n, n = (p)->next) |
#define LIST_HEAD | ( | name | ) | struct list_head name = LIST_HEAD_INIT(name) |
#define list_last_entry | ( | ptr, | |
type, | |||
member | |||
) | list_entry((ptr)->prev, type, member) |
#define list_next_entry | ( | ptr, | |
member | |||
) | list_entry(((ptr)->member.next), typeof(*(ptr)), member) |
#define list_prev_entry | ( | ptr, | |
member | |||
) | list_entry(((ptr)->member.prev), typeof(*(ptr)), member) |
#define list_safe_reset_next | ( | ptr, | |
n, | |||
member | |||
) | (n) = list_next_entry(ptr, member) |
|
inlinestatic |
Definition at line 289 of file list.h.
References list_head::next, and list_head::prev.
Referenced by list_cut_position().
Definition at line 74 of file list.h.
References list_head::next, and list_head::prev.
Referenced by __list_del_entry(), and list_del().
|
inlinestatic |
Definition at line 81 of file list.h.
References __list_del(), list_head::next, and list_head::prev.
|
inlinestatic |
Definition at line 53 of file list.h.
References list_head::next, and list_head::prev.
Referenced by arc_init_arch_info(), bit_copy_queue_init(), COMMAND_HANDLER(), command_init(), dap_cmd_new(), dap_instance_init(), esp32_apptrace_block_free(), esp32_apptrace_cmd_ctx_init(), esp32_apptrace_ready_block_put(), get_dm(), jim_arm_tpiu_swo_create(), list_cut_position(), list_del_init(), list_replace_init(), list_splice_init(), list_splice_tail_init(), riscv_info_init(), and vdebug_open().
|
inlinestatic |
Definition at line 109 of file list.h.
References list_head::next, and list_head::prev.
Referenced by list_add(), and list_add_tail().
|
inlinestatic |
Definition at line 237 of file list.h.
References list_empty(), list_head::next, and list_head::prev.
Referenced by list_splice(), list_splice_init(), list_splice_tail(), and list_splice_tail_init().
Definition at line 193 of file list.h.
References linux_list_add(), and list_head::next.
Referenced by arm_tpiu_swo_service_new_connection(), dap_cmd_release(), esp32_apptrace_block_free(), esp32_apptrace_cmd_ctx_init(), esp32_apptrace_ready_block_put(), get_dm(), help_add_command(), jtagdp_overrun_check(), list_move(), parse_ranges(), target_register_reset_callback(), and target_register_trace_callback().
Definition at line 199 of file list.h.
References linux_list_add(), and list_head::prev.
Referenced by adi_jtag_dp_scan(), arc_reg_add(), arc_reg_data_type_add(), arm_tpiu_swo_create(), bit_copy_queued(), COMMAND_HANDLER(), cti_create(), dap_create(), list_move_tail(), or1k_du_adv_register(), or1k_tap_mohor_register(), or1k_tap_vjtag_register(), or1k_tap_xilinx_bscan_register(), telnet_auto_complete(), vdebug_jtag_shift_tap(), and vdebug_reg_read().
|
inlinestatic |
Definition at line 225 of file list.h.
References list_head::next, and list_head::prev.
|
inlinestatic |
Definition at line 328 of file list.h.
References count, lh(), and list_for_each.
|
inlinestatic |
Definition at line 301 of file list.h.
References __list_cut_position(), INIT_LIST_HEAD(), list_empty(), list_is_singular(), and list_head::next.
|
inlinestatic |
Definition at line 87 of file list.h.
References __list_del(), list_head::next, and list_head::prev.
Referenced by arm_tpiu_swo_service_connection_closed(), bit_copy_discard(), bit_copy_execute(), dap_cmd_new(), esp32_apptrace_blocks_pool_cleanup(), esp32_apptrace_free_block_get(), esp32_apptrace_ready_block_get(), flush_journal(), help_del_all_commands(), help_del_command(), jtag_quit(), list_del_init(), list_move(), list_move_tail(), target_destroy(), target_unregister_reset_callback(), target_unregister_trace_callback(), vdebug_run_jtag_queue(), and vdebug_run_reg_queue().
|
inlinestatic |
Definition at line 119 of file list.h.
References INIT_LIST_HEAD(), and list_del().
|
inlinestatic |
Definition at line 60 of file list.h.
References list_head::next.
Referenced by arc_build_bcr_reg_cache(), arc_build_reg_cache(), COMMAND_HANDLER(), dap_cmd_new(), esp32_apptrace_free_block_get(), esp32_apptrace_ready_block_get(), esp32_apptrace_wait_tracing_finished(), jtagdp_overrun_check(), linux_list_splice(), list_cut_position(), list_is_singular(), list_rotate_left(), riscv_init_registers(), telnet_auto_complete(), vdebug_run_jtag_queue(), and vdebug_run_reg_queue().
|
inlinestatic |
Definition at line 66 of file list.h.
References list_head::next, and list_head::prev.
|
inlinestatic |
Definition at line 315 of file list.h.
References list_head::prev.
|
inlinestatic |
Definition at line 321 of file list.h.
References list_head::next.
|
inlinestatic |
Definition at line 284 of file list.h.
References list_empty(), list_head::next, and list_head::prev.
Referenced by list_cut_position(), and telnet_auto_complete().
Definition at line 205 of file list.h.
References list_add(), and list_del().
Definition at line 212 of file list.h.
References list_add_tail(), and list_del().
Referenced by jtagdp_overrun_check(), list_rotate_left(), and list_rotate_to_front().
Definition at line 93 of file list.h.
References list_head::next, and list_head::prev.
Referenced by list_replace_init().
Definition at line 102 of file list.h.
References INIT_LIST_HEAD(), and list_replace().
|
inlinestatic |
list_rotate_left - rotate the list to the left
h | the head of the list |
Definition at line 364 of file list.h.
References list_empty(), list_move_tail(), and list_head::next.
Referenced by riscv_init_registers().
Definition at line 219 of file list.h.
References list_move_tail().
Definition at line 254 of file list.h.
References linux_list_splice(), and list_head::next.
Definition at line 266 of file list.h.
References INIT_LIST_HEAD(), linux_list_splice(), and list_head::next.
Definition at line 260 of file list.h.
References linux_list_splice(), and list_head::prev.
Definition at line 273 of file list.h.
References INIT_LIST_HEAD(), linux_list_splice(), and list_head::prev.