Searched refs:regad (Results 1 – 2 of 2) sorted by relevance
/kernel/linux/linux-5.10/drivers/pci/controller/ |
D | pcie-brcmstb.c | 310 static u32 brcm_pcie_mdio_form_pkt(int port, int regad, int cmd) in brcm_pcie_mdio_form_pkt() argument 315 pkt |= FIELD_PREP(MDIO_REGAD_MASK, regad); in brcm_pcie_mdio_form_pkt() 322 static int brcm_pcie_mdio_read(void __iomem *base, u8 port, u8 regad, u32 *val) in brcm_pcie_mdio_read() argument 327 writel(brcm_pcie_mdio_form_pkt(port, regad, MDIO_CMD_READ), in brcm_pcie_mdio_read() 343 u8 regad, u16 wrdata) in brcm_pcie_mdio_write() argument 348 writel(brcm_pcie_mdio_form_pkt(port, regad, MDIO_CMD_WRITE), in brcm_pcie_mdio_write()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/ |
D | fealnx.c | 696 static ulong m80x_send_cmd_to_phy(void __iomem *miiport, int opcode, int phyad, int regad) in m80x_send_cmd_to_phy() argument 720 data = opcode | (phyad << 7) | (regad << 2); in m80x_send_cmd_to_phy() 745 static int mdio_read(struct net_device *dev, int phyad, int regad) in mdio_read() argument 752 miir = m80x_send_cmd_to_phy(miiport, OP_READ, phyad, regad); in mdio_read() 784 static void mdio_write(struct net_device *dev, int phyad, int regad, int data) in mdio_write() argument 791 miir = m80x_send_cmd_to_phy(miiport, OP_WRITE, phyad, regad); in mdio_write()
|