Home
last modified time | relevance | path

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

/Zephyr-latest/subsys/usb/device/class/
Dmsc.c227 static struct CSW csw; variable
278 (void)memset((void *)&csw, 0, sizeof(struct CSW)); in msd_init()
287 csw.Signature = CSW_Signature; in sendCSW()
288 if (usb_write(mass_ep_data[MSD_IN_EP_IDX].ep_addr, (uint8_t *)&csw, in sendCSW()
306 csw.Status = CSW_FAILED; in fail()
326 csw.DataResidue -= size; in write()
327 csw.Status = CSW_PASSED; in write()
384 csw.Status = CSW_PASSED; in testUnitReady()
475 csw.DataResidue -= n; in thread_memory_read_done()
478 csw.Status = (stage == MSC_PROCESS_CBW) ? in thread_memory_read_done()
[all …]
/Zephyr-latest/subsys/usb/device_next/class/
Dusbd_msc.c123 struct CSW csw; member
301 ctx->csw.dCSWDataResidue -= bytes_queued; in msc_process_read()
333 ctx->csw.bCSWStatus = CSW_STATUS_COMMAND_PASSED; in msc_process_cbw()
335 ctx->csw.bCSWStatus = CSW_STATUS_COMMAND_FAILED; in msc_process_cbw()
339 ctx->csw.bCSWStatus = CSW_STATUS_PHASE_ERROR; in msc_process_cbw()
359 ctx->csw.bCSWStatus = CSW_STATUS_COMMAND_PASSED; in msc_process_cbw()
361 ctx->csw.bCSWStatus = CSW_STATUS_COMMAND_FAILED; in msc_process_cbw()
371 ctx->csw.bCSWStatus = CSW_STATUS_PHASE_ERROR; in msc_process_cbw()
383 ctx->csw.bCSWStatus = CSW_STATUS_PHASE_ERROR; in msc_process_cbw()
425 ctx->csw.dCSWDataResidue -= tmp; in msc_process_write()
[all …]