Lines Matching refs:cbw
322 struct command_block_wrapper cbw; in send_mass_storage_command() local
334 if ((cdb_len == 0) || (cdb_len > sizeof(cbw.CBWCB))) { in send_mass_storage_command()
340 memset(&cbw, 0, sizeof(cbw)); in send_mass_storage_command()
341 cbw.dCBWSignature[0] = 'U'; in send_mass_storage_command()
342 cbw.dCBWSignature[1] = 'S'; in send_mass_storage_command()
343 cbw.dCBWSignature[2] = 'B'; in send_mass_storage_command()
344 cbw.dCBWSignature[3] = 'C'; in send_mass_storage_command()
346 cbw.dCBWTag = tag++; in send_mass_storage_command()
347 cbw.dCBWDataTransferLength = data_length; in send_mass_storage_command()
348 cbw.bmCBWFlags = direction; in send_mass_storage_command()
349 cbw.bCBWLUN = lun; in send_mass_storage_command()
351 cbw.bCBWCBLength = cdb_len; in send_mass_storage_command()
352 memcpy(cbw.CBWCB, cdb, cdb_len); in send_mass_storage_command()
357 r = libusb_bulk_transfer(handle, endpoint, (unsigned char*)&cbw, 31, &size, 1000); in send_mass_storage_command()