Lines Matching refs:data_len
33 uint32_t data_len; member
220 if (len > s->data_len) { in usb_msd_copy_data()
221 len = s->data_len; in usb_msd_copy_data()
223 s->data_len -= len; in usb_msd_copy_data()
224 if (s->scsi_len == 0 || s->data_len == 0) { in usb_msd_copy_data()
273 s->csw.residue = cpu_to_le32(s->data_len); in usb_msd_command_complete()
277 if (s->data_len == 0 && s->mode == USB_MSDM_DATAOUT) { in usb_msd_command_complete()
286 if (s->data_len) { in usb_msd_command_complete()
289 if (len > s->data_len) { in usb_msd_command_complete()
290 len = s->data_len; in usb_msd_command_complete()
292 s->data_len -= len; in usb_msd_command_complete()
294 if (s->data_len == 0) { in usb_msd_command_complete()
300 } else if (s->data_len == 0) { in usb_msd_command_complete()
436 s->data_len = le32_to_cpu(cbw.data_len); in usb_msd_handle_data()
437 if (s->data_len == 0) { in usb_msd_handle_data()
445 cbw.cmd_len, s->data_len); in usb_msd_handle_data()
459 trace_usb_msd_data_out(p->iov.size, s->data_len); in usb_msd_handle_data()
460 if (p->iov.size > s->data_len) { in usb_msd_handle_data()
471 if (len > s->data_len) { in usb_msd_handle_data()
472 len = s->data_len; in usb_msd_handle_data()
474 s->data_len -= len; in usb_msd_handle_data()
475 if (s->data_len == 0) { in usb_msd_handle_data()
498 if (s->data_len != 0 || p->iov.size < 13) { in usb_msd_handle_data()
524 trace_usb_msd_data_in(p->iov.size, s->data_len, s->scsi_len); in usb_msd_handle_data()
532 if (len > s->data_len) { in usb_msd_handle_data()
533 len = s->data_len; in usb_msd_handle_data()
535 s->data_len -= len; in usb_msd_handle_data()
536 if (s->data_len == 0) { in usb_msd_handle_data()
580 VMSTATE_UINT32(data_len, MSDState),