Home
last modified time | relevance | path

Searched refs:regad (Results 1 – 4 of 4) sorted by relevance

/openbmc/linux/drivers/net/mdio/
H A Dmdio-aspeed.c48 static int aspeed_mdio_op(struct mii_bus *bus, u8 st, u8 op, u8 phyad, u8 regad, in aspeed_mdio_op() argument
55 __func__, st, op, phyad, regad, data); in aspeed_mdio_op()
61 | FIELD_PREP(ASPEED_MDIO_CTRL_REGAD, regad) in aspeed_mdio_op()
/openbmc/linux/drivers/pci/controller/
H A Dpcie-brcmstb.c294 static u32 brcm_pcie_mdio_form_pkt(int port, int regad, int cmd) in brcm_pcie_mdio_form_pkt() argument
299 pkt |= FIELD_PREP(MDIO_REGAD_MASK, regad); in brcm_pcie_mdio_form_pkt()
306 static int brcm_pcie_mdio_read(void __iomem *base, u8 port, u8 regad, u32 *val) in brcm_pcie_mdio_read() argument
311 writel(brcm_pcie_mdio_form_pkt(port, regad, MDIO_CMD_READ), in brcm_pcie_mdio_read()
323 u8 regad, u16 wrdata) in brcm_pcie_mdio_write() argument
328 writel(brcm_pcie_mdio_form_pkt(port, regad, MDIO_CMD_WRITE), in brcm_pcie_mdio_write()
/openbmc/linux/drivers/net/ethernet/
H A Dfealnx.c698 static ulong m80x_send_cmd_to_phy(void __iomem *miiport, int opcode, int phyad, int regad) in m80x_send_cmd_to_phy() argument
722 data = opcode | (phyad << 7) | (regad << 2); in m80x_send_cmd_to_phy()
747 static int mdio_read(struct net_device *dev, int phyad, int regad) in mdio_read() argument
754 miir = m80x_send_cmd_to_phy(miiport, OP_READ, phyad, regad); in mdio_read()
786 static void mdio_write(struct net_device *dev, int phyad, int regad, int data) in mdio_write() argument
793 miir = m80x_send_cmd_to_phy(miiport, OP_WRITE, phyad, regad); in mdio_write()
/openbmc/linux/drivers/net/ethernet/renesas/
H A Drswitch.c1125 int phyad, int devad, int regad, int data) in rswitch_etha_set_access()
1137 iowrite32((regad << 16) | (devad << 8) | (phyad << 3) | val, etha->addr + MPSM); in rswitch_etha_set_access()
1166 int regad) in rswitch_etha_mii_read_c45()
1170 return rswitch_etha_set_access(etha, true, addr, devad, regad, 0); in rswitch_etha_mii_write_c45()
1174 int regad, u16 val) in rswitch_etha_mii_write_c45()
1178 return rswitch_etha_set_access(etha, false, addr, devad, regad, val); in rswitch_get_port_node()
1120 rswitch_etha_set_access(struct rswitch_etha * etha,bool read,int phyad,int devad,int regad,int data) rswitch_etha_set_access() argument
1161 rswitch_etha_mii_read_c45(struct mii_bus * bus,int addr,int devad,int regad) rswitch_etha_mii_read_c45() argument
1169 rswitch_etha_mii_write_c45(struct mii_bus * bus,int addr,int devad,int regad,u16 val) rswitch_etha_mii_write_c45() argument