Lines Matching full:device

12 #include <zephyr/device.h>
19 * @brief Locks device access
21 * @param[in] dev ADIN2111 device.
22 * @param timeout Waiting period to lock the device,
26 * @retval 0 Device locked.
30 int eth_adin2111_lock(const struct device *dev, k_timeout_t timeout);
33 * @brief Unlocks device access
35 * @param[in] dev ADIN2111 device.
37 * @retval 0 Device unlocked.
38 * @retval -EPERM The current thread does not own the device lock.
39 * @retval -EINVAL The device is not locked.
41 int eth_adin2111_unlock(const struct device *dev);
46 * @note The caller is responsible for device lock.
49 * @param[in] dev ADIN2111 device.
56 int eth_adin2111_reg_write(const struct device *dev, const uint16_t reg, uint32_t val);
61 * @note The caller is responsible for device lock.
64 * @param[in] dev ADIN2111 device.
71 int eth_adin2111_reg_read(const struct device *dev, const uint16_t reg, uint32_t *val);
76 * @note The caller is responsible for device lock.
79 * @param[in] dev ADIN2111 device.
87 int eth_adin2111_reg_update(const struct device *dev, const uint16_t reg,
93 * @param[in] dev ADIN2111 device.
96 * @note The caller is responsible for device lock.
102 int eth_adin2111_sw_reset(const struct device *dev, uint16_t delay);
105 * @brief Reset the MAC device. Note that PHY 1 must be out of software power-down for the MAC
108 * @note The caller is responsible for device lock.
111 * @param[in] dev ADIN2111 device.
116 int eth_adin2111_mac_reset(const struct device *dev);
122 * @note The caller is responsible for device lock.
125 * @param[in] dev ADIN2111 device.
131 int eth_adin2111_broadcast_filter(const struct device *dev, bool enable);
136 * @param[in] dev ADIN2111 device.
141 struct net_if *eth_adin2111_get_iface(const struct device *dev, const uint16_t port_idx);