Lines Matching refs:packet

47 	struct mspi_xfer_packet             packet;  member
119 const struct mspi_xfer_packet *packet = &packets[count]; in emul_mspi_device_transceive() local
121 if (packet->address > cfg->size || in emul_mspi_device_transceive()
122 packet->address + packet->num_bytes > cfg->size) { in emul_mspi_device_transceive()
126 if (packet->dir == MSPI_RX) { in emul_mspi_device_transceive()
127 memcpy(packet->data_buf, data->mem + packet->address, in emul_mspi_device_transceive()
128 packet->num_bytes); in emul_mspi_device_transceive()
129 } else if (packet->dir == MSPI_TX) { in emul_mspi_device_transceive()
130 memcpy(data->mem + packet->address, packet->data_buf, in emul_mspi_device_transceive()
131 packet->num_bytes); in emul_mspi_device_transceive()
135 if (packet->cb_mask == MSPI_BUS_XFER_COMPLETE_CB) { in emul_mspi_device_transceive()
219 data->xfer.packets = &data->packet; in flash_mspi_emul_write()
230 data->packet.dir = MSPI_TX; in flash_mspi_emul_write()
231 data->packet.cmd = data->dev_cfg.write_cmd; in flash_mspi_emul_write()
232 data->packet.address = offset; in flash_mspi_emul_write()
233 data->packet.data_buf = src; in flash_mspi_emul_write()
234 data->packet.num_bytes = i; in flash_mspi_emul_write()
279 data->packet.dir = MSPI_RX; in flash_mspi_emul_read()
280 data->packet.cmd = data->dev_cfg.read_cmd; in flash_mspi_emul_read()
281 data->packet.address = offset; in flash_mspi_emul_read()
282 data->packet.data_buf = rdata; in flash_mspi_emul_read()
283 data->packet.num_bytes = len; in flash_mspi_emul_read()
292 data->xfer.packets = &data->packet; in flash_mspi_emul_read()