Lines Matching refs:csw

123 	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()
453 ctx->csw.bCSWStatus = CSW_STATUS_COMMAND_PASSED; in msc_process_write()
455 ctx->csw.bCSWStatus = CSW_STATUS_COMMAND_FAILED; in msc_process_write()
474 ctx->csw.dCSWSignature = sys_cpu_to_le32(CSW_SIGNATURE); in msc_handle_bulk_out()
475 ctx->csw.dCSWTag = ctx->cbw.dCBWTag; in msc_handle_bulk_out()
476 ctx->csw.dCSWDataResidue = ctx->cbw.dCBWDataTransferLength; in msc_handle_bulk_out()
479 ctx->csw.bCSWStatus = CSW_STATUS_COMMAND_FAILED; in msc_handle_bulk_out()
488 ctx->csw.bCSWStatus = CSW_STATUS_PHASE_ERROR; in msc_handle_bulk_out()
516 if (ctx->csw.dCSWDataResidue > 0) { in msc_handle_bulk_in()
525 ctx->csw.bCSWStatus = CSW_STATUS_COMMAND_PASSED; in msc_handle_bulk_in()
527 ctx->csw.bCSWStatus = CSW_STATUS_COMMAND_FAILED; in msc_handle_bulk_in()
547 ctx->csw.dCSWDataResidue = sys_cpu_to_le32(ctx->csw.dCSWDataResidue); in msc_send_csw()
555 net_buf_add_mem(buf, &ctx->csw, sizeof(ctx->csw)); in msc_send_csw()