Home
last modified time | relevance | path

Searched refs:phy_reg (Results 1 – 25 of 26) sorted by relevance

12

/linux-6.3-rc2/drivers/net/ethernet/dec/tulip/
A Dpnic.c23 u32 phy_reg = ioread32(ioaddr + 0xB8); in pnic_do_nway() local
26 if (phy_reg & 0x78000000) { /* Ignore baseT4 */ in pnic_do_nway()
27 if (phy_reg & 0x20000000) dev->if_port = 5; in pnic_do_nway()
28 else if (phy_reg & 0x40000000) dev->if_port = 3; in pnic_do_nway()
29 else if (phy_reg & 0x10000000) dev->if_port = 4; in pnic_do_nway()
30 else if (phy_reg & 0x08000000) dev->if_port = 0; in pnic_do_nway()
36 if (phy_reg & 0x30000000) { in pnic_do_nway()
42 phy_reg, medianame[dev->if_port]); in pnic_do_nway()
56 int phy_reg = ioread32(ioaddr + 0xB8); in pnic_lnk_change() local
60 phy_reg, csr5); in pnic_lnk_change()
[all …]
A Ddmfe.c1669 u16 phy_reg; in dmfe_set_phyxcer() local
1689 phy_reg |= db->PHY_reg4; in dmfe_set_phyxcer()
1702 if ( !(phy_reg & 0x01e0)) { in dmfe_set_phyxcer()
1703 phy_reg|=db->PHY_reg4; in dmfe_set_phyxcer()
1725 u16 phy_reg; in dmfe_process_mode() local
1745 if ( !(phy_reg & 0x1) ) { in dmfe_process_mode()
1747 phy_reg = 0x0; in dmfe_process_mode()
2039 uint phy_reg; in dmfe_program_DM9802() local
2044 phy_reg = ( phy_reg & 0xff00) + HPNA_NoiseFloor; in dmfe_program_DM9802()
2056 uint phy_reg; in dmfe_HPNA_remote_cmd_chk() local
[all …]
A Duli526x.c1522 u16 phy_reg; in uli526x_set_phyxcer() local
1529 phy_reg |= db->PHY_reg4; in uli526x_set_phyxcer()
1542 if ( !(phy_reg & 0x01e0)) { in uli526x_set_phyxcer()
1543 phy_reg|=db->PHY_reg4; in uli526x_set_phyxcer()
1546 phy->write(db, db->phy_addr, 4, phy_reg); in uli526x_set_phyxcer()
1564 u16 phy_reg; in uli526x_process_mode() local
1577 phy_reg = phy->read(db, db->phy_addr, 6); in uli526x_process_mode()
1578 if (!(phy_reg & 0x1)) { in uli526x_process_mode()
1580 phy_reg = 0x0; in uli526x_process_mode()
1582 case ULI526X_10MHF: phy_reg = 0x0; break; in uli526x_process_mode()
[all …]
/linux-6.3-rc2/drivers/clk/hisilicon/
A Dclk-hix5hd2.c139 u32 phy_reg; member
151 void __iomem *phy_reg; member
180 val = readl_relaxed(clk->phy_reg); in clk_ether_prepare()
183 writel_relaxed(val, clk->phy_reg); in clk_ether_prepare()
188 writel_relaxed(val, clk->phy_reg); in clk_ether_prepare()
193 writel_relaxed(val, clk->phy_reg); in clk_ether_prepare()
223 val = readl_relaxed(clk->phy_reg); in clk_complex_enable()
226 writel_relaxed(val, clk->phy_reg); in clk_complex_enable()
241 val = readl_relaxed(clk->phy_reg); in clk_complex_disable()
244 writel_relaxed(val, clk->phy_reg); in clk_complex_disable()
[all …]
/linux-6.3-rc2/drivers/usb/phy/
A Dphy-am335x-control.c13 void __iomem *phy_reg; member
84 val = readl(usb_ctrl->phy_reg + reg); in am335x_phy_power()
98 writel(val, usb_ctrl->phy_reg + reg); in am335x_phy_power()
168 ctrl_usb->phy_reg = devm_platform_ioremap_resource_byname(pdev, "phy_ctrl"); in am335x_control_usb_probe()
169 if (IS_ERR(ctrl_usb->phy_reg)) in am335x_control_usb_probe()
170 return PTR_ERR(ctrl_usb->phy_reg); in am335x_control_usb_probe()
/linux-6.3-rc2/drivers/net/ethernet/intel/e1000e/
A Dich8lan.c178 u16 phy_reg = 0; in e1000_phy_is_accessible_pchlan() local
1105 u16 phy_reg; in e1000_enable_ulp_lpt_lp() local
1169 phy_reg = oem_reg; in e1000_enable_ulp_lpt_lp()
1173 phy_reg); in e1000_enable_ulp_lpt_lp()
1249 u16 phy_reg; in e1000_disable_ulp_lpt_lp() local
1401 u16 phy_reg; in e1000_check_for_copper_link_ich8lan() local
1465 u16 phy_reg; in e1000_check_for_copper_link_ich8lan() local
1472 phy_reg |= 0xFA; in e1000_check_for_copper_link_ich8lan()
2538 u16 i, phy_reg = 0; in e1000_copy_rx_addrs_to_phy_ich8lan() local
2579 u16 phy_reg, data; in e1000_lv_jumbo_workaround_ich8lan() local
[all …]
A Dethtool.c1336 u16 phy_reg = 0; in e1000_integrated_phy_loopback() local
1375 e1e_rphy(hw, PHY_REG(2, 21), &phy_reg); in e1000_integrated_phy_loopback()
1376 phy_reg &= ~0x0007; in e1000_integrated_phy_loopback()
1377 phy_reg |= 0x006; in e1000_integrated_phy_loopback()
1378 e1e_wphy(hw, PHY_REG(2, 21), phy_reg); in e1000_integrated_phy_loopback()
1408 e1e_rphy(hw, PHY_REG(0, 21), &phy_reg); in e1000_integrated_phy_loopback()
1574 u16 phy_reg; in e1000_loopback_cleanup() local
1619 e1e_rphy(hw, MII_BMCR, &phy_reg); in e1000_loopback_cleanup()
1620 if (phy_reg & BMCR_LOOPBACK) { in e1000_loopback_cleanup()
1621 phy_reg &= ~BMCR_LOOPBACK; in e1000_loopback_cleanup()
[all …]
A Dphy.h48 s32 e1000_enable_phy_wakeup_reg_access_bm(struct e1000_hw *hw, u16 *phy_reg);
49 s32 e1000_disable_phy_wakeup_reg_access_bm(struct e1000_hw *hw, u16 *phy_reg);
A Dphy.c2547 s32 e1000_enable_phy_wakeup_reg_access_bm(struct e1000_hw *hw, u16 *phy_reg) in e1000_enable_phy_wakeup_reg_access_bm() argument
2562 ret_val = e1000e_read_phy_reg_mdic(hw, BM_WUC_ENABLE_REG, phy_reg); in e1000_enable_phy_wakeup_reg_access_bm()
2572 temp = *phy_reg; in e1000_enable_phy_wakeup_reg_access_bm()
2600 s32 e1000_disable_phy_wakeup_reg_access_bm(struct e1000_hw *hw, u16 *phy_reg) in e1000_disable_phy_wakeup_reg_access_bm() argument
2612 ret_val = e1000e_write_phy_reg_mdic(hw, BM_WUC_ENABLE_REG, *phy_reg); in e1000_disable_phy_wakeup_reg_access_bm()
2651 u16 phy_reg = 0; in e1000_access_phy_wakeup_reg_bm() local
2661 ret_val = e1000_enable_phy_wakeup_reg_access_bm(hw, &phy_reg); in e1000_access_phy_wakeup_reg_bm()
2693 ret_val = e1000_disable_phy_wakeup_reg_access_bm(hw, &phy_reg); in e1000_access_phy_wakeup_reg_bm()
A Dnetdev.c6241 u16 phy_reg, wuc_enable; in e1000_init_phy_wakeup() local
6268 hw->phy.ops.read_reg_page(&adapter->hw, BM_RCTL, &phy_reg); in e1000_init_phy_wakeup()
6271 phy_reg |= BM_RCTL_UPE; in e1000_init_phy_wakeup()
6273 phy_reg |= BM_RCTL_MPE; in e1000_init_phy_wakeup()
6274 phy_reg &= ~(BM_RCTL_MO_MASK); in e1000_init_phy_wakeup()
6276 phy_reg |= (((mac_reg & E1000_RCTL_MO_3) >> E1000_RCTL_MO_SHIFT) in e1000_init_phy_wakeup()
6279 phy_reg |= BM_RCTL_BAM; in e1000_init_phy_wakeup()
6281 phy_reg |= BM_RCTL_PMCF; in e1000_init_phy_wakeup()
6284 phy_reg |= BM_RCTL_RFCE; in e1000_init_phy_wakeup()
6285 hw->phy.ops.write_reg_page(&adapter->hw, BM_RCTL, phy_reg); in e1000_init_phy_wakeup()
/linux-6.3-rc2/drivers/net/
A Dsungem_phy.c597 u32 phy_reg; in bcm5421_poll_link() local
604 mode = (phy_reg & BCM5421_MODE_MASK) >> 5; in bcm5421_poll_link()
613 if (phy_reg & 0x0020) in bcm5421_poll_link()
621 u32 phy_reg; in bcm5421_read_link() local
628 mode = (phy_reg & BCM5421_MODE_MASK ) >> 5; in bcm5421_read_link()
639 if ( (phy_reg & 0x0080) >> 7) in bcm5421_read_link()
670 u32 phy_reg; in bcm5461_poll_link() local
677 mode = (phy_reg & BCM5461_MODE_MASK ) >> 1; in bcm5461_poll_link()
686 if (phy_reg & BCM5461_FIBER_LINK) in bcm5461_poll_link()
696 u32 phy_reg; in bcm5461_read_link() local
[all …]
/linux-6.3-rc2/drivers/net/ethernet/intel/e1000/
A De1000_ethtool.c1118 u16 phy_reg; in e1000_phy_reset_clk_and_crs() local
1141 u16 phy_reg; in e1000_nonintegrated_phy_loopback() local
1182 phy_reg |= MII_CR_LOOPBACK; in e1000_nonintegrated_phy_loopback()
1190 if (phy_reg != 0x4100) in e1000_nonintegrated_phy_loopback()
1194 if (phy_reg != 0x0070) in e1000_nonintegrated_phy_loopback()
1198 if (phy_reg != 0x001A) in e1000_nonintegrated_phy_loopback()
1263 u16 phy_reg = 0; in e1000_set_phy_loopback() local
1296 phy_reg |= MII_CR_LOOPBACK; in e1000_set_phy_loopback()
1334 u16 phy_reg; in e1000_loopback_cleanup() local
1348 if (phy_reg & MII_CR_LOOPBACK) { in e1000_loopback_cleanup()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/realtek/
A Dr8169_phy_config.c53 struct phy_reg { struct
59 const struct phy_reg *regs, int len) in __rtl_writephy_batch() argument
111 static const struct phy_reg phy_reg_init[] = { in rtl8169s_hw_phy_config()
185 static const struct phy_reg phy_reg_init[] = { in rtl8169scd_hw_phy_config()
231 static const struct phy_reg phy_reg_init[] = { in rtl8169sce_hw_phy_config()
315 static const struct phy_reg phy_reg_init[] = { in rtl8168c_1_hw_phy_config()
344 static const struct phy_reg phy_reg_init[] = { in rtl8168c_2_hw_phy_config()
372 static const struct phy_reg phy_reg_init[] = { in rtl8168c_3_hw_phy_config()
541 static const struct phy_reg phy_reg_init[] = { in rtl8168e_1_hw_phy_config()
923 static const struct phy_reg phy_reg_init[] = { in rtl8102e_hw_phy_config()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlxbf_gige/
A Dmlxbf_gige_mdio.c189 int phy_reg, u32 opcode) in mlxbf_gige_mdio_create_cmd() argument
195 gw_reg |= ((phy_reg << mdio_gw->devad.shift) & in mlxbf_gige_mdio_create_cmd()
209 static int mlxbf_gige_mdio_read(struct mii_bus *bus, int phy_add, int phy_reg) in mlxbf_gige_mdio_read() argument
217 cmd = mlxbf_gige_mdio_create_cmd(priv->mdio_gw, 0, phy_add, phy_reg, in mlxbf_gige_mdio_read()
242 int phy_reg, u16 val) in mlxbf_gige_mdio_write() argument
250 cmd = mlxbf_gige_mdio_create_cmd(priv->mdio_gw, val, phy_add, phy_reg, in mlxbf_gige_mdio_write()
/linux-6.3-rc2/drivers/net/phy/
A Dphy_device.c753 int phy_reg; in get_phy_c45_devs_in_pkg() local
756 if (phy_reg < 0) in get_phy_c45_devs_in_pkg()
761 if (phy_reg < 0) in get_phy_c45_devs_in_pkg()
808 if (phy_reg < 0) in get_phy_c45_ids()
818 if (phy_reg < 0) in get_phy_c45_ids()
845 if (phy_reg < 0) in get_phy_c45_ids()
850 if (phy_reg < 0) in get_phy_c45_ids()
875 int phy_reg; in get_phy_c22_id() local
879 if (phy_reg < 0) { in get_phy_c22_id()
881 return (phy_reg == -EIO || phy_reg == -ENODEV) ? -ENODEV : -EIO; in get_phy_c22_id()
[all …]
/linux-6.3-rc2/drivers/net/usb/
A Dsr9800.c372 int phy_reg; in sr_get_phyid() local
378 phy_reg = sr_mdio_read(dev->net, dev->mii.phy_id, MII_PHYSID1); in sr_get_phyid()
379 if (phy_reg != 0 && phy_reg != 0xFFFF) in sr_get_phyid()
384 if (phy_reg <= 0 || phy_reg == 0xFFFF) in sr_get_phyid()
387 phy_id = (phy_reg & 0xffff) << 16; in sr_get_phyid()
389 phy_reg = sr_mdio_read(dev->net, dev->mii.phy_id, MII_PHYSID2); in sr_get_phyid()
390 if (phy_reg < 0) in sr_get_phyid()
393 phy_id |= (phy_reg & 0xffff); in sr_get_phyid()
A Dasix_devices.c72 int phy_reg; in asix_get_phyid() local
78 phy_reg = asix_mdio_read(dev->net, dev->mii.phy_id, MII_PHYSID1); in asix_get_phyid()
79 if (phy_reg < 0) in asix_get_phyid()
81 if (phy_reg != 0 && phy_reg != 0xFFFF) in asix_get_phyid()
86 if (phy_reg <= 0 || phy_reg == 0xFFFF) in asix_get_phyid()
89 phy_id = (phy_reg & 0xffff) << 16; in asix_get_phyid()
91 phy_reg = asix_mdio_read(dev->net, dev->mii.phy_id, MII_PHYSID2); in asix_get_phyid()
92 if (phy_reg < 0) in asix_get_phyid()
95 phy_id |= (phy_reg & 0xffff); in asix_get_phyid()
/linux-6.3-rc2/drivers/net/ethernet/ti/
A Ddavinci_mdio.c409 static int davinci_mdio_read(struct mii_bus *bus, int phy_id, int phy_reg) in davinci_mdio_read() argument
415 if (phy_reg & ~PHY_REG_MASK || phy_id & ~PHY_ID_MASK) in davinci_mdio_read()
422 reg = (USERACCESS_GO | USERACCESS_READ | (phy_reg << 21) | in davinci_mdio_read()
451 int phy_reg, u16 phy_data) in davinci_mdio_write() argument
457 if (phy_reg & ~PHY_REG_MASK || phy_id & ~PHY_ID_MASK) in davinci_mdio_write()
464 reg = (USERACCESS_GO | USERACCESS_WRITE | (phy_reg << 21) | in davinci_mdio_write()
/linux-6.3-rc2/drivers/net/ieee802154/
A Dmcr20a.c1083 unsigned int phy_reg = 0; in mcr20a_phy_init() local
1165 phy_reg = (u8)(((index & DAR_SRC_CTRL_INDEX) << in mcr20a_phy_init()
1169 ret = regmap_write(lp->regmap_dar, DAR_SRC_CTRL, phy_reg); in mcr20a_phy_init()
1172 phy_reg = 0; in mcr20a_phy_init()
1176 ret = regmap_read(lp->regmap_iar, IAR_DUAL_PAN_CTRL, &phy_reg); in mcr20a_phy_init()
1181 phy_reg &= ~IAR_DUAL_PAN_CTRL_DUAL_PAN_SAM_LVL_MSK; in mcr20a_phy_init()
1184 phy_reg |= MCR20A_PHY_INDIRECT_QUEUE_SIZE << in mcr20a_phy_init()
1186 ret = regmap_write(lp->regmap_iar, IAR_DUAL_PAN_CTRL, phy_reg); in mcr20a_phy_init()
/linux-6.3-rc2/drivers/net/ethernet/
A Dlantiq_etop.c323 ltq_etop_mdio_wr(struct mii_bus *bus, int phy_addr, int phy_reg, u16 phy_data) in ltq_etop_mdio_wr() argument
327 ((phy_reg & MDIO_REG_MASK) << MDIO_REG_OFFSET) | in ltq_etop_mdio_wr()
337 ltq_etop_mdio_rd(struct mii_bus *bus, int phy_addr, int phy_reg) in ltq_etop_mdio_rd() argument
341 ((phy_reg & MDIO_REG_MASK) << MDIO_REG_OFFSET); in ltq_etop_mdio_rd()
/linux-6.3-rc2/drivers/pinctrl/ti/
A Dpinctrl-ti-iodelay.c749 u32 phy_reg; in ti_iodelay_alloc_pins() local
762 phy_reg = r->reg_start_offset + base_phy; in ti_iodelay_alloc_pins()
764 for (i = 0; i < nr_pins; i++, phy_reg += 4) { in ti_iodelay_alloc_pins()
/linux-6.3-rc2/drivers/net/dsa/
A Drzn1_a5psw.c778 static int a5psw_mdio_read(struct mii_bus *bus, int phy_id, int phy_reg) in a5psw_mdio_read() argument
785 cmd |= FIELD_PREP(A5PSW_MDIO_COMMAND_REG_ADDR, phy_reg); in a5psw_mdio_read()
803 static int a5psw_mdio_write(struct mii_bus *bus, int phy_id, int phy_reg, in a5psw_mdio_write() argument
809 cmd = FIELD_PREP(A5PSW_MDIO_COMMAND_REG_ADDR, phy_reg); in a5psw_mdio_write()
/linux-6.3-rc2/drivers/net/ethernet/mediatek/
A Dmtk_eth_soc.c236 PHY_IAC_REG(phy_reg) | in _mtk_mdio_write_c22()
249 u32 devad, u32 phy_reg, u32 write_data) in _mtk_mdio_write_c45() argument
262 PHY_IAC_DATA(phy_reg), in _mtk_mdio_write_c45()
295 PHY_IAC_REG(phy_reg) | in _mtk_mdio_read_c22()
307 u32 devad, u32 phy_reg) in _mtk_mdio_read_c45() argument
320 PHY_IAC_DATA(phy_reg), in _mtk_mdio_read_c45()
342 int phy_reg, u16 val) in mtk_mdio_write_c22() argument
346 return _mtk_mdio_write_c22(eth, phy_addr, phy_reg, val); in mtk_mdio_write_c22()
350 int devad, int phy_reg, u16 val) in mtk_mdio_write_c45() argument
361 return _mtk_mdio_read_c22(eth, phy_addr, phy_reg); in mtk_mdio_read_c22()
[all …]
/linux-6.3-rc2/drivers/phy/rockchip/
A Dphy-rockchip-typec.c389 struct phy_reg { struct
394 static struct phy_reg usb3_pll_cfg[] = { argument
411 static struct phy_reg dp_pll_cfg[] = {
/linux-6.3-rc2/Documentation/devicetree/bindings/pci/
A Dsnps,dw-pcie-common.yaml112 const: phy_reg
127 - description: See nativs 'phy_reg' clock for details

Completed in 115 milliseconds

12