Lines Matching refs:csw
227 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()
507 csw.Status = CSW_FAILED; in check_cbw_data_length()
575 csw.Tag = cbw.Tag; in CBWDecode()
576 csw.DataResidue = cbw.DataLength; in CBWDecode()
628 csw.Status = CSW_ERROR; in CBWDecode()
643 csw.Status = CSW_ERROR; in CBWDecode()
651 csw.Status = CSW_PASSED; in CBWDecode()
663 csw.Status = CSW_ERROR; in CBWDecode()
670 csw.Status = CSW_PASSED; in CBWDecode()
718 csw.DataResidue -= size; in memoryVerify()
721 csw.Status = (memOK && (stage == MSC_PROCESS_CBW)) ? in memoryVerify()
754 csw.DataResidue -= size; in memoryWrite()
757 csw.Status = (stage == MSC_ERROR) ? CSW_FAILED : CSW_PASSED; in memoryWrite()
803 csw.Status = CSW_ERROR; in mass_storage_bulk_out()
832 csw.DataResidue -= size; in thread_memory_write_done()
841 csw.Status = (stage == MSC_ERROR) ? CSW_FAILED : CSW_PASSED; in thread_memory_write_done()