Home
last modified time | relevance | path

Searched refs:phy_idx (Results 1 – 18 of 18) sorted by relevance

/Linux-v4.19/drivers/phy/broadcom/
Dphy-bcm-sr-pcie.c201 int phy_idx; in sr_pcie_phy_xlate() local
207 phy_idx = args->args[0]; in sr_pcie_phy_xlate()
209 if (WARN_ON(phy_idx >= SR_NR_PCIE_PHYS)) in sr_pcie_phy_xlate()
212 return core->phys[phy_idx].phy; in sr_pcie_phy_xlate()
222 unsigned int phy_idx = 0; in sr_pcie_phy_probe() local
255 for (phy_idx = 0; phy_idx < SR_NR_PCIE_PHYS; phy_idx++) { in sr_pcie_phy_probe()
256 struct sr_pcie_phy *p = &core->phys[phy_idx]; in sr_pcie_phy_probe()
259 if (phy_idx == SR_PAXC_PHY_IDX) in sr_pcie_phy_probe()
271 p->index = phy_idx; in sr_pcie_phy_probe()
/Linux-v4.19/drivers/net/ethernet/dec/tulip/
Dmedia.c452 int phyn, phy_idx = 0; in tulip_find_mii() local
460 for (phyn = 1; phyn <= 32 && phy_idx < ARRAY_SIZE(tp->phys); phyn++) { in tulip_find_mii()
485 tp->advertising[phy_idx] = in tulip_find_mii()
487 } else if (tp->advertising[phy_idx]) { in tulip_find_mii()
488 to_advert = tp->advertising[phy_idx]; in tulip_find_mii()
490 tp->advertising[phy_idx] = in tulip_find_mii()
495 tp->phys[phy_idx++] = phy; in tulip_find_mii()
546 tp->mii_cnt = phy_idx; in tulip_find_mii()
547 if (tp->mtable && tp->mtable->has_mii && phy_idx == 0) { in tulip_find_mii()
Dwinbond-840.c444 int phy, phy_idx = 0; in w840_probe1() local
445 for (phy = 1; phy < 32 && phy_idx < MII_CNT; phy++) { in w840_probe1()
448 np->phys[phy_idx++] = phy; in w840_probe1()
458 np->mii_cnt = phy_idx; in w840_probe1()
460 if (phy_idx == 0) { in w840_probe1()
Dtulip_core.c912 const unsigned int phy_idx = 0; in private_ioctl() local
913 int phy = tp->phys[phy_idx] & 0x1f; in private_ioctl()
975 tp->advertising[phy_idx] = in private_ioctl()
/Linux-v4.19/drivers/net/wireless/broadcom/b43/
Dtables_nphy.c3783 u8 phy_idx; in b43_nphy_get_gain_ctl_workaround_ent() local
3790 phy_idx = 3; in b43_nphy_get_gain_ctl_workaround_ent()
3792 phy_idx = 2; in b43_nphy_get_gain_ctl_workaround_ent()
3794 phy_idx = 1; in b43_nphy_get_gain_ctl_workaround_ent()
3796 phy_idx = 0; in b43_nphy_get_gain_ctl_workaround_ent()
3797 e = &nphy_gain_ctl_workaround[ghz5][phy_idx]; in b43_nphy_get_gain_ctl_workaround_ent()
/Linux-v4.19/drivers/scsi/isci/
Dphy.c122 int phy_idx = iphy->phy_index; in sci_phy_link_layer_initialization() local
131 phy_user = &ihost->user_parameters.phys[phy_idx]; in sci_phy_link_layer_initialization()
132 phy_oem = &ihost->oem_parameters.phys[phy_idx]; in sci_phy_link_layer_initialization()
147 writel(phy_idx, &llr->sas_device_name_low); in sci_phy_link_layer_initialization()
155 writel(SCU_SAS_TIPID_GEN_VALUE(ID, phy_idx), &llr->identify_frame_phy_id); in sci_phy_link_layer_initialization()
172 struct scu_afe_transceiver __iomem *xcvr = &afe->scu_afe_xcvr[phy_idx]; in sci_phy_link_layer_initialization()
Dport.c331 int phy_idx = isci_port->last_active_phy; in isci_port_hard_reset_complete() local
332 struct isci_phy *iphy = &ihost->phys[phy_idx]; in isci_port_hard_reset_complete()
/Linux-v4.19/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_ethtool.c193 u32 phy_idx = bnx2x_get_cur_phy_idx(bp); in bnx2x_get_port_type() local
194 switch (bp->link_params.phy[phy_idx].media_type) { in bnx2x_get_port_type()
371 u32 speed, phy_idx; in bnx2x_set_link_ksettings() local
641 phy_idx = bnx2x_get_cur_phy_idx(bp); in bnx2x_set_link_ksettings()
644 (bp->link_params.phy[phy_idx].media_type != in bnx2x_set_link_ksettings()
1484 int rc = -EINVAL, phy_idx; in bnx2x_get_module_eeprom() local
1494 phy_idx = bnx2x_get_cur_phy_idx(bp); in bnx2x_get_module_eeprom()
1504 rc = bnx2x_read_sfp_module_eeprom(&bp->link_params.phy[phy_idx], in bnx2x_get_module_eeprom()
1529 rc = bnx2x_read_sfp_module_eeprom(&bp->link_params.phy[phy_idx], in bnx2x_get_module_eeprom()
1548 int phy_idx, rc; in bnx2x_get_module_info() local
[all …]
Dbnx2x_link.c6302 u8 phy_idx; in bnx2x_set_led() local
6310 for (phy_idx = EXT_PHY1; phy_idx < MAX_PHYS; phy_idx++) { in bnx2x_set_led()
6311 if (params->phy[phy_idx].set_link_led) { in bnx2x_set_led()
6312 params->phy[phy_idx].set_link_led( in bnx2x_set_led()
6313 &params->phy[phy_idx], params, mode); in bnx2x_set_led()
6683 u8 phy_idx, port = params->port; in bnx2x_update_link_up() local
6759 for (phy_idx = INT_PHY; phy_idx < MAX_PHYS; phy_idx++) { in bnx2x_update_link_up()
6760 if (params->phy[phy_idx].flags & FLAGS_TX_ERROR_CHECK) { in bnx2x_update_link_up()
8123 u32 sync_offset = 0, phy_idx, media_types; in bnx2x_get_edc_mode() local
8226 for (phy_idx = INT_PHY; phy_idx < MAX_PHYS; phy_idx++) { in bnx2x_get_edc_mode()
[all …]
/Linux-v4.19/drivers/net/ethernet/smsc/
Depic100.c436 int phy, phy_idx = 0; in epic_init_one() local
437 for (phy = 1; phy < 32 && phy_idx < sizeof(ep->phys); phy++) { in epic_init_one()
440 ep->phys[phy_idx++] = phy; in epic_init_one()
447 ep->mii_phy_cnt = phy_idx; in epic_init_one()
448 if (phy_idx != 0) { in epic_init_one()
/Linux-v4.19/drivers/net/ethernet/packetengines/
Dyellowfin.c490 int phy, phy_idx = 0; in yellowfin_init_one() local
491 for (phy = 0; phy < 32 && phy_idx < MII_CNT; phy++) { in yellowfin_init_one()
494 np->phys[phy_idx++] = phy; in yellowfin_init_one()
500 np->mii_cnt = phy_idx; in yellowfin_init_one()
Dhamachi.c749 int phy, phy_idx = 0; in hamachi_init_one() local
750 for (phy = 0; phy < 32 && phy_idx < MII_CNT; phy++) { in hamachi_init_one()
754 hmp->phys[phy_idx++] = phy; in hamachi_init_one()
761 hmp->mii_cnt = phy_idx; in hamachi_init_one()
/Linux-v4.19/drivers/net/ethernet/
Dfealnx.c578 int phy, phy_idx = 0; in fealnx_init_one() local
580 for (phy = 1; phy < 32 && phy_idx < ARRAY_SIZE(np->phys); in fealnx_init_one()
585 np->phys[phy_idx++] = phy; in fealnx_init_one()
610 np->mii_cnt = phy_idx; in fealnx_init_one()
611 if (phy_idx == 0) in fealnx_init_one()
/Linux-v4.19/drivers/net/ethernet/dlink/
Dsundance.c517 int phy, phy_end, phy_idx = 0; in sundance_probe1() local
611 for (; phy <= phy_end && phy_idx < MII_CNT; phy++) { in sundance_probe1()
615 np->phys[phy_idx++] = phyx; in sundance_probe1()
626 if (phy_idx == 0) { in sundance_probe1()
/Linux-v4.19/drivers/net/ethernet/adaptec/
Dstarfire.c801 int phy, phy_idx = 0; in starfire_init_one() local
803 for (phy = 0; phy < 32 && phy_idx < PHY_CNT; phy++) { in starfire_init_one()
816 np->phys[phy_idx++] = phy; in starfire_init_one()
825 np->phy_cnt = phy_idx; in starfire_init_one()
/Linux-v4.19/drivers/net/ethernet/realtek/
D8139too.c1056 int phy, phy_idx = 0; in rtl8139_init_one() local
1057 for (phy = 0; phy < 32 && phy_idx < sizeof(tp->phys); phy++) { in rtl8139_init_one()
1061 tp->phys[phy_idx++] = phy; in rtl8139_init_one()
1066 if (phy_idx == 0) { in rtl8139_init_one()
/Linux-v4.19/drivers/net/ethernet/3com/
D3c59x.c1389 int phy, phy_idx = 0; in vortex_probe1() local
1395 for (phy = 0; phy < 32 && phy_idx < 1; phy++) { in vortex_probe1()
1410 vp->phys[phy_idx++] = phyx; in vortex_probe1()
1420 if (phy_idx == 0) { in vortex_probe1()
/Linux-v4.19/net/wireless/
Dnl80211.c9209 long phy_idx; in nl80211_testmode_dump() local
9220 phy_idx = cb->args[0] - 1; in nl80211_testmode_dump()
9222 rdev = cfg80211_rdev_by_wiphy_idx(phy_idx); in nl80211_testmode_dump()
9241 phy_idx = rdev->wiphy_idx; in nl80211_testmode_dump()
9266 if (nla_put_u32(skb, NL80211_ATTR_WIPHY, phy_idx)) { in nl80211_testmode_dump()
9292 cb->args[0] = phy_idx + 1; in nl80211_testmode_dump()