Home
last modified time | relevance | path

Searched refs:eh (Results 1 – 25 of 79) sorted by relevance

1234

/linux/drivers/infiniband/hw/hfi1/
A Dtrace.c253 union ib_ehdrs *eh = ehdrs; in parse_everbs_hdrs() local
270 be32_to_cpu(eh->imm_data)); in parse_everbs_hdrs()
277 be32_to_cpu(eh->rc.reth.rkey), in parse_everbs_hdrs()
279 be32_to_cpu(eh->rc.imm_data)); in parse_everbs_hdrs()
289 be32_to_cpu(eh->rc.reth.rkey), in parse_everbs_hdrs()
396 be32_to_cpu(eh->at.aeth) >> 24, in parse_everbs_hdrs()
406 eh->atomic_eth.rkey, in parse_everbs_hdrs()
413 be32_to_cpu(eh->ud.deth[0]), in parse_everbs_hdrs()
415 be32_to_cpu(eh->ud.deth[1]) >> in parse_everbs_hdrs()
420 be32_to_cpu(eh->ud.deth[0]), in parse_everbs_hdrs()
[all …]
/linux/tools/testing/selftests/bpf/progs/
A Dxdp_features.c69 struct ethhdr *eh = data; in xdp_process_echo_packet() local
74 if (eh + 1 > (struct ethhdr *)data_end) in xdp_process_echo_packet()
77 if (eh->h_proto == bpf_htons(ETH_P_IP)) { in xdp_process_echo_packet()
78 struct iphdr *ih = (struct iphdr *)(eh + 1); in xdp_process_echo_packet()
84 ih = (struct iphdr *)(eh + 1); in xdp_process_echo_packet()
203 struct ethhdr *eh = data; in xdp_do_tx() local
210 __builtin_memcpy(eh->h_source, eh->h_dest, ETH_ALEN); in xdp_do_tx()
211 __builtin_memcpy(eh->h_dest, tmp_mac, ETH_ALEN); in xdp_do_tx()
255 struct ethhdr *eh = data; in xdp_do_redirect_cpumap() local
262 __builtin_memcpy(eh->h_source, eh->h_dest, ETH_ALEN); in xdp_do_redirect_cpumap()
[all …]
/linux/drivers/net/ethernet/8390/
A Detherh.c122 eh->ctrl = ctrl; in etherh_set_ctrl()
123 writeb(ctrl, eh->ctrl_port); in etherh_set_ctrl()
129 eh->ctrl = ctrl; in etherh_clr_ctrl()
657 struct etherh_priv *eh; in etherh_probe() local
688 eh = etherh_priv(dev); in etherh_probe()
690 eh->ctrl = 0; in etherh_probe()
693 if (!eh->memc) { in etherh_probe()
698 eh->ctrl_port = eh->memc; in etherh_probe()
701 if (!eh->ioc_fast) { in etherh_probe()
705 eh->ctrl_port = eh->ioc_fast; in etherh_probe()
[all …]
/linux/arch/powerpc/include/asm/
A Dsimple_spinlock.h52 unsigned int eh = IS_ENABLED(CONFIG_PPC64); in __arch_spin_trylock() local
64 : "r" (token), "r" (&lock->slock), [eh] "n" (eh) in __arch_spin_trylock()
162 unsigned int eh = IS_ENABLED(CONFIG_PPC64); in __arch_read_trylock() local
173 : "r" (&rw->lock), [eh] "n" (eh) in __arch_read_trylock()
186 unsigned int eh = IS_ENABLED(CONFIG_PPC64); in __arch_write_trylock() local
197 : "r" (token), "r" (&rw->lock), [eh] "n" (eh) in __arch_write_trylock()
/linux/net/bluetooth/bnep/
A Dcore.c55 if (ether_addr_equal(dst, s->eh.h_source)) in __bnep_get_session()
358 if (ntohs(s->eh.h_proto) == ETH_P_8021Q) { in bnep_rx_frame()
377 __skb_put_data(nskb, &s->eh, ETH_HLEN); in bnep_rx_frame()
381 __skb_put_data(nskb, s->eh.h_dest, ETH_ALEN); in bnep_rx_frame()
422 struct ethhdr *eh = (void *) skb->data; in bnep_tx_frame() local
438 if (compress_src && ether_addr_equal(eh->h_dest, s->eh.h_source)) in bnep_tx_frame()
441 if (compress_dst && ether_addr_equal(eh->h_source, s->eh.h_dest)) in bnep_tx_frame()
596 memcpy(s->eh.h_dest, &src, ETH_ALEN); in bnep_add_connection()
597 memcpy(s->eh.h_source, &dst, ETH_ALEN); in bnep_add_connection()
598 eth_hw_addr_set(dev, s->eh.h_dest); in bnep_add_connection()
[all …]
A Dnetdev.c124 struct ethhdr *eh = (void *) skb->data; in bnep_net_mc_filter() local
126 if ((eh->h_dest[0] & 1) && !test_bit(bnep_mc_hash(eh->h_dest), (ulong *) &s->mc_filter)) in bnep_net_mc_filter()
136 struct ethhdr *eh = (void *) skb->data; in bnep_net_eth_proto() local
137 u16 proto = ntohs(eh->h_proto); in bnep_net_eth_proto()
/linux/arch/mips/tools/
A Dloongson3-llsc-check.c239 Elf64_Ehdr *eh; in main() local
269 eh = vmlinux; in main()
270 if (memcmp(eh->e_ident, ELFMAG, SELFMAG)) { in main()
275 if (eh->e_ident[EI_CLASS] != ELFCLASS64) { in main()
280 if (eh->e_ident[EI_DATA] != ELFDATA2LSB) { in main()
285 for (i = 0; i < le16toh(eh->e_shnum); i++) { in main()
286 sh = vmlinux + le64toh(eh->e_shoff) + (i * le16toh(eh->e_shentsize)); in main()
/linux/net/ethernet/
A Deth.c398 struct ethhdr *eh, *eh2; in eth_gro_receive() local
404 hlen = off_eth + sizeof(*eh); in eth_gro_receive()
405 eh = skb_gro_header(skb, hlen, off_eth); in eth_gro_receive()
406 if (unlikely(!eh)) in eth_gro_receive()
416 if (compare_ether_header(eh, eh2)) { in eth_gro_receive()
422 type = eh->h_proto; in eth_gro_receive()
430 skb_gro_pull(skb, sizeof(*eh)); in eth_gro_receive()
431 skb_gro_postpull_rcsum(skb, eh, sizeof(*eh)); in eth_gro_receive()
446 struct ethhdr *eh = (struct ethhdr *)(skb->data + nhoff); in eth_gro_complete() local
447 __be16 type = eh->h_proto; in eth_gro_complete()
[all …]
/linux/net/802/
A Dstp.c33 const struct ethhdr *eh = eth_hdr(skb); in stp_pdu_rcv() local
42 if (eh->h_dest[5] >= GARP_ADDR_MIN && eh->h_dest[5] <= GARP_ADDR_MAX) { in stp_pdu_rcv()
43 proto = rcu_dereference(garp_protos[eh->h_dest[5] - in stp_pdu_rcv()
46 !ether_addr_equal(eh->h_dest, proto->group_address)) in stp_pdu_rcv()
/linux/fs/ext4/
A Dextents.c482 if (unlikely(le16_to_cpu(eh->eh_entries) > le16_to_cpu(eh->eh_max))) { in __ext4_ext_check()
698 eh = path[depth].p_hdr; in ext4_ext_show_leaf()
877 eh->eh_depth = 0; in ext4_ext_tree_init()
878 eh->eh_entries = 0; in ext4_ext_tree_init()
881 eh->eh_generation = 0; in ext4_ext_tree_init()
922 path[0].p_hdr = eh; in ext4_find_extent()
931 ppos, le16_to_cpu(eh->eh_entries), le16_to_cpu(eh->eh_max)); in ext4_find_extent()
1838 if (!eh->eh_entries) in ext4_ext_try_to_merge_right()
2078 if (le16_to_cpu(eh->eh_entries) < le16_to_cpu(eh->eh_max)) in ext4_ext_insert_extent()
2097 if (le16_to_cpu(eh->eh_entries) < le16_to_cpu(eh->eh_max)) { in ext4_ext_insert_extent()
[all …]
A Dmigrate.c359 struct ext4_extent_header *eh; in free_ext_idx() local
366 eh = (struct ext4_extent_header *)bh->b_data; in free_ext_idx()
367 if (eh->eh_depth != 0) { in free_ext_idx()
368 ix = EXT_FIRST_INDEX(eh); in free_ext_idx()
396 if (eh->eh_depth == 0) in free_ext_block()
401 ix = EXT_FIRST_INDEX(eh); in free_ext_block()
599 struct ext4_extent_header *eh; in ext4_ind_migrate() local
639 eh = ext_inode_hdr(inode); in ext4_ind_migrate()
640 ex = EXT_FIRST_EXTENT(eh); in ext4_ind_migrate()
642 eh->eh_depth != 0 || le16_to_cpu(eh->eh_entries) > 1) { in ext4_ind_migrate()
[all …]
A Dext4_extents.h101 find_ext4_extent_tail(struct ext4_extent_header *eh) in find_ext4_extent_tail() argument
103 return (struct ext4_extent_tail *)(((void *)eh) + in find_ext4_extent_tail()
104 EXT4_EXTENT_TAIL_OFFSET(eh)); in find_ext4_extent_tail()
/linux/drivers/net/ethernet/sfc/siena/
A Drx.c70 u8 *eh, int hdr_len) in efx_rx_mk_skb() argument
86 memcpy(skb->data + efx->rx_ip_align, eh - efx->rx_prefix_size, in efx_rx_mk_skb()
208 static void efx_rx_deliver(struct efx_channel *channel, u8 *eh, in efx_rx_deliver() argument
215 skb = efx_rx_mk_skb(channel, rx_buf, n_frags, eh, hdr_len); in efx_rx_deliver()
365 u8 *eh = efx_rx_buf_va(rx_buf); in __efx_siena_rx_packet() local
372 (eh + efx->rx_packet_len_offset)); in __efx_siena_rx_packet()
380 efx_siena_loopback_rx_packet(efx, eh, rx_buf->len); in __efx_siena_rx_packet()
387 if (!efx_do_xdp(efx, channel, rx_buf, &eh)) in __efx_siena_rx_packet()
395 channel->rx_pkt_n_frags, eh, 0); in __efx_siena_rx_packet()
397 efx_rx_deliver(channel, eh, rx_buf, channel->rx_pkt_n_frags); in __efx_siena_rx_packet()
A Drx_common.h32 static inline u32 efx_rx_buf_hash(struct efx_nic *efx, const u8 *eh) in efx_rx_buf_hash() argument
35 return __le32_to_cpup((const __le32 *)(eh + efx->rx_packet_hash_offset)); in efx_rx_buf_hash()
37 const u8 *data = eh + efx->rx_packet_hash_offset; in efx_rx_buf_hash()
79 unsigned int n_frags, u8 *eh, __wsum csum);
/linux/drivers/firmware/arm_scmi/
A Dnotify.c471 outs = kfifo_out(&eq->kfifo, pd->eh->payld, pd->eh->payld_sz); in scmi_process_event_payload()
487 pd->id, pd->eh->evt_id); in scmi_process_event_payload()
491 report = REVT_FILL_REPORT(r_evt, pd->eh->evt_id, pd->eh->timestamp, in scmi_process_event_payload()
492 pd->eh->payld, pd->eh->payld_sz, in scmi_process_event_payload()
497 pd->id, pd->eh->evt_id); in scmi_process_event_payload()
583 struct scmi_event_header eh; in scmi_notify() local
605 eh.timestamp = ts; in scmi_notify()
606 eh.evt_id = evt_id; in scmi_notify()
607 eh.payld_sz = len; in scmi_notify()
613 kfifo_in(&r_evt->proto->equeue.kfifo, &eh, sizeof(eh)); in scmi_notify()
[all …]
/linux/net/netfilter/
A Dxt_esp.c38 const struct ip_esp_hdr *eh; in esp_mt() local
46 eh = skb_header_pointer(skb, par->thoff, sizeof(_esp), &_esp); in esp_mt()
47 if (eh == NULL) { in esp_mt()
56 return spi_match(espinfo->spis[0], espinfo->spis[1], ntohl(eh->spi), in esp_mt()
/linux/drivers/net/ethernet/sfc/
A Drx.c70 u8 *eh, int hdr_len) in efx_rx_mk_skb() argument
86 memcpy(skb->data + efx->rx_ip_align, eh - efx->rx_prefix_size, in efx_rx_mk_skb()
208 static void efx_rx_deliver(struct efx_channel *channel, u8 *eh, in efx_rx_deliver() argument
215 skb = efx_rx_mk_skb(channel, rx_buf, n_frags, eh, hdr_len); in efx_rx_deliver()
366 u8 *eh = efx_rx_buf_va(rx_buf); in __efx_rx_packet() local
373 (eh + efx->rx_packet_len_offset)); in __efx_rx_packet()
391 efx_loopback_rx_packet(efx, eh, rx_buf->len); in __efx_rx_packet()
397 if (!efx_do_xdp(efx, channel, rx_buf, &eh)) in __efx_rx_packet()
404 efx_rx_packet_gro(channel, rx_buf, channel->rx_pkt_n_frags, eh, 0); in __efx_rx_packet()
406 efx_rx_deliver(channel, eh, rx_buf, channel->rx_pkt_n_frags); in __efx_rx_packet()
A Drx_common.h32 static inline u32 efx_rx_buf_hash(struct efx_nic *efx, const u8 *eh) in efx_rx_buf_hash() argument
35 return __le32_to_cpup((const __le32 *)(eh + efx->rx_packet_hash_offset)); in efx_rx_buf_hash()
37 const u8 *data = eh + efx->rx_packet_hash_offset; in efx_rx_buf_hash()
85 unsigned int n_frags, u8 *eh, __wsum csum);
/linux/net/ncsi/
A Dncsi-cmd.c325 struct ethhdr *eh; in ncsi_xmit_cmd() local
379 eh = skb_push(nr->cmd, sizeof(*eh)); in ncsi_xmit_cmd()
380 eh->h_proto = htons(ETH_P_NCSI); in ncsi_xmit_cmd()
381 eth_broadcast_addr(eh->h_dest); in ncsi_xmit_cmd()
388 memcpy(eh->h_source, nca->ndp->ndev.dev->dev_addr, ETH_ALEN); in ncsi_xmit_cmd()
390 eth_broadcast_addr(eh->h_source); in ncsi_xmit_cmd()
/linux/tools/virtio/
A Dvhost_net_test.c210 struct ether_header *eh; in vdev_info_init() local
224 eh = (struct ether_header *)(dev->test_buf + HDR_LEN); in vdev_info_init()
225 eh->ether_type = htons(TEST_PTYPE); in vdev_info_init()
226 memcpy(eh->ether_dhost, dev->mac, ETHER_ADDR_LEN); in vdev_info_init()
227 memcpy(eh->ether_shost, dev->mac, ETHER_ADDR_LEN); in vdev_info_init()
229 for (i = sizeof(*eh); i < TEST_BUF_LEN; i++) in vdev_info_init()
380 struct ether_header *eh; in run_rx_test() local
382 eh = (struct ether_header *)(dev->res_buf + HDR_LEN); in run_rx_test()
387 if (eh->ether_type == htons(TEST_PTYPE)) { in run_rx_test()
/linux/drivers/net/ethernet/sfc/falcon/
A Drx.c62 static inline u32 ef4_rx_buf_hash(struct ef4_nic *efx, const u8 *eh) in ef4_rx_buf_hash() argument
67 const u8 *data = eh + efx->rx_packet_hash_offset; in ef4_rx_buf_hash()
431 unsigned int n_frags, u8 *eh) in ef4_rx_packet_gro() argument
447 skb_set_hash(skb, ef4_rx_buf_hash(efx, eh), in ef4_rx_packet_gro()
476 u8 *eh, int hdr_len) in ef4_rx_mk_skb() argument
492 memcpy(skb->data + efx->rx_ip_align, eh - efx->rx_prefix_size, in ef4_rx_mk_skb()
617 static void ef4_rx_deliver(struct ef4_channel *channel, u8 *eh, in ef4_rx_deliver() argument
624 skb = ef4_rx_mk_skb(channel, rx_buf, n_frags, eh, hdr_len); in ef4_rx_deliver()
653 u8 *eh = ef4_rx_buf_va(rx_buf); in __ef4_rx_packet() local
660 (eh + efx->rx_packet_len_offset)); in __ef4_rx_packet()
[all …]
/linux/drivers/net/ethernet/marvell/prestera/
A Dprestera_hw.c925 return eh; in __find_event_handler()
941 *eh = *tmp; in prestera_find_event_handler()
974 eh.func(sw, &evt, eh.arg); in prestera_evt_recv()
992 eh.func(sw, &ev, eh.arg); in prestera_pkt_recv()
2256 if (eh) in prestera_hw_event_handler_register()
2259 eh = kmalloc(sizeof(*eh), GFP_KERNEL); in prestera_hw_event_handler_register()
2260 if (!eh) in prestera_hw_event_handler_register()
2263 eh->type = type; in prestera_hw_event_handler_register()
2264 eh->func = fn; in prestera_hw_event_handler_register()
2265 eh->arg = arg; in prestera_hw_event_handler_register()
[all …]
/linux/net/ipv4/
A Dip_tunnel_core.c101 struct ethhdr *eh; in __iptunnel_pull_header() local
106 eh = (struct ethhdr *)skb->data; in __iptunnel_pull_header()
107 if (likely(eth_proto_is_802_3(eh->h_proto))) in __iptunnel_pull_header()
108 skb->protocol = eh->h_proto; in __iptunnel_pull_header()
201 struct ethhdr eh; in iptunnel_pmtud_build_icmp() local
207 skb_copy_bits(skb, skb_mac_offset(skb), &eh, ETH_HLEN); in iptunnel_pmtud_build_icmp()
249 eth_header(skb, skb->dev, ntohs(eh.h_proto), eh.h_source, eh.h_dest, 0); in iptunnel_pmtud_build_icmp()
294 struct ethhdr eh; in iptunnel_pmtud_build_icmpv6() local
301 skb_copy_bits(skb, skb_mac_offset(skb), &eh, ETH_HLEN); in iptunnel_pmtud_build_icmpv6()
342 eth_header(skb, skb->dev, ntohs(eh.h_proto), eh.h_source, eh.h_dest, 0); in iptunnel_pmtud_build_icmpv6()
/linux/tools/testing/selftests/cgroup/
A Dmemcg_protection.m42 eh = []; variable
84 eh = [eh ; e]; variable
/linux/drivers/net/ethernet/sgi/
A Dioc3-eth.c299 struct ethhdr *eh = eth_hdr(skb); in ioc3_tcpudp_checksum() local
319 if (eh->h_proto != htons(ETH_P_IP)) in ioc3_tcpudp_checksum()
322 ih = (struct iphdr *)((char *)eh + ETH_HLEN); in ioc3_tcpudp_checksum()
338 ew = (u16 *)eh; in ioc3_tcpudp_checksum()
349 cp = (char *)eh + len; /* points at trailing CRC */ in ioc3_tcpudp_checksum()
1000 u16 *eh; in ioc3_start_xmit() local
1005 eh = (u16 *)skb->data; in ioc3_start_xmit()
1008 ehsum = eh[0] + eh[1] + eh[2] + eh[3] + eh[4] + eh[5] + eh[6]; in ioc3_start_xmit()

Completed in 69 milliseconds

1234