Home
last modified time | relevance | path

Searched refs:devad (Results 1 – 8 of 8) sorted by relevance

/Zephyr-Core-3.7.0/include/zephyr/drivers/
Dmdio.h52 int (*read_c45)(const struct device *dev, uint8_t prtad, uint8_t devad,
56 int (*write_c45)(const struct device *dev, uint8_t prtad, uint8_t devad,
182 uint8_t devad, uint16_t regad, uint16_t *data);
185 uint8_t devad, uint16_t regad, in z_impl_mdio_read_c45() argument
195 return api->read_c45(dev, prtad, devad, regad, data); in z_impl_mdio_read_c45()
216 uint8_t devad, uint16_t regad, uint16_t data);
219 uint8_t devad, uint16_t regad, in z_impl_mdio_write_c45() argument
229 return api->write_c45(dev, prtad, devad, regad, data); in z_impl_mdio_write_c45()
/Zephyr-Core-3.7.0/drivers/mdio/
Dmdio_gpio.c76 static int mdio_gpio_transfer(const struct device *dev, uint8_t prtad, uint8_t devad, uint8_t rw, in mdio_gpio_transfer() argument
95 mdio_gpio_write(dev_cfg, devad, 5); in mdio_gpio_transfer()
115 static int mdio_gpio_read_mmi(const struct device *dev, uint8_t prtad, uint8_t devad, in mdio_gpio_read_mmi() argument
118 return mdio_gpio_transfer(dev, prtad, devad, MDIO_GPIO_READ_OP, 0, data); in mdio_gpio_read_mmi()
121 static int mdio_gpio_write_mmi(const struct device *dev, uint8_t prtad, uint8_t devad, in mdio_gpio_write_mmi() argument
124 return mdio_gpio_transfer(dev, prtad, devad, MDIO_GPIO_WRITE_OP, data, NULL); in mdio_gpio_write_mmi()
Dmdio_sam.c96 uint8_t devad, uint16_t regad, uint16_t *data) in mdio_sam_read_c45() argument
100 err = mdio_transfer(dev, prtad, devad, MDIO_OP_C45_ADDRESS, true, in mdio_sam_read_c45()
103 err = mdio_transfer(dev, prtad, devad, MDIO_OP_C45_READ, true, in mdio_sam_read_c45()
111 uint8_t devad, uint16_t regad, uint16_t data) in mdio_sam_write_c45() argument
115 err = mdio_transfer(dev, prtad, devad, MDIO_OP_C45_ADDRESS, true, in mdio_sam_write_c45()
118 err = mdio_transfer(dev, prtad, devad, MDIO_OP_C45_WRITE, true, in mdio_sam_write_c45()
Dmdio_adin2111.c59 uint8_t devad, uint16_t regad, in mdio_adin2111_read_c45() argument
69 cmd |= (devad & 0x1FU) << 16; in mdio_adin2111_read_c45()
99 uint8_t devad, uint16_t regad, in mdio_adin2111_write_c45() argument
110 cmd |= (devad & 0x1FU) << 16; in mdio_adin2111_write_c45()
Dmdio_nxp_s32_gmac.c38 static int mdio_nxp_s32_read_c45(const struct device *dev, uint8_t prtad, uint8_t devad, in mdio_nxp_s32_read_c45() argument
50 status = Gmac_Ip_MDIOReadMMD(cfg->instance, prtad, devad, regad, regval, in mdio_nxp_s32_read_c45()
58 static int mdio_nxp_s32_write_c45(const struct device *dev, uint8_t prtad, uint8_t devad, in mdio_nxp_s32_write_c45() argument
70 status = Gmac_Ip_MDIOWriteMMD(cfg->instance, prtad, devad, regad, regval, in mdio_nxp_s32_write_c45()
/Zephyr-Core-3.7.0/drivers/ethernet/phy/
Dphy_adin2111.c131 static int phy_adin2111_c45_setup_dev_reg(const struct device *dev, uint16_t devad, in phy_adin2111_c45_setup_dev_reg() argument
137 rval = mdio_write(cfg->mdio, cfg->phy_addr, ADIN1100_MMD_ACCESS_CNTRL, devad); in phy_adin2111_c45_setup_dev_reg()
146 return mdio_write(cfg->mdio, cfg->phy_addr, ADIN1100_MMD_ACCESS_CNTRL, devad | BIT(14)); in phy_adin2111_c45_setup_dev_reg()
149 static int phy_adin2111_c45_read(const struct device *dev, uint16_t devad, in phy_adin2111_c45_read() argument
157 rval = phy_adin2111_c45_setup_dev_reg(dev, devad, reg); in phy_adin2111_c45_read()
165 return mdio_read_c45(cfg->mdio, cfg->phy_addr, devad, reg, val); in phy_adin2111_c45_read()
168 static int phy_adin2111_c45_write(const struct device *dev, uint16_t devad, in phy_adin2111_c45_write() argument
176 rval = phy_adin2111_c45_setup_dev_reg(dev, devad, reg); in phy_adin2111_c45_write()
184 return mdio_write_c45(cfg->mdio, cfg->phy_addr, devad, reg, val); in phy_adin2111_c45_write()
Dphy_tja1103.c93 static inline int phy_tja1103_c45_write(const struct device *dev, uint16_t devad, uint16_t reg, in phy_tja1103_c45_write() argument
98 return mdio_write_c45(cfg->mdio, cfg->phy_addr, devad, reg, val); in phy_tja1103_c45_write()
101 static inline int phy_tja1103_c45_read(const struct device *dev, uint16_t devad, uint16_t reg, in phy_tja1103_c45_read() argument
106 return mdio_read_c45(cfg->mdio, cfg->phy_addr, devad, reg, val); in phy_tja1103_c45_read()
/Zephyr-Core-3.7.0/drivers/ethernet/
Deth_smsc91x.c858 static int mdio_smsc_read(const struct device *dev, uint8_t prtad, uint8_t devad, uint16_t *data) in mdio_smsc_read() argument
865 *data = smsc_miibus_readreg(sc, prtad, devad); in mdio_smsc_read()
870 static int mdio_smsc_write(const struct device *dev, uint8_t prtad, uint8_t devad, uint16_t data) in mdio_smsc_write() argument
877 smsc_miibus_writereg(sc, prtad, devad, data); in mdio_smsc_write()