Lines Matching +full:half +full:- +full:bit

8  * Copyright (c) 2021 IP-Logix Inc.
11 * SPDX-License-Identifier: Apache-2.0
33 /** 10Base-T Half-Duplex */
34 LINK_HALF_10BASE_T = BIT(0),
35 /** 10Base-T Full-Duplex */
36 LINK_FULL_10BASE_T = BIT(1),
37 /** 100Base-T Half-Duplex */
38 LINK_HALF_100BASE_T = BIT(2),
39 /** 100Base-T Full-Duplex */
40 LINK_FULL_100BASE_T = BIT(3),
41 /** 1000Base-T Half-Duplex */
42 LINK_HALF_1000BASE_T = BIT(4),
43 /** 1000Base-T Full-Duplex */
44 LINK_FULL_1000BASE_T = BIT(5),
45 /** 2.5GBase-T Full-Duplex */
46 LINK_FULL_2500BASE_T = BIT(6),
47 /** 5GBase-T Full-Duplex */
48 LINK_FULL_5000BASE_T = BIT(7),
58 #define PHY_LINK_IS_FULL_DUPLEX(x) (x & (BIT(1) | BIT(3) | BIT(5) | BIT(6) | BIT(7)))
67 #define PHY_LINK_IS_SPEED_1000M(x) (x & (BIT(4) | BIT(5)))
76 #define PHY_LINK_IS_SPEED_100M(x) (x & (BIT(2) | BIT(3)))
139 * @retval -EIO If communication with PHY failed.
140 * @retval -ENOTSUP If not supported.
146 (const struct ethphy_driver_api *)dev->api; in phy_configure_link()
148 return api->cfg_link(dev, speeds); in phy_configure_link()
162 * @retval -EIO If communication with PHY failed.
168 (const struct ethphy_driver_api *)dev->api; in phy_get_link_state()
170 return api->get_link(dev, state); in phy_get_link_state()
185 * @retval -ENOTSUP If not supported.
192 (const struct ethphy_driver_api *)dev->api; in phy_link_callback_set()
194 return api->link_cb_set(dev, callback, user_data); in phy_link_callback_set()
207 * @retval -EIO If communication with PHY failed.
213 (const struct ethphy_driver_api *)dev->api; in phy_read()
215 return api->read(dev, reg_addr, value); in phy_read()
228 * @retval -EIO If communication with PHY failed.
234 (const struct ethphy_driver_api *)dev->api; in phy_write()
236 return api->write(dev, reg_addr, value); in phy_write()