Home
last modified time | relevance | path

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

123

/drivers/scsi/libsas/
Dsas_port.c59 for (i = 0; i < dev->ex_dev.num_phys; i++) { in sas_resume_port()
100 phy->port->num_phys); in sas_form_port()
107 for (i = 0; i < sas_ha->num_phys; i++) { in sas_form_port()
111 phy_is_wideport_member(port, phy) && port->num_phys > 0) { in sas_form_port()
120 if (i == sas_ha->num_phys) { in sas_form_port()
121 for (i = 0; i < sas_ha->num_phys; i++) { in sas_form_port()
125 && port->num_phys == 0) { in sas_form_port()
134 if (i >= sas_ha->num_phys) { in sas_form_port()
145 port->num_phys++; in sas_form_port()
174 port_dev->pathways = port->num_phys; in sas_form_port()
[all …]
Dsas_host_smp.c25 if (phy_id >= sas_ha->num_phys) { in sas_host_smp_discover()
144 if (phy_id >= sas_ha->num_phys) { in sas_report_phy_sata()
189 if (phy_id >= sas_ha->num_phys) { in sas_phy_control()
264 resp_data[9] = sas_ha->num_phys; in sas_smp_host_handler()
Dsas_expander.c409 if (0 <= single && single < ex->num_phys) { in sas_ex_phy_discover()
414 for (i = 0; i < ex->num_phys; i++) { in sas_ex_phy_discover()
432 ex->ex_phy = kcalloc(ex->num_phys, sizeof(*ex->ex_phy), GFP_KERNEL); in sas_expander_discover()
456 dev->ex_dev.num_phys = min(rg->num_phys, (u8)MAX_EXPANDER_PHYS); in ex_assign_report_general()
631 for (i = 0; i < ex->num_phys; i++) { in sas_ex_disable_port()
756 for (i = 0; i < parent_ex->num_phys; i++) { in sas_ex_get_linkrate()
919 for (i = 0; i < parent->ex_dev.num_phys; i++) { in sas_ex_join_wide_port()
1118 for (i = 0; i < ex->num_phys; i++) { in sas_find_sub_addr()
1177 int i = 0, end = ex->num_phys; in sas_ex_discover_devices()
1221 for (i = 0; i < ex->num_phys; i++) { in sas_check_ex_subtractive_boundary()
[all …]
Dsas_init.c363 for (i = 0; i < ha->num_phys; i++) { in sas_prep_resume_ha()
376 for (i = 0; i < ha->num_phys; i++) { in phys_suspended()
402 for (i = 0; i < ha->num_phys; i++) { in sas_resume_ha()
425 for (i = 0; i < ha->num_phys; i++) { in sas_suspend_ha()
/drivers/phy/samsung/
Dphy-exynos-mipi-video.c41 int num_phys; member
58 .num_phys = 4,
103 .num_phys = 5,
166 .num_phys = 5,
219 int num_phys; member
282 if (WARN_ON(args->args[0] >= state->num_phys)) in exynos_mipi_video_phy_xlate()
317 state->num_phys = phy_dev->num_phys; in exynos_mipi_video_phy_probe()
322 for (i = 0; i < state->num_phys; i++) { in exynos_mipi_video_phy_probe()
Dphy-samsung-usb2.c100 if (WARN_ON(args->args[0] >= drv->cfg->num_phys)) in samsung_usb2_phy_xlate()
159 drv = devm_kzalloc(dev, struct_size(drv, instances, cfg->num_phys), in samsung_usb2_phy_probe()
220 for (i = 0; i < drv->cfg->num_phys; i++) { in samsung_usb2_phy_probe()
Dphy-samsung-usb2.h60 unsigned int num_phys; member
Dphy-exynos4x12-usb2.c365 .num_phys = 1,
372 .num_phys = EXYNOS4x12_NUM_PHYS,
Dphy-s5pv210-usb2.c185 .num_phys = ARRAY_SIZE(s5pv210_phys),
/drivers/usb/mtu3/
Dmtu3_plat.c53 for (i = 0; i < ssusb->num_phys; i++) { in ssusb_phy_init()
71 for (i = 0; i < ssusb->num_phys; i++) in ssusb_phy_exit()
82 for (i = 0; i < ssusb->num_phys; i++) { in ssusb_phy_power_on()
100 for (i = 0; i < ssusb->num_phys; i++) in ssusb_phy_power_off()
246 ssusb->num_phys = of_count_phandle_with_args(node, in get_ssusb_rscs()
248 if (ssusb->num_phys > 0) { in get_ssusb_rscs()
249 ssusb->phys = devm_kcalloc(dev, ssusb->num_phys, in get_ssusb_rscs()
254 ssusb->num_phys = 0; in get_ssusb_rscs()
257 for (i = 0; i < ssusb->num_phys; i++) { in get_ssusb_rscs()
/drivers/phy/allwinner/
Dphy-sun4i-usb.c114 int num_phys; member
651 if (args->args[0] >= data->cfg->num_phys) in sun4i_usb_phy_xlate()
748 for (i = 0; i < data->cfg->num_phys; i++) { in sun4i_usb_phy_probe()
865 .num_phys = 3,
874 .num_phys = 2,
883 .num_phys = 3,
892 .num_phys = 3,
901 .num_phys = 2,
910 .num_phys = 2,
919 .num_phys = 3,
[all …]
/drivers/usb/core/
Dphy.c52 int i, num_phys, err; in usb_phy_roothub_alloc() local
57 num_phys = of_count_phandle_with_args(dev->of_node, "phys", in usb_phy_roothub_alloc()
59 if (num_phys <= 0) in usb_phy_roothub_alloc()
68 for (i = 0; i < num_phys; i++) { in usb_phy_roothub_alloc()
/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
/drivers/usb/gadget/udc/bdc/
Dbdc_core.c452 for (phy_num = 0; phy_num < bdc->num_phys; phy_num++) { in bdc_phy_init()
478 for (phy_num = 0; phy_num < bdc->num_phys; phy_num++) { in bdc_phy_exit()
512 bdc->num_phys = of_count_phandle_with_args(dev->of_node, in bdc_probe()
514 if (bdc->num_phys > 0) { in bdc_probe()
515 bdc->phys = devm_kcalloc(dev, bdc->num_phys, in bdc_probe()
520 bdc->num_phys = 0; in bdc_probe()
522 dev_info(dev, "Using %d phy(s)\n", bdc->num_phys); in bdc_probe()
524 for (phy_num = 0; phy_num < bdc->num_phys; phy_num++) { in bdc_probe()
/drivers/usb/host/
Dohci-exynos.c43 int phy_number, num_phys; in exynos_ohci_get_phy() local
47 num_phys = of_count_phandle_with_args(dev->of_node, "phys", in exynos_ohci_get_phy()
49 for (phy_number = 0; phy_number < num_phys; phy_number++) { in exynos_ohci_get_phy()
55 if (num_phys > 0) in exynos_ohci_get_phy()
Dehci-exynos.c54 int phy_number, num_phys; in exynos_ehci_get_phy() local
58 num_phys = of_count_phandle_with_args(dev->of_node, "phys", in exynos_ehci_get_phy()
60 for (phy_number = 0; phy_number < num_phys; phy_number++) { in exynos_ehci_get_phy()
66 if (num_phys > 0) in exynos_ehci_get_phy()
Dxhci-mtk.h148 int num_phys; member
/drivers/usb/dwc3/
Ddwc3-meson-g12a.c148 int num_phys; member
197 .num_phys = ARRAY_SIZE(meson_a1_phy_names),
211 .num_phys = ARRAY_SIZE(meson_gxm_phy_names),
224 .num_phys = ARRAY_SIZE(meson_a1_phy_names),
237 .num_phys = ARRAY_SIZE(meson_g12a_phy_names),
249 .num_phys = ARRAY_SIZE(meson_a1_phy_names),
334 for (i = 0; i < priv->drvdata->num_phys; ++i) { in dwc3_meson_g12a_usb2_init()
455 for (i = 0 ; i < priv->drvdata->num_phys ; ++i) { in dwc3_meson_g12a_get_phys()
656 for (i = 0; i < priv->drvdata->num_phys; i++) { in dwc3_meson_g12a_setup_regmaps()
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_link.h83 #define SINGLE_MEDIA_DIRECT(params) (params->num_phys == 1)
85 #define SINGLE_MEDIA(params) (params->num_phys == 2)
87 #define DUAL_MEDIA(params) (params->num_phys == 3)
291 u8 num_phys; member
/drivers/scsi/mpt3sas/
Dmpt3sas_transport.c475 mpt3sas_port->num_phys--; in _transport_delete_phy()
497 mpt3sas_port->num_phys++; in _transport_add_phy()
559 if (mpt3sas_port->num_phys == 1) in _transport_del_phy_from_an_existing_port()
583 for (i = 0; i < sas_node->num_phys; i++) { in _transport_sanity_check()
652 for (i = 0; i < sas_node->num_phys; i++) { in mpt3sas_transport_port_add()
658 mpt3sas_port->num_phys++; in mpt3sas_transport_port_add()
661 if (!mpt3sas_port->num_phys) { in mpt3sas_transport_port_add()
803 for (i = 0; i < sas_node->num_phys; i++) { in mpt3sas_transport_port_remove()
1589 sz = offsetof(Mpi2SasIOUnitPage0_t, PhyData) + (ioc->sas_hba.num_phys * in _transport_phy_enable()
1615 for (i = 0, discovery_active = 0; i < ioc->sas_hba.num_phys ; i++) { in _transport_phy_enable()
[all …]
/drivers/scsi/aic94xx/
Daic94xx_hwi.h103 int num_phys; /* ENABLEABLE */ member
174 int num_phys; member
Daic94xx_scb.c166 if (port->num_phys > 0 && in asd_form_port()
176 if (port->num_phys == 0 && free_port == NULL) { in asd_form_port()
191 port->num_phys++; in asd_form_port()
209 port->num_phys--; in asd_deform_port()
Daic94xx_sds.c536 u8 num_phys; /* number of PHYs in the PCI function */ member
815 asd_ha->hw_prof.num_phys = en_phys; in asd_ms_get_phy_params()
817 asd_ha->hw_prof.max_phys, asd_ha->hw_prof.num_phys); in asd_ms_get_phy_params()
923 for (i = 0; i < ps->num_phys; i++) { in asd_process_ctrla_phy_settings()
978 dflt_ps.num_phys = 8; in asd_process_ctrl_a_user()
/drivers/usb/gadget/udc/
Dtegra-xudc.c550 unsigned int num_phys; member
786 for (i = 0; i < xudc->soc->num_phys; i++) { in tegra_xudc_get_phy_index()
2104 for (i = 0; i < xudc->soc->num_phys; i++) in tegra_xudc_gadget_start()
2129 for (i = 0; i < xudc->soc->num_phys; i++) in tegra_xudc_gadget_stop()
3486 xudc->utmi_phy = devm_kcalloc(xudc->dev, xudc->soc->num_phys, in tegra_xudc_phy_get()
3491 xudc->usb3_phy = devm_kcalloc(xudc->dev, xudc->soc->num_phys, in tegra_xudc_phy_get()
3496 xudc->usbphy = devm_kcalloc(xudc->dev, xudc->soc->num_phys, in tegra_xudc_phy_get()
3503 for (i = 0; i < xudc->soc->num_phys; i++) { in tegra_xudc_phy_get()
3553 for (i = 0; i < xudc->soc->num_phys; i++) { in tegra_xudc_phy_get()
3566 for (i = 0; i < xudc->soc->num_phys; i++) { in tegra_xudc_phy_exit()
[all …]

123