Lines Matching refs:scsi3addr
209 static inline bool pqi_is_external_raid_addr(u8 *scsi3addr) in pqi_is_external_raid_addr() argument
211 return scsi3addr[2] != 0; in pqi_is_external_raid_addr()
226 static inline bool pqi_is_hba_lunid(u8 *scsi3addr) in pqi_is_hba_lunid() argument
228 return pqi_scsi3addr_equal(scsi3addr, RAID_CTLR_LUNID); in pqi_is_hba_lunid()
466 u8 *scsi3addr, void *buffer, size_t buffer_length, in pqi_build_raid_path_request() argument
479 memcpy(request->lun_number, scsi3addr, sizeof(request->lun_number)); in pqi_build_raid_path_request()
604 u8 *scsi3addr, void *buffer, size_t buffer_length, u16 vpd_page, in pqi_send_scsi_raid_request() argument
612 cmd, scsi3addr, buffer, in pqi_send_scsi_raid_request()
658 u8 *scsi3addr, u16 vpd_page, void *buffer, size_t buffer_length) in pqi_scsi_inquiry() argument
660 return pqi_send_scsi_raid_request(ctrl_info, INQUIRY, scsi3addr, in pqi_scsi_inquiry()
679 bmic_device_index = CISS_GET_DRIVE_NUMBER(device->scsi3addr); in pqi_identify_physical_device()
1060 u8 *scsi3addr; in pqi_assign_bus_target_lun() local
1066 scsi3addr = device->scsi3addr; in pqi_assign_bus_target_lun()
1067 lunid = get_unaligned_le32(scsi3addr); in pqi_assign_bus_target_lun()
1069 if (pqi_is_hba_lunid(scsi3addr)) { in pqi_assign_bus_target_lun()
1109 rc = pqi_scsi_inquiry(ctrl_info, device->scsi3addr, in pqi_get_raid_level()
1164 *((u32 *)&device->scsi3addr), in pqi_validate_raid_map()
1165 *((u32 *)&device->scsi3addr[4]), err_msg); in pqi_validate_raid_map()
1182 device->scsi3addr, raid_map, sizeof(*raid_map), in pqi_get_raid_map()
1199 device->scsi3addr, raid_map, raid_map_size, in pqi_get_raid_map()
1239 rc = pqi_scsi_inquiry(ctrl_info, device->scsi3addr, in pqi_get_raid_bypass_status()
1278 rc = pqi_scsi_inquiry(ctrl_info, device->scsi3addr, in pqi_get_volume_status()
1352 rc = pqi_scsi_inquiry(ctrl_info, device->scsi3addr, 0, buffer, 64); in pqi_get_logical_device_info()
1587 if (pqi_scsi3addr_equal(device_to_find->scsi3addr, device->scsi3addr)) { in pqi_scsi_find_entry()
1635 *((u32 *)&device->scsi3addr), in pqi_dev_info()
1636 *((u32 *)&device->scsi3addr[4])); in pqi_dev_info()
1914 !pqi_is_hba_lunid(device->scsi3addr)) in pqi_is_supported_device()
1920 static inline bool pqi_skip_device(u8 *scsi3addr) in pqi_skip_device() argument
1923 if (MASKED_DEVICE(scsi3addr)) in pqi_skip_device()
1929 static inline void pqi_mask_device(u8 *scsi3addr) in pqi_mask_device() argument
1931 scsi3addr[3] |= 0xc0; in pqi_mask_device()
1949 !pqi_skip_device(device->scsi3addr); in pqi_expose_device()
1970 u8 *scsi3addr; in pqi_update_scsi_devices() local
2060 scsi3addr = phys_lun_ext_entry->lunid; in pqi_update_scsi_devices()
2066 scsi3addr = log_lun_ext_entry->lunid; in pqi_update_scsi_devices()
2069 if (is_physical_device && pqi_skip_device(scsi3addr)) in pqi_update_scsi_devices()
2078 memcpy(device->scsi3addr, scsi3addr, sizeof(device->scsi3addr)); in pqi_update_scsi_devices()
2086 pqi_is_external_raid_addr(scsi3addr); in pqi_update_scsi_devices()
2108 *((u32 *)&device->scsi3addr), in pqi_update_scsi_devices()
2109 *((u32 *)&device->scsi3addr[4])); in pqi_update_scsi_devices()
4960 memcpy(request->lun_number, device->scsi3addr, in pqi_raid_submit_scsi_cmd_with_io_request()
5670 memcpy(request->lun_number, device->scsi3addr, in pqi_lun_reset()
6335 memcpy(lunid, device->scsi3addr, sizeof(lunid)); in pqi_lunid_show()