/external/u-boot/drivers/net/ |
D | ravb.c | 142 struct ravb_priv *eth = dev_get_priv(dev); in ravb_send() local 143 struct ravb_desc *desc = ð->tx_desc[eth->tx_desc_idx]; in ravb_send() 154 if (!(readl(eth->iobase + RAVB_REG_TCCR) & TCCR_TSRQ0)) in ravb_send() 155 setbits_le32(eth->iobase + RAVB_REG_TCCR, TCCR_TSRQ0); in ravb_send() 169 eth->tx_desc_idx = (eth->tx_desc_idx + 1) % (RAVB_NUM_TX_DESC - 1); in ravb_send() 175 struct ravb_priv *eth = dev_get_priv(dev); in ravb_recv() local 176 struct ravb_rxdesc *desc = ð->rx_desc[eth->rx_desc_idx]; in ravb_recv() 201 struct ravb_priv *eth = dev_get_priv(dev); in ravb_free_pkt() local 202 struct ravb_rxdesc *desc = ð->rx_desc[eth->rx_desc_idx]; in ravb_free_pkt() 209 eth->rx_desc_idx = (eth->rx_desc_idx + 1) % RAVB_NUM_RX_DESC; in ravb_free_pkt() [all …]
|
D | sh_eth.c | 64 static int sh_eth_send_common(struct sh_eth_dev *eth, void *packet, int len) in sh_eth_send_common() argument 67 struct sh_eth_info *port_info = ð->port_info[eth->port]; in sh_eth_send_common() 121 static int sh_eth_recv_start(struct sh_eth_dev *eth) in sh_eth_recv_start() argument 123 struct sh_eth_info *port_info = ð->port_info[eth->port]; in sh_eth_recv_start() 137 static void sh_eth_recv_finish(struct sh_eth_dev *eth) in sh_eth_recv_finish() argument 139 struct sh_eth_info *port_info = ð->port_info[eth->port]; in sh_eth_recv_finish() 157 static int sh_eth_reset(struct sh_eth_dev *eth) in sh_eth_reset() argument 159 struct sh_eth_info *port_info = ð->port_info[eth->port]; in sh_eth_reset() 190 static int sh_eth_tx_desc_init(struct sh_eth_dev *eth) in sh_eth_tx_desc_init() argument 194 struct sh_eth_info *port_info = ð->port_info[eth->port]; in sh_eth_tx_desc_init() [all …]
|
D | bcm-sf2-eth.c | 34 struct eth_info *eth = (struct eth_info *)(dev->priv); in bcm_sf2_eth_init() local 35 struct eth_dma *dma = &(eth->dma); in bcm_sf2_eth_init() 40 rc = eth->mac_init(dev); in bcm_sf2_eth_init() 50 eth->port_num = 0; in bcm_sf2_eth_init() 53 0, dev, eth->phy_interface); in bcm_sf2_eth_init() 55 eth->port[0] = phydev; in bcm_sf2_eth_init() 56 eth->port_num += 1; in bcm_sf2_eth_init() 61 for (i = 0; i < eth->port_num; i++) in bcm_sf2_eth_init() 62 phy_config(eth->port[i]); in bcm_sf2_eth_init() 139 struct eth_info *eth = (struct eth_info *)(dev->priv); in bcm_sf2_eth_write_hwaddr() local [all …]
|
D | fec_mxc.c | 85 static int fec_mdio_read(struct ethernet_regs *eth, uint8_t phyaddr, in fec_mdio_read() argument 97 writel(FEC_IEVENT_MII, ð->ievent); in fec_mdio_read() 102 phy | reg, ð->mii_data); in fec_mdio_read() 106 while (!(readl(ð->ievent) & FEC_IEVENT_MII)) { in fec_mdio_read() 114 writel(FEC_IEVENT_MII, ð->ievent); in fec_mdio_read() 117 val = (unsigned short)readl(ð->mii_data); in fec_mdio_read() 123 static void fec_mii_setspeed(struct ethernet_regs *eth) in fec_mii_setspeed() argument 146 writel(speed << 1 | hold << 8, ð->mii_speed); in fec_mii_setspeed() 147 debug("%s: mii_speed %08x\n", __func__, readl(ð->mii_speed)); in fec_mii_setspeed() 150 static int fec_mdio_write(struct ethernet_regs *eth, uint8_t phyaddr, in fec_mdio_write() argument [all …]
|
D | netconsole.c | 174 struct udevice *eth; in nc_send_packet() local 176 struct eth_device *eth; in nc_send_packet() 185 eth = eth_get_dev(); in nc_send_packet() 186 if (eth == NULL) in nc_send_packet() 190 if (eth_is_active(eth)) in nc_send_packet() 201 if (!eth_is_active(eth)) { in nc_send_packet() 300 struct udevice *eth; in nc_stdio_tstc() local 302 struct eth_device *eth; in nc_stdio_tstc() 311 eth = eth_get_dev(); in nc_stdio_tstc() 312 if (eth_is_active(eth)) in nc_stdio_tstc()
|
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()
|
D | sandbox.c | 72 struct ethernet_hdr *eth = packet; in sb_eth_send() local 80 if (ntohs(eth->et_protlen) == PROT_ARP) { in sb_eth_send() 91 memcpy(eth_recv->et_dest, eth->et_src, ARP_HLEN); in sb_eth_send() 112 } else if (ntohs(eth->et_protlen) == PROT_IP) { in sb_eth_send() 130 memcpy(eth_recv->et_dest, eth->et_src, in sb_eth_send()
|
/external/wpa_supplicant_8/src/l2_packet/ |
D | l2_packet_pcap.c | 31 eth_t *eth; member 55 l2->eth = eth_open(l2->ifname); in l2_packet_init_libdnet() 56 if (!l2->eth) { in l2_packet_init_libdnet() 63 if (eth_get(l2->eth, &own_addr) < 0) { in l2_packet_init_libdnet() 67 eth_close(l2->eth); in l2_packet_init_libdnet() 68 l2->eth = NULL; in l2_packet_init_libdnet() 82 struct l2_ethhdr *eth; in l2_packet_send() local 91 ret = eth_send(l2->eth, buf, len); in l2_packet_send() 94 size_t mlen = sizeof(*eth) + len; in l2_packet_send() 95 eth = os_malloc(mlen); in l2_packet_send() [all …]
|
D | l2_packet_freebsd.c | 60 struct l2_ethhdr *eth = os_malloc(sizeof(*eth) + len); in l2_packet_send() local 61 if (eth == NULL) in l2_packet_send() 63 os_memcpy(eth->h_dest, dst_addr, ETH_ALEN); in l2_packet_send() 64 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); in l2_packet_send() 65 eth->h_proto = htons(proto); in l2_packet_send() 66 os_memcpy(eth + 1, buf, len); in l2_packet_send() 67 ret = pcap_inject(l2->pcap, (u8 *) eth, len + sizeof(*eth)); in l2_packet_send() 68 os_free(eth); in l2_packet_send()
|
D | l2_packet_winpcap.c | 76 struct l2_ethhdr *eth; in l2_packet_send() local 84 size_t mlen = sizeof(*eth) + len; in l2_packet_send() 85 eth = os_malloc(mlen); in l2_packet_send() 86 if (eth == NULL) in l2_packet_send() 89 os_memcpy(eth->h_dest, dst_addr, ETH_ALEN); in l2_packet_send() 90 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); in l2_packet_send() 91 eth->h_proto = htons(proto); in l2_packet_send() 92 os_memcpy(eth + 1, buf, len); in l2_packet_send() 93 ret = pcap_sendpacket(l2->pcap, (u8 *) eth, mlen); in l2_packet_send() 94 os_free(eth); in l2_packet_send()
|
D | l2_packet_ndis.c | 96 struct l2_ethhdr *eth; in l2_packet_send() local 116 size_t mlen = sizeof(*eth) + len; in l2_packet_send() 117 eth = os_malloc(mlen); in l2_packet_send() 118 if (eth == NULL) in l2_packet_send() 121 os_memcpy(eth->h_dest, dst_addr, ETH_ALEN); in l2_packet_send() 122 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); in l2_packet_send() 123 eth->h_proto = htons(proto); in l2_packet_send() 124 os_memcpy(eth + 1, buf, len); in l2_packet_send() 125 res = WriteFile(driver_ndis_get_ndisuio_handle(), eth, mlen, in l2_packet_send() 127 os_free(eth); in l2_packet_send()
|
/external/bcc/src/lua/bpf/spec/ |
D | codegen_spec.lua | 184 return eth.ip.tos -- constant expression will fold 195 return eth.ip.udp.src_port -- need to skip variable-length header 212 local ptr = eth.ip.udp.data + 1 231 local ptr = eth.ip.udp.data 316 mem[0] = eth.ip.tos 332 mem[eth.ip.tos] = 5 350 local v = eth.ip.tos 371 mem.b = eth.ip.tos 433 return array_map[eth.ip.tos] 474 array_map[0] = eth.ip.tos [all …]
|
/external/tcpdump/win32/src/ |
D | ether_ntohost.c | 113 unsigned eth [sizeof(*e)]; in parse_ether_buf() local 128 if (sscanf(str, fmt, ð[0], ð[1], ð[2], ð[3], ð[4], ð[5]) != ETHER_ADDR_LEN) in parse_ether_buf() 140 e->octet[i] = eth[i]; in parse_ether_buf() 169 ether_address eth; in init_ethers() local 171 if (!parse_ether_buf(buf,&name,ð)) in init_ethers() 178 memcpy(&e->eth_addr, ð, ETHER_ADDR_LEN); in init_ethers()
|
/external/u-boot/drivers/usb/eth/ |
D | mcs7830.c | 586 static int mcs7830_init(struct eth_device *eth, bd_t *bd) in mcs7830_init() argument 588 struct ueth_data *dev = eth->priv; in mcs7830_init() 602 static int mcs7830_send(struct eth_device *eth, void *packet, int length) in mcs7830_send() argument 604 struct ueth_data *dev = eth->priv; in mcs7830_send() 617 static int mcs7830_recv(struct eth_device *eth) in mcs7830_recv() argument 620 struct ueth_data *ueth = eth->priv; in mcs7830_recv() 640 static void mcs7830_halt(struct eth_device *eth) in mcs7830_halt() argument 654 static int mcs7830_write_mac(struct eth_device *eth) in mcs7830_write_mac() argument 656 struct ueth_data *ueth = eth->priv; in mcs7830_write_mac() 658 return mcs7830_write_mac_common(ueth->pusb_dev, eth->enetaddr); in mcs7830_write_mac() [all …]
|
D | asix.c | 498 static int asix_init(struct eth_device *eth, bd_t *bd) in asix_init() argument 500 struct ueth_data *dev = (struct ueth_data *)eth->priv; in asix_init() 502 return asix_init_common(dev, eth->enetaddr); in asix_init() 505 static int asix_send(struct eth_device *eth, void *packet, int length) in asix_send() argument 507 struct ueth_data *dev = (struct ueth_data *)eth->priv; in asix_send() 512 static int asix_recv(struct eth_device *eth) in asix_recv() argument 514 struct ueth_data *dev = (struct ueth_data *)eth->priv; in asix_recv() 578 static void asix_halt(struct eth_device *eth) in asix_halt() argument 583 static int asix_write_hwaddr(struct eth_device *eth) in asix_write_hwaddr() argument 585 struct ueth_data *dev = (struct ueth_data *)eth->priv; in asix_write_hwaddr() [all …]
|
D | asix88179.c | 510 static int asix_init(struct eth_device *eth, bd_t *bd) in asix_init() argument 512 struct ueth_data *dev = (struct ueth_data *)eth->priv; in asix_init() 518 static int asix_write_hwaddr(struct eth_device *eth) in asix_write_hwaddr() argument 520 struct ueth_data *dev = (struct ueth_data *)eth->priv; in asix_write_hwaddr() 522 return asix_write_mac(dev, eth->enetaddr); in asix_write_hwaddr() 525 static int asix_send(struct eth_device *eth, void *packet, int length) in asix_send() argument 527 struct ueth_data *dev = (struct ueth_data *)eth->priv; in asix_send() 533 static int asix_recv(struct eth_device *eth) in asix_recv() argument 535 struct ueth_data *dev = (struct ueth_data *)eth->priv; in asix_recv() 600 static void asix_halt(struct eth_device *eth) in asix_halt() argument [all …]
|
D | smsc95xx.c | 716 static int smsc95xx_init(struct eth_device *eth, bd_t *bd) in smsc95xx_init() argument 718 struct ueth_data *dev = (struct ueth_data *)eth->priv; in smsc95xx_init() 723 return smsc95xx_init_common(udev, dev, priv, eth->enetaddr); in smsc95xx_init() 726 static int smsc95xx_send(struct eth_device *eth, void *packet, int length) in smsc95xx_send() argument 728 struct ueth_data *dev = (struct ueth_data *)eth->priv; in smsc95xx_send() 733 static int smsc95xx_recv(struct eth_device *eth) in smsc95xx_recv() argument 735 struct ueth_data *dev = (struct ueth_data *)eth->priv; in smsc95xx_recv() 801 static void smsc95xx_halt(struct eth_device *eth) in smsc95xx_halt() argument 806 static int smsc95xx_write_hwaddr(struct eth_device *eth) in smsc95xx_write_hwaddr() argument 808 struct ueth_data *dev = eth->priv; in smsc95xx_write_hwaddr() [all …]
|
/external/autotest/client/tests/pktgen/ |
D | pktgen.py | 8 def execute(self, eth='eth0', count=50000, clone_skb=1, argument 17 logging.info('Adding %s (iteration %d)' % (eth, i)) 21 self.pgset('add_device ' + eth) 25 logging.info('Configuring %s (iteration %d)' % (eth, i)) 27 self.ethdev='/proc/net/pktgen/' + eth 42 output = os.path.join(self.resultsdir, eth) 43 logging.info('Completed %s (iteration %d)' % (eth, i))
|
/external/linux-kselftest/tools/testing/selftests/bpf/ |
D | test_pkt_access.c | 28 struct ethhdr *eth = (struct ethhdr *)(data); in process() local 33 if (eth + 1 > data_end) in process() 36 if (eth->h_proto == bpf_htons(ETH_P_IP)) { in process() 37 struct iphdr *iph = (struct iphdr *)(eth + 1); in process() 44 } else if (eth->h_proto == bpf_htons(ETH_P_IPV6)) { in process() 45 struct ipv6hdr *ip6h = (struct ipv6hdr *)(eth + 1); in process()
|
D | test_xdp_vlan.c | 57 bool parse_eth_frame(struct ethhdr *eth, void *data_end, struct parse_pkt *pkt) in parse_eth_frame() argument 62 offset = sizeof(*eth); in parse_eth_frame() 64 if ((void *)eth + offset + (2*sizeof(struct _vlan_hdr)) > data_end) in parse_eth_frame() 67 eth_type = eth->h_proto; in parse_eth_frame() 74 vlan_hdr = (void *)eth + offset; in parse_eth_frame() 87 vlan_hdr = (void *)eth + offset; in parse_eth_frame()
|
D | test_queue_stack_map.h | 34 struct ethhdr *eth = (struct ethhdr *)(data); in _test() local 38 if (eth + 1 > data_end) in _test() 41 struct iphdr *iph = (struct iphdr *)(eth + 1); in _test()
|
/external/u-boot/include/ |
D | usb_ether.h | 114 struct eth_device *eth); 120 struct eth_device *eth); 126 struct eth_device *eth); 132 struct eth_device *eth); 138 struct eth_device *eth);
|
/external/autotest/client/cros/update_engine/ |
D | update_engine_test.py | 45 for eth in self._NETWORK_INTERFACES: 46 utils.run('ifconfig %s up' % eth, ignore_status=True) 73 for eth in self._NETWORK_INTERFACES: 74 result = utils.run('ifconfig %s down' % eth, ignore_status=True)
|
/external/u-boot/arch/sandbox/dts/ |
D | sandbox.dts | 11 eth5 = "/eth@90000000"; 50 eth@10002000 { 51 compatible = "sandbox,eth"; 56 eth@80000000 { 57 compatible = "sandbox,eth-raw"; 62 eth@90000000 { 63 compatible = "sandbox,eth-raw";
|
D | sandbox64.dts | 11 eth5 = "/eth@90000000"; 50 eth@10002000 { 51 compatible = "sandbox,eth"; 56 eth@80000000 { 57 compatible = "sandbox,eth-raw"; 62 eth@90000000 { 63 compatible = "sandbox,eth-raw";
|