/linux-3.4.99/drivers/net/ethernet/8390/ |
D | etherh.c | 127 static inline void etherh_set_ctrl(struct etherh_priv *eh, unsigned char mask) in etherh_set_ctrl() argument 129 unsigned char ctrl = eh->ctrl | mask; in etherh_set_ctrl() 130 eh->ctrl = ctrl; in etherh_set_ctrl() 131 writeb(ctrl, eh->ctrl_port); in etherh_set_ctrl() 134 static inline void etherh_clr_ctrl(struct etherh_priv *eh, unsigned char mask) in etherh_clr_ctrl() argument 136 unsigned char ctrl = eh->ctrl & ~mask; in etherh_clr_ctrl() 137 eh->ctrl = ctrl; in etherh_clr_ctrl() 138 writeb(ctrl, eh->ctrl_port); in etherh_clr_ctrl() 141 static inline unsigned int etherh_get_stat(struct etherh_priv *eh) in etherh_get_stat() argument 143 return readb(eh->ctrl_port); in etherh_get_stat() [all …]
|
/linux-3.4.99/net/bluetooth/bnep/ |
D | core.c | 72 if (!compare_ether_addr(dst, s->eh.h_source)) in __bnep_get_session() 335 s->eh.h_proto = get_unaligned((__be16 *) (skb->data - 2)); in bnep_rx_frame() 343 if (ntohs(s->eh.h_proto) == 0x8100) { in bnep_rx_frame() 346 s->eh.h_proto = get_unaligned((__be16 *) (skb->data - 2)); in bnep_rx_frame() 362 memcpy(__skb_put(nskb, ETH_HLEN), &s->eh, ETH_HLEN); in bnep_rx_frame() 366 memcpy(__skb_put(nskb, ETH_ALEN), s->eh.h_dest, ETH_ALEN); in bnep_rx_frame() 368 put_unaligned(s->eh.h_proto, (__be16 *) __skb_put(nskb, 2)); in bnep_rx_frame() 374 memcpy(__skb_put(nskb, ETH_ALEN + 2), s->eh.h_source, in bnep_rx_frame() 381 put_unaligned(s->eh.h_proto, (__be16 *) __skb_put(nskb, 2)); in bnep_rx_frame() 409 struct ethhdr *eh = (void *) skb->data; in bnep_tx_frame() local [all …]
|
D | netdev.c | 133 struct ethhdr *eh = (void *) skb->data; in bnep_net_mc_filter() local 135 if ((eh->h_dest[0] & 1) && !test_bit(bnep_mc_hash(eh->h_dest), (ulong *) &s->mc_filter)) in bnep_net_mc_filter() 145 struct ethhdr *eh = (void *) skb->data; in bnep_net_eth_proto() local 146 u16 proto = ntohs(eh->h_proto); in bnep_net_eth_proto()
|
D | bnep.h | 161 struct ethhdr eh; member
|
/linux-3.4.99/drivers/staging/usbip/ |
D | usbip_event.c | 86 ud->eh = kthread_run(event_handler_loop, ud, "usbip_eh"); in usbip_start_eh() 87 if (IS_ERR(ud->eh)) { in usbip_start_eh() 89 return PTR_ERR(ud->eh); in usbip_start_eh() 98 if (ud->eh == current) in usbip_stop_eh() 101 kthread_stop(ud->eh); in usbip_stop_eh()
|
/linux-3.4.99/net/802/ |
D | stp.c | 36 const struct ethhdr *eh = eth_hdr(skb); in stp_pdu_rcv() local 45 if (eh->h_dest[5] >= GARP_ADDR_MIN && eh->h_dest[5] <= GARP_ADDR_MAX) { in stp_pdu_rcv() 46 proto = rcu_dereference(garp_protos[eh->h_dest[5] - in stp_pdu_rcv() 49 compare_ether_addr(eh->h_dest, proto->group_address)) in stp_pdu_rcv()
|
/linux-3.4.99/arch/alpha/kernel/ |
D | binfmt_loader.c | 10 struct exec *eh = (struct exec *)bprm->buf; in load_binary() local 15 if (eh->fh.f_magic != 0x183 || (eh->fh.f_flags & 0x3000) != 0x3000) in load_binary() 33 bprm->taso = eh->ah.entry < 0x100000000UL; in load_binary()
|
/linux-3.4.99/fs/ext4/ |
D | extents.c | 337 struct ext4_extent_header *eh, in ext4_valid_extent_entries() argument 341 if (eh->eh_entries == 0) in ext4_valid_extent_entries() 344 entries = le16_to_cpu(eh->eh_entries); in ext4_valid_extent_entries() 348 struct ext4_extent *ext = EXT_FIRST_EXTENT(eh); in ext4_valid_extent_entries() 371 struct ext4_extent_idx *ext_idx = EXT_FIRST_INDEX(eh); in ext4_valid_extent_entries() 383 struct inode *inode, struct ext4_extent_header *eh, in __ext4_ext_check() argument 389 if (unlikely(eh->eh_magic != EXT4_EXT_MAGIC)) { in __ext4_ext_check() 393 if (unlikely(le16_to_cpu(eh->eh_depth) != depth)) { in __ext4_ext_check() 397 if (unlikely(eh->eh_max == 0)) { in __ext4_ext_check() 402 if (unlikely(le16_to_cpu(eh->eh_max) > max)) { in __ext4_ext_check() [all …]
|
D | migrate.c | 384 struct ext4_extent_header *eh; in free_ext_idx() local 391 eh = (struct ext4_extent_header *)bh->b_data; in free_ext_idx() 392 if (eh->eh_depth != 0) { in free_ext_idx() 393 ix = EXT_FIRST_INDEX(eh); in free_ext_idx() 394 for (i = 0; i < le16_to_cpu(eh->eh_entries); i++, ix++) { in free_ext_idx() 414 struct ext4_extent_header *eh = (struct ext4_extent_header *)ei->i_data; in free_ext_block() local 416 if (eh->eh_depth == 0) in free_ext_block() 421 ix = EXT_FIRST_INDEX(eh); in free_ext_block() 422 for (i = 0; i < le16_to_cpu(eh->eh_entries); i++, ix++) { in free_ext_block()
|
D | move_extent.c | 80 struct ext4_extent_header *eh; in mext_next_extent() local 126 eh = path[leaf_ppos].p_hdr; in mext_next_extent() 127 if (le16_to_cpu(eh->eh_entries) == 0) in mext_next_extent() 309 struct ext4_extent_header *eh, in mext_insert_inside_block() argument 316 if (range_to_move && o_end < EXT_LAST_EXTENT(eh)) { in mext_insert_inside_block() 317 len = (unsigned long)(EXT_LAST_EXTENT(eh) + 1) - in mext_insert_inside_block() 337 le16_add_cpu(&eh->eh_entries, range_to_move); in mext_insert_inside_block() 366 struct ext4_extent_header *eh; in mext_insert_extents() local 385 eh = orig_path->p_hdr; in mext_insert_extents() 396 (range_to_move > le16_to_cpu(eh->eh_max) in mext_insert_extents() [all …]
|
/linux-3.4.99/arch/powerpc/include/asm/ |
D | asm-compat.h | 29 #define PPC_LLARX(t, a, b, eh) PPC_LDARX(t, a, b, eh) argument 54 #define PPC_LLARX(t, a, b, eh) PPC_LWARX(t, a, b, eh) argument
|
D | ppc-opcode.h | 137 #define __PPC_EH(eh) (((eh) & 0x1) << 0) argument 139 #define __PPC_EH(eh) 0 argument 147 #define PPC_LDARX(t, a, b, eh) stringify_in_c(.long PPC_INST_LDARX | \ argument 149 __PPC_RB(b) | __PPC_EH(eh)) 150 #define PPC_LWARX(t, a, b, eh) stringify_in_c(.long PPC_INST_LWARX | \ argument 152 __PPC_RB(b) | __PPC_EH(eh))
|
D | bitops.h | 106 #define DEFINE_TESTOP(fn, op, prefix, postfix, eh) \ argument 115 "1:" PPC_LLARX(%0,0,%3,eh) "\n" \
|
/linux-3.4.99/net/netfilter/ |
D | xt_esp.c | 41 const struct ip_esp_hdr *eh; in esp_mt() local 49 eh = skb_header_pointer(skb, par->thoff, sizeof(_esp), &_esp); in esp_mt() 50 if (eh == NULL) { in esp_mt() 59 return spi_match(espinfo->spis[0], espinfo->spis[1], ntohl(eh->spi), in esp_mt()
|
D | xt_LOG.c | 337 const struct ip_esp_hdr *eh; in dump_ipv4_packet() local 346 eh = skb_header_pointer(skb, iphoff+ih->ihl*4, in dump_ipv4_packet() 348 if (eh == NULL) { in dump_ipv4_packet() 355 sb_add(m, "SPI=0x%x ", ntohl(eh->spi)); in dump_ipv4_packet() 611 const struct ip_esp_hdr *eh; in dump_ipv6_packet() local 624 eh = skb_header_pointer(skb, ptr, sizeof(_esph), in dump_ipv6_packet() 626 if (eh == NULL) { in dump_ipv6_packet() 633 sb_add(m, "SPI=0x%x )", ntohl(eh->spi)); in dump_ipv6_packet()
|
/linux-3.4.99/drivers/scsi/fnic/ |
D | fnic_fcs.c | 139 struct ethhdr *eh; in fnic_import_rq_eth_pkt() local 146 eh = (struct ethhdr *)skb->data; in fnic_import_rq_eth_pkt() 147 if (eh->h_proto == htons(ETH_P_8021Q)) { in fnic_import_rq_eth_pkt() 148 memmove((u8 *)eh + VLAN_HLEN, eh, ETH_ALEN * 2); in fnic_import_rq_eth_pkt() 149 eh = (struct ethhdr *)skb_pull(skb, VLAN_HLEN); in fnic_import_rq_eth_pkt() 152 if (eh->h_proto == htons(ETH_P_FIP)) { in fnic_import_rq_eth_pkt() 153 skb_pull(skb, sizeof(*eh)); in fnic_import_rq_eth_pkt() 157 if (eh->h_proto != htons(ETH_P_FCOE)) in fnic_import_rq_eth_pkt() 159 skb_set_network_header(skb, sizeof(*eh)); in fnic_import_rq_eth_pkt() 160 skb_pull(skb, sizeof(*eh)); in fnic_import_rq_eth_pkt()
|
/linux-3.4.99/drivers/net/ethernet/sfc/ |
D | rx.c | 113 static inline u32 efx_rx_buf_hash(const u8 *eh) in efx_rx_buf_hash() argument 117 return __le32_to_cpup((const __le32 *)(eh - 4)); in efx_rx_buf_hash() 119 const u8 *data = eh - 4; in efx_rx_buf_hash() 463 const u8 *eh) in efx_rx_packet_gro() argument 482 skb->rxhash = efx_rx_buf_hash(eh); in efx_rx_packet_gro() 596 u8 *eh = efx_rx_buf_eh(efx, rx_buf); in __efx_rx_packet() local 602 efx_loopback_rx_packet(efx, eh, rx_buf->len); in __efx_rx_packet() 616 skb->rxhash = efx_rx_buf_hash(eh); in __efx_rx_packet() 629 efx_rx_packet_gro(channel, rx_buf, eh); in __efx_rx_packet()
|
/linux-3.4.99/drivers/bluetooth/ |
D | hci_ll.c | 378 struct hci_event_hdr *eh; in ll_recv() local 405 eh = hci_event_hdr(ll->rx_skb); in ll_recv() 407 BT_DBG("Event header: evt 0x%2.2x plen %d", eh->evt, eh->plen); in ll_recv() 409 ll_check_data_len(ll, eh->plen); in ll_recv()
|
D | btuart_cs.c | 241 struct hci_event_hdr *eh; in btuart_receive() local 249 eh = hci_event_hdr(info->rx_skb); in btuart_receive() 251 info->rx_count = eh->plen; in btuart_receive()
|
D | bt3c_cs.c | 295 struct hci_event_hdr *eh; in bt3c_receive() local 302 eh = hci_event_hdr(info->rx_skb); in bt3c_receive() 304 info->rx_count = eh->plen; in bt3c_receive()
|
/linux-3.4.99/drivers/net/ethernet/sgi/ |
D | ioc3-eth.c | 510 struct ethhdr *eh = eth_hdr(skb); in ioc3_tcpudp_checksum() local 531 if (eh->h_proto != htons(ETH_P_IP)) in ioc3_tcpudp_checksum() 534 ih = (struct iphdr *) ((char *)eh + ETH_HLEN); in ioc3_tcpudp_checksum() 550 ew = (uint16_t *) eh; in ioc3_tcpudp_checksum() 560 cp = (char *)eh + len; /* points at trailing CRC */ in ioc3_tcpudp_checksum() 1433 uint16_t *eh; in ioc3_start_xmit() local 1437 eh = (uint16_t *) skb->data; in ioc3_start_xmit() 1440 ehsum = eh[0] + eh[1] + eh[2] + eh[3] + eh[4] + eh[5] + eh[6]; in ioc3_start_xmit()
|
/linux-3.4.99/drivers/parisc/ |
D | eisa_enumerator.c | 489 struct eeprom_header *eh; in eisa_enumerator() local 498 eh = (struct eeprom_header*)(eeprom_buf); in eisa_enumerator() 499 for (i=0;i<eh->num_slots;i++) { in eisa_enumerator() 519 return eh->num_slots; in eisa_enumerator()
|
/linux-3.4.99/drivers/scsi/fcoe/ |
D | fcoe.c | 1372 struct ethhdr *eh; in fcoe_rcv() local 1390 eh = eth_hdr(skb); in fcoe_rcv() 1393 compare_ether_addr(eh->h_source, fcoe->ctlr.dest_addr)) { in fcoe_rcv() 1395 eh->h_source); in fcoe_rcv() 1410 if (ntoh24(&eh->h_dest[3]) != ntoh24(fh->fh_d_id)) { in fcoe_rcv() 1412 eh->h_dest); in fcoe_rcv() 1517 struct ethhdr *eh; in fcoe_xmit() local 1604 eh = eth_hdr(skb); in fcoe_xmit() 1605 eh->h_proto = htons(ETH_P_FCOE); in fcoe_xmit() 1606 memcpy(eh->h_dest, fcoe->ctlr.dest_addr, ETH_ALEN); in fcoe_xmit() [all …]
|
/linux-3.4.99/tools/perf/util/ |
D | parse-events.c | 691 int eu = 0, ek = 0, eh = 0, eH = 0, eG = 0, precise = 0; in parse_events_modifier() local 699 exclude = eu = ek = eh = 1; in parse_events_modifier() 703 exclude = eu = ek = eh = 1; in parse_events_modifier() 707 exclude = eu = ek = eh = 1; in parse_events_modifier() 708 eh = 0; in parse_events_modifier() 741 evsel->attr.exclude_hv = eh; in parse_events_modifier()
|
/linux-3.4.99/drivers/net/wireless/brcm80211/brcmfmac/ |
D | dhd_linux.c | 284 struct ethhdr *eh = (struct ethhdr *)pktdata; in brcmf_sendpkt() local 286 if (is_multicast_ether_addr(eh->h_dest)) in brcmf_sendpkt() 288 if (ntohs(eh->h_proto) == ETH_P_PAE) in brcmf_sendpkt() 469 struct ethhdr *eh; in brcmf_txcomplete() local 476 eh = (struct ethhdr *)(txp->data); in brcmf_txcomplete() 477 type = ntohs(eh->h_proto); in brcmf_txcomplete()
|