Lines Matching full:request
71 const uint8_t *const request, in dap_info() argument
75 uint8_t id = request[0]; in dap_info()
167 const uint8_t *const request, in dap_host_status() argument
170 switch (request[0]) { in dap_host_status()
172 if (request[1]) { in dap_host_status()
192 const uint8_t *const request, in dap_connect() argument
198 if (request[0] == DAP_PORT_AUTODETECT) { in dap_connect()
201 port = request[0]; in dap_connect()
255 const uint8_t *const request, in dap_delay() argument
258 uint16_t delay = sys_get_le16(&request[0]); in dap_delay()
281 const uint8_t *const request, in dap_swj_pins() argument
285 uint8_t value = request[0]; in dap_swj_pins()
286 uint8_t select = request[1]; in dap_swj_pins()
287 uint32_t wait = sys_get_le32(&request[2]); in dap_swj_pins()
319 const uint8_t *const request, in dap_swj_clock() argument
323 uint32_t clk = sys_get_le32(&request[0]); in dap_swj_clock()
344 const uint8_t *const request, in dap_swj_sequence() argument
348 uint16_t count = request[0]; in dap_swj_sequence()
362 api->swdp_output_sequence(ctx->swdp_dev, count, &request[1]); in dap_swj_sequence()
370 const uint8_t *const request, in dap_swdp_configure() argument
374 uint8_t turnaround = (request[0] & 0x03U) + 1U; in dap_swdp_configure()
375 bool data_phase = (request[0] & 0x04U) ? true : false; in dap_swdp_configure()
391 const uint8_t *const request, in dap_transfer_cfg() argument
395 ctx->transfer.idle_cycles = request[0]; in dap_transfer_cfg()
396 ctx->transfer.retry_count = sys_get_le16(&request[1]); in dap_transfer_cfg()
397 ctx->transfer.match_retry = sys_get_le16(&request[3]); in dap_transfer_cfg()
468 * one byte request (register)
469 * four byte data (for write request only)
472 const uint8_t *const request, in dap_swdp_transfer() argument
486 /* Ignore DAP index request[0] */ in dap_swdp_transfer()
487 req_cnt = request[1]; in dap_swdp_transfer()
488 req_buf = request + sizeof(req_cnt) + 1; in dap_swdp_transfer()
614 const uint8_t *const request, in dap_transfer() argument
627 retval = dap_swdp_transfer(ctx, request, response); in dap_transfer()
640 const uint8_t *const request, in dap_swdp_sequence() argument
644 const uint8_t *request_data = request + 1; in dap_swdp_sequence()
646 uint8_t count = request[0]; in dap_swdp_sequence()
694 const uint8_t *const request, in dap_swdp_transferblock() argument
705 req_cnt = sys_get_le16(&request[1]); in dap_swdp_transferblock()
706 req_val = request[3]; in dap_swdp_transferblock()
707 req_buf = request + (sizeof(req_cnt) + sizeof(req_val) + 1); in dap_swdp_transferblock()
765 req_buf - request, in dap_swdp_transferblock()
774 const uint8_t *const request, in dap_transferblock() argument
790 retval = dap_swdp_transferblock(ctx, request, response); in dap_transferblock()
807 const uint8_t *const request, in dap_swdp_writeabort() argument
811 /* Load data (Ignore DAP index in request[0]) */ in dap_swdp_writeabort()
812 uint32_t data = sys_get_le32(&request[1]); in dap_swdp_writeabort()
824 const uint8_t *const request, in dap_writeabort() argument
837 retval = dap_swdp_writeabort(ctx, request, response); in dap_writeabort()
848 /* Process DAP Vendor command request */
850 const uint8_t *const request, in dap_process_vendor_cmd() argument
858 * Process DAP command request and prepare response
859 * request: pointer to request data
867 const uint8_t *request, in dap_process_cmd() argument
872 LOG_HEXDUMP_DBG(request, 8, "req"); in dap_process_cmd()
874 if ((*request >= ID_DAP_VENDOR0) && (*request <= ID_DAP_VENDOR31)) { in dap_process_cmd()
875 return dap_process_vendor_cmd(ctx, request, response); in dap_process_cmd()
878 *response++ = *request; in dap_process_cmd()
879 LOG_DBG("request 0x%02x", *request); in dap_process_cmd()
881 switch (*request++) { in dap_process_cmd()
883 retval = dap_info(ctx, request, response); in dap_process_cmd()
886 retval = dap_host_status(ctx, request, response); in dap_process_cmd()
889 retval = dap_connect(ctx, request, response); in dap_process_cmd()
895 retval = dap_delay(ctx, request, response); in dap_process_cmd()
901 retval = dap_swj_pins(ctx, request, response); in dap_process_cmd()
904 retval = dap_swj_clock(ctx, request, response); in dap_process_cmd()
907 retval = dap_swj_sequence(ctx, request, response); in dap_process_cmd()
910 retval = dap_swdp_configure(ctx, request, response); in dap_process_cmd()
913 retval = dap_swdp_sequence(ctx, request, response); in dap_process_cmd()
931 retval = dap_transfer_cfg(ctx, request, response); in dap_process_cmd()
934 retval = dap_transfer(ctx, request, response); in dap_process_cmd()
937 retval = dap_transferblock(ctx, request, response); in dap_process_cmd()
940 retval = dap_writeabort(ctx, request, response); in dap_process_cmd()
1007 * Execute DAP command (process request and prepare response)
1008 * request: pointer to request data
1012 uint32_t dap_execute_cmd(const uint8_t *request, in dap_execute_cmd() argument
1019 if (request[0] == ID_DAP_EXECUTE_COMMANDS) { in dap_execute_cmd()
1021 *response++ = *request++; in dap_execute_cmd()
1022 count = request[0]; in dap_execute_cmd()
1023 request += sizeof(count); in dap_execute_cmd()
1029 n = dap_process_cmd(&dap_ctx[0], request, response); in dap_execute_cmd()
1031 request += n; in dap_execute_cmd()
1037 return dap_process_cmd(&dap_ctx[0], request, response); in dap_execute_cmd()