/drivers/scsi/libsas/ |
D | sas_port.c | 74 for (i = 0; i < dev->ex_dev.num_phys; i++) { in sas_resume_port() 114 phy->port->num_phys); in sas_form_port() 121 for (i = 0; i < sas_ha->num_phys; i++) { in sas_form_port() 125 phy_is_wideport_member(port, phy) && port->num_phys > 0) { in sas_form_port() 134 if (i == sas_ha->num_phys) { in sas_form_port() 135 for (i = 0; i < sas_ha->num_phys; i++) { in sas_form_port() 139 && port->num_phys == 0) { in sas_form_port() 148 if (i >= sas_ha->num_phys) { in sas_form_port() 159 port->num_phys++; in sas_form_port() 188 port->port_dev->pathways = port->num_phys; in sas_form_port() [all …]
|
D | sas_host_smp.c | 28 if (phy_id >= sas_ha->num_phys) { in sas_host_smp_discover() 147 if (phy_id >= sas_ha->num_phys) { in sas_report_phy_sata() 192 if (phy_id >= sas_ha->num_phys) { in sas_phy_control() 280 resp_data[9] = sas_ha->num_phys; in sas_smp_host_handler()
|
D | sas_expander.c | 411 if (0 <= single && single < ex->num_phys) { in sas_ex_phy_discover() 416 for (i = 0; i < ex->num_phys; i++) { in sas_ex_phy_discover() 434 ex->ex_phy = kzalloc(sizeof(*ex->ex_phy)*ex->num_phys, GFP_KERNEL); in sas_expander_discover() 458 dev->ex_dev.num_phys = min(rg->num_phys, (u8)MAX_EXPANDER_PHYS); in ex_assign_report_general() 626 for (i = 0; i < ex->num_phys; i++) { in sas_ex_disable_port() 750 for (i = 0; i < parent_ex->num_phys; i++) { in sas_ex_get_linkrate() 888 for (i = 0; i < parent->ex_dev.num_phys; i++) { in sas_ex_join_wide_port() 1080 for (i = 0; i < ex->num_phys; i++) { in sas_ex_discover_dev() 1107 for (i = 0; i < ex->num_phys; i++) { in sas_find_sub_addr() 1170 int i = 0, end = ex->num_phys; in sas_ex_discover_devices() [all …]
|
D | sas_init.c | 395 for (i = 0; i < ha->num_phys; i++) { in sas_prep_resume_ha() 410 for (i = 0; i < ha->num_phys; i++) { in phys_suspended() 436 for (i = 0; i < ha->num_phys; i++) { in sas_resume_ha() 459 for (i = 0; i < ha->num_phys; i++) { in sas_suspend_ha()
|
D | sas_dump.c | 72 SAS_DPRINTK("port%d: num_phys:%d\n", port->id, port->num_phys); in sas_dump_port()
|
D | sas_event.c | 106 for (i = 0; i < ha->num_phys; i++) { in sas_enable_revalidation()
|
D | sas_phy.c | 140 for (i = 0; i < sas_ha->num_phys; i++) { in sas_register_phys()
|
/drivers/message/fusion/ |
D | mptsas.c | 388 for (i = 0; i < port_info->num_phys; i++) in mptsas_find_portinfo_by_handle() 418 for (i = 0; i < port_info->num_phys; i++) in mptsas_find_portinfo_by_sas_address() 465 port_details->num_phys, (unsigned long long) in mptsas_port_delete() 468 for (i = 0; i < port_info->num_phys; i++, phy_info++) { in mptsas_port_delete() 841 for (i = 0 ; i < port_info->num_phys ; i++, phy_info++) { in mptsas_setup_wide_ports() 847 if (port_details->num_phys < 2) in mptsas_setup_wide_ports() 856 port_details->num_phys--; in mptsas_setup_wide_ports() 873 for (i = 0 ; i < port_info->num_phys ; i++, phy_info++) { in mptsas_setup_wide_ports() 888 port_details->num_phys = 1; in mptsas_setup_wide_ports() 900 if (i == port_info->num_phys - 1) in mptsas_setup_wide_ports() [all …]
|
D | mptsas.h | 150 u16 num_phys; /* number of phys belong to this port */ member 175 u16 num_phys; /* number of phys */ member
|
/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_link.h | 80 #define SINGLE_MEDIA_DIRECT(params) (params->num_phys == 1) 82 #define SINGLE_MEDIA(params) (params->num_phys == 2) 84 #define DUAL_MEDIA(params) (params->num_phys == 3) 288 u8 num_phys; member
|
D | bnx2x_link.c | 276 if (params->num_phys == 3) { in bnx2x_check_lfa() 1490 for (phy_index = INT_PHY; phy_index < params->num_phys; in bnx2x_set_mdio_emac_per_phy() 3235 for (phy_index = 0; phy_index < params->num_phys; phy_index++) { in bnx2x_phy_read() 3252 for (phy_index = 0; phy_index < params->num_phys; phy_index++) { in bnx2x_phy_write() 3466 for (phy_index = INT_PHY; phy_index < params->num_phys; in set_phy_vars() 6179 if ((params->num_phys == MAX_PHYS) && in bnx2x_get_ext_phy_fw_version() 6303 CHIP_IS_E2(bp) && params->num_phys == 2) { in bnx2x_set_led() 6438 switch (params->num_phys) { in bnx2x_test_link() 6448 for (phy_index = EXT_PHY1; phy_index < params->num_phys; in bnx2x_test_link() 6518 for (phy_index = EXT_PHY1; phy_index < params->num_phys; in bnx2x_link_initialize() [all …]
|
/drivers/scsi/mpt3sas/ |
D | mpt3sas_transport.c | 508 mpt3sas_port->num_phys--; in _transport_delete_phy() 532 mpt3sas_port->num_phys++; in _transport_add_phy() 598 if (mpt3sas_port->num_phys == 1) in _transport_del_phy_from_an_existing_port() 622 for (i = 0; i < sas_node->num_phys; i++) { in _transport_sanity_check() 691 for (i = 0; i < sas_node->num_phys; i++) { in mpt3sas_transport_port_add() 697 mpt3sas_port->num_phys++; in mpt3sas_transport_port_add() 700 if (!mpt3sas_port->num_phys) { in mpt3sas_transport_port_add() 809 for (i = 0; i < sas_node->num_phys; i++) { in mpt3sas_transport_port_remove() 1652 sz = offsetof(Mpi2SasIOUnitPage0_t, PhyData) + (ioc->sas_hba.num_phys * in _transport_phy_enable() 1678 for (i = 0, discovery_active = 0; i < ioc->sas_hba.num_phys ; i++) { in _transport_phy_enable() [all …]
|
D | mpt3sas_scsih.c | 398 if (handle <= ioc->sas_hba.num_phys) { in _scsih_get_sas_address() 3172 if (expander_handle < ioc->sas_hba.num_phys) { in _scsih_check_topo_delete_events() 4235 sz = offsetof(Mpi2SasIOUnitPage0_t, PhyData) + (ioc->sas_hba.num_phys in _scsih_sas_host_refresh() 4250 for (i = 0; i < ioc->sas_hba.num_phys ; i++) { in _scsih_sas_host_refresh() 4289 mpt3sas_config_get_number_hba_phys(ioc, &ioc->sas_hba.num_phys); in _scsih_sas_host_add() 4290 if (!ioc->sas_hba.num_phys) { in _scsih_sas_host_add() 4297 sz = offsetof(Mpi2SasIOUnitPage0_t, PhyData) + (ioc->sas_hba.num_phys * in _scsih_sas_host_add() 4320 sz = offsetof(Mpi2SasIOUnitPage1_t, PhyData) + (ioc->sas_hba.num_phys * in _scsih_sas_host_add() 4354 ioc->sas_hba.phy = kcalloc(ioc->sas_hba.num_phys, in _scsih_sas_host_add() 4361 for (i = 0; i < ioc->sas_hba.num_phys ; i++) { in _scsih_sas_host_add() [all …]
|
D | mpt3sas_base.h | 351 u8 num_phys; member 397 u8 num_phys; member 1016 u8 *num_phys);
|
D | mpt3sas_config.c | 1000 mpt3sas_config_get_number_hba_phys(struct MPT3SAS_ADAPTER *ioc, u8 *num_phys) in mpt3sas_config_get_number_hba_phys() argument 1008 *num_phys = 0; in mpt3sas_config_get_number_hba_phys() 1030 *num_phys = config_page.NumPhys; in mpt3sas_config_get_number_hba_phys()
|
/drivers/scsi/mpt2sas/ |
D | mpt2sas_transport.c | 516 mpt2sas_port->num_phys--; in _transport_delete_phy() 540 mpt2sas_port->num_phys++; in _transport_add_phy() 604 if (mpt2sas_port->num_phys == 1) in _transport_del_phy_from_an_existing_port() 628 for (i = 0; i < sas_node->num_phys; i++) { in _transport_sanity_check() 697 for (i = 0; i < sas_node->num_phys; i++) { in mpt2sas_transport_port_add() 703 mpt2sas_port->num_phys++; in mpt2sas_transport_port_add() 706 if (!mpt2sas_port->num_phys) { in mpt2sas_transport_port_add() 816 for (i = 0; i < sas_node->num_phys; i++) { in mpt2sas_transport_port_remove() 1670 sz = offsetof(Mpi2SasIOUnitPage0_t, PhyData) + (ioc->sas_hba.num_phys * in _transport_phy_enable() 1696 for (i = 0, discovery_active = 0; i < ioc->sas_hba.num_phys ; i++) { in _transport_phy_enable() [all …]
|
D | mpt2sas_scsih.c | 402 if (handle <= ioc->sas_hba.num_phys) { in _scsih_get_sas_address() 3475 if (expander_handle < ioc->sas_hba.num_phys) { in _scsih_check_topo_delete_events() 4666 sz = offsetof(Mpi2SasIOUnitPage0_t, PhyData) + (ioc->sas_hba.num_phys in _scsih_sas_host_refresh() 4681 for (i = 0; i < ioc->sas_hba.num_phys ; i++) { in _scsih_sas_host_refresh() 4720 mpt2sas_config_get_number_hba_phys(ioc, &ioc->sas_hba.num_phys); in _scsih_sas_host_add() 4721 if (!ioc->sas_hba.num_phys) { in _scsih_sas_host_add() 4728 sz = offsetof(Mpi2SasIOUnitPage0_t, PhyData) + (ioc->sas_hba.num_phys * in _scsih_sas_host_add() 4751 sz = offsetof(Mpi2SasIOUnitPage1_t, PhyData) + (ioc->sas_hba.num_phys * in _scsih_sas_host_add() 4785 ioc->sas_hba.phy = kcalloc(ioc->sas_hba.num_phys, in _scsih_sas_host_add() 4792 for (i = 0; i < ioc->sas_hba.num_phys ; i++) { in _scsih_sas_host_add() [all …]
|
D | mpt2sas_base.h | 446 u8 num_phys; member 492 u8 num_phys; member 1085 int mpt2sas_config_get_number_hba_phys(struct MPT2SAS_ADAPTER *ioc, u8 *num_phys);
|
D | mpt2sas_config.c | 846 mpt2sas_config_get_number_hba_phys(struct MPT2SAS_ADAPTER *ioc, u8 *num_phys) in mpt2sas_config_get_number_hba_phys() argument 854 *num_phys = 0; in mpt2sas_config_get_number_hba_phys() 876 *num_phys = config_page.NumPhys; in mpt2sas_config_get_number_hba_phys()
|
/drivers/scsi/aic94xx/ |
D | aic94xx_hwi.h | 121 int num_phys; /* ENABLEABLE */ member 192 int num_phys; member
|
D | aic94xx_scb.c | 185 if (port->num_phys > 0 && in asd_form_port() 195 if (port->num_phys == 0 && free_port == NULL) { in asd_form_port() 210 port->num_phys++; in asd_form_port() 228 port->num_phys--; in asd_deform_port()
|
D | aic94xx_sds.c | 554 u8 num_phys; /* number of PHYs in the PCI function */ member 833 asd_ha->hw_prof.num_phys = en_phys; in asd_ms_get_phy_params() 835 asd_ha->hw_prof.max_phys, asd_ha->hw_prof.num_phys); in asd_ms_get_phy_params() 941 for (i = 0; i < ps->num_phys; i++) { in asd_process_ctrla_phy_settings() 996 dflt_ps.num_phys = 8; in asd_process_ctrl_a_user()
|
D | aic94xx_init.c | 241 asd_ha->hw_prof.num_phys = ASD_MAX_PHYS; in asd_common_setup() 710 asd_ha->sas_ha.num_phys= ASD_MAX_PHYS; in asd_register_sas_ha() 820 asd_ha->hw_prof.num_phys, in asd_pci_probe()
|
/drivers/scsi/ |
D | scsi_transport_sas.c | 834 sas_port_simple_attr(num_phys, num_phys, "%d\n", int); 1119 port->num_phys++; in sas_port_add_phy() 1138 port->num_phys--; in sas_port_delete_phy() 1861 SETUP_PORT_ATTRIBUTE(num_phys); in sas_attach_transport()
|
/drivers/scsi/pm8001/ |
D | pm8001_sas.c | 633 for (phy_id = 0; phy_id < parent_dev->ex_dev.num_phys; in pm8001_dev_found_notify() 642 if (phy_id == parent_dev->ex_dev.num_phys) { in pm8001_dev_found_notify()
|