Lines Matching refs:scsi3addr
274 void *buff, size_t size, u16 page_code, unsigned char *scsi3addr,
322 u8 *scsi3addr, struct hpsa_scsi_dev_t *phys_disk);
330 unsigned char scsi3addr[], u8 page);
334 unsigned char *scsi3addr);
649 static inline int is_logical_dev_addr_mode(unsigned char scsi3addr[]) in is_logical_dev_addr_mode() argument
651 return (scsi3addr[3] & 0xC0) == 0x40; in is_logical_dev_addr_mode()
723 memcpy(lunid, hdev->scsi3addr, sizeof(lunid)); in lunid_show()
1182 static inline int is_hba_lunid(unsigned char scsi3addr[]) in is_hba_lunid() argument
1184 return memcmp(scsi3addr, RAID_CTLR_LUNID, 8) == 0; in is_hba_lunid()
1197 unsigned char scsi3addr[], int bus, int *target, int *lun) in hpsa_find_target_lun() argument
1242 else if (!is_logical_dev_addr_mode(dev->scsi3addr)) in hpsa_show_dev_msg()
1303 if (device->scsi3addr[4] == 0) { in hpsa_scsi_add_entry()
1305 if (hpsa_find_target_lun(h, device->scsi3addr, in hpsa_scsi_add_entry()
1317 memcpy(addr1, device->scsi3addr, 8); in hpsa_scsi_add_entry()
1322 memcpy(addr2, sd->scsi3addr, 8); in hpsa_scsi_add_entry()
1329 device->lun = device->scsi3addr[4]; in hpsa_scsi_add_entry()
1494 if (memcmp(dev1->scsi3addr, dev2->scsi3addr, in device_is_the_same()
1495 sizeof(dev1->scsi3addr)) != 0) in device_is_the_same()
1524 if (!is_logical_dev_addr_mode(dev1->scsi3addr)) in device_updated()
1564 if (SCSI3ADDR_EQ(needle->scsi3addr, haystack[i]->scsi3addr)) { in hpsa_scsi_find_entry()
1583 unsigned char scsi3addr[]) in hpsa_monitor_offline_device() argument
1591 if (memcmp(device->scsi3addr, scsi3addr, in hpsa_monitor_offline_device()
1592 sizeof(device->scsi3addr)) == 0) { in hpsa_monitor_offline_device()
1604 memcpy(device->scsi3addr, scsi3addr, sizeof(device->scsi3addr)); in hpsa_monitor_offline_device()
1835 dev->scsi3addr)) { in hpsa_find_outstanding_commands_for_dev()
2041 hpsa_monitor_offline_device(h, sd[i]->scsi3addr); in adjust_hpsa_scsi_table()
2157 if (is_hba_lunid(sd->scsi3addr)) { in hpsa_slave_configure()
2999 static int hpsa_do_receive_diagnostic(struct ctlr_info *h, u8 *scsi3addr, in hpsa_do_receive_diagnostic() argument
3008 page, scsi3addr, TYPE_CMD)) { in hpsa_do_receive_diagnostic()
3027 u8 *scsi3addr) in hpsa_get_enclosure_logical_identifier() argument
3037 rc = hpsa_do_receive_diagnostic(h, scsi3addr, RECEIVE_DIAGNOSTIC, in hpsa_get_enclosure_logical_identifier()
3050 static int hpsa_scsi_do_inquiry(struct ctlr_info *h, unsigned char *scsi3addr, in hpsa_scsi_do_inquiry() argument
3061 page, scsi3addr, TYPE_CMD)) { in hpsa_scsi_do_inquiry()
3090 (void) fill_cmd(c, reset_type, h, NULL, 0, 0, dev->scsi3addr, TYPE_MSG); in hpsa_send_reset()
3110 unsigned char *scsi3addr) in hpsa_cmd_dev_match() argument
3123 match = !memcmp(scsi3addr, &c->Header.LUN.LunAddrBytes, in hpsa_cmd_dev_match()
3194 rc = wait_for_device_to_become_ready(h, dev->scsi3addr, 0); in hpsa_do_reset()
3201 unsigned char *scsi3addr, unsigned char *raid_level) in hpsa_get_raid_level() argument
3211 if (!hpsa_vpd_page_supported(h, scsi3addr, in hpsa_get_raid_level()
3215 rc = hpsa_scsi_do_inquiry(h, scsi3addr, VPD_PAGE | in hpsa_get_raid_level()
3306 unsigned char *scsi3addr, struct hpsa_scsi_dev_t *this_device) in hpsa_get_raid_map() argument
3316 scsi3addr, TYPE_CMD)) { in hpsa_get_raid_map()
3347 unsigned char scsi3addr[], u16 bmic_device_index, in hpsa_bmic_sense_subsystem_information() argument
3407 unsigned char scsi3addr[], u16 bmic_device_index, in hpsa_bmic_id_physical_device() argument
3443 unsigned char *scsi3addr, in hpsa_get_enclosure_info() argument
3461 hpsa_get_enclosure_logical_identifier(h, scsi3addr); in hpsa_get_enclosure_info()
3483 rc = hpsa_bmic_id_physical_device(h, scsi3addr, bmic_device_index, in hpsa_get_enclosure_info()
3533 unsigned char *scsi3addr) in hpsa_get_sas_address_from_report_physical() argument
3552 if (!memcmp(&physdev->LUN[i].lunid[0], scsi3addr, 8)) { in hpsa_get_sas_address_from_report_physical()
3562 static void hpsa_get_sas_address(struct ctlr_info *h, unsigned char *scsi3addr, in hpsa_get_sas_address() argument
3568 if (is_hba_lunid(scsi3addr)) { in hpsa_get_sas_address()
3576 scsi3addr, 0, ssi, sizeof(*ssi)); in hpsa_get_sas_address()
3584 sa = hpsa_get_sas_address_from_report_physical(h, scsi3addr); in hpsa_get_sas_address()
3615 unsigned char scsi3addr[], u8 page) in hpsa_vpd_page_supported() argument
3627 rc = hpsa_scsi_do_inquiry(h, scsi3addr, in hpsa_vpd_page_supported()
3639 rc = hpsa_scsi_do_inquiry(h, scsi3addr, in hpsa_vpd_page_supported()
3665 unsigned char *scsi3addr, struct hpsa_scsi_dev_t *this_device) in hpsa_get_ioaccel_status() argument
3678 if (!hpsa_vpd_page_supported(h, scsi3addr, HPSA_VPD_LV_IOACCEL_STATUS)) in hpsa_get_ioaccel_status()
3680 rc = hpsa_scsi_do_inquiry(h, scsi3addr, in hpsa_get_ioaccel_status()
3698 rc = hpsa_get_raid_map(h, scsi3addr, this_device); in hpsa_get_ioaccel_status()
3711 static int hpsa_get_device_id(struct ctlr_info *h, unsigned char *scsi3addr, in hpsa_get_device_id() argument
3718 if (!hpsa_vpd_page_supported(h, scsi3addr, HPSA_VPD_LV_DEVICE_ID)) in hpsa_get_device_id()
3725 rc = hpsa_scsi_do_inquiry(h, scsi3addr, VPD_PAGE | in hpsa_get_device_id()
3744 unsigned char scsi3addr[8]; in hpsa_scsi_do_report_luns() local
3750 memset(scsi3addr, 0, sizeof(scsi3addr)); in hpsa_scsi_do_report_luns()
3752 buf, bufsize, 0, scsi3addr, TYPE_CMD)) { in hpsa_scsi_do_report_luns()
3833 unsigned char scsi3addr[]) in hpsa_get_volume_status() argument
3845 if (!hpsa_vpd_page_supported(h, scsi3addr, HPSA_VPD_LV_STATUS)) in hpsa_get_volume_status()
3849 rc = hpsa_scsi_do_inquiry(h, scsi3addr, VPD_PAGE | HPSA_VPD_LV_STATUS, in hpsa_get_volume_status()
3856 rc = hpsa_scsi_do_inquiry(h, scsi3addr, VPD_PAGE | HPSA_VPD_LV_STATUS, in hpsa_get_volume_status()
3877 unsigned char scsi3addr[]) in hpsa_volume_offline() argument
3892 (void) fill_cmd(c, TEST_UNIT_READY, h, NULL, 0, 0, scsi3addr, TYPE_CMD); in hpsa_volume_offline()
3910 ldstat = hpsa_get_volume_status(h, scsi3addr); in hpsa_volume_offline()
3940 unsigned char scsi3addr[], struct hpsa_scsi_dev_t *this_device, in hpsa_update_device_info() argument
3960 if (hpsa_scsi_do_inquiry(h, scsi3addr, 0, inq_buff, in hpsa_update_device_info()
3973 memcpy(this_device->scsi3addr, scsi3addr, 8); in hpsa_update_device_info()
3981 if (hpsa_get_device_id(h, scsi3addr, this_device->device_id, 8, in hpsa_update_device_info()
3997 is_logical_dev_addr_mode(scsi3addr)) { in hpsa_update_device_info()
4000 hpsa_get_raid_level(h, scsi3addr, &this_device->raid_level); in hpsa_update_device_info()
4002 hpsa_get_ioaccel_status(h, scsi3addr, this_device); in hpsa_update_device_info()
4003 volume_offline = hpsa_volume_offline(h, scsi3addr); in hpsa_update_device_info()
4737 u8 *scsi3addr, struct hpsa_scsi_dev_t *phys_disk) in hpsa_scsi_ioaccel1_queue_command() argument
4822 memcpy(cp->CISS_LUN, scsi3addr, 8); in hpsa_scsi_ioaccel1_queue_command()
4847 cmd->cmnd, cmd->cmd_len, dev->scsi3addr, dev); in hpsa_scsi_ioaccel_direct_map()
4911 u8 *scsi3addr, struct hpsa_scsi_dev_t *phys_disk) in hpsa_scsi_ioaccel2_queue_command() argument
5050 u8 *scsi3addr, struct hpsa_scsi_dev_t *phys_disk) in hpsa_scsi_ioaccel_queue_command() argument
5069 cdb, cdb_len, scsi3addr, in hpsa_scsi_ioaccel_queue_command()
5073 cdb, cdb_len, scsi3addr, in hpsa_scsi_ioaccel_queue_command()
5451 dev->scsi3addr, in hpsa_scsi_ioaccel_raid_map()
5468 memcpy(&c->Header.LUN.LunAddrBytes[0], &dev->scsi3addr[0], 8); in hpsa_ciss_submit()
6065 if (is_hba_lunid(dev->scsi3addr)) { in hpsa_eh_device_reset_handler()
6070 if (is_logical_dev_addr_mode(dev->scsi3addr)) in hpsa_eh_device_reset_handler()
6669 void *buff, size_t size, u16 page_code, unsigned char *scsi3addr, in fill_cmd() argument
6684 memcpy(c->Header.LUN.LunAddrBytes, scsi3addr, 8); in fill_cmd()
8340 if (!hpsa_vpd_page_supported(h, device->scsi3addr, in hpsa_set_ioaccel_status()
8346 rc = hpsa_scsi_do_inquiry(h, device->scsi3addr, in hpsa_set_ioaccel_status()
8460 if (!hpsa_volume_offline(h, d->scsi3addr)) { in hpsa_offline_devices_ready()