/Zephyr-latest/drivers/usb/uhc/ |
D | uhc_common.c | 41 struct uhc_transfer *const xfer, in uhc_xfer_return() argument 47 .xfer = xfer, in uhc_xfer_return() 51 sys_dlist_remove(&xfer->node); in uhc_xfer_return() 52 xfer->queued = 0; in uhc_xfer_return() 53 xfer->err = err; in uhc_xfer_return() 61 struct uhc_transfer *xfer; in uhc_xfer_get_next() local 70 return (node == NULL) ? NULL : SYS_DLIST_CONTAINER(node, xfer, node); in uhc_xfer_get_next() 74 struct uhc_transfer *const xfer) in uhc_xfer_append() argument 78 sys_dlist_append(&data->ctrl_xfers, &xfer->node); in uhc_xfer_append() 104 struct uhc_transfer *xfer = NULL; in uhc_xfer_alloc() local [all …]
|
D | uhc_virtual.c | 78 struct uhc_transfer *const xfer) in vrt_xfer_control() argument 81 struct net_buf *buf = xfer->buf; in vrt_xfer_control() 86 if (xfer->stage == UHC_CONTROL_STAGE_SETUP) { in vrt_xfer_control() 89 xfer->addr, USB_CONTROL_EP_OUT, in vrt_xfer_control() 90 xfer->setup_pkt, sizeof(xfer->setup_pkt)); in vrt_xfer_control() 102 if (buf != NULL && xfer->stage == UHC_CONTROL_STAGE_DATA) { in vrt_xfer_control() 103 if (USB_EP_DIR_IS_IN(xfer->ep)) { in vrt_xfer_control() 104 length = MIN(net_buf_tailroom(buf), xfer->mps); in vrt_xfer_control() 107 length = MIN(buf->len, xfer->mps); in vrt_xfer_control() 113 xfer->addr, xfer->ep, in vrt_xfer_control() [all …]
|
D | uhc_max3421e.c | 309 struct uhc_transfer *const xfer, in max3421e_xfer_control() argument 313 struct net_buf *buf = xfer->buf; in max3421e_xfer_control() 322 if (xfer->stage == UHC_CONTROL_STAGE_SETUP) { in max3421e_xfer_control() 325 xfer->setup_pkt, sizeof(xfer->setup_pkt)); in max3421e_xfer_control() 338 if (buf != NULL && xfer->stage == UHC_CONTROL_STAGE_DATA) { in max3421e_xfer_control() 340 return max3421e_xfer_data(dev, buf, xfer->ep); in max3421e_xfer_control() 343 if (xfer->stage == UHC_CONTROL_STAGE_STATUS) { in max3421e_xfer_control() 345 if (USB_EP_DIR_IS_IN(xfer->ep)) { in max3421e_xfer_control() 358 struct uhc_transfer *const xfer, in max3421e_xfer_bulk() argument 362 struct net_buf *buf = xfer->buf; in max3421e_xfer_bulk() [all …]
|
D | uhc_common.h | 71 struct uhc_transfer *const xfer, 95 struct uhc_transfer *const xfer);
|
/Zephyr-latest/drivers/spi/ |
D | spi_psoc6.c | 48 struct spi_psoc6_transfer xfer; member 56 struct spi_psoc6_transfer *xfer = &data->xfer; in spi_psoc6_transfer_next_packet() local 63 xfer->dataSize = 0U; in spi_psoc6_transfer_next_packet() 72 xfer->txData = NULL; in spi_psoc6_transfer_next_packet() 73 xfer->rxData = ctx->rx_buf; in spi_psoc6_transfer_next_packet() 74 xfer->dataSize = ctx->rx_len; in spi_psoc6_transfer_next_packet() 77 xfer->txData = (uint8_t *) ctx->tx_buf; in spi_psoc6_transfer_next_packet() 78 xfer->rxData = NULL; in spi_psoc6_transfer_next_packet() 79 xfer->dataSize = ctx->tx_len; in spi_psoc6_transfer_next_packet() 82 xfer->txData = (uint8_t *) ctx->tx_buf; in spi_psoc6_transfer_next_packet() [all …]
|
D | spi_mchp_mss.c | 114 struct mss_spi_transfer xfer; member 184 struct mss_spi_transfer *xfer = &data->xfer; in mss_spi_readwr_fifo() local 199 spi_context_update_rx(ctx, 1, xfer->rx_len); in mss_spi_readwr_fifo() 332 struct mss_spi_transfer *xfer = &data->xfer; in mss_spi_configure() local 357 mss_spi_write(cfg, MSS_SPI_REG_CONTROL, xfer->control); in mss_spi_configure() 380 struct mss_spi_transfer *xfer = &data->xfer; in mss_spi_transceive() local 392 xfer->rx_len = ctx->rx_len; in mss_spi_transceive() 425 struct mss_spi_transfer *xfer = &data->xfer; in mss_spi_init() local 436 xfer->control = (MSS_SPI_CONTROL_SPS | MSS_SPI_CONTROL_BIGFIFO | MSS_SPI_CONTROL_MASTER | in mss_spi_init()
|
/Zephyr-latest/subsys/usb/host/ |
D | usbh_core.c | 33 struct uhc_transfer *const xfer) in discard_ep_request() argument 37 if (xfer->buf) { in discard_ep_request() 38 LOG_HEXDUMP_INF(xfer->buf->data, xfer->buf->len, "buf"); in discard_ep_request() 39 uhc_xfer_buf_free(dev, xfer->buf); in discard_ep_request() 42 return uhc_xfer_free(dev, xfer); in discard_ep_request() 51 struct usb_device *const udev = event->xfer->udev; in usbh_event_handler() 52 usbh_udev_cb_t cb = event->xfer->cb; in usbh_event_handler() 54 if (event->xfer->cb) { in usbh_event_handler() 55 ret = cb(udev, event->xfer); in usbh_event_handler() 57 ret = discard_ep_request(ctx, event->xfer); in usbh_event_handler()
|
D | usbh_device.h | 33 struct uhc_transfer *const xfer); 55 struct uhc_transfer *const xfer, in usbh_xfer_buf_add() argument 60 return uhc_xfer_buf_add(ctx->dev, xfer, buf); in usbh_xfer_buf_add() 72 struct uhc_transfer *const xfer) in usbh_xfer_free() argument 76 return uhc_xfer_free(ctx->dev, xfer); in usbh_xfer_free() 88 struct uhc_transfer *const xfer) in usbh_xfer_enqueue() argument 92 return uhc_ep_enqueue(ctx->dev, xfer); in usbh_xfer_enqueue()
|
D | usbh_ch9.c | 29 static int ch9_req_cb(struct usb_device *const udev, struct uhc_transfer *const xfer) in ch9_req_cb() argument 31 LOG_DBG("Request finished %p, err %d", xfer, xfer->err); in ch9_req_cb() 52 struct uhc_transfer *xfer; in usbh_req_setup() local 56 xfer = usbh_xfer_alloc(udev, ep, 0, 64, SETUP_REQ_TIMEOUT, (void *)ch9_req_cb); in usbh_req_setup() 57 if (!xfer) { in usbh_req_setup() 61 memcpy(xfer->setup_pkt, &req, sizeof(req)); in usbh_req_setup() 66 ret = usbh_xfer_buf_add(udev, xfer, buf); in usbh_req_setup() 72 ret = usbh_xfer_enqueue(udev, xfer); in usbh_req_setup() 78 ret = xfer->err; in usbh_req_setup() 81 usbh_xfer_free(udev, xfer); in usbh_req_setup()
|
/Zephyr-latest/subsys/bluetooth/mesh/ |
D | dfu_cli.c | 118 cli->xfer.state = STATE_APPLIED; in dfu_applied() 130 cli->xfer.flags |= FLAG_FAILED; in dfu_failed() 190 cli->xfer.blob.block_size_log = caps->max_block_size_log; in blob_caps() 191 cli->xfer.blob.chunk_size = caps->max_chunk_size; in blob_caps() 198 if (!(cli->xfer.blob.mode & BT_MESH_BLOB_XFER_MODE_ALL)) { in blob_caps() 199 cli->xfer.blob.mode = in blob_caps() 203 cli->xfer.blob.mode = in blob_caps() 205 cli->xfer.blob.mode : caps->modes; in blob_caps() 208 err = bt_mesh_blob_cli_send(b, b->inputs, &cli->xfer.blob, cli->xfer.io); in blob_caps() 223 if ((cli->xfer.state == STATE_CONFIRM || cli->xfer.state == STATE_APPLY) && in blob_lost_target() [all …]
|
D | blob_srv.c | 49 return DIV_ROUND_UP(srv->state.xfer.size, in block_count_get() 50 (1U << srv->state.xfer.block_size_log)); in block_count_get() 106 return srv->io->open(srv->io, &srv->state.xfer, BT_MESH_BLOB_WRITE); in io_open() 115 srv->io->close(srv->io, &srv->state.xfer); in io_close() 121 srv->state.xfer.mode == BT_MESH_BLOB_XFER_MODE_PULL ? in reset_timer() 151 BLOB_CHUNK_SDU_LEN(srv->state.xfer.chunk_size), in pull_req_max() 219 srv->state.xfer.mode = BT_MESH_BLOB_XFER_MODE_NONE; in cancel() 223 srv->state.xfer.chunk_size = 0xffff; in cancel() 230 srv->cb->end(srv, srv->state.xfer.id, false); in cancel() 262 srv->cb->end(srv, srv->state.xfer.id, true); in end() [all …]
|
D | blob_cli.c | 31 (cli)->xfer->mode == BT_MESH_BLOB_XFER_MODE_PULL) 92 cli->xfer = NULL; in cli_state_reset() 173 return cli->io->open(cli->io, cli->xfer, BT_MESH_BLOB_READ); in io_open() 182 cli->io->close(cli->io, cli->xfer); in io_close() 218 static inline size_t chunk_size(const struct bt_mesh_blob_xfer *xfer, in chunk_size() argument 223 (block->size % xfer->chunk_size)) { in chunk_size() 224 return block->size % xfer->chunk_size; in chunk_size() 227 return xfer->chunk_size; in chunk_size() 267 cli->block.offset = block_idx * (1UL << cli->xfer->block_size_log); in block_set() 268 cli->block.size = blob_block_size(cli->xfer->size, cli->xfer->block_size_log, in block_set() [all …]
|
D | blob_io_flash.c | 41 const struct bt_mesh_blob_xfer *xfer, in io_open() argument 52 const struct bt_mesh_blob_xfer *xfer) in io_close() argument 60 const struct bt_mesh_blob_xfer *xfer, in block_start() argument 96 const struct bt_mesh_blob_xfer *xfer, in rd_chunk() argument 108 const struct bt_mesh_blob_xfer *xfer, in wr_chunk() argument
|
/Zephyr-latest/drivers/mspi/ |
D | mspi_emul.c | 32 struct mspi_xfer xfer; member 134 const struct mspi_xfer *xfer, in mspi_context_lock() argument 140 if (k_sem_take(&ctx->lock, K_MSEC(xfer->timeout))) { in mspi_context_lock() 146 if ((xfer->tx_dummy == ctx->xfer.tx_dummy) && in mspi_context_lock() 147 (xfer->rx_dummy == ctx->xfer.rx_dummy) && in mspi_context_lock() 148 (xfer->cmd_length == ctx->xfer.cmd_length) && in mspi_context_lock() 149 (xfer->addr_length == ctx->xfer.addr_length)) { in mspi_context_lock() 157 ctx->xfer = *xfer; in mspi_context_lock() 159 ctx->asynchronous = ctx->xfer.async; in mspi_context_lock() 185 const struct mspi_xfer *xfer) in mspi_xfer_config() argument [all …]
|
D | mspi_ambiq_ap3.c | 35 struct mspi_xfer xfer; member 189 if (ctx->xfer.hold_ce && in mspi_context_ce_control() 190 ctx->xfer.ce_sw_ctrl.gpio.port != NULL) { in mspi_context_ce_control() 192 gpio_pin_set_dt(&ctx->xfer.ce_sw_ctrl.gpio, 1); in mspi_context_ce_control() 193 k_busy_wait(ctx->xfer.ce_sw_ctrl.delay); in mspi_context_ce_control() 195 k_busy_wait(ctx->xfer.ce_sw_ctrl.delay); in mspi_context_ce_control() 196 gpio_pin_set_dt(&ctx->xfer.ce_sw_ctrl.gpio, 0); in mspi_context_ce_control() 220 const struct mspi_xfer *xfer, in mspi_context_lock() argument 232 if (k_sem_take(&ctx->lock, K_MSEC(xfer->timeout))) { in mspi_context_lock() 235 if (ctx->xfer.async) { in mspi_context_lock() [all …]
|
/Zephyr-latest/include/zephyr/bluetooth/mesh/ |
D | blob.h | 157 const struct bt_mesh_blob_xfer *xfer, 168 const struct bt_mesh_blob_xfer *xfer); 182 const struct bt_mesh_blob_xfer *xfer, 196 const struct bt_mesh_blob_xfer *xfer, 226 const struct bt_mesh_blob_xfer *xfer, 251 const struct bt_mesh_blob_xfer *xfer,
|
D | blob_srv.h | 66 struct bt_mesh_blob_xfer *xfer); 126 struct bt_mesh_blob_xfer *xfer, 143 struct bt_mesh_blob_xfer xfer; member
|
/Zephyr-latest/drivers/flash/ |
D | flash_mspi_emul_device.c | 46 struct mspi_xfer xfer; member 212 data->xfer.async = false; in flash_mspi_emul_write() 213 data->xfer.xfer_mode = MSPI_DMA; in flash_mspi_emul_write() 214 data->xfer.tx_dummy = data->dev_cfg.tx_dummy; in flash_mspi_emul_write() 215 data->xfer.cmd_length = data->dev_cfg.cmd_length; in flash_mspi_emul_write() 216 data->xfer.addr_length = data->dev_cfg.addr_length; in flash_mspi_emul_write() 217 data->xfer.hold_ce = false; in flash_mspi_emul_write() 218 data->xfer.priority = 1; in flash_mspi_emul_write() 219 data->xfer.packets = &data->packet; in flash_mspi_emul_write() 220 data->xfer.num_packet = 1; in flash_mspi_emul_write() [all …]
|
/Zephyr-latest/drivers/dma/ |
D | dma_silabs_ldma.c | 107 desc->xfer.structReq = 1; in dma_silabs_block_to_descriptor() 120 desc->xfer.size = LOG2(src_size); in dma_silabs_block_to_descriptor() 132 desc->xfer.xferCnt = xfer_count; in dma_silabs_block_to_descriptor() 143 desc->xfer.blockSize = ret; in dma_silabs_block_to_descriptor() 148 desc->xfer.doneIfs = config->complete_callback_en; in dma_silabs_block_to_descriptor() 149 desc->xfer.reqMode = ldmaCtrlReqModeAll; in dma_silabs_block_to_descriptor() 150 desc->xfer.ignoreSrec = block->flow_control_mode; in dma_silabs_block_to_descriptor() 164 desc->xfer.srcInc = ldmaCtrlSrcIncNone; in dma_silabs_block_to_descriptor() 166 desc->xfer.srcInc = ldmaCtrlSrcIncOne; in dma_silabs_block_to_descriptor() 170 desc->xfer.dstInc = ldmaCtrlDstIncNone; in dma_silabs_block_to_descriptor() [all …]
|
D | dma_emul.c | 56 struct dma_emul_xfer_desc *xfer; member 107 return (enum dma_emul_channel_state)config->xfer[channel].config._reserved; in dma_emul_get_channel_state() 120 config->xfer[channel].config._reserved = state; in dma_emul_set_channel_state() 205 struct dma_emul_xfer_desc *xfer; in dma_emul_work_handler() local 215 xfer = &config->xfer[channel]; in dma_emul_work_handler() 220 memcpy(&xfer_config, &xfer->config, sizeof(xfer_config)); in dma_emul_work_handler() 223 LOG_DBG("processing xfer %p for channel %u", xfer, channel); in dma_emul_work_handler() 357 struct dma_emul_xfer_desc *xfer; in dma_emul_configure() local 366 xfer = &config->xfer[channel]; in dma_emul_configure() 379 memcpy(&xfer->config, xfer_config, sizeof(xfer->config)); in dma_emul_configure() [all …]
|
/Zephyr-latest/tests/bluetooth/mesh/blob_io_flash/src/ |
D | main.c | 51 struct bt_mesh_blob_xfer xfer; in ZTEST() local 91 err = blob_flash_stream.io.open(&blob_flash_stream.io, &xfer, BT_MESH_BLOB_READ); in ZTEST() 106 err = blob_flash_stream.io.block_start(&blob_flash_stream.io, &xfer, &block); in ZTEST() 124 err = blob_flash_stream.io.rd(&blob_flash_stream.io, &xfer, &block, &chunk); in ZTEST() 143 err = blob_flash_stream.io.rd(&blob_flash_stream.io, &xfer, &block, &chunk); in ZTEST() 148 err = blob_flash_stream.io.rd(&blob_flash_stream.io, &xfer, &block, &chunk); in ZTEST() 153 err = blob_flash_stream.io.rd(&blob_flash_stream.io, &xfer, &block, &chunk); in ZTEST() 156 blob_flash_stream.io.close(&blob_flash_stream.io, &xfer); in ZTEST() 161 struct bt_mesh_blob_xfer xfer; in ZTEST() local 186 err = blob_flash_stream.io.open(&blob_flash_stream.io, &xfer, BT_MESH_BLOB_WRITE); in ZTEST() [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/mesh/src/ |
D | test_blob.c | 62 const struct bt_mesh_blob_xfer *xfer, in blob_io_open() argument 75 const struct bt_mesh_blob_xfer *xfer, in blob_chunk_wr() argument 101 const struct bt_mesh_blob_xfer *xfer, in blob_chunk_rd() argument 111 const struct bt_mesh_blob_xfer *xfer, in blob_block_end() argument 138 struct bt_mesh_blob_xfer xfer; member 180 static void blob_cli_end(struct bt_mesh_blob_cli *b, const struct bt_mesh_blob_xfer *xfer, in blob_cli_end() argument 199 static int blob_srv_recover(struct bt_mesh_blob_srv *b, struct bt_mesh_blob_xfer *xfer, in blob_srv_recover() argument 207 struct bt_mesh_blob_xfer *xfer) in blob_srv_start() argument 925 blob_cli_xfer.xfer.mode = in test_cli_trans_complete() 927 blob_cli_xfer.xfer.size = CONFIG_BT_MESH_BLOB_BLOCK_SIZE_MIN * 4; in test_cli_trans_complete() [all …]
|
/Zephyr-latest/include/zephyr/drivers/usb/ |
D | uhc.h | 124 struct uhc_transfer *xfer; member 232 struct uhc_transfer *const xfer); 234 struct uhc_transfer *const xfer); 396 struct uhc_transfer *const xfer); 410 struct uhc_transfer *const xfer, 448 int uhc_ep_enqueue(const struct device *dev, struct uhc_transfer *const xfer); 461 int uhc_ep_dequeue(const struct device *dev, struct uhc_transfer *const xfer);
|
/Zephyr-latest/subsys/bluetooth/mesh/shell/ |
D | blob.c | 27 const struct bt_mesh_blob_xfer *xfer, in blob_io_open() argument 36 const struct bt_mesh_blob_xfer *xfer, in blob_chunk_wr() argument 54 const struct bt_mesh_blob_xfer *xfer, in blob_chunk_rd() argument 81 struct bt_mesh_blob_xfer xfer; member 121 const struct bt_mesh_blob_xfer *xfer, bool success) in blob_cli_end() argument 186 struct bt_mesh_blob_xfer *xfer) in blob_srv_start() argument 308 blob_cli_xfer.xfer.id = shell_strtoul(argv[1], 0, &err); in cmd_tx() 309 blob_cli_xfer.xfer.size = shell_strtoul(argv[2], 0, &err); in cmd_tx() 310 blob_cli_xfer.xfer.block_size_log = shell_strtoul(argv[3], 0, &err); in cmd_tx() 311 blob_cli_xfer.xfer.chunk_size = shell_strtoul(argv[4], 0, &err); in cmd_tx() [all …]
|
/Zephyr-latest/drivers/i3c/ |
D | i3c_cdns.c | 581 struct cdns_i3c_xfer xfer; member 1200 if (data->xfer.num_cmds == 0) { in cdns_i3c_cancel_transfer() 1204 data->xfer.num_cmds = 0; in cdns_i3c_cancel_transfer() 1223 data->xfer.ret = -ETIMEDOUT; in cdns_i3c_cancel_transfer() 1248 struct cdns_i3c_xfer *xfer = &data->xfer; in cdns_i3c_start_transfer() local 1263 for (unsigned int i = 0; i < xfer->num_cmds; i++) { in cdns_i3c_start_transfer() 1264 if (xfer->cmds[i].hdr == I3C_DATA_RATE_SDR) { in cdns_i3c_start_transfer() 1265 if (!(xfer->cmds[i].cmd0 & CMD0_FIFO_RNW)) { in cdns_i3c_start_transfer() 1266 cdns_i3c_write_tx_fifo(config, xfer->cmds[i].buf, in cdns_i3c_start_transfer() 1267 xfer->cmds[i].len); in cdns_i3c_start_transfer() [all …]
|