/Zephyr-Core-3.7.0/include/zephyr/drivers/ |
D | mdio.h | 52 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/ |
D | mdio_gpio.c | 76 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()
|
D | mdio_sam.c | 96 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()
|
D | mdio_adin2111.c | 59 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()
|
D | mdio_nxp_s32_gmac.c | 38 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/ |
D | phy_adin2111.c | 131 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()
|
D | phy_tja1103.c | 93 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/ |
D | eth_smsc91x.c | 858 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()
|