Home
last modified time | relevance | path

Searched refs:eth (Results 1 – 25 of 63) sorted by relevance

123

/Zephyr-latest/drivers/ethernet/
Dphy_gecko.c25 static void mdio_bus_enable(ETH_TypeDef *eth) in mdio_bus_enable() argument
27 eth->NETWORKCTRL |= ETH_NETWORKCTRL_MANPORTEN; in mdio_bus_enable()
31 static void mdio_bus_disable(ETH_TypeDef *eth) in mdio_bus_disable() argument
33 eth->NETWORKCTRL &= ~ETH_NETWORKCTRL_MANPORTEN; in mdio_bus_disable()
37 static int mdio_bus_wait(ETH_TypeDef *eth) in mdio_bus_wait() argument
41 while (!(eth->NETWORKSTATUS & ETH_NETWORKSTATUS_MANDONE)) { in mdio_bus_wait()
54 static int mdio_bus_send(ETH_TypeDef *eth, uint8_t phy_addr, uint8_t reg_addr, in mdio_bus_send() argument
60 eth->PHYMNGMNT = ETH_PHYMNGMNT_WRITE0_DEFAULT in mdio_bus_send()
71 retval = mdio_bus_wait(eth); in mdio_bus_send()
83 ETH_TypeDef *const eth = phy->regs; in phy_read() local
[all …]
Deth_gecko.c47 static void link_configure(ETH_TypeDef *eth, uint32_t flags) in link_configure() argument
51 __ASSERT_NO_MSG(eth != NULL); in link_configure()
54 eth->NETWORKCTRL &= ~(ETH_NETWORKCTRL_ENBTX | ETH_NETWORKCTRL_ENBRX); in link_configure()
57 val = eth->NETWORKCFG; in link_configure()
61 eth->NETWORKCFG = val; in link_configure()
64 eth->NETWORKCTRL |= (ETH_NETWORKCTRL_ENBTX | ETH_NETWORKCTRL_ENBRX); in link_configure()
70 ETH_TypeDef *eth = cfg->regs; in eth_gecko_setup_mac() local
87 link_configure(eth, link_status); in eth_gecko_setup_mac()
123 static void rx_error_handler(ETH_TypeDef *eth) in rx_error_handler() argument
125 __ASSERT_NO_MSG(eth != NULL); in rx_error_handler()
[all …]
Deth_nxp_imx_netc_psi.c127 static uint8_t eth##n##_tx_buff[CONFIG_ETH_NXP_IMX_TX_RING_BUF_SIZE], \
130 static netc_tx_bd_t eth##n##_txbd_array[CONFIG_ETH_NXP_IMX_TX_RING_NUM] \
133 static netc_tx_frame_info_t eth##n##_txdirty_array[CONFIG_ETH_NXP_IMX_TX_RING_NUM] \
136 static rx_buffer_t eth##n##_rx_buff[CONFIG_ETH_NXP_IMX_RX_RING_NUM] \
139 static uint64_t eth##n##_rx_buff_addr_array[CONFIG_ETH_NXP_IMX_RX_RING_NUM] \
141 AT_NONCACHEABLE_SECTION(static uint8_t eth##n##_rx_frame[NETC_RX_RING_BUF_SIZE_ALIGN]); \
143 static netc_rx_bd_t eth##n##_rxbd_array[CONFIG_ETH_NXP_IMX_RX_RING_NUM] \
152 eth##n##_rx_buff_addr_array[ring][bd] = \
153 (uint64_t)(uintptr_t)&eth##n##_rx_buff[ring][bd]; \
161 bdr_config->rxBdrConfig[0].bdArray = &eth##n##_rxbd_array[0][0]; \
[all …]
Deth_esp32.c242 DEVICE_DT_GET(DT_CLOCKS_CTLR(DT_NODELABEL(eth))); in eth_esp32_initialize()
244 (clock_control_subsys_t)DT_CLOCKS_CELL(DT_NODELABEL(eth), offset); in eth_esp32_initialize()
264 res = esp_intr_alloc(DT_IRQ_BY_IDX(DT_NODELABEL(eth), 0, irq), in eth_esp32_initialize()
265 ESP_PRIO_TO_FLAGS(DT_IRQ_BY_IDX(DT_NODELABEL(eth), 0, priority)) | in eth_esp32_initialize()
266 ESP_INT_FLAGS_CHECK(DT_IRQ_BY_IDX(DT_NODELABEL(eth), 0, flags)) | in eth_esp32_initialize()
/Zephyr-latest/subsys/net/l2/ethernet/
Dethernet_stats.c25 const struct ethernet_api *eth; in eth_stats_get() local
33 eth = net_if_get_device(iface)->api; in eth_stats_get()
34 if (eth == NULL || eth->get_stats == NULL) { in eth_stats_get()
39 src = eth->get_stats(net_if_get_device(iface)); in eth_stats_get()
Dvlan.c386 const struct ethernet_api *eth = net_if_get_device(iface)->api; in net_eth_vlan_enable() local
390 if (!eth) { in net_eth_vlan_enable()
450 if (eth->vlan_setup) { in net_eth_vlan_enable()
451 eth->vlan_setup(net_if_get_device(iface), in net_eth_vlan_enable()
468 const struct ethernet_api *eth; in net_eth_vlan_disable() local
485 eth = net_if_get_device(vlan->attached_to)->api; in net_eth_vlan_disable()
495 if (eth->vlan_setup) { in net_eth_vlan_disable()
496 eth->vlan_setup(net_if_get_device(vlan->attached_to), in net_eth_vlan_disable()
Darp.h60 struct net_eth_addr eth; member
Darp.c63 (void)memset(&entry->eth, 0, sizeof(struct net_eth_addr)); in arp_entry_cleanup()
456 net_pkt_lladdr_dst(pkt)->addr = (uint8_t *)&entry->eth; in net_arp_prepare()
477 net_sprint_ll_addr((const uint8_t *)&entry->eth, in arp_gratuitous()
482 memcpy(&entry->eth, hwaddr, sizeof(struct net_eth_addr)); in arp_gratuitous()
647 memcpy(&arp_ent->eth, hwaddr, in net_arp_update()
663 memcpy(&arp_ent->eth, hwaddr, sizeof(arp_ent->eth)); in net_arp_update()
674 memcpy(&entry->eth, hwaddr, sizeof(struct net_eth_addr)); in net_arp_update()
/Zephyr-latest/samples/net/sockets/echo_server/src/
Dvlan.c18 struct net_if *eth; member
25 if (net_if_l2(iface) == &NET_L2_GET_NAME(ETHERNET) && ud->eth == NULL) { in iface_cb()
26 ud->eth = iface; in iface_cb()
118 ret = setup_iface(ud.eth, ud.first, in init_vlan()
127 ret = setup_iface(ud.eth, ud.second, in init_vlan()
/Zephyr-latest/tests/net/arp/src/
Dmain.c177 struct net_eth_hdr *eth; in prepare_arp_reply() local
185 eth = NET_ETH_HDR(pkt); in prepare_arp_reply()
190 (void)memset(&eth->dst.addr, 0xff, sizeof(struct net_eth_addr)); in prepare_arp_reply()
191 memcpy(&eth->src.addr, net_if_get_link_addr(iface)->addr, in prepare_arp_reply()
193 eth->type = htons(NET_ETH_PTYPE_ARP); in prepare_arp_reply()
195 *eth_rep = eth; in prepare_arp_reply()
208 memcpy(&hdr->dst_hwaddr.addr, &eth->src.addr, in prepare_arp_reply()
228 struct net_eth_hdr *eth, *eth_req; in prepare_arp_request() local
236 eth = NET_ETH_HDR(pkt); in prepare_arp_request()
243 (void)memset(&eth->dst.addr, 0xff, sizeof(struct net_eth_addr)); in prepare_arp_request()
[all …]
/Zephyr-latest/samples/net/zperf/boards/
Dfvp_baser_aemv8r.overlay1 &eth {
Dfvp_base_revc_2xaemv8a.overlay1 &eth {
/Zephyr-latest/samples/net/dhcpv4_client/boards/
Dfvp_base_revc_2xaemv8a.overlay1 &eth {
Dfvp_baser_aemv8r.overlay1 &eth {
/Zephyr-latest/drivers/ethernet/nxp_enet/
Deth_mcux.c1359 eth##n##_tx_frameinfo_array[CONFIG_ETH_MCUX_TX_BUFFERS];
1362 .txFrameInfo = eth##n##_tx_frameinfo_array,
1486 static void eth##n##_config_func(void); \
1501 static struct _phy_resource eth##n##_phy_resource = { \
1505 static phy_handle_t eth##n##_phy_handle = { \
1506 .resource = (void *)&eth##n##_phy_resource \
1508 static struct _phy_resource eth##n##_phy_config; \
1510 static struct eth_context eth##n##_context = { \
1512 .config_func = eth##n##_config_func, \
1513 .phy_config = &eth##n##_phy_config, \
[all …]
/Zephyr-latest/tests/boards/espressif/ethernet/boards/
Desp32_ethernet_kit_procpu.overlay7 &eth {
/Zephyr-latest/samples/boards/espressif/ethernet/boards/
Desp32_ethernet_kit_procpu.overlay7 &eth {
/Zephyr-latest/boards/shields/seeed_w5500/
Dseeed_w5500.overlay9 eth_w5500: eth-w5500@0 {
/Zephyr-latest/dts/arm/silabs/
Defm32gg11b820f2048gl192.dtsi26 eth0: eth@40024000 { /* ETH0 */
/Zephyr-latest/subsys/net/lib/shell/
Darp.c30 net_sprint_ll_addr(entry->eth.addr, sizeof(struct net_eth_addr)), in arp_cb()
/Zephyr-latest/boards/qemu/cortex_m3/
Dqemu_cortex_m3.dts49 &eth {
/Zephyr-latest/tests/net/virtual/src/
Dmain.c385 struct net_if *eth, *virt, *dummy1, *dummy2; in test_address_setup() local
388 eth = eth_interfaces[0]; in test_address_setup()
393 zassert_not_null(eth, "Eth Interface"); in test_address_setup()
398 ifaddr = net_if_ipv6_addr_add(eth, &my_addr1, NET_ADDR_MANUAL, 0); in test_address_setup()
408 ifaddr = net_if_ipv4_addr_add(eth, &my_addr, NET_ADDR_MANUAL, 0); in test_address_setup()
417 net_if_ipv4_set_netmask_by_addr(eth, &my_addr, &netmask); in test_address_setup()
419 ifaddr = net_if_ipv6_addr_add(eth, &ll_addr, NET_ADDR_MANUAL, 0); in test_address_setup()
444 net_if_up(eth); in test_address_setup()
/Zephyr-latest/boards/espressif/esp32_ethernet_kit/
Desp32_ethernet_kit_procpu.dts85 &eth {
/Zephyr-latest/samples/drivers/ethernet/eth_ivshmem/boards/
Dqemu_cortex_a53.overlay37 compatible = "siemens,ivshmem-eth";
/Zephyr-latest/boards/shields/mikroe_eth_click/doc/
Dindex.rst58 https://www.mikroe.com/eth-click

123