Lines Matching refs:scsi3addr
269 void *buff, size_t size, u16 page_code, unsigned char *scsi3addr,
317 u8 *scsi3addr, struct hpsa_scsi_dev_t *phys_disk);
325 unsigned char scsi3addr[], u8 page);
329 unsigned char *scsi3addr);
638 static inline int is_logical_dev_addr_mode(unsigned char scsi3addr[]) in is_logical_dev_addr_mode() argument
640 return (scsi3addr[3] & 0xC0) == 0x40; in is_logical_dev_addr_mode()
712 memcpy(lunid, hdev->scsi3addr, sizeof(lunid)); in lunid_show()
1171 static inline int is_hba_lunid(unsigned char scsi3addr[]) in is_hba_lunid() argument
1173 return memcmp(scsi3addr, RAID_CTLR_LUNID, 8) == 0; in is_hba_lunid()
1186 unsigned char scsi3addr[], int bus, int *target, int *lun) in hpsa_find_target_lun() argument
1231 else if (!is_logical_dev_addr_mode(dev->scsi3addr)) in hpsa_show_dev_msg()
1292 if (device->scsi3addr[4] == 0) { in hpsa_scsi_add_entry()
1294 if (hpsa_find_target_lun(h, device->scsi3addr, in hpsa_scsi_add_entry()
1306 memcpy(addr1, device->scsi3addr, 8); in hpsa_scsi_add_entry()
1311 memcpy(addr2, sd->scsi3addr, 8); in hpsa_scsi_add_entry()
1318 device->lun = device->scsi3addr[4]; in hpsa_scsi_add_entry()
1483 if (memcmp(dev1->scsi3addr, dev2->scsi3addr, in device_is_the_same()
1484 sizeof(dev1->scsi3addr)) != 0) in device_is_the_same()
1513 if (!is_logical_dev_addr_mode(dev1->scsi3addr)) in device_updated()
1553 if (SCSI3ADDR_EQ(needle->scsi3addr, haystack[i]->scsi3addr)) { in hpsa_scsi_find_entry()
1572 unsigned char scsi3addr[]) in hpsa_monitor_offline_device() argument
1580 if (memcmp(device->scsi3addr, scsi3addr, in hpsa_monitor_offline_device()
1581 sizeof(device->scsi3addr)) == 0) { in hpsa_monitor_offline_device()
1593 memcpy(device->scsi3addr, scsi3addr, sizeof(device->scsi3addr)); in hpsa_monitor_offline_device()
1825 dev->scsi3addr)) { in hpsa_find_outstanding_commands_for_dev()
2031 hpsa_monitor_offline_device(h, sd[i]->scsi3addr); in adjust_hpsa_scsi_table()
2985 static int hpsa_do_receive_diagnostic(struct ctlr_info *h, u8 *scsi3addr, in hpsa_do_receive_diagnostic() argument
2994 page, scsi3addr, TYPE_CMD)) { in hpsa_do_receive_diagnostic()
3013 u8 *scsi3addr) in hpsa_get_enclosure_logical_identifier() argument
3023 rc = hpsa_do_receive_diagnostic(h, scsi3addr, RECEIVE_DIAGNOSTIC, in hpsa_get_enclosure_logical_identifier()
3036 static int hpsa_scsi_do_inquiry(struct ctlr_info *h, unsigned char *scsi3addr, in hpsa_scsi_do_inquiry() argument
3047 page, scsi3addr, TYPE_CMD)) { in hpsa_scsi_do_inquiry()
3076 (void) fill_cmd(c, reset_type, h, NULL, 0, 0, dev->scsi3addr, TYPE_MSG); in hpsa_send_reset()
3096 unsigned char *scsi3addr) in hpsa_cmd_dev_match() argument
3109 match = !memcmp(scsi3addr, &c->Header.LUN.LunAddrBytes, in hpsa_cmd_dev_match()
3180 rc = wait_for_device_to_become_ready(h, dev->scsi3addr, 0); in hpsa_do_reset()
3187 unsigned char *scsi3addr, unsigned char *raid_level) in hpsa_get_raid_level() argument
3197 if (!hpsa_vpd_page_supported(h, scsi3addr, in hpsa_get_raid_level()
3201 rc = hpsa_scsi_do_inquiry(h, scsi3addr, VPD_PAGE | in hpsa_get_raid_level()
3292 unsigned char *scsi3addr, struct hpsa_scsi_dev_t *this_device) in hpsa_get_raid_map() argument
3302 scsi3addr, TYPE_CMD)) { in hpsa_get_raid_map()
3333 unsigned char scsi3addr[], u16 bmic_device_index, in hpsa_bmic_sense_subsystem_information() argument
3393 unsigned char scsi3addr[], u16 bmic_device_index, in hpsa_bmic_id_physical_device() argument
3429 unsigned char *scsi3addr, in hpsa_get_enclosure_info() argument
3442 hpsa_get_enclosure_logical_identifier(h, scsi3addr); in hpsa_get_enclosure_info()
3464 rc = hpsa_bmic_id_physical_device(h, scsi3addr, bmic_device_index, in hpsa_get_enclosure_info()
3514 unsigned char *scsi3addr) in hpsa_get_sas_address_from_report_physical() argument
3533 if (!memcmp(&physdev->LUN[i].lunid[0], scsi3addr, 8)) { in hpsa_get_sas_address_from_report_physical()
3543 static void hpsa_get_sas_address(struct ctlr_info *h, unsigned char *scsi3addr, in hpsa_get_sas_address() argument
3549 if (is_hba_lunid(scsi3addr)) { in hpsa_get_sas_address()
3557 scsi3addr, 0, ssi, sizeof(*ssi)); in hpsa_get_sas_address()
3565 sa = hpsa_get_sas_address_from_report_physical(h, scsi3addr); in hpsa_get_sas_address()
3596 unsigned char scsi3addr[], u8 page) in hpsa_vpd_page_supported() argument
3608 rc = hpsa_scsi_do_inquiry(h, scsi3addr, in hpsa_vpd_page_supported()
3620 rc = hpsa_scsi_do_inquiry(h, scsi3addr, in hpsa_vpd_page_supported()
3646 unsigned char *scsi3addr, struct hpsa_scsi_dev_t *this_device) in hpsa_get_ioaccel_status() argument
3659 if (!hpsa_vpd_page_supported(h, scsi3addr, HPSA_VPD_LV_IOACCEL_STATUS)) in hpsa_get_ioaccel_status()
3661 rc = hpsa_scsi_do_inquiry(h, scsi3addr, in hpsa_get_ioaccel_status()
3675 if (hpsa_get_raid_map(h, scsi3addr, this_device)) in hpsa_get_ioaccel_status()
3685 static int hpsa_get_device_id(struct ctlr_info *h, unsigned char *scsi3addr, in hpsa_get_device_id() argument
3692 if (!hpsa_vpd_page_supported(h, scsi3addr, HPSA_VPD_LV_DEVICE_ID)) in hpsa_get_device_id()
3699 rc = hpsa_scsi_do_inquiry(h, scsi3addr, VPD_PAGE | in hpsa_get_device_id()
3718 unsigned char scsi3addr[8]; in hpsa_scsi_do_report_luns() local
3724 memset(scsi3addr, 0, sizeof(scsi3addr)); in hpsa_scsi_do_report_luns()
3726 buf, bufsize, 0, scsi3addr, TYPE_CMD)) { in hpsa_scsi_do_report_luns()
3807 unsigned char scsi3addr[]) in hpsa_get_volume_status() argument
3819 if (!hpsa_vpd_page_supported(h, scsi3addr, HPSA_VPD_LV_STATUS)) in hpsa_get_volume_status()
3823 rc = hpsa_scsi_do_inquiry(h, scsi3addr, VPD_PAGE | HPSA_VPD_LV_STATUS, in hpsa_get_volume_status()
3830 rc = hpsa_scsi_do_inquiry(h, scsi3addr, VPD_PAGE | HPSA_VPD_LV_STATUS, in hpsa_get_volume_status()
3851 unsigned char scsi3addr[]) in hpsa_volume_offline() argument
3866 (void) fill_cmd(c, TEST_UNIT_READY, h, NULL, 0, 0, scsi3addr, TYPE_CMD); in hpsa_volume_offline()
3884 ldstat = hpsa_get_volume_status(h, scsi3addr); in hpsa_volume_offline()
3914 unsigned char scsi3addr[], struct hpsa_scsi_dev_t *this_device, in hpsa_update_device_info() argument
3934 if (hpsa_scsi_do_inquiry(h, scsi3addr, 0, inq_buff, in hpsa_update_device_info()
3947 memcpy(this_device->scsi3addr, scsi3addr, 8); in hpsa_update_device_info()
3955 if (hpsa_get_device_id(h, scsi3addr, this_device->device_id, 8, in hpsa_update_device_info()
3971 is_logical_dev_addr_mode(scsi3addr)) { in hpsa_update_device_info()
3974 hpsa_get_raid_level(h, scsi3addr, &this_device->raid_level); in hpsa_update_device_info()
3976 hpsa_get_ioaccel_status(h, scsi3addr, this_device); in hpsa_update_device_info()
3977 volume_offline = hpsa_volume_offline(h, scsi3addr); in hpsa_update_device_info()
4703 u8 *scsi3addr, struct hpsa_scsi_dev_t *phys_disk) in hpsa_scsi_ioaccel1_queue_command() argument
4788 memcpy(cp->CISS_LUN, scsi3addr, 8); in hpsa_scsi_ioaccel1_queue_command()
4813 cmd->cmnd, cmd->cmd_len, dev->scsi3addr, dev); in hpsa_scsi_ioaccel_direct_map()
4877 u8 *scsi3addr, struct hpsa_scsi_dev_t *phys_disk) in hpsa_scsi_ioaccel2_queue_command() argument
5016 u8 *scsi3addr, struct hpsa_scsi_dev_t *phys_disk) in hpsa_scsi_ioaccel_queue_command() argument
5035 cdb, cdb_len, scsi3addr, in hpsa_scsi_ioaccel_queue_command()
5039 cdb, cdb_len, scsi3addr, in hpsa_scsi_ioaccel_queue_command()
5406 dev->scsi3addr, in hpsa_scsi_ioaccel_raid_map()
5423 memcpy(&c->Header.LUN.LunAddrBytes[0], &dev->scsi3addr[0], 8); in hpsa_ciss_submit()
6020 if (is_hba_lunid(dev->scsi3addr)) { in hpsa_eh_device_reset_handler()
6025 if (is_logical_dev_addr_mode(dev->scsi3addr)) in hpsa_eh_device_reset_handler()
6647 void *buff, size_t size, u16 page_code, unsigned char *scsi3addr, in fill_cmd() argument
6662 memcpy(c->Header.LUN.LunAddrBytes, scsi3addr, 8); in fill_cmd()
8315 if (!hpsa_vpd_page_supported(h, device->scsi3addr, in hpsa_set_ioaccel_status()
8321 rc = hpsa_scsi_do_inquiry(h, device->scsi3addr, in hpsa_set_ioaccel_status()
8425 if (!hpsa_volume_offline(h, d->scsi3addr)) { in hpsa_offline_devices_ready()