/Zephyr-Core-3.7.0/include/zephyr/drivers/ |
D | mdio.h | 44 int (*read)(const struct device *dev, uint8_t prtad, uint8_t regad, 48 int (*write)(const struct device *dev, uint8_t prtad, uint8_t regad, 53 uint16_t regad, uint16_t *data); 57 uint16_t regad, uint16_t data); 115 __syscall int mdio_read(const struct device *dev, uint8_t prtad, uint8_t regad, 119 uint8_t regad, uint16_t *data) in z_impl_mdio_read() argument 128 return api->read(dev, prtad, regad, data); in z_impl_mdio_read() 148 __syscall int mdio_write(const struct device *dev, uint8_t prtad, uint8_t regad, 152 uint8_t regad, uint16_t data) in z_impl_mdio_write() argument 161 return api->write(dev, prtad, regad, data); in z_impl_mdio_write() [all …]
|
/Zephyr-Core-3.7.0/drivers/mdio/ |
D | mdio_sam.c | 42 static int mdio_transfer(const struct device *dev, uint8_t prtad, uint8_t regad, in mdio_transfer() argument 57 | GMAC_MAN_REGA(regad) in mdio_transfer() 81 static int mdio_sam_read(const struct device *dev, uint8_t prtad, uint8_t regad, in mdio_sam_read() argument 84 return mdio_transfer(dev, prtad, regad, MDIO_OP_C22_READ, false, in mdio_sam_read() 89 uint8_t regad, uint16_t data) in mdio_sam_write() argument 91 return mdio_transfer(dev, prtad, regad, MDIO_OP_C22_WRITE, false, in mdio_sam_write() 96 uint8_t devad, uint16_t regad, uint16_t *data) in mdio_sam_read_c45() argument 101 regad, NULL); in mdio_sam_read_c45() 111 uint8_t devad, uint16_t regad, uint16_t data) in mdio_sam_write_c45() argument 116 regad, NULL); in mdio_sam_write_c45()
|
D | mdio_adin2111.c | 59 uint8_t devad, uint16_t regad, in mdio_adin2111_read_c45() argument 70 cmd |= regad; in mdio_adin2111_read_c45() 99 uint8_t devad, uint16_t regad, in mdio_adin2111_write_c45() argument 111 cmd |= regad; in mdio_adin2111_write_c45() 133 uint8_t regad, uint16_t *data) in mdio_adin2111_read() argument 143 cmd |= (regad & 0x1FU) << 16; in mdio_adin2111_read() 155 uint8_t regad, uint16_t data) in mdio_adin2111_write() argument 165 cmd |= (regad & 0x1FU) << 16; in mdio_adin2111_write()
|
D | mdio_esp32.c | 33 static int mdio_transfer(const struct device *dev, uint8_t prtad, uint8_t regad, in mdio_transfer() argument 49 emac_hal_set_phy_cmd(&dev_data->hal, prtad, regad, write); in mdio_transfer() 76 static int mdio_esp32_read(const struct device *dev, uint8_t prtad, uint8_t regad, in mdio_esp32_read() argument 79 return mdio_transfer(dev, prtad, regad, false, 0, data); in mdio_esp32_read() 84 uint8_t regad, uint16_t data) in mdio_esp32_write() argument 86 return mdio_transfer(dev, prtad, regad, true, data, NULL); in mdio_esp32_write()
|
D | mdio_nxp_s32_gmac.c | 39 uint16_t regad, uint16_t *regval) in mdio_nxp_s32_read_c45() argument 50 status = Gmac_Ip_MDIOReadMMD(cfg->instance, prtad, devad, regad, regval, in mdio_nxp_s32_read_c45() 59 uint16_t regad, uint16_t regval) in mdio_nxp_s32_write_c45() argument 70 status = Gmac_Ip_MDIOWriteMMD(cfg->instance, prtad, devad, regad, regval, in mdio_nxp_s32_write_c45() 79 uint8_t regad, uint16_t *regval) in mdio_nxp_s32_read_c22() argument 90 status = Gmac_Ip_MDIORead(cfg->instance, prtad, regad, regval, in mdio_nxp_s32_read_c22() 99 uint8_t regad, uint16_t regval) in mdio_nxp_s32_write_c22() argument 110 status = Gmac_Ip_MDIOWrite(cfg->instance, prtad, regad, regval, in mdio_nxp_s32_write_c22()
|
D | mdio_nxp_s32_netc.c | 27 uint8_t regad, uint16_t *regval) in nxp_s32_mdio_read() argument 34 status = Netc_EthSwt_Ip_ReadTrcvRegister(cfg->instance, prtad, regad, regval); in nxp_s32_mdio_read() 41 uint8_t regad, uint16_t regval) in nxp_s32_mdio_write() argument 48 status = Netc_EthSwt_Ip_WriteTrcvRegister(cfg->instance, prtad, regad, regval); in nxp_s32_mdio_write()
|
D | mdio_stm32_hal.c | 34 uint8_t regad, uint16_t *data) in mdio_stm32_read() argument 43 ret = HAL_ETH_ReadPHYRegister(heth, prtad, regad, &read); in mdio_stm32_read() 57 uint8_t regad, uint16_t data) in mdio_stm32_write() argument 65 ret = HAL_ETH_WritePHYRegister(heth, prtad, regad, data); in mdio_stm32_write()
|
D | mdio_nxp_enet.c | 68 uint8_t prtad, uint8_t regad, uint16_t *read_data) in nxp_enet_mdio_read() argument 95 ENET_MMFR_RA(regad) | in nxp_enet_mdio_read() 118 uint8_t prtad, uint8_t regad, uint16_t write_data) in nxp_enet_mdio_write() argument 145 ENET_MMFR_RA(regad) | in nxp_enet_mdio_write()
|