Home
last modified time | relevance | path

Searched refs:num_phys (Results 1 – 52 of 52) sorted by relevance

/linux-4.4.14/drivers/scsi/libsas/
Dsas_port.c74 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 …]
Dsas_host_smp.c28 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()
Dsas_expander.c411 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 …]
Dsas_dump.c72 SAS_DPRINTK("port%d: num_phys:%d\n", port->id, port->num_phys); in sas_dump_port()
Dsas_init.c374 for (i = 0; i < ha->num_phys; i++) { in sas_prep_resume_ha()
389 for (i = 0; i < ha->num_phys; i++) { in phys_suspended()
415 for (i = 0; i < ha->num_phys; i++) { in sas_resume_ha()
438 for (i = 0; i < ha->num_phys; i++) { in sas_suspend_ha()
Dsas_event.c106 for (i = 0; i < ha->num_phys; i++) { in sas_enable_revalidation()
Dsas_phy.c140 for (i = 0; i < sas_ha->num_phys; i++) { in sas_register_phys()
Dsas_discover.c149 dev->pathways = port->num_phys; in sas_get_port_device()
Dsas_ata.c767 for (i = 0; i < sas_ha->num_phys; i++) { in sas_ata_strategy_handler()
Dsas_scsi_host.c832 for (i = 0; i < ha->num_phys; i++) { in sas_find_dev_by_rphy()
/linux-4.4.14/drivers/usb/host/
Dohci-platform.c42 int num_phys; member
59 for (phy_num = 0; phy_num < priv->num_phys; phy_num++) { in ohci_platform_power_on()
90 for (phy_num = 0; phy_num < priv->num_phys; phy_num++) { in ohci_platform_power_off()
168 priv->num_phys = of_count_phandle_with_args(dev->dev.of_node, in ohci_platform_probe()
171 if (priv->num_phys > 0) { in ohci_platform_probe()
172 priv->phys = devm_kcalloc(&dev->dev, priv->num_phys, in ohci_platform_probe()
177 priv->num_phys = 0; in ohci_platform_probe()
179 for (phy_num = 0; phy_num < priv->num_phys; phy_num++) { in ohci_platform_probe()
Dehci-platform.c48 int num_phys; member
91 for (phy_num = 0; phy_num < priv->num_phys; phy_num++) { in ehci_platform_power_on()
122 for (phy_num = 0; phy_num < priv->num_phys; phy_num++) { in ehci_platform_power_off()
205 priv->num_phys = of_count_phandle_with_args(dev->dev.of_node, in ehci_platform_probe()
208 if (priv->num_phys > 0) { in ehci_platform_probe()
209 priv->phys = devm_kcalloc(&dev->dev, priv->num_phys, in ehci_platform_probe()
214 priv->num_phys = 0; in ehci_platform_probe()
216 for (phy_num = 0; phy_num < priv->num_phys; phy_num++) { in ehci_platform_probe()
/linux-4.4.14/drivers/message/fusion/
Dmptsas.c388 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 …]
Dmptsas.h150 u16 num_phys; /* number of phys belong to this port */ member
175 u16 num_phys; /* number of phys */ member
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_link.h82 #define SINGLE_MEDIA_DIRECT(params) (params->num_phys == 1)
84 #define SINGLE_MEDIA(params) (params->num_phys == 2)
86 #define DUAL_MEDIA(params) (params->num_phys == 3)
290 u8 num_phys; member
Dbnx2x_link.c295 if (params->num_phys == 3) { in bnx2x_check_lfa()
1458 for (phy_index = INT_PHY; phy_index < params->num_phys; in bnx2x_set_mdio_emac_per_phy()
3201 for (phy_index = 0; phy_index < params->num_phys; phy_index++) { in bnx2x_phy_read()
3218 for (phy_index = 0; phy_index < params->num_phys; phy_index++) { in bnx2x_phy_write()
3432 for (phy_index = INT_PHY; phy_index < params->num_phys; in set_phy_vars()
6238 if ((params->num_phys == MAX_PHYS) && in bnx2x_get_ext_phy_fw_version()
6362 CHIP_IS_E2(bp) && params->num_phys == 2) { in bnx2x_set_led()
6503 switch (params->num_phys) { in bnx2x_test_link()
6513 for (phy_index = EXT_PHY1; phy_index < params->num_phys; in bnx2x_test_link()
6585 for (phy_index = EXT_PHY1; phy_index < params->num_phys; in bnx2x_link_initialize()
[all …]
Dbnx2x_cmn.c4823 if (bp->link_params.num_phys <= 1) in bnx2x_get_cur_phy_idx()
Dbnx2x_main.c11134 switch (bp->link_params.num_phys) { in bnx2x_link_settings_supported()
11233 switch (bp->link_params.num_phys) { in bnx2x_link_settings_requested()
/linux-4.4.14/drivers/phy/
Dphy-samsung-usb2.c102 if (WARN_ON(args->args[0] >= drv->cfg->num_phys)) in samsung_usb2_phy_xlate()
166 cfg->num_phys * sizeof(struct samsung_usb2_phy_instance), in samsung_usb2_phy_probe()
227 for (i = 0; i < drv->cfg->num_phys; i++) { in samsung_usb2_phy_probe()
Dphy-sun4i-usb.c94 int num_phys; member
479 if (args->args[0] >= data->num_phys) in sun4i_usb_phy_xlate()
529 data->num_phys = 2; in sun4i_usb_phy_probe()
531 data->num_phys = 3; in sun4i_usb_phy_probe()
593 for (i = 0; i < data->num_phys; i++) { in sun4i_usb_phy_probe()
Dphy-samsung-usb2.h63 unsigned int num_phys; member
Dphy-exynos4x12-usb2.c368 .num_phys = 1,
375 .num_phys = EXYNOS4x12_NUM_PHYS,
Dphy-s5pv210-usb2.c184 .num_phys = ARRAY_SIZE(s5pv210_phys),
Dphy-exynos4210-usb2.c257 .num_phys = EXYNOS4210_NUM_PHYS,
Dphy-exynos5250-usb2.c398 .num_phys = EXYNOS5250_NUM_PHYS,
/linux-4.4.14/drivers/scsi/mpt3sas/
Dmpt3sas_transport.c509 mpt3sas_port->num_phys--; in _transport_delete_phy()
533 mpt3sas_port->num_phys++; in _transport_add_phy()
599 if (mpt3sas_port->num_phys == 1) in _transport_del_phy_from_an_existing_port()
623 for (i = 0; i < sas_node->num_phys; i++) { in _transport_sanity_check()
693 for (i = 0; i < sas_node->num_phys; i++) { in mpt3sas_transport_port_add()
699 mpt3sas_port->num_phys++; in mpt3sas_transport_port_add()
702 if (!mpt3sas_port->num_phys) { in mpt3sas_transport_port_add()
830 for (i = 0; i < sas_node->num_phys; i++) { in mpt3sas_transport_port_remove()
1677 sz = offsetof(Mpi2SasIOUnitPage0_t, PhyData) + (ioc->sas_hba.num_phys * in _transport_phy_enable()
1703 for (i = 0, discovery_active = 0; i < ioc->sas_hba.num_phys ; i++) { in _transport_phy_enable()
[all …]
Dmpt3sas_scsih.c410 if (handle <= ioc->sas_hba.num_phys) { in _scsih_get_sas_address()
3467 if (expander_handle < ioc->sas_hba.num_phys) { in _scsih_check_topo_delete_events()
4655 sz = offsetof(Mpi2SasIOUnitPage0_t, PhyData) + (ioc->sas_hba.num_phys in _scsih_sas_host_refresh()
4670 for (i = 0; i < ioc->sas_hba.num_phys ; i++) { in _scsih_sas_host_refresh()
4709 mpt3sas_config_get_number_hba_phys(ioc, &ioc->sas_hba.num_phys); in _scsih_sas_host_add()
4710 if (!ioc->sas_hba.num_phys) { in _scsih_sas_host_add()
4717 sz = offsetof(Mpi2SasIOUnitPage0_t, PhyData) + (ioc->sas_hba.num_phys * in _scsih_sas_host_add()
4740 sz = offsetof(Mpi2SasIOUnitPage1_t, PhyData) + (ioc->sas_hba.num_phys * in _scsih_sas_host_add()
4774 ioc->sas_hba.phy = kcalloc(ioc->sas_hba.num_phys, in _scsih_sas_host_add()
4781 for (i = 0; i < ioc->sas_hba.num_phys ; i++) { in _scsih_sas_host_add()
[all …]
Dmpt3sas_base.h560 u8 num_phys; member
606 u8 num_phys; member
1280 u8 *num_phys);
Dmpt3sas_config.c1067 mpt3sas_config_get_number_hba_phys(struct MPT3SAS_ADAPTER *ioc, u8 *num_phys) in mpt3sas_config_get_number_hba_phys() argument
1075 *num_phys = 0; in mpt3sas_config_get_number_hba_phys()
1097 *num_phys = config_page.NumPhys; in mpt3sas_config_get_number_hba_phys()
Dmpt3sas_base.c2904 u8 num_phys = 0; in mpt3sas_base_update_missing_delay() local
2907 mpt3sas_config_get_number_hba_phys(ioc, &num_phys); in mpt3sas_base_update_missing_delay()
2908 if (!num_phys) in mpt3sas_base_update_missing_delay()
2911 sz = offsetof(Mpi2SasIOUnitPage1_t, PhyData) + (num_phys * in mpt3sas_base_update_missing_delay()
/linux-4.4.14/arch/arm/mach-omap2/
Dusb.h65 extern int usbhs_init_phys(struct usbhs_phy_data *phy, int num_phys);
Dusb-host.c431 int usbhs_init_phys(struct usbhs_phy_data *phy, int num_phys) in usbhs_init_phys() argument
440 for (i = 0; i < num_phys; i++) { in usbhs_init_phys()
/linux-4.4.14/Documentation/phy/
Dsamsung-usb2.txt45 unsigned int num_phys;
49 The num_phys is the number of phys handled by the driver. *phys is an
60 .num_phys = EXYNOS4210_NUM_PHYS,
/linux-4.4.14/include/scsi/
Dlibsas.h149 u8 num_phys; member
290 int num_phys; member
412 int num_phys; /* must be set, gt 0, static */ member
Dsas.h353 u8 num_phys; member
547 u8 num_phys; member
Dscsi_transport_sas.h139 int num_phys; member
/linux-4.4.14/drivers/scsi/aic94xx/
Daic94xx_hwi.h121 int num_phys; /* ENABLEABLE */ member
192 int num_phys; member
Daic94xx_scb.c185 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()
Daic94xx_sds.c554 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()
Daic94xx_init.c228 asd_ha->hw_prof.num_phys = ASD_MAX_PHYS; in asd_common_setup()
697 asd_ha->sas_ha.num_phys= ASD_MAX_PHYS; in asd_register_sas_ha()
804 asd_ha->hw_prof.num_phys, in asd_pci_probe()
Daic94xx_hwi.c126 asd_port->num_phys = 0; in asd_init_ports()
389 int edbs = 2*(1+asd_ha->hw_prof.num_phys); in asd_init_escbs()
Daic94xx_seq.c1146 asd_ha->hw_prof.num_phys * 2); in asd_init_ddb_0()
/linux-4.4.14/Documentation/scsi/
Dlibsas.txt147 num_phys -- the number of phys present in the sas_phy array,
149 array. There can be a maximum num_phys ports (one per
151 num_phys.
222 my_ha->sas_ha.num_phys = MAX_PHYS;
/linux-4.4.14/drivers/scsi/
Dscsi_transport_sas.c834 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()
1850 SETUP_PORT_ATTRIBUTE(num_phys); in sas_attach_transport()
/linux-4.4.14/drivers/scsi/pm8001/
Dpm8001_sas.c608 for (phy_id = 0; phy_id < parent_dev->ex_dev.num_phys; in pm8001_dev_found_notify()
617 if (phy_id == parent_dev->ex_dev.num_phys) { in pm8001_dev_found_notify()
Dpm8001_init.c604 sha->num_phys = chip_info->n_phy; in pm8001_post_sas_ha_init()
/linux-4.4.14/drivers/scsi/isci/
Dinit.c258 sas_ha->num_phys = SCI_MAX_PHYS; in isci_register_sas_ha()
Dport.c252 isci_phy->sas_phy.port->num_phys == 1) { in isci_port_link_down()
/linux-4.4.14/drivers/scsi/esas2r/
Datioctl.h736 u8 num_phys; member
Desas2r_ioctl.c838 gai->num_phys = ESAS2R_NUM_PHYS; in hba_ioctl_callback()
/linux-4.4.14/drivers/scsi/mvsas/
Dmv_init.c498 sha->num_phys = nr_core * chip_info->n_phy; in mvs_post_sas_ha_init()
Dmv_sas.c1210 u8 phy_num = parent_dev->ex_dev.num_phys; in mvs_dev_found_notify()