Searched refs:eh (Results 1 - 25 of 72) sorted by relevance

123

/linux-master/drivers/infiniband/hw/hfi1/
H A Dtrace.c253 union ib_ehdrs *eh = ehdrs; local
270 be32_to_cpu(eh->imm_data));
276 get_ib_reth_vaddr(&eh->rc.reth),
277 be32_to_cpu(eh->rc.reth.rkey),
278 be32_to_cpu(eh->rc.reth.length),
279 be32_to_cpu(eh->rc.imm_data));
288 get_ib_reth_vaddr(&eh->rc.reth),
289 be32_to_cpu(eh->rc.reth.rkey),
290 be32_to_cpu(eh->rc.reth.length));
296 trace_seq_printf(p, AETH_PRN, be32_to_cpu(eh
[all...]
/linux-master/arch/powerpc/include/asm/
H A Dsimple_spinlock.h52 unsigned int eh = IS_ENABLED(CONFIG_PPC64); local
56 "1: lwarx %0,0,%2,%[eh]\n\
64 : "r" (token), "r" (&lock->slock), [eh] "n" (eh)
162 unsigned int eh = IS_ENABLED(CONFIG_PPC64); local
165 "1: lwarx %0,0,%1,%[eh]\n"
173 : "r" (&rw->lock), [eh] "n" (eh)
186 unsigned int eh = IS_ENABLED(CONFIG_PPC64); local
190 "1: lwarx %0,0,%2,%[eh]\
[all...]
/linux-master/tools/testing/selftests/bpf/progs/
H A Dxdp_features.c69 struct ethhdr *eh = data; local
74 if (eh + 1 > (struct ethhdr *)data_end)
77 if (eh->h_proto == bpf_htons(ETH_P_IP)) {
78 struct iphdr *ih = (struct iphdr *)(eh + 1);
84 ih = (struct iphdr *)(eh + 1);
98 } else if (eh->h_proto == bpf_htons(ETH_P_IPV6)) {
101 struct ipv6hdr *ih6 = (struct ipv6hdr *)(eh + 1);
203 struct ethhdr *eh = data; local
209 __builtin_memcpy(tmp_mac, eh->h_source, ETH_ALEN);
210 __builtin_memcpy(eh
255 struct ethhdr *eh = data; local
[all...]
/linux-master/drivers/net/ethernet/8390/
H A Detherh.c119 static inline void etherh_set_ctrl(struct etherh_priv *eh, unsigned char mask) argument
121 unsigned char ctrl = eh->ctrl | mask;
122 eh->ctrl = ctrl;
123 writeb(ctrl, eh->ctrl_port);
126 static inline void etherh_clr_ctrl(struct etherh_priv *eh, unsigned char mask) argument
128 unsigned char ctrl = eh->ctrl & ~mask;
129 eh->ctrl = ctrl;
130 writeb(ctrl, eh->ctrl_port);
133 static inline unsigned int etherh_get_stat(struct etherh_priv *eh) argument
135 return readb(eh
143 struct etherh_priv *eh = ec->irq_data; local
150 struct etherh_priv *eh = ec->irq_data; local
657 struct etherh_priv *eh; local
[all...]
/linux-master/net/netfilter/
H A Dxt_esp.c38 const struct ip_esp_hdr *eh; local
46 eh = skb_header_pointer(skb, par->thoff, sizeof(_esp), &_esp);
47 if (eh == NULL) {
56 return spi_match(espinfo->spis[0], espinfo->spis[1], ntohl(eh->spi),
/linux-master/net/802/
H A Dstp.c33 const struct ethhdr *eh = eth_hdr(skb); local
42 if (eh->h_dest[5] >= GARP_ADDR_MIN && eh->h_dest[5] <= GARP_ADDR_MAX) {
43 proto = rcu_dereference(garp_protos[eh->h_dest[5] -
46 !ether_addr_equal(eh->h_dest, proto->group_address))
/linux-master/drivers/net/ethernet/sfc/
H A Drx_common.h32 static inline u32 efx_rx_buf_hash(struct efx_nic *efx, const u8 *eh) argument
35 return __le32_to_cpup((const __le32 *)(eh + efx->rx_packet_hash_offset));
37 const u8 *data = eh + efx->rx_packet_hash_offset;
85 unsigned int n_frags, u8 *eh, __wsum csum);
H A Drx.c70 u8 *eh, int hdr_len)
86 memcpy(skb->data + efx->rx_ip_align, eh - efx->rx_prefix_size,
208 static void efx_rx_deliver(struct efx_channel *channel, u8 *eh, argument
215 skb = efx_rx_mk_skb(channel, rx_buf, n_frags, eh, hdr_len);
366 u8 *eh = efx_rx_buf_va(rx_buf); local
373 (eh + efx->rx_packet_len_offset));
391 efx_loopback_rx_packet(efx, eh, rx_buf->len);
397 if (!efx_do_xdp(efx, channel, rx_buf, &eh))
404 efx_rx_packet_gro(channel, rx_buf, channel->rx_pkt_n_frags, eh, 0);
406 efx_rx_deliver(channel, eh, rx_bu
67 efx_rx_mk_skb(struct efx_channel *channel, struct efx_rx_buffer *rx_buf, unsigned int n_frags, u8 *eh, int hdr_len) argument
[all...]
H A Def100_rx.c63 u8 *eh = efx_rx_buf_va(rx_buf); local
68 prefix = (u32 *)(eh - ESE_GZ_RX_PKT_PREFIX_LEN);
137 efx_rx_packet_gro(channel, rx_buf, channel->rx_pkt_n_frags, eh, csum);
/linux-master/drivers/net/ethernet/sfc/siena/
H A Drx_common.h32 static inline u32 efx_rx_buf_hash(struct efx_nic *efx, const u8 *eh) argument
35 return __le32_to_cpup((const __le32 *)(eh + efx->rx_packet_hash_offset));
37 const u8 *data = eh + efx->rx_packet_hash_offset;
79 unsigned int n_frags, u8 *eh, __wsum csum);
H A Drx.c70 u8 *eh, int hdr_len)
86 memcpy(skb->data + efx->rx_ip_align, eh - efx->rx_prefix_size,
208 static void efx_rx_deliver(struct efx_channel *channel, u8 *eh, argument
215 skb = efx_rx_mk_skb(channel, rx_buf, n_frags, eh, hdr_len);
365 u8 *eh = efx_rx_buf_va(rx_buf); local
372 (eh + efx->rx_packet_len_offset));
380 efx_siena_loopback_rx_packet(efx, eh, rx_buf->len);
387 if (!efx_do_xdp(efx, channel, rx_buf, &eh))
395 channel->rx_pkt_n_frags, eh, 0);
397 efx_rx_deliver(channel, eh, rx_bu
67 efx_rx_mk_skb(struct efx_channel *channel, struct efx_rx_buffer *rx_buf, unsigned int n_frags, u8 *eh, int hdr_len) argument
[all...]
/linux-master/net/bluetooth/bnep/
H A Dcore.c55 if (ether_addr_equal(dst, s->eh.h_source))
349 s->eh.h_proto = get_unaligned((__be16 *) (skb->data - 2));
358 if (ntohs(s->eh.h_proto) == ETH_P_8021Q) {
361 s->eh.h_proto = get_unaligned((__be16 *) (skb->data - 2));
377 __skb_put_data(nskb, &s->eh, ETH_HLEN);
381 __skb_put_data(nskb, s->eh.h_dest, ETH_ALEN);
383 put_unaligned(s->eh.h_proto, (__be16 *) __skb_put(nskb, 2));
388 __skb_put_data(nskb, s->eh.h_source, ETH_ALEN);
389 put_unaligned(s->eh.h_proto, (__be16 *)__skb_put(nskb, 2));
394 put_unaligned(s->eh
422 struct ethhdr *eh = (void *) skb->data; local
[all...]
H A Dnetdev.c124 struct ethhdr *eh = (void *) skb->data; local
126 if ((eh->h_dest[0] & 1) && !test_bit(bnep_mc_hash(eh->h_dest), (ulong *) &s->mc_filter))
136 struct ethhdr *eh = (void *) skb->data; local
137 u16 proto = ntohs(eh->h_proto);
/linux-master/arch/mips/tools/
H A Dloongson3-llsc-check.c239 Elf64_Ehdr *eh; local
269 eh = vmlinux;
270 if (memcmp(eh->e_ident, ELFMAG, SELFMAG)) {
275 if (eh->e_ident[EI_CLASS] != ELFCLASS64) {
280 if (eh->e_ident[EI_DATA] != ELFDATA2LSB) {
285 for (i = 0; i < le16toh(eh->e_shnum); i++) {
286 sh = vmlinux + le64toh(eh->e_shoff) + (i * le16toh(eh->e_shentsize));
/linux-master/net/ethernet/
H A Deth.c400 struct ethhdr *eh, *eh2; local
406 hlen = off_eth + sizeof(*eh);
407 eh = skb_gro_header(skb, hlen, off_eth);
408 if (unlikely(!eh))
418 if (compare_ether_header(eh, eh2)) {
424 type = eh->h_proto;
432 skb_gro_pull(skb, sizeof(*eh));
433 skb_gro_postpull_rcsum(skb, eh, sizeof(*eh));
448 struct ethhdr *eh local
[all...]
/linux-master/fs/ext4/
H A Dmigrate.c358 struct ext4_extent_header *eh; local
365 eh = (struct ext4_extent_header *)bh->b_data;
366 if (eh->eh_depth != 0) {
367 ix = EXT_FIRST_INDEX(eh);
368 for (i = 0; i < le16_to_cpu(eh->eh_entries); i++, ix++) {
393 struct ext4_extent_header *eh = (struct ext4_extent_header *)ei->i_data; local
395 if (eh->eh_depth == 0)
400 ix = EXT_FIRST_INDEX(eh);
401 for (i = 0; i < le16_to_cpu(eh->eh_entries); i++, ix++) {
598 struct ext4_extent_header *eh; local
[all...]
H A Dextents.c50 struct ext4_extent_header *eh)
56 csum = ext4_chksum(sbi, ei->i_csum_seed, (__u8 *)eh,
57 EXT4_EXTENT_TAIL_OFFSET(eh));
62 struct ext4_extent_header *eh)
69 et = find_ext4_extent_tail(eh);
70 if (et->et_checksum != ext4_extent_block_csum(inode, eh))
76 struct ext4_extent_header *eh)
83 et = find_ext4_extent_tail(eh);
84 et->et_checksum = ext4_extent_block_csum(inode, eh);
388 struct ext4_extent_header *eh,
49 ext4_extent_block_csum(struct inode *inode, struct ext4_extent_header *eh) argument
61 ext4_extent_block_csum_verify(struct inode *inode, struct ext4_extent_header *eh) argument
75 ext4_extent_block_csum_set(struct inode *inode, struct ext4_extent_header *eh) argument
387 ext4_valid_extent_entries(struct inode *inode, struct ext4_extent_header *eh, ext4_lblk_t lblk, ext4_fsblk_t *pblk, int depth) argument
454 __ext4_ext_check(const char *function, unsigned int line, struct inode *inode, struct ext4_extent_header *eh, int depth, ext4_fsblk_t pblk, ext4_lblk_t lblk) argument
523 ext4_cache_extents(struct inode *inode, struct ext4_extent_header *eh) argument
582 struct ext4_extent_header *eh = ext_block_hdr(bh); local
688 struct ext4_extent_header *eh; local
754 struct ext4_extent_header *eh = path->p_hdr; local
815 struct ext4_extent_header *eh = path->p_hdr; local
871 struct ext4_extent_header *eh; local
886 struct ext4_extent_header *eh; local
1540 struct ext4_extent_header *eh; local
1708 struct ext4_extent_header *eh; local
1805 struct ext4_extent_header *eh; local
1893 struct ext4_extent_header *eh; local
1972 struct ext4_extent_header *eh; local
2574 struct ext4_extent_header *eh; local
3399 struct ext4_extent_header *eh; local
[all...]
H A Dext4_extents.h101 find_ext4_extent_tail(struct ext4_extent_header *eh) argument
103 return (struct ext4_extent_tail *)(((void *)eh) +
104 EXT4_EXTENT_TAIL_OFFSET(eh));
/linux-master/drivers/firmware/arm_scmi/
H A Dnotify.c274 * @eh: A reference to pre-allocated buffer to be used as a scratch area by the
276 * @eh_sz: Size of the pre-allocated buffer @eh
301 struct scmi_event_header *eh; member in struct:scmi_registered_events_desc
432 outs = kfifo_out(&eq->kfifo, pd->eh,
442 r_evt = SCMI_GET_REVT_FROM_PD(pd, pd->eh->evt_id);
471 outs = kfifo_out(&eq->kfifo, pd->eh->payld, pd->eh->payld_sz);
478 if (outs != pd->eh->payld_sz) {
487 pd->id, pd->eh->evt_id);
491 report = REVT_FILL_REPORT(r_evt, pd->eh
583 struct scmi_event_header eh; local
[all...]
/linux-master/net/ncsi/
H A Dncsi-cmd.c325 struct ethhdr *eh; local
379 eh = skb_push(nr->cmd, sizeof(*eh));
380 eh->h_proto = htons(ETH_P_NCSI);
381 eth_broadcast_addr(eh->h_dest);
388 memcpy(eh->h_source, nca->ndp->ndev.dev->dev_addr, ETH_ALEN);
390 eth_broadcast_addr(eh->h_source);
/linux-master/tools/virtio/
H A Dvhost_net_test.c210 struct ether_header *eh; local
224 eh = (struct ether_header *)(dev->test_buf + HDR_LEN);
225 eh->ether_type = htons(TEST_PTYPE);
226 memcpy(eh->ether_dhost, dev->mac, ETHER_ADDR_LEN);
227 memcpy(eh->ether_shost, dev->mac, ETHER_ADDR_LEN);
229 for (i = sizeof(*eh); i < TEST_BUF_LEN; i++)
380 struct ether_header *eh; local
382 eh = (struct ether_header *)(dev->res_buf + HDR_LEN);
387 if (eh->ether_type == htons(TEST_PTYPE)) {
/linux-master/drivers/net/ethernet/sfc/falcon/
H A Drx.c62 static inline u32 ef4_rx_buf_hash(struct ef4_nic *efx, const u8 *eh) argument
65 return __le32_to_cpup((const __le32 *)(eh + efx->rx_packet_hash_offset));
67 const u8 *data = eh + efx->rx_packet_hash_offset;
431 unsigned int n_frags, u8 *eh)
447 skb_set_hash(skb, ef4_rx_buf_hash(efx, eh),
476 u8 *eh, int hdr_len)
492 memcpy(skb->data + efx->rx_ip_align, eh - efx->rx_prefix_size,
617 static void ef4_rx_deliver(struct ef4_channel *channel, u8 *eh, argument
624 skb = ef4_rx_mk_skb(channel, rx_buf, n_frags, eh, hdr_len);
653 u8 *eh local
430 ef4_rx_packet_gro(struct ef4_channel *channel, struct ef4_rx_buffer *rx_buf, unsigned int n_frags, u8 *eh) argument
473 ef4_rx_mk_skb(struct ef4_channel *channel, struct ef4_rx_buffer *rx_buf, unsigned int n_frags, u8 *eh, int hdr_len) argument
[all...]
/linux-master/drivers/parisc/
H A Deisa_enumerator.c484 struct eeprom_header *eh; local
493 eh = (struct eeprom_header*)(eeprom_buf);
494 for (i=0;i<eh->num_slots;i++) {
514 return eh->num_slots;
/linux-master/drivers/soc/qcom/
H A Dcmd-db.c138 static int cmd_db_get_header(const char *id, const struct entry_header **eh, argument
165 if (eh)
166 *eh = ent;
/linux-master/drivers/net/ethernet/marvell/prestera/
H A Dprestera_hw.c919 struct prestera_fw_event_handler *eh; local
921 list_for_each_entry_rcu(eh, &sw->event_handlers, list) {
922 if (eh->type == type)
923 return eh;
931 struct prestera_fw_event_handler *eh)
939 *eh = *tmp;
951 struct prestera_fw_event_handler eh; local
962 err = prestera_find_event_handler(sw, msg_type, &eh);
972 eh.func(sw, &evt, eh
929 prestera_find_event_handler(const struct prestera_switch *sw, enum prestera_event_type type, struct prestera_fw_event_handler *eh) argument
980 struct prestera_fw_event_handler eh; local
2256 struct prestera_fw_event_handler *eh; local
2281 struct prestera_fw_event_handler *eh; local
[all...]

Completed in 229 milliseconds

123