Home
last modified time | relevance | path

Searched refs:phy_read (Results 1 – 57 of 57) sorted by relevance

/linux-4.4.14/drivers/net/ethernet/ibm/emac/
Dphy.c31 #define phy_read _phy_read macro
59 val = phy_read(phy, MII_BMCR); in emac_mii_reset_phy()
67 val = phy_read(phy, MII_BMCR); in emac_mii_reset_phy()
119 ctl = phy_read(phy, MII_BMCR); in genmii_setup_aneg()
128 adv = phy_read(phy, MII_ADVERTISE); in genmii_setup_aneg()
149 adv = phy_read(phy, MII_CTRL1000); in genmii_setup_aneg()
161 ctl = phy_read(phy, MII_BMCR); in genmii_setup_aneg()
177 ctl = phy_read(phy, MII_BMCR); in genmii_setup_forced()
210 phy_read(phy, MII_BMSR); in genmii_poll_link()
211 status = phy_read(phy, MII_BMSR); in genmii_poll_link()
[all …]
/linux-4.4.14/drivers/net/phy/
Dat803x.c68 context->bmcr = phy_read(phydev, MII_BMCR); in at803x_context_save()
69 context->advertise = phy_read(phydev, MII_ADVERTISE); in at803x_context_save()
70 context->control1000 = phy_read(phydev, MII_CTRL1000); in at803x_context_save()
71 context->int_enable = phy_read(phydev, AT803X_INTR_ENABLE); in at803x_context_save()
72 context->smart_speed = phy_read(phydev, AT803X_SMART_SPEED); in at803x_context_save()
73 context->led_control = phy_read(phydev, AT803X_LED_CONTROL); in at803x_context_save()
121 value = phy_read(phydev, AT803X_INTR_ENABLE); in at803x_set_wol()
126 value = phy_read(phydev, AT803X_INTR_STATUS); in at803x_set_wol()
128 value = phy_read(phydev, AT803X_INTR_ENABLE); in at803x_set_wol()
133 value = phy_read(phydev, AT803X_INTR_STATUS); in at803x_set_wol()
[all …]
Dmarvell.c145 err = phy_read(phydev, MII_M1011_IEVENT); in marvell_ack_interrupt()
172 reg = phy_read(phydev, MII_M1011_PHY_SCR); in marvell_set_polarity()
255 bmcr = phy_read(phydev, MII_BMCR); in marvell_config_aneg()
294 saved_page = phy_read(phydev, MII_MARVELL_PHY_PAGE); in marvell_of_reg_init()
319 val = phy_read(phydev, reg); in marvell_of_reg_init()
352 oldpage = phy_read(phydev, MII_MARVELL_PHY_PAGE); in m88e1121_config_aneg()
361 mscr = phy_read(phydev, MII_88E1121_PHY_MSCR_REG) & in m88e1121_config_aneg()
388 oldpage = phy_read(phydev, MII_MARVELL_PHY_PAGE); in m88e1121_config_aneg()
403 oldpage = phy_read(phydev, MII_MARVELL_PHY_PAGE); in m88e1318_config_aneg()
410 mscr = phy_read(phydev, MII_88E1318S_PHY_MSCR1_REG); in m88e1318_config_aneg()
[all …]
Dlxt.c68 err = phy_read(phydev, MII_BMSR); in lxt970_ack_interrupt()
73 err = phy_read(phydev, MII_LXT970_ISR); in lxt970_ack_interrupt()
105 int err = phy_read(phydev, MII_LXT971_ISR); in lxt971_ack_interrupt()
137 status = phy_read(phydev, MII_BMSR); in lxt973a2_update_link()
142 control = phy_read(phydev, MII_BMCR); in lxt973a2_update_link()
148 status = phy_read(phydev, MII_BMSR); in lxt973a2_update_link()
177 adv = phy_read(phydev, MII_ADVERTISE); in lxt973a2_read_status()
183 lpa = phy_read(phydev, MII_LPA); in lxt973a2_read_status()
219 int bmcr = phy_read(phydev, MII_BMCR); in lxt973a2_read_status()
244 int val = phy_read(phydev, MII_LXT973_PCR); in lxt973_probe()
[all …]
Dsmsc.c39 int rc = phy_read (phydev, MII_LAN83C185_ISF); in smsc_phy_ack_interrupt()
49 int rc = phy_read(phydev, MII_LAN83C185_CTRL_STATUS); in smsc_phy_config_init()
71 int rc = phy_read(phydev, MII_LAN83C185_SPECIAL_MODES); in smsc_phy_reset()
91 rc = phy_read(phydev, MII_BMCR); in smsc_phy_reset()
118 int rc = phy_read(phydev, MII_LAN83C185_CTRL_STATUS); in lan87xx_read_status()
131 rc = phy_read(phydev, MII_LAN83C185_CTRL_STATUS); in lan87xx_read_status()
139 rc = phy_read(phydev, MII_LAN83C185_CTRL_STATUS); in lan87xx_read_status()
Dbcm87xx.c64 val = phy_read(phydev, regnum); in bcm87xx_of_reg_init()
110 rx_signal_detect = phy_read(phydev, BCM87XX_PMD_RX_SIGNAL_DETECT); in bcm87xx_read_status()
117 pcs_status = phy_read(phydev, BCM87XX_10GBASER_PCS_STATUS); in bcm87xx_read_status()
124 xgxs_lane_status = phy_read(phydev, BCM87XX_XGXS_LANE_STATUS); in bcm87xx_read_status()
145 reg = phy_read(phydev, BCM87XX_LASI_CONTROL); in bcm87xx_config_intr()
163 reg = phy_read(phydev, BCM87XX_LASI_STATUS); in bcm87xx_did_interrupt()
Dicplus.c108 bmcr = phy_read(phydev, MII_BMCR); in ip1xx_reset()
117 bmcr = phy_read(phydev, MII_BMCR); in ip1xx_reset()
134 c = phy_read(phydev, IP1001_SPEC_CTRL_STATUS_2); in ip1001_config_init()
144 c = phy_read(phydev, IP10XX_SPEC_CTRL_STATUS); in ip1001_config_init()
179 c = phy_read(phydev, IP10XX_SPEC_CTRL_STATUS); in ip101a_g_config_init()
206 int err = phy_read(phydev, IP101A_G_IRQ_CONF_STATUS); in ip101a_g_ack_interrupt()
Dbcm-phy-lib.c44 val = phy_read(phydev, MII_BCM54XX_EXP_DATA); in bcm_phy_read_exp()
64 tmp = phy_read(phydev, MII_BCM54XX_AUX_CTL); in bcm_phy_write_misc()
88 tmp = phy_read(phydev, MII_BCM54XX_AUX_CTL); in bcm_phy_read_misc()
106 reg = phy_read(phydev, MII_BCM54XX_ISR); in bcm_phy_ack_intr()
118 reg = phy_read(phydev, MII_BCM54XX_ECR); in bcm_phy_config_intr()
134 return MII_BCM54XX_SHD_DATA(phy_read(phydev, MII_BCM54XX_SHD)); in bcm_phy_read_shadow()
Dste10Xp.c40 value = phy_read(phydev, MII_BMCR); in ste10Xp_config_init()
50 value = phy_read(phydev, MII_BMCR); in ste10Xp_config_init()
65 value = phy_read(phydev, MII_XCIIS); in ste10Xp_config_intr()
77 int err = phy_read(phydev, MII_XCIIS); in ste10Xp_ack_interrupt()
Dqsemi.c83 err = phy_read(phydev, MII_QS6612_ISR); in qs6612_ack_interrupt()
88 err = phy_read(phydev, MII_BMSR); in qs6612_ack_interrupt()
93 err = phy_read(phydev, MII_EXPANSION); in qs6612_ack_interrupt()
Det1011c.c55 ctl = phy_read(phydev, MII_BMCR); in et1011c_config_aneg()
75 val = phy_read(phydev, ET1011C_STATUS_REG); in et1011c_read_status()
78 val = phy_read(phydev, ET1011C_CONFIG_REG); in et1011c_read_status()
Dphy_device.c573 ret = phy_read(phydev, MII_BMCR); in phy_poll_reset()
826 adv = phy_read(phydev, MII_ADVERTISE); in genphy_config_advert()
843 bmsr = phy_read(phydev, MII_BMSR); in genphy_config_advert()
855 adv = phy_read(phydev, MII_CTRL1000); in genphy_config_advert()
910 int ctl = phy_read(phydev, MII_BMCR); in genphy_restart_aneg()
946 int ctl = phy_read(phydev, MII_BMCR); in genphy_config_aneg()
975 int retval = phy_read(phydev, MII_BMSR); in genphy_aneg_done()
999 status = phy_read(phydev, MII_BMSR); in genphy_update_link()
1004 status = phy_read(phydev, MII_BMSR); in genphy_update_link()
1045 lpagb = phy_read(phydev, MII_STAT1000); in genphy_read_status()
[all …]
Dbroadcom.c182 reg = phy_read(phydev, MII_BCM54XX_ECR); in bcm54xx_config_init()
329 reg = phy_read(phydev, 0x18); in bcm5481_config_aneg()
344 val = phy_read(phydev, reg); in brcm_phy_setbits()
360 reg = phy_read(phydev, MII_BRCM_FET_INTREG); in brcm_fet_config_init()
376 brcmtest = phy_read(phydev, MII_BRCM_FET_BRCMTEST); in brcm_fet_config_init()
387 reg = phy_read(phydev, MII_BRCM_FET_SHDW_AUXMODE4); in brcm_fet_config_init()
426 reg = phy_read(phydev, MII_BRCM_FET_INTREG); in brcm_fet_ack_interrupt()
437 reg = phy_read(phydev, MII_BRCM_FET_INTREG); in brcm_fet_config_intr()
Dmicrel.c133 return phy_read(phydev, MII_KSZPHY_EXTREG_READ); in kszphy_extended_read()
141 rc = phy_read(phydev, MII_KSZPHY_INTCS); in kszphy_ack_interrupt()
158 temp = phy_read(phydev, MII_KSZPHY_CTRL); in kszphy_config_intr()
177 ctrl = phy_read(phydev, MII_KSZPHY_CTRL); in kszphy_rmii_clk_sel()
204 temp = phy_read(phydev, reg); in kszphy_setup_led()
227 ret = phy_read(phydev, MII_KSZPHY_OMSO); in kszphy_broadcast_disable()
243 ret = phy_read(phydev, MII_KSZPHY_OMSO); in kszphy_nand_tree_disable()
403 return phy_read(phydev, MII_KSZ9031RN_MMD_REGDATA_REG); in ksz9031_extended_read()
506 regval = phy_read(phydev, KSZ8873MLL_GLOBAL_CONTROL_4); in ksz8873mll_read_status()
508 regval = phy_read(phydev, KSZ8873MLL_GLOBAL_CONTROL_4); in ksz8873mll_read_status()
[all …]
Dnational.c62 return phy_read(phydev, NS_EXP_MEM_DATA); in ns_exp_read()
86 int ret = phy_read(phydev, DP83865_INT_STATUS); in ns_ack_interrupt()
99 int bmcr = phy_read(phydev, MII_BMCR); in ns_giga_speed_fallback()
Damd.c36 err = phy_read(phydev, MII_BMSR); in am79c_ack_interrupt()
40 err = phy_read(phydev, MII_AM79C_IR); in am79c_ack_interrupt()
Drealtek.c40 err = phy_read(phydev, RTL821x_INSR); in rtl821x_ack_interrupt()
50 err = phy_read(phydev, RTL8211F_INSR); in rtl8211f_ack_interrupt()
108 reg = phy_read(phydev, 0x11); in rtl8211f_config_init()
Dmicrochip.c40 rc = phy_read(phydev, LAN88XX_INT_STS); in lan88xx_phy_config_intr()
53 int rc = phy_read(phydev, LAN88XX_INT_STS); in lan88xx_phy_ack_interrupt()
Dvitesse.c83 extcon = phy_read(phydev, MII_VSC8244_EXT_CON1); in vsc824x_add_skew()
123 err = phy_read(phydev, MII_VSC8244_ISTAT); in vsc824x_ack_interrupt()
145 err = phy_read(phydev, MII_VSC8244_ISTAT); in vsc82xx_config_intr()
Ddavicom.c70 temp = phy_read(phydev, MII_DM9161_INTR); in dm9161_config_intr()
142 int err = phy_read(phydev, MII_DM9161_INTR); in dm9161_ack_interrupt()
Dbcm7xxx.c180 phy_read(phydev, MII_BMSR); in bcm7xxx_28nm_config_init()
231 v = phy_read(dev, location); in phy_set_clr_bits()
251 phy_read(phydev, MII_BCM7XXX_AUX_MODE); in bcm7xxx_config_init()
Ddp83867.c72 int err = phy_read(phydev, MII_DP83867_ISR); in dp83867_ack_interrupt()
85 micr_status = phy_read(phydev, MII_DP83867_MICR); in dp83867_config_intr()
Dbcm63xx.c28 reg = phy_read(phydev, MII_BCM63XX_IR); in bcm63xx_config_init()
Ddp83848.c41 int err = phy_read(phydev, DP83848_MISR); in dp83848_ack_interrupt()
Dcicada.c86 int err = phy_read(phydev, MII_CIS8201_ISTAT); in cis820x_ack_interrupt()
Dbcm-cygnus.c83 reg = phy_read(phydev, MII_BCM54XX_ECR); in bcm_cygnus_config_init()
Ddp83640.c238 val = phy_read(phydev, regnum); in ext_read()
605 val = phy_read(phydev, PHYCR2); in enable_broadcast()
1230 int err = phy_read(phydev, MII_DP83640_MISR); in dp83640_ack_interrupt()
1245 misr = phy_read(phydev, MII_DP83640_MISR); in dp83640_config_intr()
1257 micr = phy_read(phydev, MII_DP83640_MICR); in dp83640_config_intr()
1265 micr = phy_read(phydev, MII_DP83640_MICR); in dp83640_config_intr()
1275 misr = phy_read(phydev, MII_DP83640_MISR); in dp83640_config_intr()
/linux-4.4.14/arch/powerpc/platforms/85xx/
Dmpc85xx_mds.c74 scr = phy_read(phydev, MV88E1111_SCR); in mpc8568_fixup_125_clock()
89 scr = phy_read(phydev, MV88E1111_SCR); in mpc8568_fixup_125_clock()
110 temp = phy_read(phydev, 30); in mpc8568_mds_phy_fixups()
126 temp = phy_read(phydev, 30); in mpc8568_mds_phy_fixups()
131 temp = phy_read(phydev, 30); in mpc8568_mds_phy_fixups()
144 temp = phy_read(phydev, 16); in mpc8568_mds_phy_fixups()
/linux-4.4.14/arch/arm/mach-imx/
Dmach-imx6q.c120 val = phy_read(dev, 0xe); in ar8031_phy_fixup()
127 val = phy_read(dev, 0x1e); in ar8031_phy_fixup()
147 val = phy_read(dev, 0xe); in ar8035_phy_fixup()
160 val = phy_read(dev, 0x0); in ar8035_phy_fixup()
Dmach-imx7d.c32 val = phy_read(dev, 0xe); in ar8031_phy_fixup()
38 val = phy_read(dev, 0x1e); in ar8031_phy_fixup()
Dmach-imx6sx.c31 val = phy_read(dev, 0x1e); in ar8031_phy_fixup()
/linux-4.4.14/drivers/net/dsa/
Dmv88e6123_61_65.c109 .phy_read = mv88e6xxx_phy_read,
Dmv88e6171.c95 .phy_read = mv88e6xxx_phy_read_indirect,
Dmv88e6131.c166 .phy_read = mv88e6131_phy_read,
Dmv88e6060.c244 .phy_read = mv88e6060_phy_read,
Dmv88e6352.c308 .phy_read = mv88e6xxx_phy_read_indirect,
Dbcm_sf2.c1373 .phy_read = bcm_sf2_sw_phy_read,
/linux-4.4.14/drivers/net/wireless/b43/
Dphy_common.h167 u16 (*phy_read)(struct b43_wldev *dev, u16 reg); member
Dphy_common.c284 if (dev->phy.ops->phy_read) in b43_phy_read()
285 return dev->phy.ops->phy_read(dev, reg); in b43_phy_read()
Dphy_a.c581 .phy_read = b43_aphy_op_read,
Dphy_g.c3040 .phy_read = b43_gphy_op_read,
/linux-4.4.14/include/net/
Ddsa.h222 int (*phy_read)(struct dsa_switch *ds, int port, int regnum); member
/linux-4.4.14/drivers/net/usb/
Dlan78xx.c841 ret = phy_read(phydev, LAN88XX_INT_STS); in lan78xx_link_reset()
869 ret = phy_read(phydev, LAN88XX_INT_STS); in lan78xx_link_reset()
890 ladv = phy_read(phydev, MII_ADVERTISE); in lan78xx_link_reset()
894 radv = phy_read(phydev, MII_LPA); in lan78xx_link_reset()
1184 buf = phy_read(phydev, LAN88XX_EXT_MODE_CTRL); in lan78xx_get_mdix_status()
1199 buf = phy_read(phydev, LAN88XX_EXT_MODE_CTRL); in lan78xx_set_mdix_status()
1208 buf = phy_read(phydev, LAN88XX_EXT_MODE_CTRL); in lan78xx_set_mdix_status()
1217 buf = phy_read(phydev, LAN88XX_EXT_MODE_CTRL); in lan78xx_set_mdix_status()
1279 temp = phy_read(phydev, MII_BMCR); in lan78xx_set_settings()
/linux-4.4.14/drivers/net/ethernet/smsc/
Dsmsc911x.c913 u16 lcladv = phy_read(phy_dev, MII_ADVERTISE); in smsc911x_phy_update_flowcontrol()
914 u16 rmtadv = phy_read(phy_dev, MII_LPA); in smsc911x_phy_update_flowcontrol()
1359 rc = phy_read(pdata->phy_dev, MII_BMCR); in smsc911x_phy_general_power_up()
1388 rc = phy_read(pdata->phy_dev, MII_LAN83C185_CTRL_STATUS); in smsc911x_phy_disable_energy_detect()
1419 rc = phy_read(pdata->phy_dev, MII_LAN83C185_CTRL_STATUS); in smsc911x_phy_enable_energy_detect()
Dsmsc9420.c1100 u16 lcladv = phy_read(phy_dev, MII_ADVERTISE); in smsc9420_phy_update_flowcontrol()
1101 u16 rmtadv = phy_read(phy_dev, MII_LPA); in smsc9420_phy_update_flowcontrol()
/linux-4.4.14/drivers/net/ethernet/qlogic/netxen/
Dnetxen_nic_hw.c1803 adapter->phy_read = nx_fw_cmd_query_phy; in netxen_setup_hwops()
1910 if (adapter->phy_read && in netxen_nic_set_link_parameters()
1911 adapter->phy_read(adapter, in netxen_nic_set_link_parameters()
1940 if (adapter->phy_read && in netxen_nic_set_link_parameters()
1941 adapter->phy_read(adapter, in netxen_nic_set_link_parameters()
Dnetxen_nic.h1663 int (*phy_read) (struct netxen_adapter *, u32 reg, u32 *); member
/linux-4.4.14/include/linux/
Dphy.h648 static inline int phy_read(struct phy_device *phydev, u32 regnum) in phy_read() function
/linux-4.4.14/arch/arm/mach-davinci/
Dboard-dm644x-evm.c742 control = phy_read(phydev, 26); in davinci_phy_fixup()
/linux-4.4.14/drivers/net/ethernet/toshiba/
Dtc35815.c602 phy_read(phydev, MII_BMCR), in tc_handle_link_change()
603 phy_read(phydev, MII_BMSR), in tc_handle_link_change()
604 phy_read(phydev, MII_LPA)); in tc_handle_link_change()
/linux-4.4.14/drivers/net/ethernet/xilinx/
Dxilinx_emaclite.c933 bmcr = phy_read(lp->phy_dev, MII_BMCR); in xemaclite_open()
/linux-4.4.14/net/dsa/
Dslave.c30 return ds->drv->phy_read(ds, addr, reg); in dsa_slave_phy_read()
/linux-4.4.14/Documentation/networking/
Dphy.txt173 int phy_read(struct phy_device *phydev, u16 regnum);
/linux-4.4.14/drivers/net/ethernet/aeroflex/
Dgreth.c1319 retval = phy_read(phydev, MII_BMSR); in phy_aneg_done()
/linux-4.4.14/drivers/net/ethernet/freescale/
Ducc_geth.c1384 value = phy_read(tbiphy, ENET_TBI_MII_CR); in adjust_enet_interface()
1707 if (phy_read(tbiphy, ENET_TBI_MII_SR) & TBISR_LSTATUS) { in uec_configure_serdes()
Dgianfar.c1839 if (phy_read(tbiphy, MII_BMSR) & BMSR_LSTATUS) { in gfar_configure_serdes()
/linux-4.4.14/Documentation/networking/dsa/
Ddsa.txt410 - phy_read: Function invoked by the DSA slave MDIO bus when attempting to read