Home
last modified time | relevance | path

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

/Zephyr-latest/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-latest/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_litex_liteeth.c98 static int mdio_litex_transfer(const struct device *dev, uint8_t prtad, uint8_t devad, uint8_t rw, in mdio_litex_transfer() argument
116 mdio_litex_write(dev_cfg, devad, 5); in mdio_litex_transfer()
134 static int mdio_litex_read_mmi(const struct device *dev, uint8_t prtad, uint8_t devad, in mdio_litex_read_mmi() argument
137 return mdio_litex_transfer(dev, prtad, devad, LITEX_MDIO_READ_OP, 0, data); in mdio_litex_read_mmi()
140 static int mdio_litex_write_mmi(const struct device *dev, uint8_t prtad, uint8_t devad, in mdio_litex_write_mmi() argument
143 return mdio_litex_transfer(dev, prtad, devad, LITEX_MDIO_WRITE_OP, data, NULL); in mdio_litex_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()
Dmdio_dwcxgmac.c86 static int mdio_transfer(const struct device *dev, uint8_t prtad, uint8_t devad, uint8_t rw, in mdio_transfer() argument
113 mdio_addr = CORE_MDIO_SINGLE_COMMAND_ADDRESS_RA_SET(devad) | in mdio_transfer()
/Zephyr-latest/drivers/ethernet/phy/
Dphy_adin2111.c125 static int phy_adin2111_c45_setup_dev_reg(const struct device *dev, uint16_t devad, in phy_adin2111_c45_setup_dev_reg() argument
131 rval = mdio_write(cfg->mdio, cfg->phy_addr, ADIN1100_MMD_ACCESS_CNTRL, devad); in phy_adin2111_c45_setup_dev_reg()
140 return mdio_write(cfg->mdio, cfg->phy_addr, ADIN1100_MMD_ACCESS_CNTRL, devad | BIT(14)); in phy_adin2111_c45_setup_dev_reg()
143 static int phy_adin2111_c45_read(const struct device *dev, uint16_t devad, in phy_adin2111_c45_read() argument
151 rval = phy_adin2111_c45_setup_dev_reg(dev, devad, reg); in phy_adin2111_c45_read()
159 return mdio_read_c45(cfg->mdio, cfg->phy_addr, devad, reg, val); in phy_adin2111_c45_read()
162 static int phy_adin2111_c45_write(const struct device *dev, uint16_t devad, in phy_adin2111_c45_write() argument
170 rval = phy_adin2111_c45_setup_dev_reg(dev, devad, reg); in phy_adin2111_c45_write()
178 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-latest/drivers/ethernet/
Deth_smsc91x.c859 static int mdio_smsc_read(const struct device *dev, uint8_t prtad, uint8_t devad, uint16_t *data) in mdio_smsc_read() argument
866 *data = smsc_miibus_readreg(sc, prtad, devad); in mdio_smsc_read()
871 static int mdio_smsc_write(const struct device *dev, uint8_t prtad, uint8_t devad, uint16_t data) in mdio_smsc_write() argument
878 smsc_miibus_writereg(sc, prtad, devad, data); in mdio_smsc_write()