Lines Matching refs:cdb

320 	struct CommandList *c, u32 ioaccel_handle, u8 *cdb, int cdb_len,
1122 static int is_firmware_flash_cmd(u8 *cdb) in is_firmware_flash_cmd() argument
1124 return cdb[0] == BMIC_WRITE && cdb[6] == BMIC_FLASH_FIRMWARE; in is_firmware_flash_cmd()
2921 const u8 *cdb = c->Request.CDB; in hpsa_print_cmd() local
2925 txt, lun, cdb); in hpsa_print_cmd()
4648 u8 *cdb, int cdb_len, in warn_zero_length_transfer() argument
4653 func, cdb_len, cdb); in warn_zero_length_transfer()
4658 static bool is_zero_length_transfer(u8 *cdb) in is_zero_length_transfer() argument
4663 switch (cdb[0]) { in is_zero_length_transfer()
4668 block_cnt = get_unaligned_be16(&cdb[7]); in is_zero_length_transfer()
4674 block_cnt = get_unaligned_be32(&cdb[6]); in is_zero_length_transfer()
4679 block_cnt = get_unaligned_be32(&cdb[10]); in is_zero_length_transfer()
4688 static int fixup_ioaccel_cdb(u8 *cdb, int *cdb_len) in fixup_ioaccel_cdb() argument
4695 switch (cdb[0]) { in fixup_ioaccel_cdb()
4703 block = (((cdb[1] & 0x1F) << 16) | in fixup_ioaccel_cdb()
4704 (cdb[2] << 8) | in fixup_ioaccel_cdb()
4705 cdb[3]); in fixup_ioaccel_cdb()
4706 block_cnt = cdb[4]; in fixup_ioaccel_cdb()
4711 block = get_unaligned_be32(&cdb[2]); in fixup_ioaccel_cdb()
4712 block_cnt = get_unaligned_be32(&cdb[6]); in fixup_ioaccel_cdb()
4717 cdb[0] = is_write ? WRITE_10 : READ_10; in fixup_ioaccel_cdb()
4718 cdb[1] = 0; in fixup_ioaccel_cdb()
4719 cdb[2] = (u8) (block >> 24); in fixup_ioaccel_cdb()
4720 cdb[3] = (u8) (block >> 16); in fixup_ioaccel_cdb()
4721 cdb[4] = (u8) (block >> 8); in fixup_ioaccel_cdb()
4722 cdb[5] = (u8) (block); in fixup_ioaccel_cdb()
4723 cdb[6] = 0; in fixup_ioaccel_cdb()
4724 cdb[7] = (u8) (block_cnt >> 8); in fixup_ioaccel_cdb()
4725 cdb[8] = (u8) (block_cnt); in fixup_ioaccel_cdb()
4726 cdb[9] = 0; in fixup_ioaccel_cdb()
4734 struct CommandList *c, u32 ioaccel_handle, u8 *cdb, int cdb_len, in hpsa_scsi_ioaccel1_queue_command() argument
4755 if (is_zero_length_transfer(cdb)) { in hpsa_scsi_ioaccel1_queue_command()
4756 warn_zero_length_transfer(h, cdb, cdb_len, __func__); in hpsa_scsi_ioaccel1_queue_command()
4761 if (fixup_ioaccel_cdb(cdb, &cdb_len)) { in hpsa_scsi_ioaccel1_queue_command()
4819 memcpy(cp->CDB, cdb, cdb_len); in hpsa_scsi_ioaccel1_queue_command()
4908 struct CommandList *c, u32 ioaccel_handle, u8 *cdb, int cdb_len, in hpsa_scsi_ioaccel2_queue_command() argument
4928 if (is_zero_length_transfer(cdb)) { in hpsa_scsi_ioaccel2_queue_command()
4929 warn_zero_length_transfer(h, cdb, cdb_len, __func__); in hpsa_scsi_ioaccel2_queue_command()
4934 if (fixup_ioaccel_cdb(cdb, &cdb_len)) { in hpsa_scsi_ioaccel2_queue_command()
5015 memcpy(cp->cdb, cdb, sizeof(cp->cdb)); in hpsa_scsi_ioaccel2_queue_command()
5047 struct CommandList *c, u32 ioaccel_handle, u8 *cdb, int cdb_len, in hpsa_scsi_ioaccel_queue_command() argument
5067 cdb, cdb_len, scsi3addr, in hpsa_scsi_ioaccel_queue_command()
5071 cdb, cdb_len, scsi3addr, in hpsa_scsi_ioaccel_queue_command()
5131 u8 cdb[16]; in hpsa_scsi_ioaccel_raid_map() local
5418 cdb[0] = is_write ? WRITE_16 : READ_16; in hpsa_scsi_ioaccel_raid_map()
5419 cdb[1] = 0; in hpsa_scsi_ioaccel_raid_map()
5420 cdb[2] = (u8) (disk_block >> 56); in hpsa_scsi_ioaccel_raid_map()
5421 cdb[3] = (u8) (disk_block >> 48); in hpsa_scsi_ioaccel_raid_map()
5422 cdb[4] = (u8) (disk_block >> 40); in hpsa_scsi_ioaccel_raid_map()
5423 cdb[5] = (u8) (disk_block >> 32); in hpsa_scsi_ioaccel_raid_map()
5424 cdb[6] = (u8) (disk_block >> 24); in hpsa_scsi_ioaccel_raid_map()
5425 cdb[7] = (u8) (disk_block >> 16); in hpsa_scsi_ioaccel_raid_map()
5426 cdb[8] = (u8) (disk_block >> 8); in hpsa_scsi_ioaccel_raid_map()
5427 cdb[9] = (u8) (disk_block); in hpsa_scsi_ioaccel_raid_map()
5428 cdb[10] = (u8) (disk_block_cnt >> 24); in hpsa_scsi_ioaccel_raid_map()
5429 cdb[11] = (u8) (disk_block_cnt >> 16); in hpsa_scsi_ioaccel_raid_map()
5430 cdb[12] = (u8) (disk_block_cnt >> 8); in hpsa_scsi_ioaccel_raid_map()
5431 cdb[13] = (u8) (disk_block_cnt); in hpsa_scsi_ioaccel_raid_map()
5432 cdb[14] = 0; in hpsa_scsi_ioaccel_raid_map()
5433 cdb[15] = 0; in hpsa_scsi_ioaccel_raid_map()
5436 cdb[0] = is_write ? WRITE_10 : READ_10; in hpsa_scsi_ioaccel_raid_map()
5437 cdb[1] = 0; in hpsa_scsi_ioaccel_raid_map()
5438 cdb[2] = (u8) (disk_block >> 24); in hpsa_scsi_ioaccel_raid_map()
5439 cdb[3] = (u8) (disk_block >> 16); in hpsa_scsi_ioaccel_raid_map()
5440 cdb[4] = (u8) (disk_block >> 8); in hpsa_scsi_ioaccel_raid_map()
5441 cdb[5] = (u8) (disk_block); in hpsa_scsi_ioaccel_raid_map()
5442 cdb[6] = 0; in hpsa_scsi_ioaccel_raid_map()
5443 cdb[7] = (u8) (disk_block_cnt >> 8); in hpsa_scsi_ioaccel_raid_map()
5444 cdb[8] = (u8) (disk_block_cnt); in hpsa_scsi_ioaccel_raid_map()
5445 cdb[9] = 0; in hpsa_scsi_ioaccel_raid_map()
5448 return hpsa_scsi_ioaccel_queue_command(h, c, disk_handle, cdb, cdb_len, in hpsa_scsi_ioaccel_raid_map()
9986 VERIFY_OFFSET(cdb, 16); in verify_offsets()