• Home
  • Raw
  • Download

Lines Matching refs:cdb

317 	uint8_t *cdb, uint8_t direction, int data_length, uint32_t *ret_tag)  in send_mass_storage_command()  argument
324 if (cdb == NULL) { in send_mass_storage_command()
333 cdb_len = cdb_length[cdb[0]]; in send_mass_storage_command()
336 cdb[0], cdb_len); in send_mass_storage_command()
352 memcpy(cbw.CBWCB, cdb, cdb_len); in send_mass_storage_command()
421 uint8_t cdb[16]; // SCSI Command Descriptor Block in get_sense() local
430 memset(cdb, 0, sizeof(cdb)); in get_sense()
431 cdb[0] = 0x03; // Request Sense in get_sense()
432 cdb[4] = REQUEST_SENSE_LENGTH; in get_sense()
434 …send_mass_storage_command(handle, endpoint_out, 0, cdb, LIBUSB_ENDPOINT_IN, REQUEST_SENSE_LENGTH, … in get_sense()
462 uint8_t cdb[16]; // SCSI Command Descriptor Block in test_mass_storage() local
483 memset(cdb, 0, sizeof(cdb)); in test_mass_storage()
484 cdb[0] = 0x12; // Inquiry in test_mass_storage()
485 cdb[4] = INQUIRY_LENGTH; in test_mass_storage()
487 …send_mass_storage_command(handle, endpoint_out, lun, cdb, LIBUSB_ENDPOINT_IN, INQUIRY_LENGTH, &exp… in test_mass_storage()
507 memset(cdb, 0, sizeof(cdb)); in test_mass_storage()
508 cdb[0] = 0x25; // Read Capacity in test_mass_storage()
510 …send_mass_storage_command(handle, endpoint_out, lun, cdb, LIBUSB_ENDPOINT_IN, READ_CAPACITY_LENGTH… in test_mass_storage()
530 memset(cdb, 0, sizeof(cdb)); in test_mass_storage()
532 cdb[0] = 0x28; // Read(10) in test_mass_storage()
533 cdb[8] = 0x01; // 1 block in test_mass_storage()
535 …send_mass_storage_command(handle, endpoint_out, lun, cdb, LIBUSB_ENDPOINT_IN, block_size, &expecte… in test_mass_storage()