cmd_queue_alloc() is only used within OpenOCD.
 
Symbols
loading...
Files
loading...

cmd_queue_alloc() function

Syntax

void *cmd_queue_alloc(size_t size);
Implemented in commands.c:66

Arguments

size

References

LocationReferrerText
commands.c:66
void *cmd_queue_alloc(size_t size)
commands.h:152
void *cmd_queue_alloc(size_t size);
commands.c:163jtag_scan_field_clone()
driver.c:56interface_jtag_add_ir_scan()
struct jtag_command *cmd = cmd_queue_alloc(sizeof(struct jtag_command));
driver.c:57interface_jtag_add_ir_scan()
struct scan_command *scan = cmd_queue_alloc(sizeof(struct scan_command));
driver.c:58interface_jtag_add_ir_scan()
struct scan_field *out_fields = cmd_queue_alloc(num_taps * sizeof(struct scan_field));
driver.c:89interface_jtag_add_ir_scan()
uint8_t *v = cmd_queue_alloc(DIV_ROUND_UP(tap->ir_length, 8));
driver.c:93interface_jtag_add_ir_scan()
field->out_value = buf_set_ones(cmd_queue_alloc(DIV_ROUND_UP(tap->ir_length, 8)), tap->ir_length);
driver.c:134interface_jtag_add_dr_scan()
struct jtag_command *cmd = cmd_queue_alloc(sizeof(struct jtag_command));
driver.c:135interface_jtag_add_dr_scan()
struct scan_command *scan = cmd_queue_alloc(sizeof(struct scan_command));
driver.c:136interface_jtag_add_dr_scan()
struct scan_field *out_fields = cmd_queue_alloc((in_num_fields + bypass_devices) * sizeof(struct scan_field));
driver.c:189jtag_add_plain_scan()
struct jtag_command *cmd = cmd_queue_alloc(sizeof(struct jtag_command));
driver.c:190jtag_add_plain_scan()
struct scan_command *scan = cmd_queue_alloc(sizeof(struct scan_command));
driver.c:191jtag_add_plain_scan()
struct scan_field *out_fields = cmd_queue_alloc(sizeof(struct scan_field));
driver.c:204jtag_add_plain_scan()
out_fields->out_value = buf_cpy(out_bits, cmd_queue_alloc(DIV_ROUND_UP(num_bits, 8)), num_bits);
driver.c:225interface_jtag_add_tlr()
struct jtag_command *cmd = cmd_queue_alloc(sizeof(struct jtag_command));
driver.c:231interface_jtag_add_tlr()
cmd->cmd.statemove = cmd_queue_alloc(sizeof(struct statemove_command));
driver.c:241interface_add_tms_seq()
cmd = cmd_queue_alloc(sizeof(struct jtag_command));
driver.c:246interface_add_tms_seq()
cmd->cmd.tms = cmd_queue_alloc(sizeof(*cmd->cmd.tms));
driver.c:253interface_add_tms_seq()
cmd_queue_alloc(DIV_ROUND_UP(num_bits, 8)), num_bits);
driver.c:265interface_jtag_add_pathmove()
struct jtag_command *cmd = cmd_queue_alloc(sizeof(struct jtag_command));
driver.c:271interface_jtag_add_pathmove()
cmd->cmd.pathmove = cmd_queue_alloc(sizeof(struct pathmove_command));
driver.c:273interface_jtag_add_pathmove()
cmd->cmd.pathmove->path = cmd_queue_alloc(sizeof(tap_state_t) * num_states);
driver.c:284interface_jtag_add_runtest()
struct jtag_command *cmd = cmd_queue_alloc(sizeof(struct jtag_command));
driver.c:290interface_jtag_add_runtest()
cmd->cmd.runtest = cmd_queue_alloc(sizeof(struct runtest_command));
driver.c:300interface_jtag_add_clocks()
struct jtag_command *cmd = cmd_queue_alloc(sizeof(struct jtag_command));
driver.c:306interface_jtag_add_clocks()
cmd->cmd.stableclocks = cmd_queue_alloc(sizeof(struct stableclocks_command));
driver.c:315interface_jtag_add_reset()
struct jtag_command *cmd = cmd_queue_alloc(sizeof(struct jtag_command));
driver.c:321interface_jtag_add_reset()
cmd->cmd.reset = cmd_queue_alloc(sizeof(struct reset_command));
driver.c:331interface_jtag_add_sleep()
struct jtag_command *cmd = cmd_queue_alloc(sizeof(struct jtag_command));
driver.c:337interface_jtag_add_sleep()
cmd->cmd.sleep = cmd_queue_alloc(sizeof(struct sleep_command));
driver.c:348interface_jtag_add_callback4()
struct jtag_callback_entry *entry = cmd_queue_alloc(sizeof(struct jtag_callback_entry));
esirisc_jtag.c:106esirisc_jtag_send()
struct scan_field *fields = cmd_queue_alloc(num_fields * sizeof(struct scan_field));
minidriver_imp.h:17interface_jtag_add_scan_check_alloc()
field->in_value = cmd_queue_alloc(num_bytes);

Call Tree

Data read by cmd_queue_alloc()
Data written by cmd_queue_alloc()
cmd_queue_alloc()::offset
cmd_queue_alloc()::t
cmd_queue_alloc()::alloc_size
all items filtered out
cmd_queue_alloc()
cmd_queue_alloc()::p_page
cmd_queue_alloc()::offset
cmd_queue_alloc()::t
all items filtered out
Type of cmd_queue_alloc()
cmd_queue_alloc()
size_t
uint8_t
all items filtered out
Types allocated by cmd_queue_alloc()
cmd_queue_alloc()
all items filtered out