/u-boot-v2022.01-rc1/drivers/net/ |
A D | ravb.c | 151 struct ravb_desc *desc = ð->tx_desc[eth->tx_desc_idx]; in ravb_send() 177 eth->tx_desc_idx = (eth->tx_desc_idx + 1) % (RAVB_NUM_TX_DESC - 1); in ravb_send() 184 struct ravb_rxdesc *desc = ð->rx_desc[eth->rx_desc_idx]; in ravb_recv() 210 struct ravb_rxdesc *desc = ð->rx_desc[eth->rx_desc_idx]; in ravb_free_pkt() 217 eth->rx_desc_idx = (eth->rx_desc_idx + 1) % RAVB_NUM_RX_DESC; in ravb_free_pkt() 218 desc = ð->rx_desc[eth->rx_desc_idx]; in ravb_free_pkt() 250 writel((uintptr_t)eth->base_desc, eth->iobase + RAVB_REG_DBAT); in ravb_base_desc_init() 267 eth->tx_desc[RAVB_NUM_TX_DESC - 1].dptr = (uintptr_t)eth->tx_desc; in ravb_tx_desc_init() 272 eth->base_desc[RAVB_TX_QUEUE_OFFSET].dptr = (uintptr_t)eth->tx_desc; in ravb_tx_desc_init() 289 eth->rx_desc[i].data.dptr = (uintptr_t)eth->rx_desc[i].packet; in ravb_rx_desc_init() [all …]
|
A D | sh_eth.c | 73 struct sh_eth_info *port_info = ð->port_info[eth->port]; in sh_eth_send_common() 129 struct sh_eth_info *port_info = ð->port_info[eth->port]; in sh_eth_recv_start() 145 struct sh_eth_info *port_info = ð->port_info[eth->port]; in sh_eth_recv_finish() 165 struct sh_eth_info *port_info = ð->port_info[eth->port]; in sh_eth_reset() 200 struct sh_eth_info *port_info = ð->port_info[eth->port]; in sh_eth_tx_desc_init() 623 if (!eth) { in sh_eth_initialize() 640 eth->port_info[eth->port].iobase = in sh_eth_initialize() 649 eth->port_info[eth->port].dev = dev; in sh_eth_initialize() 677 if (eth) in sh_eth_initialize() 678 free(eth); in sh_eth_initialize() [all …]
|
A D | bcm-sf2-eth.c | 42 rc = eth->mac_init(dev); in bcm_sf2_eth_init() 52 eth->port_num = 0; in bcm_sf2_eth_init() 57 eth->port[0] = phydev; in bcm_sf2_eth_init() 58 eth->port_num += 1; in bcm_sf2_eth_init() 158 eth->enable_mac(); in bcm_sf2_eth_open() 181 eth->port[i]->speed, eth->port[i]->duplex, eth->port[i]->link); in bcm_sf2_eth_open() 182 eth->set_mac_speed(eth->port[i]->speed, eth->port[i]->duplex); in bcm_sf2_eth_open() 198 eth->disable_mac(); in bcm_sf2_eth_close() 204 struct eth_info *eth; in bcm_sf2_eth_register() local 214 if (eth == NULL) { in bcm_sf2_eth_register() [all …]
|
A D | fec_mxc.c | 111 phy | reg, ð->mii_data); in fec_mdio_read() 433 &fec->eth->paddr1); in fecmxc_set_hwaddr() 505 &fec->eth->ecntrl); in fec_open() 508 &fec->eth->x_wmrk); in fec_open() 512 &fec->eth->ecntrl); in fec_open() 516 &fec->eth->ecntrl); in fec_open() 521 &fec->eth->ecntrl); in fec_open() 695 &fec->eth->ecntrl); in fecmxc_halt() 1094 bus->priv = eth; in fec_get_miibus() 1103 fec_mii_setspeed(eth); in fec_get_miibus() [all …]
|
A D | netconsole.c | 176 struct udevice *eth; in nc_send_packet() local 178 struct eth_device *eth; in nc_send_packet() 187 eth = eth_get_dev(); in nc_send_packet() 188 if (eth == NULL) in nc_send_packet() 192 if (eth_is_active(eth)) in nc_send_packet() 203 if (!eth_is_active(eth)) { in nc_send_packet() 302 struct udevice *eth; in nc_stdio_tstc() local 304 struct eth_device *eth; in nc_stdio_tstc() 313 eth = eth_get_dev(); in nc_stdio_tstc() 314 if (eth_is_active(eth)) in nc_stdio_tstc()
|
A D | sandbox-raw.c | 48 struct ethernet_hdr *eth = packet; in sb_eth_raw_send() local 50 if (ntohs(eth->et_protlen) == PROT_ARP) { in sb_eth_raw_send() 109 struct ethernet_hdr *eth = (void *)net_rx_packets[0]; in sb_eth_raw_recv() local 112 memcpy(eth->et_dest, pdata->enetaddr, ARP_HLEN); in sb_eth_raw_recv() 113 memset(eth->et_src, 0x01, ARP_HLEN); in sb_eth_raw_recv() 114 eth->et_protlen = htons(reply_arp ? PROT_ARP : PROT_IP); in sb_eth_raw_recv()
|
A D | Makefile | 11 obj-$(CONFIG_BCM6348_ETH) += bcm6348-eth.o 12 obj-$(CONFIG_BCM6368_ETH) += bcm6368-eth.o 15 obj-$(CONFIG_BCM_SF2_ETH) += bcm-sf2-eth.o 16 obj-$(CONFIG_BCM_SF2_ETH_GMAC) += bcm-sf2-eth-gmac.o 28 obj-$(CONFIG_DM_ETH_PHY) += eth-phy-uclass.o 55 obj-$(CONFIG_MT7620_ETH) += mt7620-eth.o 56 obj-$(CONFIG_MT7628_ETH) += mt7628-eth.o
|
A D | bcm-sf2-eth-gmac.c | 777 struct eth_info *eth = (struct eth_info *)(dev->priv); in gmac_mac_init() local 778 struct eth_dma *dma = &(eth->dma); in gmac_mac_init() 903 struct eth_dma *dma = &(eth->dma); in gmac_add() 956 eth->phy_interface = PHY_INTERFACE_MODE_GMII; in gmac_add() 966 eth->miiphy_read = gmac_miiphy_read; in gmac_add() 967 eth->miiphy_write = gmac_miiphy_write; in gmac_add() 969 eth->mac_init = gmac_mac_init; in gmac_add() 970 eth->disable_mac = gmac_disable; in gmac_add() 971 eth->enable_mac = gmac_enable; in gmac_add() 972 eth->set_mac_addr = gmac_set_mac_addr; in gmac_add() [all …]
|
/u-boot-v2022.01-rc1/include/ |
A D | usb_ether.h | 104 struct eth_device *eth); 110 struct eth_device *eth); 116 struct eth_device *eth); 122 struct eth_device *eth); 128 struct eth_device *eth);
|
/u-boot-v2022.01-rc1/test/dm/ |
A D | eth.c | 269 struct ethernet_hdr *eth = packet; in sb_check_arp_reply() local 274 if (ntohs(eth->et_protlen) != PROT_ARP) in sb_check_arp_reply() 286 ut_asserteq_mem(eth->et_src, net_ethaddr, ARP_HLEN); in sb_check_arp_reply() 288 ut_assert(eth->et_protlen == htons(PROT_ARP)); in sb_check_arp_reply() 307 struct ethernet_hdr *eth = packet; in sb_with_async_arp_handler() local 315 if (ntohs(eth->et_protlen) == PROT_ARP && in sb_with_async_arp_handler() 354 struct ethernet_hdr *eth = packet; in sb_check_ping_reply() local 360 if (ntohs(eth->et_protlen) != PROT_IP) in sb_check_ping_reply() 379 ut_assert(eth->et_protlen == htons(PROT_IP)); in sb_check_ping_reply() 392 struct ethernet_hdr *eth = packet; in sb_with_async_ping_handler() local [all …]
|
/u-boot-v2022.01-rc1/drivers/usb/eth/ |
A D | mcs7830.c | 591 struct ueth_data *dev = eth->priv; in mcs7830_init() 607 struct ueth_data *dev = eth->priv; in mcs7830_send() 821 struct eth_device *eth) in mcs7830_eth_get_info() argument 824 if (!eth) { in mcs7830_eth_get_info() 829 snprintf(eth->name, sizeof(eth->name), "%s%d", in mcs7830_eth_get_info() 831 eth->init = mcs7830_init; in mcs7830_eth_get_info() 832 eth->send = mcs7830_send; in mcs7830_eth_get_info() 833 eth->recv = mcs7830_recv; in mcs7830_eth_get_info() 834 eth->halt = mcs7830_halt; in mcs7830_eth_get_info() 836 eth->priv = ss; in mcs7830_eth_get_info() [all …]
|
A D | asix.c | 505 return asix_init_common(dev, eth->enetaddr); in asix_init() 515 static int asix_recv(struct eth_device *eth) in asix_recv() argument 714 struct eth_device *eth) in asix_eth_get_info() argument 718 if (!eth) { in asix_eth_get_info() 723 eth->init = asix_init; in asix_eth_get_info() 724 eth->send = asix_send; in asix_eth_get_info() 725 eth->recv = asix_recv; in asix_eth_get_info() 726 eth->halt = asix_halt; in asix_eth_get_info() 728 eth->write_hwaddr = asix_write_hwaddr; in asix_eth_get_info() 729 eth->priv = ss; in asix_eth_get_info() [all …]
|
A D | asix88179.c | 524 return asix_write_mac(dev, eth->enetaddr); in asix_write_hwaddr() 722 struct eth_device *eth) in ax88179_eth_get_info() argument 726 if (!eth) { in ax88179_eth_get_info() 731 eth->init = asix_init; in ax88179_eth_get_info() 732 eth->send = asix_send; in ax88179_eth_get_info() 733 eth->recv = asix_recv; in ax88179_eth_get_info() 734 eth->halt = asix_halt; in ax88179_eth_get_info() 735 eth->write_hwaddr = asix_write_hwaddr; in ax88179_eth_get_info() 736 eth->priv = ss; in ax88179_eth_get_info() 742 if (asix_read_mac(ss, eth->enetaddr)) in ax88179_eth_get_info() [all …]
|
A D | smsc95xx.c | 736 static int smsc95xx_recv(struct eth_device *eth) in smsc95xx_recv() argument 804 static void smsc95xx_halt(struct eth_device *eth) in smsc95xx_halt() argument 811 struct ueth_data *dev = eth->priv; in smsc95xx_write_hwaddr() 917 struct eth_device *eth) in smsc95xx_eth_get_info() argument 920 if (!eth) { in smsc95xx_eth_get_info() 925 eth->init = smsc95xx_init; in smsc95xx_eth_get_info() 926 eth->send = smsc95xx_send; in smsc95xx_eth_get_info() 927 eth->recv = smsc95xx_recv; in smsc95xx_eth_get_info() 928 eth->halt = smsc95xx_halt; in smsc95xx_eth_get_info() 929 eth->write_hwaddr = smsc95xx_write_hwaddr; in smsc95xx_eth_get_info() [all …]
|
A D | usb_ether.c | 220 struct eth_device *eth; in probe_valid_drivers() local 229 eth = &usb_eth[usb_max_eth_dev].eth_dev; in probe_valid_drivers() 232 eth)) { in probe_valid_drivers() 242 eth_register(eth); in probe_valid_drivers() 243 if (eth_write_hwaddr(eth, "usbeth", in probe_valid_drivers()
|
/u-boot-v2022.01-rc1/doc/device-tree-bindings/net/ |
A D | mediatek,mt7628-eth.txt | 4 - compatible: should be "mediatek,mt7628-eth" 11 eth@10100000 { 12 compatible = "mediatek,mt7628-eth";
|
/u-boot-v2022.01-rc1/include/net/ |
A D | dsa.h | 160 struct eth_pdata *eth = dev_get_plat(pdev); in dsa_port_get_pdata() local 162 if (!eth) in dsa_port_get_pdata() 165 return eth->priv_pdata; in dsa_port_get_pdata()
|
/u-boot-v2022.01-rc1/arch/sandbox/cpu/ |
A D | Makefile | 12 obj-$(CONFIG_ETH_SANDBOX_RAW) += eth-raw-os.o 31 $(obj)/eth-raw-os.o: $(src)/eth-raw-os.c FORCE
|
/u-boot-v2022.01-rc1/arch/sandbox/dts/ |
A D | sandbox64.dts | 54 compatible = "sandbox,eth-raw-bus"; 58 eth@10002000 { 59 compatible = "sandbox,eth";
|
A D | sandbox.dts | 59 compatible = "sandbox,eth-raw-bus"; 63 eth@10002000 { 64 compatible = "sandbox,eth";
|
/u-boot-v2022.01-rc1/arch/arm/dts/ |
A D | uniphier-pro4-sanji.dts | 28 ethernet0 = ð 79 ð {
|
A D | uniphier-ld11-ref.dts | 32 ethernet0 = ð 77 ð {
|
/u-boot-v2022.01-rc1/board/freescale/ls1012afrdm/ |
A D | Makefile | 8 obj-$(CONFIG_FSL_PFE) += eth.o
|
/u-boot-v2022.01-rc1/board/freescale/ls1012ardb/ |
A D | Makefile | 8 obj-$(CONFIG_FSL_PFE) += eth.o
|
/u-boot-v2022.01-rc1/board/freescale/ls1012aqds/ |
A D | Makefile | 8 obj-$(CONFIG_FSL_PFE) += eth.o
|