Lines Matching defs:eth_context
161 struct eth_context { struct
162 ENET_Type *base;
163 void (*config_func)(void);
164 struct net_if *iface;
166 clock_ip_name_t clock;
167 const struct device *clock_dev;
169 enet_handle_t enet_handle;
171 const struct device *ptp_clock;
172 enet_ptp_config_t ptp_config;
173 double clk_ratio;
174 struct k_mutex ptp_mutex;
175 struct k_sem ptp_ts_sem;
177 struct k_sem tx_buf_sem;
178 phy_handle_t *phy_handle;
179 struct _phy_resource *phy_config;
180 struct k_sem rx_thread_sem;
181 enum eth_mcux_phy_state phy_state;
182 bool enabled;
183 bool link_up;
184 uint32_t phy_addr;
185 uint32_t rx_irq_num;
186 uint32_t tx_irq_num;
187 phy_duplex_t phy_duplex;
188 phy_speed_t phy_speed;
189 uint8_t mac_addr[6];
190 void (*generate_mac)(uint8_t *);
191 struct k_work phy_work;
192 struct k_work_delayable delayed_phy_work;
195 struct k_thread rx_thread;
212 struct k_mutex tx_frame_buf_mutex;
213 struct k_mutex rx_frame_buf_mutex;
214 uint8_t *tx_frame_buf; /* Max MTU + ethernet header */
215 uint8_t *rx_frame_buf; /* Max MTU + ethernet header */
217 const struct pinctrl_dev_config *pincfg;
241 static void eth_mcux_phy_enter_reset(struct eth_context *context); argument
1586 struct eth_context *eth_context; member