scsi3addr 269 drivers/scsi/hpsa.c void *buff, size_t size, u16 page_code, unsigned char *scsi3addr, scsi3addr 317 drivers/scsi/hpsa.c u8 *scsi3addr, struct hpsa_scsi_dev_t *phys_disk); scsi3addr 325 drivers/scsi/hpsa.c unsigned char scsi3addr[], u8 page); scsi3addr 329 drivers/scsi/hpsa.c unsigned char *scsi3addr); scsi3addr 638 drivers/scsi/hpsa.c static inline int is_logical_dev_addr_mode(unsigned char scsi3addr[]) scsi3addr 640 drivers/scsi/hpsa.c return (scsi3addr[3] & 0xC0) == 0x40; scsi3addr 712 drivers/scsi/hpsa.c memcpy(lunid, hdev->scsi3addr, sizeof(lunid)); scsi3addr 1171 drivers/scsi/hpsa.c static inline int is_hba_lunid(unsigned char scsi3addr[]) scsi3addr 1173 drivers/scsi/hpsa.c return memcmp(scsi3addr, RAID_CTLR_LUNID, 8) == 0; scsi3addr 1186 drivers/scsi/hpsa.c unsigned char scsi3addr[], int bus, int *target, int *lun) scsi3addr 1231 drivers/scsi/hpsa.c else if (!is_logical_dev_addr_mode(dev->scsi3addr)) scsi3addr 1292 drivers/scsi/hpsa.c if (device->scsi3addr[4] == 0) { scsi3addr 1294 drivers/scsi/hpsa.c if (hpsa_find_target_lun(h, device->scsi3addr, scsi3addr 1306 drivers/scsi/hpsa.c memcpy(addr1, device->scsi3addr, 8); scsi3addr 1311 drivers/scsi/hpsa.c memcpy(addr2, sd->scsi3addr, 8); scsi3addr 1318 drivers/scsi/hpsa.c device->lun = device->scsi3addr[4]; scsi3addr 1483 drivers/scsi/hpsa.c if (memcmp(dev1->scsi3addr, dev2->scsi3addr, scsi3addr 1484 drivers/scsi/hpsa.c sizeof(dev1->scsi3addr)) != 0) scsi3addr 1513 drivers/scsi/hpsa.c if (!is_logical_dev_addr_mode(dev1->scsi3addr)) scsi3addr 1553 drivers/scsi/hpsa.c if (SCSI3ADDR_EQ(needle->scsi3addr, haystack[i]->scsi3addr)) { scsi3addr 1572 drivers/scsi/hpsa.c unsigned char scsi3addr[]) scsi3addr 1580 drivers/scsi/hpsa.c if (memcmp(device->scsi3addr, scsi3addr, scsi3addr 1581 drivers/scsi/hpsa.c sizeof(device->scsi3addr)) == 0) { scsi3addr 1593 drivers/scsi/hpsa.c memcpy(device->scsi3addr, scsi3addr, sizeof(device->scsi3addr)); scsi3addr 1825 drivers/scsi/hpsa.c dev->scsi3addr)) { scsi3addr 2031 drivers/scsi/hpsa.c hpsa_monitor_offline_device(h, sd[i]->scsi3addr); scsi3addr 2985 drivers/scsi/hpsa.c static int hpsa_do_receive_diagnostic(struct ctlr_info *h, u8 *scsi3addr, scsi3addr 2994 drivers/scsi/hpsa.c page, scsi3addr, TYPE_CMD)) { scsi3addr 3013 drivers/scsi/hpsa.c u8 *scsi3addr) scsi3addr 3023 drivers/scsi/hpsa.c rc = hpsa_do_receive_diagnostic(h, scsi3addr, RECEIVE_DIAGNOSTIC, scsi3addr 3036 drivers/scsi/hpsa.c static int hpsa_scsi_do_inquiry(struct ctlr_info *h, unsigned char *scsi3addr, scsi3addr 3047 drivers/scsi/hpsa.c page, scsi3addr, TYPE_CMD)) { scsi3addr 3076 drivers/scsi/hpsa.c (void) fill_cmd(c, reset_type, h, NULL, 0, 0, dev->scsi3addr, TYPE_MSG); scsi3addr 3096 drivers/scsi/hpsa.c unsigned char *scsi3addr) scsi3addr 3109 drivers/scsi/hpsa.c match = !memcmp(scsi3addr, &c->Header.LUN.LunAddrBytes, scsi3addr 3180 drivers/scsi/hpsa.c rc = wait_for_device_to_become_ready(h, dev->scsi3addr, 0); scsi3addr 3187 drivers/scsi/hpsa.c unsigned char *scsi3addr, unsigned char *raid_level) scsi3addr 3197 drivers/scsi/hpsa.c if (!hpsa_vpd_page_supported(h, scsi3addr, scsi3addr 3201 drivers/scsi/hpsa.c rc = hpsa_scsi_do_inquiry(h, scsi3addr, VPD_PAGE | scsi3addr 3292 drivers/scsi/hpsa.c unsigned char *scsi3addr, struct hpsa_scsi_dev_t *this_device) scsi3addr 3302 drivers/scsi/hpsa.c scsi3addr, TYPE_CMD)) { scsi3addr 3333 drivers/scsi/hpsa.c unsigned char scsi3addr[], u16 bmic_device_index, scsi3addr 3393 drivers/scsi/hpsa.c unsigned char scsi3addr[], u16 bmic_device_index, scsi3addr 3429 drivers/scsi/hpsa.c unsigned char *scsi3addr, scsi3addr 3442 drivers/scsi/hpsa.c hpsa_get_enclosure_logical_identifier(h, scsi3addr); scsi3addr 3464 drivers/scsi/hpsa.c rc = hpsa_bmic_id_physical_device(h, scsi3addr, bmic_device_index, scsi3addr 3514 drivers/scsi/hpsa.c unsigned char *scsi3addr) scsi3addr 3533 drivers/scsi/hpsa.c if (!memcmp(&physdev->LUN[i].lunid[0], scsi3addr, 8)) { scsi3addr 3543 drivers/scsi/hpsa.c static void hpsa_get_sas_address(struct ctlr_info *h, unsigned char *scsi3addr, scsi3addr 3549 drivers/scsi/hpsa.c if (is_hba_lunid(scsi3addr)) { scsi3addr 3557 drivers/scsi/hpsa.c scsi3addr, 0, ssi, sizeof(*ssi)); scsi3addr 3565 drivers/scsi/hpsa.c sa = hpsa_get_sas_address_from_report_physical(h, scsi3addr); scsi3addr 3596 drivers/scsi/hpsa.c unsigned char scsi3addr[], u8 page) scsi3addr 3608 drivers/scsi/hpsa.c rc = hpsa_scsi_do_inquiry(h, scsi3addr, scsi3addr 3620 drivers/scsi/hpsa.c rc = hpsa_scsi_do_inquiry(h, scsi3addr, scsi3addr 3646 drivers/scsi/hpsa.c unsigned char *scsi3addr, struct hpsa_scsi_dev_t *this_device) scsi3addr 3659 drivers/scsi/hpsa.c if (!hpsa_vpd_page_supported(h, scsi3addr, HPSA_VPD_LV_IOACCEL_STATUS)) scsi3addr 3661 drivers/scsi/hpsa.c rc = hpsa_scsi_do_inquiry(h, scsi3addr, scsi3addr 3675 drivers/scsi/hpsa.c if (hpsa_get_raid_map(h, scsi3addr, this_device)) scsi3addr 3685 drivers/scsi/hpsa.c static int hpsa_get_device_id(struct ctlr_info *h, unsigned char *scsi3addr, scsi3addr 3692 drivers/scsi/hpsa.c if (!hpsa_vpd_page_supported(h, scsi3addr, HPSA_VPD_LV_DEVICE_ID)) scsi3addr 3699 drivers/scsi/hpsa.c rc = hpsa_scsi_do_inquiry(h, scsi3addr, VPD_PAGE | scsi3addr 3718 drivers/scsi/hpsa.c unsigned char scsi3addr[8]; scsi3addr 3724 drivers/scsi/hpsa.c memset(scsi3addr, 0, sizeof(scsi3addr)); scsi3addr 3726 drivers/scsi/hpsa.c buf, bufsize, 0, scsi3addr, TYPE_CMD)) { scsi3addr 3807 drivers/scsi/hpsa.c unsigned char scsi3addr[]) scsi3addr 3819 drivers/scsi/hpsa.c if (!hpsa_vpd_page_supported(h, scsi3addr, HPSA_VPD_LV_STATUS)) scsi3addr 3823 drivers/scsi/hpsa.c rc = hpsa_scsi_do_inquiry(h, scsi3addr, VPD_PAGE | HPSA_VPD_LV_STATUS, scsi3addr 3830 drivers/scsi/hpsa.c rc = hpsa_scsi_do_inquiry(h, scsi3addr, VPD_PAGE | HPSA_VPD_LV_STATUS, scsi3addr 3851 drivers/scsi/hpsa.c unsigned char scsi3addr[]) scsi3addr 3866 drivers/scsi/hpsa.c (void) fill_cmd(c, TEST_UNIT_READY, h, NULL, 0, 0, scsi3addr, TYPE_CMD); scsi3addr 3884 drivers/scsi/hpsa.c ldstat = hpsa_get_volume_status(h, scsi3addr); scsi3addr 3914 drivers/scsi/hpsa.c unsigned char scsi3addr[], struct hpsa_scsi_dev_t *this_device, scsi3addr 3934 drivers/scsi/hpsa.c if (hpsa_scsi_do_inquiry(h, scsi3addr, 0, inq_buff, scsi3addr 3947 drivers/scsi/hpsa.c memcpy(this_device->scsi3addr, scsi3addr, 8); scsi3addr 3955 drivers/scsi/hpsa.c if (hpsa_get_device_id(h, scsi3addr, this_device->device_id, 8, scsi3addr 3971 drivers/scsi/hpsa.c is_logical_dev_addr_mode(scsi3addr)) { scsi3addr 3974 drivers/scsi/hpsa.c hpsa_get_raid_level(h, scsi3addr, &this_device->raid_level); scsi3addr 3976 drivers/scsi/hpsa.c hpsa_get_ioaccel_status(h, scsi3addr, this_device); scsi3addr 3977 drivers/scsi/hpsa.c volume_offline = hpsa_volume_offline(h, scsi3addr); scsi3addr 4703 drivers/scsi/hpsa.c u8 *scsi3addr, struct hpsa_scsi_dev_t *phys_disk) scsi3addr 4788 drivers/scsi/hpsa.c memcpy(cp->CISS_LUN, scsi3addr, 8); scsi3addr 4813 drivers/scsi/hpsa.c cmd->cmnd, cmd->cmd_len, dev->scsi3addr, dev); scsi3addr 4877 drivers/scsi/hpsa.c u8 *scsi3addr, struct hpsa_scsi_dev_t *phys_disk) scsi3addr 5016 drivers/scsi/hpsa.c u8 *scsi3addr, struct hpsa_scsi_dev_t *phys_disk) scsi3addr 5035 drivers/scsi/hpsa.c cdb, cdb_len, scsi3addr, scsi3addr 5039 drivers/scsi/hpsa.c cdb, cdb_len, scsi3addr, scsi3addr 5406 drivers/scsi/hpsa.c dev->scsi3addr, scsi3addr 5423 drivers/scsi/hpsa.c memcpy(&c->Header.LUN.LunAddrBytes[0], &dev->scsi3addr[0], 8); scsi3addr 6020 drivers/scsi/hpsa.c if (is_hba_lunid(dev->scsi3addr)) { scsi3addr 6025 drivers/scsi/hpsa.c if (is_logical_dev_addr_mode(dev->scsi3addr)) scsi3addr 6647 drivers/scsi/hpsa.c void *buff, size_t size, u16 page_code, unsigned char *scsi3addr, scsi3addr 6662 drivers/scsi/hpsa.c memcpy(c->Header.LUN.LunAddrBytes, scsi3addr, 8); scsi3addr 8315 drivers/scsi/hpsa.c if (!hpsa_vpd_page_supported(h, device->scsi3addr, scsi3addr 8321 drivers/scsi/hpsa.c rc = hpsa_scsi_do_inquiry(h, device->scsi3addr, scsi3addr 8425 drivers/scsi/hpsa.c if (!hpsa_volume_offline(h, d->scsi3addr)) { scsi3addr 64 drivers/scsi/hpsa.h unsigned char scsi3addr[8]; /* as presented to the HW */ scsi3addr 316 drivers/scsi/hpsa.h unsigned char scsi3addr[8]; scsi3addr 907 drivers/scsi/smartpqi/smartpqi.h u8 scsi3addr[8]; scsi3addr 209 drivers/scsi/smartpqi/smartpqi_init.c static inline bool pqi_is_external_raid_addr(u8 *scsi3addr) scsi3addr 211 drivers/scsi/smartpqi/smartpqi_init.c return scsi3addr[2] != 0; scsi3addr 221 drivers/scsi/smartpqi/smartpqi_init.c static inline bool pqi_is_hba_lunid(u8 *scsi3addr) scsi3addr 223 drivers/scsi/smartpqi/smartpqi_init.c return pqi_scsi3addr_equal(scsi3addr, RAID_CTLR_LUNID); scsi3addr 451 drivers/scsi/smartpqi/smartpqi_init.c u8 *scsi3addr, void *buffer, size_t buffer_length, scsi3addr 464 drivers/scsi/smartpqi/smartpqi_init.c memcpy(request->lun_number, scsi3addr, sizeof(request->lun_number)); scsi3addr 590 drivers/scsi/smartpqi/smartpqi_init.c u8 *scsi3addr, void *buffer, size_t buffer_length, u16 vpd_page, scsi3addr 599 drivers/scsi/smartpqi/smartpqi_init.c cmd, scsi3addr, buffer, scsi3addr 645 drivers/scsi/smartpqi/smartpqi_init.c u8 *scsi3addr, u16 vpd_page, void *buffer, size_t buffer_length) scsi3addr 647 drivers/scsi/smartpqi/smartpqi_init.c return pqi_send_scsi_raid_request(ctrl_info, INQUIRY, scsi3addr, scsi3addr 667 drivers/scsi/smartpqi/smartpqi_init.c bmic_device_index = CISS_GET_DRIVE_NUMBER(device->scsi3addr); scsi3addr 1046 drivers/scsi/smartpqi/smartpqi_init.c u8 *scsi3addr; scsi3addr 1052 drivers/scsi/smartpqi/smartpqi_init.c scsi3addr = device->scsi3addr; scsi3addr 1053 drivers/scsi/smartpqi/smartpqi_init.c lunid = get_unaligned_le32(scsi3addr); scsi3addr 1055 drivers/scsi/smartpqi/smartpqi_init.c if (pqi_is_hba_lunid(scsi3addr)) { scsi3addr 1095 drivers/scsi/smartpqi/smartpqi_init.c rc = pqi_scsi_inquiry(ctrl_info, device->scsi3addr, scsi3addr 1150 drivers/scsi/smartpqi/smartpqi_init.c *((u32 *)&device->scsi3addr), scsi3addr 1151 drivers/scsi/smartpqi/smartpqi_init.c *((u32 *)&device->scsi3addr[4]), err_msg); scsi3addr 1168 drivers/scsi/smartpqi/smartpqi_init.c device->scsi3addr, raid_map, sizeof(*raid_map), scsi3addr 1185 drivers/scsi/smartpqi/smartpqi_init.c device->scsi3addr, raid_map, raid_map_size, scsi3addr 1225 drivers/scsi/smartpqi/smartpqi_init.c rc = pqi_scsi_inquiry(ctrl_info, device->scsi3addr, scsi3addr 1264 drivers/scsi/smartpqi/smartpqi_init.c rc = pqi_scsi_inquiry(ctrl_info, device->scsi3addr, scsi3addr 1306 drivers/scsi/smartpqi/smartpqi_init.c rc = pqi_scsi_inquiry(ctrl_info, device->scsi3addr, 0, scsi3addr 1566 drivers/scsi/smartpqi/smartpqi_init.c if (pqi_scsi3addr_equal(device_to_find->scsi3addr, scsi3addr 1567 drivers/scsi/smartpqi/smartpqi_init.c device->scsi3addr)) { scsi3addr 1615 drivers/scsi/smartpqi/smartpqi_init.c *((u32 *)&device->scsi3addr), scsi3addr 1616 drivers/scsi/smartpqi/smartpqi_init.c *((u32 *)&device->scsi3addr[4])); scsi3addr 1897 drivers/scsi/smartpqi/smartpqi_init.c if (pqi_is_hba_lunid(device->scsi3addr)) scsi3addr 1905 drivers/scsi/smartpqi/smartpqi_init.c static inline bool pqi_skip_device(u8 *scsi3addr) scsi3addr 1908 drivers/scsi/smartpqi/smartpqi_init.c if (MASKED_DEVICE(scsi3addr)) scsi3addr 1914 drivers/scsi/smartpqi/smartpqi_init.c static inline void pqi_mask_device(u8 *scsi3addr) scsi3addr 1916 drivers/scsi/smartpqi/smartpqi_init.c scsi3addr[3] |= 0xc0; scsi3addr 1940 drivers/scsi/smartpqi/smartpqi_init.c !pqi_skip_device(device->scsi3addr); scsi3addr 1961 drivers/scsi/smartpqi/smartpqi_init.c u8 *scsi3addr; scsi3addr 2052 drivers/scsi/smartpqi/smartpqi_init.c scsi3addr = phys_lun_ext_entry->lunid; scsi3addr 2058 drivers/scsi/smartpqi/smartpqi_init.c scsi3addr = log_lun_ext_entry->lunid; scsi3addr 2061 drivers/scsi/smartpqi/smartpqi_init.c if (is_physical_device && pqi_skip_device(scsi3addr)) scsi3addr 2070 drivers/scsi/smartpqi/smartpqi_init.c memcpy(device->scsi3addr, scsi3addr, sizeof(device->scsi3addr)); scsi3addr 2078 drivers/scsi/smartpqi/smartpqi_init.c pqi_is_external_raid_addr(scsi3addr); scsi3addr 2097 drivers/scsi/smartpqi/smartpqi_init.c *((u32 *)&device->scsi3addr), scsi3addr 2098 drivers/scsi/smartpqi/smartpqi_init.c *((u32 *)&device->scsi3addr[4])); scsi3addr 4948 drivers/scsi/smartpqi/smartpqi_init.c memcpy(request->lun_number, device->scsi3addr, scsi3addr 5658 drivers/scsi/smartpqi/smartpqi_init.c memcpy(request->lun_number, device->scsi3addr, scsi3addr 6292 drivers/scsi/smartpqi/smartpqi_init.c memcpy(lunid, device->scsi3addr, sizeof(lunid)); scsi3addr 372 drivers/scsi/smartpqi/smartpqi_sas_transport.c CISS_GET_DRIVE_NUMBER(device->scsi3addr) ==