Home
last modified time | relevance | path

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

12

/drivers/scsi/libsas/
Dsas_expander.c37 static int sas_configure_routing(struct domain_device *dev, u8 *sas_addr);
39 u8 *sas_addr, int include);
40 static int sas_disable_routing(struct domain_device *dev, u8 *sas_addr);
140 SAS_ADDR(dev->sas_addr), in smp_execute_task()
202 u8 sas_addr[SAS_ADDR_SIZE]; in sas_set_ex_phy() local
236 memcpy(sas_addr, phy->attached_sas_addr, SAS_ADDR_SIZE); in sas_set_ex_phy()
328 SAS_ADDR(phy->attached_sas_addr) != SAS_ADDR(sas_addr)) in sas_set_ex_phy()
342 SAS_ADDR(dev->sas_addr), phy->phy_id, in sas_set_ex_phy()
385 if (memcmp(dev->sas_addr, dr->attached_sas_addr, SAS_ADDR_SIZE) == 0) { in sas_ex_phy_discover_helper()
494 SAS_ADDR(dev->sas_addr), res); in sas_ex_general()
[all …]
Dsas_port.c37 memcmp(port->sas_addr, phy->sas_addr, SAS_ADDR_SIZE) != 0)) in phy_is_wideport_member()
124 if (*(u64 *) port->sas_addr && in sas_form_port()
138 if (*(u64 *)port->sas_addr == 0 in sas_form_port()
140 memcpy(port->sas_addr, phy->sas_addr, in sas_form_port()
243 memset(port->sas_addr, 0, SAS_ADDR_SIZE); in sas_deform_port()
Dsas_scsi_host.c360 SAS_ADDR(dev->sas_addr), in sas_recover_lu()
386 SAS_ADDR(dev->sas_addr)); in sas_recover_I_T()
655 SAS_ADDR(task->dev->sas_addr)); in sas_eh_handle_sas_errors()
692 SAS_ADDR(task->dev->sas_addr), in sas_eh_handle_sas_errors()
887 "TCQ\n", SAS_ADDR(dev->sas_addr), in sas_slave_configure()
964 static void sas_parse_addr(u8 *sas_addr, const char *p) in sas_parse_addr() argument
975 sas_addr[i] = (h<<4) | l; in sas_parse_addr()
Dsas_internal.h121 SAS_ADDR(dev->sas_addr), err); in sas_fail_probe()
128 rphy->identify.sas_address = SAS_ADDR(dev->sas_addr); in sas_fill_in_rphy()
Dsas_task.c29 SAS_ADDR(task->dev->sas_addr), in sas_ssp_task_response()
Dsas_dump.c66 SAS_ADDR(port->sas_addr)); in sas_dump_port()
/drivers/scsi/aic94xx/
Daic94xx_scb.c154 static void asd_get_attached_sas_addr(struct asd_phy *phy, u8 *sas_addr) in asd_get_attached_sas_addr() argument
160 u64 addr = be64_to_cpu(*(__be64 *)phy->phy_desc->sas_addr); in asd_get_attached_sas_addr()
163 *(__be64 *)sas_addr = cpu_to_be64(addr); in asd_get_attached_sas_addr()
167 memcpy(sas_addr, idframe->sas_addr, SAS_ADDR_SIZE); in asd_get_attached_sas_addr()
186 memcmp(port->sas_addr, sas_phy->sas_addr, in asd_form_port()
204 memcpy(port->sas_addr, sas_phy->sas_addr, in asd_form_port()
Daic94xx.h62 static inline void asd_stringify_sas_addr(char *p, const u8 *sas_addr) in asd_stringify_sas_addr() argument
66 snprintf(p, 3, "%02X", sas_addr[i]); in asd_stringify_sas_addr()
Daic94xx_hwi.c46 if (asd_ha->hw_prof.sas_addr[0]) in asd_get_user_sas_addr()
50 asd_ha->hw_prof.sas_addr); in asd_get_user_sas_addr()
58 if (asd_ha->hw_prof.phy_desc[i].sas_addr[0] == 0) in asd_propagate_sas_addr()
63 SAS_ADDR(asd_ha->hw_prof.sas_addr)); in asd_propagate_sas_addr()
64 memcpy(asd_ha->hw_prof.phy_desc[i].sas_addr, in asd_propagate_sas_addr()
65 asd_ha->hw_prof.sas_addr, SAS_ADDR_SIZE); in asd_propagate_sas_addr()
82 memcpy(phy->identify_frame->sas_addr, phy->phy_desc->sas_addr, in asd_init_phy_identify()
123 memset(asd_port->sas_addr, 0, SAS_ADDR_SIZE); in asd_init_ports()
143 phy->sas_phy.sas_addr = &phy->phy_desc->sas_addr[0]; in asd_init_phys()
Daic94xx_sds.c424 u8 sas_addr[SAS_ADDR_SIZE]; member
543 u8 sas_addr[SAS_ADDR_SIZE]; member
709 memcpy(asd_ha->hw_prof.sas_addr, ms->sas_addr, SAS_ADDR_SIZE); in asd_ms_get_sas_addr()
910 SAS_ADDR(asd_ha->hw_prof.sas_addr)); in asd_process_ms()
946 if (*(u64 *)pe->sas_addr == 0) { in asd_process_ctrla_phy_settings()
951 memcpy(asd_ha->hw_prof.phy_desc[i].sas_addr, pe->sas_addr, in asd_process_ctrla_phy_settings()
965 SAS_ADDR(asd_ha->hw_prof.phy_desc[i].sas_addr), in asd_process_ctrla_phy_settings()
998 memcpy(dflt_ps.phy_ent[i].sas_addr, in asd_process_ctrl_a_user()
999 asd_ha->hw_prof.sas_addr, SAS_ADDR_SIZE); in asd_process_ctrl_a_user()
Daic94xx_hwi.h82 u8 sas_addr[SAS_ADDR_SIZE]; member
108 u8 sas_addr[SAS_ADDR_SIZE]; member
189 u8 sas_addr[SAS_ADDR_SIZE]; member
/drivers/scsi/esas2r/
Desas2r_flash.c1280 memcpy(&sas_address_bytes[0], n->sas_addr, 8); in esas2r_nvram_write()
1368 n->sas_addr[3] |= 0x0F; in esas2r_nvram_set_defaults()
1369 n->sas_addr[4] = HIBYTE(LOWORD(time)); in esas2r_nvram_set_defaults()
1370 n->sas_addr[5] = LOBYTE(LOWORD(time)); in esas2r_nvram_set_defaults()
1371 n->sas_addr[6] = a->pcid->bus->number; in esas2r_nvram_set_defaults()
1372 n->sas_addr[7] = a->pcid->devfn; in esas2r_nvram_set_defaults()
1378 u8 sas_addr[8]; in esas2r_nvram_get_defaults() local
1384 memcpy(&sas_addr[0], a->nvram->sas_addr, 8); in esas2r_nvram_get_defaults()
1386 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.c726 a->nvram->sas_addr[0], in esas2r_show_info()
727 a->nvram->sas_addr[1], in esas2r_show_info()
728 a->nvram->sas_addr[2], in esas2r_show_info()
729 a->nvram->sas_addr[3], in esas2r_show_info()
730 a->nvram->sas_addr[4], in esas2r_show_info()
731 a->nvram->sas_addr[5], in esas2r_show_info()
732 a->nvram->sas_addr[6], in esas2r_show_info()
733 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/hisi_sas/
Dhisi_sas_main.c201 SAS_ADDR(device->sas_addr)); in hisi_sas_task_prep()
443 SAS_ADDR(device->sas_addr)) { in hisi_sas_dev_found()
452 SAS_ADDR(device->sas_addr), in hisi_sas_dev_found()
453 SAS_ADDR(parent_dev->sas_addr)); in hisi_sas_dev_found()
526 sas_phy->sas_addr = &hisi_hba->sas_addr[0]; in hisi_sas_phy_init()
745 SAS_ADDR(device->sas_addr), in hisi_sas_exec_internal_tmf_task()
761 SAS_ADDR(device->sas_addr), task->task_status.resp, in hisi_sas_exec_internal_tmf_task()
1110 SAS_ADDR(device->sas_addr), in hisi_sas_internal_task_abort()
1412 if (device_property_read_u8_array(dev, "sas-addr", hisi_hba->sas_addr, in hisi_sas_shost_alloc()
1470 hisi_hba->sas_addr, in hisi_sas_init_add()
[all …]
Dhisi_sas.h186 u8 sas_addr[SAS_ADDR_SIZE]; member
275 __le64 sas_addr; member
Dhisi_sas_v1_hw.c485 memcpy(&identify_frame._un4_11[0], hisi_hba->sas_addr, SAS_ADDR_SIZE); in config_id_frame_v1_hw()
486 memcpy(&identify_frame.sas_addr[0], hisi_hba->sas_addr, SAS_ADDR_SIZE); in config_id_frame_v1_hw()
535 memcpy(&itct->sas_addr, device->sas_addr, SAS_ADDR_SIZE); in setup_itct_v1_hw()
536 itct->sas_addr = __swab64(itct->sas_addr); in setup_itct_v1_hw()
1435 &id->sas_addr, SAS_ADDR_SIZE); in int_phyup_v1_hw()
/drivers/scsi/pm8001/
Dpm8001_init.c135 sas_phy->sas_addr = &pm8001_ha->sas_addr[0]; in pm8001_phy_init()
601 sha->sas_addr = &pm8001_ha->sas_addr[0]; in pm8001_post_sas_ha_init()
663 pm8001_ha->sas_addr[j] = in pm8001_init_sas_add()
666 pm8001_ha->sas_addr[j] = in pm8001_init_sas_add()
671 pm8001_ha->sas_addr[j] = in pm8001_init_sas_add()
674 pm8001_ha->sas_addr[j] = in pm8001_init_sas_add()
680 pm8001_ha->sas_addr, SAS_ADDR_SIZE); in pm8001_init_sas_add()
693 memcpy(pm8001_ha->sas_addr, &pm8001_ha->phy[0].dev_sas_addr, in pm8001_init_sas_add()
/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()
1395 __be64 sas_addr; in isci_phy_init() local
1400 sas_addr = cpu_to_be64(sci_sas_addr); in isci_phy_init()
1401 memcpy(iphy->sas_addr, &sas_addr, sizeof(sas_addr)); in isci_phy_init()
1405 iphy->sas_phy.sas_addr = &iphy->sas_addr[0]; in isci_phy_init()
/drivers/scsi/mvsas/
Dmv_init.c109 sas_phy->sas_addr = &mvi->sas_addr[0]; in mvs_phy_init()
498 sha->sas_addr = &mvi->sas_addr[0]; in mvs_post_sas_ha_init()
522 memcpy(mvi->sas_addr, &mvi->phy[0].dev_sas_addr, SAS_ADDR_SIZE); in mvs_init_sas_add()
Dmv_sas.h301 u64 sas_addr[8]; member
362 u8 sas_addr[SAS_ADDR_SIZE]; member
458 u32 off_hi, u64 sas_addr);
Dmv_sas.c224 u32 off_hi, u64 sas_addr) in mvs_set_sas_addr() argument
226 u32 lo = (u32)sas_addr; in mvs_set_sas_addr()
227 u32 hi = (u32)(sas_addr>>32); in mvs_set_sas_addr()
410 memcpy(buf_oaf + 4, dev->sas_addr, SAS_ADDR_SIZE); in mvs_task_prep_smp()
558 memcpy(buf_oaf + 4, dev->sas_addr, SAS_ADDR_SIZE); in mvs_task_prep_ata()
666 memcpy(buf_oaf + 4, dev->sas_addr, SAS_ADDR_SIZE); in mvs_task_prep_ssp()
741 SAS_ADDR(dev->sas_addr)); in mvs_task_prep()
1220 SAS_ADDR(dev->sas_addr)) { in mvs_dev_found_notify()
1229 SAS_ADDR(dev->sas_addr), in mvs_dev_found_notify()
1230 SAS_ADDR(parent_dev->sas_addr)); in mvs_dev_found_notify()
[all …]

12