Home
last modified time | relevance | path

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

/Zephyr-Core-3.7.0/include/zephyr/drivers/
Dmdio.h44 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/
Dmdio_sam.c42 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()
Dmdio_adin2111.c59 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()
Dmdio_esp32.c33 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()
Dmdio_nxp_s32_gmac.c39 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()
Dmdio_nxp_s32_netc.c27 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()
Dmdio_stm32_hal.c34 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()
Dmdio_nxp_enet.c68 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()