Home
last modified time | relevance | path

Searched refs:scsi_buf (Results 1 – 1 of 1) sorted by relevance

/Zephyr-latest/subsys/usb/device_next/class/
Dusbd_msc.c124 uint8_t scsi_buf[CONFIG_USBD_MSC_SCSI_BUFFER_SIZE]; member
262 ctx->scsi_bytes = scsi_read_data(lun, ctx->scsi_buf); in msc_process_read()
289 net_buf_add_mem(buf, &ctx->scsi_buf[ctx->scsi_offset], len); in msc_process_read()
295 ctx->scsi_bytes = scsi_read_data(lun, ctx->scsi_buf); in msc_process_read()
318 data_len = scsi_cmd(lun, ctx->cbw.CBWCB, cb_len, ctx->scsi_buf); in msc_process_cbw()
402 tmp = MIN(len, sizeof(ctx->scsi_buf) - ctx->scsi_bytes); in msc_process_write()
403 memcpy(&ctx->scsi_buf[ctx->scsi_bytes], buf, tmp); in msc_process_write()
412 (ctx->scsi_bytes == sizeof(ctx->scsi_buf))) { in msc_process_write()
413 tmp = scsi_write_data(lun, ctx->scsi_buf, ctx->scsi_bytes); in msc_process_write()
437 memmove(ctx->scsi_buf, &ctx->scsi_buf[tmp], ctx->scsi_bytes - tmp); in msc_process_write()