Lines Matching +full:tri +full:- +full:state

8  * Copyright (c) 2021 IP-Logix Inc.
11 * SPDX-License-Identifier: Apache-2.0
74 (const struct mdio_driver_api *)dev->api; in z_impl_mdio_bus_enable()
76 if (api->bus_enable != NULL) { in z_impl_mdio_bus_enable()
77 api->bus_enable(dev); in z_impl_mdio_bus_enable()
82 * @brief Disable MDIO bus and tri-state drivers
92 (const struct mdio_driver_api *)dev->api; in z_impl_mdio_bus_disable()
94 if (api->bus_disable != NULL) { in z_impl_mdio_bus_disable()
95 api->bus_disable(dev); in z_impl_mdio_bus_disable()
111 * @retval -EIO General input / output error.
112 * @retval -ETIMEDOUT If transaction timedout on the bus
113 * @retval -ENOSYS if read is not supported
122 (const struct mdio_driver_api *)dev->api; in z_impl_mdio_read()
124 if (api->read == NULL) { in z_impl_mdio_read()
125 return -ENOSYS; in z_impl_mdio_read()
128 return api->read(dev, prtad, regad, data); in z_impl_mdio_read()
144 * @retval -EIO General input / output error.
145 * @retval -ETIMEDOUT If transaction timedout on the bus
146 * @retval -ENOSYS if write is not supported
155 (const struct mdio_driver_api *)dev->api; in z_impl_mdio_write()
157 if (api->write == NULL) { in z_impl_mdio_write()
158 return -ENOSYS; in z_impl_mdio_write()
161 return api->write(dev, prtad, regad, data); in z_impl_mdio_write()
177 * @retval -EIO General input / output error.
178 * @retval -ETIMEDOUT If transaction timedout on the bus
179 * @retval -ENOSYS if write using Clause 45 access is not supported
189 (const struct mdio_driver_api *)dev->api; in z_impl_mdio_read_c45()
191 if (api->read_c45 == NULL) { in z_impl_mdio_read_c45()
192 return -ENOSYS; in z_impl_mdio_read_c45()
195 return api->read_c45(dev, prtad, devad, regad, data); in z_impl_mdio_read_c45()
211 * @retval -EIO General input / output error.
212 * @retval -ETIMEDOUT If transaction timedout on the bus
213 * @retval -ENOSYS if write using Clause 45 access is not supported
223 (const struct mdio_driver_api *)dev->api; in z_impl_mdio_write_c45()
225 if (api->write_c45 == NULL) { in z_impl_mdio_write_c45()
226 return -ENOSYS; in z_impl_mdio_write_c45()
229 return api->write_c45(dev, prtad, devad, regad, data); in z_impl_mdio_write_c45()