Lines Matching refs:mdio
47 static int do_transaction(struct mdio_transaction *mdio) in do_transaction() argument
49 enet_qos_t *base = mdio->base; in do_transaction()
53 k_mutex_lock(mdio->mdio_bus_mutex, K_FOREVER); in do_transaction()
55 if (mdio->op == MDIO_OP_C22_WRITE) { in do_transaction()
58 ENET_QOS_REG_PREP(MAC_MDIO_DATA, GD, mdio->write_data); in do_transaction()
60 } else if (mdio->op == MDIO_OP_C22_READ) { in do_transaction()
72 ENET_QOS_REG_PREP(MAC_MDIO_ADDRESS, PA, mdio->portaddr) | in do_transaction()
74 ENET_QOS_REG_PREP(MAC_MDIO_ADDRESS, RDA, mdio->regaddr); in do_transaction()
95 if (mdio->op == MDIO_OP_C22_READ) { in do_transaction()
96 uint32_t val = mdio->base->MAC_MDIO_DATA; in do_transaction()
98 *mdio->read_data = in do_transaction()
104 k_mutex_unlock(mdio->mdio_bus_mutex); in do_transaction()
147 static DEVICE_API(mdio, nxp_enet_qos_mdio_api) = {