Searched refs:regad (Results 1 – 3 of 3) sorted by relevance
/drivers/net/mdio/ |
D | mdio-aspeed.c | 48 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()
|
/drivers/pci/controller/ |
D | pcie-brcmstb.c | 291 static u32 brcm_pcie_mdio_form_pkt(int port, int regad, int cmd) in brcm_pcie_mdio_form_pkt() argument 296 pkt |= FIELD_PREP(MDIO_REGAD_MASK, regad); in brcm_pcie_mdio_form_pkt() 303 static int brcm_pcie_mdio_read(void __iomem *base, u8 port, u8 regad, u32 *val) in brcm_pcie_mdio_read() argument 308 writel(brcm_pcie_mdio_form_pkt(port, regad, MDIO_CMD_READ), in brcm_pcie_mdio_read() 324 u8 regad, u16 wrdata) in brcm_pcie_mdio_write() argument 329 writel(brcm_pcie_mdio_form_pkt(port, regad, MDIO_CMD_WRITE), in brcm_pcie_mdio_write()
|
/drivers/net/ethernet/ |
D | fealnx.c | 698 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()
|