Home
last modified time | relevance | path

Searched refs:sas_addr (Results 1 – 25 of 49) sorted by relevance

12

/drivers/scsi/libsas/
Dsas_expander.c24 static int sas_configure_routing(struct domain_device *dev, u8 *sas_addr);
26 u8 *sas_addr, int include);
27 static int sas_disable_routing(struct domain_device *dev, u8 *sas_addr);
126 SAS_ADDR(dev->sas_addr), in smp_execute_task_sg()
199 u8 sas_addr[SAS_ADDR_SIZE]; in sas_set_ex_phy() local
233 memcpy(sas_addr, phy->attached_sas_addr, SAS_ADDR_SIZE); in sas_set_ex_phy()
325 SAS_ADDR(phy->attached_sas_addr) != SAS_ADDR(sas_addr)) in sas_set_ex_phy()
339 SAS_ADDR(dev->sas_addr), phy->phy_id, in sas_set_ex_phy()
382 if (memcmp(dev->sas_addr, dr->attached_sas_addr, SAS_ADDR_SIZE) == 0) { in sas_ex_phy_discover_helper()
491 SAS_ADDR(dev->sas_addr), res); in sas_ex_general()
[all …]
Dsas_port.c21 memcmp(port->sas_addr, phy->sas_addr, SAS_ADDR_SIZE) != 0)) in phy_is_wideport_member()
110 if (*(u64 *) port->sas_addr && in sas_form_port()
124 if (*(u64 *)port->sas_addr == 0 in sas_form_port()
126 memcpy(port->sas_addr, phy->sas_addr, in sas_form_port()
239 memset(port->sas_addr, 0, SAS_ADDR_SIZE); in sas_deform_port()
Dsas_internal.h113 SAS_ADDR(dev->sas_addr), err); in sas_fail_probe()
120 rphy->identify.sas_address = SAS_ADDR(dev->sas_addr); in sas_fill_in_rphy()
Dsas_task.c31 SAS_ADDR(task->dev->sas_addr), iu->status); in sas_ssp_task_response()
Dsas_scsi_host.c334 SAS_ADDR(dev->sas_addr), in sas_recover_lu()
360 SAS_ADDR(dev->sas_addr)); in sas_recover_I_T()
635 SAS_ADDR(task->dev->sas_addr)); in sas_eh_handle_sas_errors()
670 SAS_ADDR(task->dev->sas_addr), in sas_eh_handle_sas_errors()
855 SAS_ADDR(dev->sas_addr), scsi_dev->lun); in sas_slave_configure()
Dsas_discover.c135 memcpy(dev->sas_addr, port->attached_sas_addr, SAS_ADDR_SIZE); in sas_get_port_device()
137 sas_hash_addr(dev->hashed_sas_addr, dev->sas_addr); in sas_get_port_device()
184 SAS_ADDR(dev->sas_addr), res); in sas_notify_lldd_dev_found()
Dsas_init.c71 void sas_hash_addr(u8 *hashed, const u8 *sas_addr) in sas_hash_addr() argument
82 if ((1 << b) & sas_addr[i]) { in sas_hash_addr()
103 sas_hash_addr(sas_ha->hashed_sas_addr, sas_ha->sas_addr); in sas_register_ha()
/drivers/scsi/aic94xx/
Daic94xx_scb.c136 static void asd_get_attached_sas_addr(struct asd_phy *phy, u8 *sas_addr) in asd_get_attached_sas_addr() argument
142 u64 addr = be64_to_cpu(*(__be64 *)phy->phy_desc->sas_addr); in asd_get_attached_sas_addr()
145 *(__be64 *)sas_addr = cpu_to_be64(addr); in asd_get_attached_sas_addr()
149 memcpy(sas_addr, idframe->sas_addr, SAS_ADDR_SIZE); in asd_get_attached_sas_addr()
168 memcmp(port->sas_addr, sas_phy->sas_addr, in asd_form_port()
186 memcpy(port->sas_addr, sas_phy->sas_addr, in asd_form_port()
Daic94xx.h45 static inline void asd_stringify_sas_addr(char *p, const u8 *sas_addr) in asd_stringify_sas_addr() argument
49 snprintf(p, 3, "%02X", sas_addr[i]); in asd_stringify_sas_addr()
Daic94xx_sds.c406 u8 sas_addr[SAS_ADDR_SIZE]; member
525 u8 sas_addr[SAS_ADDR_SIZE]; member
691 memcpy(asd_ha->hw_prof.sas_addr, ms->sas_addr, SAS_ADDR_SIZE); in asd_ms_get_sas_addr()
892 SAS_ADDR(asd_ha->hw_prof.sas_addr)); in asd_process_ms()
928 if (*(u64 *)pe->sas_addr == 0) { in asd_process_ctrla_phy_settings()
933 memcpy(asd_ha->hw_prof.phy_desc[i].sas_addr, pe->sas_addr, in asd_process_ctrla_phy_settings()
947 SAS_ADDR(asd_ha->hw_prof.phy_desc[i].sas_addr), in asd_process_ctrla_phy_settings()
980 memcpy(dflt_ps.phy_ent[i].sas_addr, in asd_process_ctrl_a_user()
981 asd_ha->hw_prof.sas_addr, SAS_ADDR_SIZE); in asd_process_ctrl_a_user()
Daic94xx_hwi.c28 if (asd_ha->hw_prof.sas_addr[0]) in asd_get_user_sas_addr()
32 asd_ha->hw_prof.sas_addr); in asd_get_user_sas_addr()
40 if (asd_ha->hw_prof.phy_desc[i].sas_addr[0] == 0) in asd_propagate_sas_addr()
45 SAS_ADDR(asd_ha->hw_prof.sas_addr)); in asd_propagate_sas_addr()
46 memcpy(asd_ha->hw_prof.phy_desc[i].sas_addr, in asd_propagate_sas_addr()
47 asd_ha->hw_prof.sas_addr, SAS_ADDR_SIZE); in asd_propagate_sas_addr()
64 memcpy(phy->identify_frame->sas_addr, phy->phy_desc->sas_addr, in asd_init_phy_identify()
105 memset(asd_port->sas_addr, 0, SAS_ADDR_SIZE); in asd_init_ports()
125 phy->sas_phy.sas_addr = &phy->phy_desc->sas_addr[0]; in asd_init_phys()
Daic94xx_hwi.h64 u8 sas_addr[SAS_ADDR_SIZE]; member
90 u8 sas_addr[SAS_ADDR_SIZE]; member
171 u8 sas_addr[SAS_ADDR_SIZE]; member
/drivers/scsi/esas2r/
Desas2r_flash.c1281 memcpy(&sas_address_bytes[0], n->sas_addr, 8); in esas2r_nvram_write()
1369 n->sas_addr[3] |= 0x0F; in esas2r_nvram_set_defaults()
1370 n->sas_addr[4] = HIBYTE(LOWORD(time)); in esas2r_nvram_set_defaults()
1371 n->sas_addr[5] = LOBYTE(LOWORD(time)); in esas2r_nvram_set_defaults()
1372 n->sas_addr[6] = a->pcid->bus->number; in esas2r_nvram_set_defaults()
1373 n->sas_addr[7] = a->pcid->devfn; in esas2r_nvram_set_defaults()
1379 u8 sas_addr[8]; in esas2r_nvram_get_defaults() local
1385 memcpy(&sas_addr[0], a->nvram->sas_addr, 8); in esas2r_nvram_get_defaults()
1387 memcpy(&nvram->sas_addr[0], &sas_addr[0], 8); in esas2r_nvram_get_defaults()
Desas2r_targdb.c233 u64 *sas_addr) in esas2r_targ_db_find_by_sas_addr() argument
238 if (t->sas_addr == *sas_addr) in esas2r_targ_db_find_by_sas_addr()
Desas2r_disc.c961 memcpy(&dc->sas_addr, in esas2r_disc_passthru_dev_addr_cb()
965 memset(&dc->sas_addr, 0, sizeof(dc->sas_addr)); in esas2r_disc_passthru_dev_addr_cb()
984 memcpy(&t->sas_addr, &dc->sas_addr, in esas2r_disc_passthru_dev_addr_cb()
985 sizeof(t->sas_addr)); in esas2r_disc_passthru_dev_addr_cb()
Desas2r_main.c673 a->nvram->sas_addr[0], in esas2r_show_info()
674 a->nvram->sas_addr[1], in esas2r_show_info()
675 a->nvram->sas_addr[2], in esas2r_show_info()
676 a->nvram->sas_addr[3], in esas2r_show_info()
677 a->nvram->sas_addr[4], in esas2r_show_info()
678 a->nvram->sas_addr[5], in esas2r_show_info()
679 a->nvram->sas_addr[6], in esas2r_show_info()
680 a->nvram->sas_addr[7]); in esas2r_show_info()
Datioctl.h317 u8 sas_addr[8]; member
500 u8 sas_addr[8]; member
513 u8 sas_addr[8]; member
670 u64 sas_addr; member
/drivers/scsi/pm8001/
Dpm8001_init.c134 sas_phy->sas_addr = (u8 *)&phy->dev_sas_addr; in pm8001_phy_init()
575 sha->sas_phy[i]->sas_addr = in pm8001_post_sas_ha_init()
582 sha->sas_addr = &pm8001_ha->sas_addr[0]; in pm8001_post_sas_ha_init()
645 pm8001_ha->sas_addr[j] = in pm8001_init_sas_add()
648 pm8001_ha->sas_addr[j] = in pm8001_init_sas_add()
653 pm8001_ha->sas_addr[j] = in pm8001_init_sas_add()
656 pm8001_ha->sas_addr[j] = in pm8001_init_sas_add()
659 memcpy(sas_add, pm8001_ha->sas_addr, SAS_ADDR_SIZE); in pm8001_init_sas_add()
677 memcpy(pm8001_ha->sas_addr, &pm8001_ha->phy[0].dev_sas_addr, in pm8001_init_sas_add()
Dpm8001_sas.c644 == SAS_ADDR(dev->sas_addr)) { in pm8001_dev_found_notify()
652 " at ex:%016llx.\n", SAS_ADDR(dev->sas_addr), in pm8001_dev_found_notify()
653 SAS_ADDR(parent_dev->sas_addr))); in pm8001_dev_found_notify()
782 SAS_ADDR(dev->sas_addr), in pm8001_exec_internal_tmf_task()
856 SAS_ADDR(dev->sas_addr), in pm8001_exec_internal_task_abort()
/drivers/scsi/isci/
Dremote_node_context.c121 __le64 sas_addr; in sci_remote_node_context_construct_buffer() local
134 sas_addr = cpu_to_le64(SAS_ADDR(dev->sas_addr)); in sci_remote_node_context_construct_buffer()
135 rnc->ssp.remote_sas_address_hi = upper_32_bits(sas_addr); in sci_remote_node_context_construct_buffer()
136 rnc->ssp.remote_sas_address_lo = lower_32_bits(sas_addr); in sci_remote_node_context_construct_buffer()
Dphy.c459 memcpy(sas, iaf->sas_addr, SAS_ADDR_SIZE); in sci_phy_get_attached_sas_address()
1396 __be64 sas_addr; in isci_phy_init() local
1401 sas_addr = cpu_to_be64(sci_sas_addr); in isci_phy_init()
1402 memcpy(iphy->sas_addr, &sas_addr, sizeof(sas_addr)); in isci_phy_init()
1406 iphy->sas_phy.sas_addr = &iphy->sas_addr[0]; in isci_phy_init()
/drivers/scsi/mvsas/
Dmv_init.c92 sas_phy->sas_addr = &mvi->sas_addr[0]; in mvs_phy_init()
465 sha->sas_addr = &mvi->sas_addr[0]; in mvs_post_sas_ha_init()
489 memcpy(mvi->sas_addr, &mvi->phy[0].dev_sas_addr, SAS_ADDR_SIZE); in mvs_init_sas_add()
Dmv_sas.h281 u64 sas_addr[8]; member
342 u8 sas_addr[SAS_ADDR_SIZE]; member
438 u32 off_hi, u64 sas_addr);
Dmv_sas.c208 u32 off_hi, u64 sas_addr) in mvs_set_sas_addr() argument
210 u32 lo = (u32)sas_addr; in mvs_set_sas_addr()
211 u32 hi = (u32)(sas_addr>>32); in mvs_set_sas_addr()
394 memcpy(buf_oaf + 4, dev->sas_addr, SAS_ADDR_SIZE); in mvs_task_prep_smp()
542 memcpy(buf_oaf + 4, dev->sas_addr, SAS_ADDR_SIZE); in mvs_task_prep_ata()
650 memcpy(buf_oaf + 4, dev->sas_addr, SAS_ADDR_SIZE); in mvs_task_prep_ssp()
725 SAS_ADDR(dev->sas_addr)); in mvs_task_prep()
1203 SAS_ADDR(dev->sas_addr)) { in mvs_dev_found_notify()
1212 SAS_ADDR(dev->sas_addr), in mvs_dev_found_notify()
1213 SAS_ADDR(parent_dev->sas_addr)); in mvs_dev_found_notify()
[all …]
/drivers/scsi/hisi_sas/
Dhisi_sas_v1_hw.c471 memcpy(&identify_frame._un4_11[0], hisi_hba->sas_addr, SAS_ADDR_SIZE); in config_id_frame_v1_hw()
472 memcpy(&identify_frame.sas_addr[0], hisi_hba->sas_addr, SAS_ADDR_SIZE); in config_id_frame_v1_hw()
499 u64 sas_addr; in setup_itct_v1_hw() local
524 memcpy(&sas_addr, device->sas_addr, SAS_ADDR_SIZE); in setup_itct_v1_hw()
525 itct->sas_addr = cpu_to_le64(__swab64(sas_addr)); in setup_itct_v1_hw()
1367 &id->sas_addr, SAS_ADDR_SIZE); in int_phyup_v1_hw()

12