Home
last modified time | relevance | path

Searched refs:eth_ctx (Results 1 – 13 of 13) sorted by relevance

/Zephyr-Core-3.6.0/tests/net/vlan/src/
Dmain.c516 struct ethernet_context *eth_ctx; in test_vlan_enable() local
525 eth_ctx = net_if_l2_data(eth_interfaces[0]); in test_vlan_enable()
537 ret = net_eth_is_vlan_enabled(eth_ctx, eth_interfaces[0]); in test_vlan_enable()
540 ret = net_eth_is_vlan_enabled(eth_ctx, eth_interfaces[1]); in test_vlan_enable()
543 ret = net_eth_is_vlan_enabled(eth_ctx, eth_interfaces[2]); in test_vlan_enable()
546 ret = net_eth_is_vlan_enabled(eth_ctx, eth_interfaces[3]); in test_vlan_enable()
561 struct ethernet_context *eth_ctx; in test_vlan_disable() local
570 eth_ctx = net_if_l2_data(eth_interfaces[0]); in test_vlan_disable()
582 ret = net_eth_is_vlan_enabled(eth_ctx, eth_interfaces[0]); in test_vlan_disable()
585 ret = net_eth_is_vlan_enabled(eth_ctx, eth_interfaces[1]); in test_vlan_disable()
[all …]
/Zephyr-Core-3.6.0/subsys/net/l2/ethernet/dsa/
Ddsa.c188 struct ethernet_context *eth_ctx; in dsa_get_slave_port() local
191 eth_ctx = net_if_l2_data(iface); in dsa_get_slave_port()
192 if (eth_ctx == NULL) { in dsa_get_slave_port()
197 dsa_ctx = eth_ctx->dsa_ctx; in dsa_get_slave_port()
/Zephyr-Core-3.6.0/tests/net/ptp/clock/src/
Dmain.c190 struct eth_context *eth_ctx = ptp_ctx->eth_context; in my_ptp_clock_set() local
192 if (&eth_context_3 != eth_ctx && &eth_context_2 != eth_ctx) { in my_ptp_clock_set()
196 memcpy(&eth_ctx->time, tm, sizeof(struct net_ptp_time)); in my_ptp_clock_set()
204 struct eth_context *eth_ctx = ptp_ctx->eth_context; in my_ptp_clock_get() local
206 memcpy(tm, &eth_ctx->time, sizeof(struct net_ptp_time)); in my_ptp_clock_get()
214 struct eth_context *eth_ctx = ptp_ctx->eth_context; in my_ptp_clock_adjust() local
216 eth_ctx->time.nanosecond += increment; in my_ptp_clock_adjust()
/Zephyr-Core-3.6.0/subsys/net/lib/shell/
Diface.c141 struct ethernet_context *eth_ctx; in iface_cb() local
290 eth_ctx = net_if_l2_data(iface); in iface_cb()
292 if (eth_ctx->vlan_enabled) { in iface_cb()
294 if (eth_ctx->vlan[i].iface != iface || in iface_cb()
295 eth_ctx->vlan[i].tag == in iface_cb()
301 eth_ctx->vlan[i].tag, in iface_cb()
302 eth_ctx->vlan[i].tag); in iface_cb()
Dnet_shell.c147 struct ethernet_context *eth_ctx = net_if_l2_data(iface); in iface2str() local
149 if (eth_ctx->eth_if_type == L2_ETH_IF_TYPE_WIFI) { in iface2str()
/Zephyr-Core-3.6.0/tests/net/wifi/wifi_nm/src/
Dmain.c50 struct ethernet_context *eth_ctx = net_if_l2_data(iface); in wifi_iface_init() local
56 eth_ctx->eth_if_type = L2_ETH_IF_TYPE_WIFI; in wifi_iface_init()
/Zephyr-Core-3.6.0/drivers/ethernet/
Deth_mcux.c251 struct eth_context *eth_ctx = dev->data; in eth_mcux_device_pm_action() local
254 if (!device_is_ready(eth_ctx->clock_dev)) { in eth_mcux_device_pm_action()
265 ret = net_if_suspend(eth_ctx->iface); in eth_mcux_device_pm_action()
270 eth_mcux_phy_enter_reset(eth_ctx); in eth_mcux_device_pm_action()
271 eth_mcux_phy_stop(eth_ctx); in eth_mcux_device_pm_action()
273 ENET_Reset(eth_ctx->base); in eth_mcux_device_pm_action()
274 ENET_Deinit(eth_ctx->base); in eth_mcux_device_pm_action()
275 clock_control_off(eth_ctx->clock_dev, in eth_mcux_device_pm_action()
276 (clock_control_subsys_t)eth_ctx->clock); in eth_mcux_device_pm_action()
281 clock_control_on(eth_ctx->clock_dev, in eth_mcux_device_pm_action()
[all …]
Deth_nxp_enet.c154 struct ethernet_context *eth_ctx = net_if_l2_data(iface); in eth_get_ptp_data() local
157 if (net_eth_is_vlan_enabled(eth_ctx, iface)) { in eth_get_ptp_data()
Deth_sam_gmac.c544 struct ethernet_context *eth_ctx; in check_gptp_msg() local
549 eth_ctx = net_if_l2_data(iface); in check_gptp_msg()
550 if (net_eth_is_vlan_enabled(eth_ctx, iface)) { in check_gptp_msg()
561 ARG_UNUSED(eth_ctx); in check_gptp_msg()
Deth_stm32_hal.c292 struct ethernet_context *eth_ctx; in eth_is_ptp_pkt() local
294 eth_ctx = net_if_l2_data(iface); in eth_is_ptp_pkt()
295 if (net_eth_is_vlan_enabled(eth_ctx, iface)) { in eth_is_ptp_pkt()
/Zephyr-Core-3.6.0/drivers/wifi/esp32/src/
Desp_wifi_drv.c583 struct ethernet_context *eth_ctx = net_if_l2_data(iface); in esp32_wifi_init() local
585 eth_ctx->eth_if_type = L2_ETH_IF_TYPE_WIFI; in esp32_wifi_init()
/Zephyr-Core-3.6.0/drivers/wifi/infineon/
Dairoc_wifi.c399 struct ethernet_context *eth_ctx = net_if_l2_data(iface); in airoc_mgmt_init() local
401 eth_ctx->eth_if_type = L2_ETH_IF_TYPE_WIFI; in airoc_mgmt_init()
/Zephyr-Core-3.6.0/tests/net/checksum_offload/src/
Dmain.c509 struct eth_context *eth_ctx = in iface_cb() local
512 if (eth_ctx == &eth_context_offloading_disabled) { in iface_cb()
517 if (eth_ctx == &eth_context_offloading_enabled) { in iface_cb()