| /drivers/infiniband/hw/hfi1/ |
| A D | trace.c | 253 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 …]
|
| /drivers/net/ethernet/8390/ |
| A D | etherh.c | 122 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 …]
|
| /drivers/net/ethernet/sfc/siena/ |
| A D | rx.c | 70 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 D | rx_common.h | 32 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);
|
| /drivers/firmware/arm_scmi/ |
| A D | notify.c | 475 outs = kfifo_out(&eq->kfifo, pd->eh->payld, pd->eh->payld_sz); in scmi_process_event_payload() 491 pd->id, pd->eh->evt_id); in scmi_process_event_payload() 495 report = REVT_FILL_REPORT(r_evt, pd->eh->evt_id, pd->eh->timestamp, in scmi_process_event_payload() 496 pd->eh->payld, pd->eh->payld_sz, in scmi_process_event_payload() 501 pd->id, pd->eh->evt_id); in scmi_process_event_payload() 587 struct scmi_event_header eh; in scmi_notify() local 609 eh.timestamp = ts; in scmi_notify() 610 eh.evt_id = evt_id; in scmi_notify() 611 eh.payld_sz = len; in scmi_notify() 617 kfifo_in(&r_evt->proto->equeue.kfifo, &eh, sizeof(eh)); in scmi_notify() [all …]
|
| /drivers/net/ethernet/sfc/ |
| A D | rx.c | 70 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() 206 static void efx_rx_deliver(struct efx_channel *channel, u8 *eh, in efx_rx_deliver() argument 213 skb = efx_rx_mk_skb(channel, rx_buf, n_frags, eh, hdr_len); in efx_rx_deliver() 364 u8 *eh = efx_rx_buf_va(rx_buf); in __efx_rx_packet() local 371 (eh + efx->rx_packet_len_offset)); in __efx_rx_packet() 389 efx_loopback_rx_packet(efx, eh, rx_buf->len); in __efx_rx_packet() 398 if (!efx_do_xdp(efx, channel, rx_buf, &eh)) in __efx_rx_packet() 405 efx_rx_packet_gro(channel, rx_buf, channel->rx_pkt_n_frags, eh, 0); in __efx_rx_packet() 407 efx_rx_deliver(channel, eh, rx_buf, channel->rx_pkt_n_frags); in __efx_rx_packet()
|
| A D | rx_common.h | 32 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);
|
| A D | ef100_rx.c | 63 u8 *eh = efx_rx_buf_va(rx_buf); in __ef100_rx_packet() local 68 prefix = (u32 *)(eh - ESE_GZ_RX_PKT_PREFIX_LEN); in __ef100_rx_packet() 140 efx_rx_packet_gro(channel, rx_buf, channel->rx_pkt_n_frags, eh, csum); in __ef100_rx_packet()
|
| /drivers/net/ethernet/sfc/falcon/ |
| A D | rx.c | 62 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() 432 unsigned int n_frags, u8 *eh) in ef4_rx_packet_gro() argument 448 skb_set_hash(skb, ef4_rx_buf_hash(efx, eh), in ef4_rx_packet_gro() 477 u8 *eh, int hdr_len) in ef4_rx_mk_skb() argument 493 memcpy(skb->data + efx->rx_ip_align, eh - efx->rx_prefix_size, in ef4_rx_mk_skb() 618 static void ef4_rx_deliver(struct ef4_channel *channel, u8 *eh, in ef4_rx_deliver() argument 625 skb = ef4_rx_mk_skb(channel, rx_buf, n_frags, eh, hdr_len); in ef4_rx_deliver() 654 u8 *eh = ef4_rx_buf_va(rx_buf); in __ef4_rx_packet() local 661 (eh + efx->rx_packet_len_offset)); in __ef4_rx_packet() [all …]
|
| /drivers/net/ethernet/marvell/prestera/ |
| A D | prestera_hw.c | 925 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 …]
|
| /drivers/net/ethernet/sgi/ |
| A D | ioc3-eth.c | 299 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()
|
| /drivers/parisc/ |
| A D | eisa_enumerator.c | 484 struct eeprom_header *eh; in eisa_enumerator() local 493 eh = (struct eeprom_header*)(eeprom_buf); in eisa_enumerator() 494 for (i=0;i<eh->num_slots;i++) { in eisa_enumerator() 514 return eh->num_slots; in eisa_enumerator()
|
| /drivers/soc/qcom/ |
| A D | cmd-db.c | 144 static int cmd_db_get_header(const char *id, const struct entry_header **eh, in cmd_db_get_header() argument 166 if (eh) in cmd_db_get_header() 167 *eh = ent; in cmd_db_get_header()
|
| /drivers/scsi/fcoe/ |
| A D | fcoe.c | 1323 struct ethhdr *eh; in fcoe_rcv() local 1348 eh = eth_hdr(skb); in fcoe_rcv() 1353 eh->h_source); in fcoe_rcv() 1368 if (ntoh24(&eh->h_dest[3]) != ntoh24(fh->fh_d_id)) { in fcoe_rcv() 1370 eh->h_dest); in fcoe_rcv() 1454 struct ethhdr *eh; in fcoe_xmit() local 1540 eh = eth_hdr(skb); in fcoe_xmit() 1541 eh->h_proto = htons(ETH_P_FCOE); in fcoe_xmit() 1542 memcpy(eh->h_dest, ctlr->dest_addr, ETH_ALEN); in fcoe_xmit() 1544 memcpy(eh->h_dest + 3, fh->fh_d_id, 3); in fcoe_xmit() [all …]
|
| A D | fcoe_ctlr.c | 1324 struct ethhdr *eh = eth_hdr(skb); in fcoe_ctlr_recv_clr_vlink() local 1346 if (!ether_addr_equal(eh->h_source, fcf->fcf_mac)) { in fcoe_ctlr_recv_clr_vlink() 1348 "mismatch with FCF src=%pM\n", eh->h_source); in fcoe_ctlr_recv_clr_vlink() 1532 struct ethhdr *eh; in fcoe_ctlr_recv_handler() local 1542 eh = eth_hdr(skb); in fcoe_ctlr_recv_handler() 1544 if (!ether_addr_equal(eh->h_dest, fip->ctl_src_addr) && in fcoe_ctlr_recv_handler() 1545 !ether_addr_equal(eh->h_dest, fcoe_all_vn2vn) && in fcoe_ctlr_recv_handler() 1546 !ether_addr_equal(eh->h_dest, fcoe_all_p2p)) in fcoe_ctlr_recv_handler() 1548 } else if (!ether_addr_equal(eh->h_dest, fip->ctl_src_addr) && in fcoe_ctlr_recv_handler() 1549 !ether_addr_equal(eh->h_dest, fcoe_all_enode)) in fcoe_ctlr_recv_handler()
|
| /drivers/scsi/fnic/ |
| A D | fnic_fcs.c | 372 struct ethhdr *eh; in fnic_import_rq_eth_pkt() local 376 eh = (struct ethhdr *) fp; in fnic_import_rq_eth_pkt() 377 if ((eh->h_proto == cpu_to_be16(ETH_P_FIP)) && (fnic->iport.usefip)) { in fnic_import_rq_eth_pkt() 447 struct ethhdr *eh; in fnic_rq_cmpl_frame_recv() local 484 eh = (struct ethhdr *) fp; in fnic_rq_cmpl_frame_recv() 485 if (eh->h_proto != cpu_to_be16(ETH_P_FCOE)) { in fnic_rq_cmpl_frame_recv() 492 be16_to_cpu(eh->h_proto)); in fnic_rq_cmpl_frame_recv()
|
| /drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
| A D | core.c | 299 struct ethhdr *eh; in brcmf_netdev_start_xmit() local 350 if (skb->len < sizeof(*eh)) { in brcmf_netdev_start_xmit() 356 eh = (struct ethhdr *)(skb->data); in brcmf_netdev_start_xmit() 358 if (eh->h_proto == htons(ETH_P_PAE)) in brcmf_netdev_start_xmit() 545 struct ethhdr *eh; in brcmf_txfinalize() local 553 eh = (struct ethhdr *)(txp->data); in brcmf_txfinalize() 554 type = ntohs(eh->h_proto); in brcmf_txfinalize()
|
| A D | msgbuf.c | 669 struct ethhdr *eh = (struct ethhdr *)(skb->data); in brcmf_msgbuf_flowring_create() local 677 flowid = brcmf_flowring_create(msgbuf->flow, eh->h_dest, in brcmf_msgbuf_flowring_create() 686 memcpy(create->sa, eh->h_source, ETH_ALEN); in brcmf_msgbuf_flowring_create() 687 memcpy(create->da, eh->h_dest, ETH_ALEN); in brcmf_msgbuf_flowring_create() 805 struct ethhdr *eh = (struct ethhdr *)(skb->data); in brcmf_msgbuf_tx_queue_data() local 810 flowid = brcmf_flowring_lookup(flow, eh->h_dest, skb->priority, ifidx); in brcmf_msgbuf_tx_queue_data()
|
| /drivers/bluetooth/ |
| A D | bt3c_cs.c | 292 struct hci_event_hdr *eh; in bt3c_receive() local 299 eh = hci_event_hdr(info->rx_skb); in bt3c_receive() 301 info->rx_count = eh->plen; in bt3c_receive()
|
| A D | bluecard_cs.c | 451 struct hci_event_hdr *eh; in bluecard_receive() local 458 eh = hci_event_hdr(info->rx_skb); in bluecard_receive() 460 info->rx_count = eh->plen; in bluecard_receive()
|
| /drivers/scsi/ |
| A D | sr.c | 169 struct event_header *eh = (void *)buf; in sr_get_events() local 183 if (result || be16_to_cpu(eh->data_len) < sizeof(*med)) in sr_get_events() 186 if (eh->nea || eh->notification_class != 0x4) in sr_get_events()
|
| /drivers/scsi/qedi/ |
| A D | qedi_main.c | 672 struct ethhdr *eh; in qedi_ll2_rx() local 686 eh = (struct ethhdr *)skb->data; in qedi_ll2_rx() 688 if (eh->h_proto == htons(ETH_P_8021Q)) { in qedi_ll2_rx() 689 memmove((u8 *)eh + VLAN_HLEN, eh, ETH_ALEN * 2); in qedi_ll2_rx() 690 eh = (struct ethhdr *)skb_pull(skb, VLAN_HLEN); in qedi_ll2_rx() 695 if (eh->h_proto != htons(ETH_P_ARP) && in qedi_ll2_rx() 696 eh->h_proto != htons(ETH_P_IP) && in qedi_ll2_rx() 697 eh->h_proto != htons(ETH_P_IPV6)) { in qedi_ll2_rx() 700 eh->h_proto, skb->len); in qedi_ll2_rx() 707 eh->h_proto, skb->len); in qedi_ll2_rx()
|
| /drivers/scsi/qedf/ |
| A D | qedf_main.c | 1074 struct ethhdr *eh; in qedf_xmit() local 1212 eh = eth_hdr(skb); in qedf_xmit() 1213 eh->h_proto = htons(ETH_P_FCOE); in qedf_xmit() 1215 fc_fcoe_set_mac(eh->h_dest, fh->fh_d_id); in qedf_xmit() 1223 hp = (struct fcoe_hdr *)(eh + 1); in qedf_xmit() 2626 struct ethhdr *eh; in qedf_ll2_process_skb() local 2633 eh = (struct ethhdr *)skb->data; in qedf_ll2_process_skb() 2636 if (eh->h_proto == htons(ETH_P_8021Q)) { in qedf_ll2_process_skb() 2637 memmove((u8 *)eh + VLAN_HLEN, eh, ETH_ALEN * 2); in qedf_ll2_process_skb() 2638 eh = skb_pull(skb, VLAN_HLEN); in qedf_ll2_process_skb() [all …]
|
| /drivers/net/ethernet/airoha/ |
| A D | airoha_ppe.c | 209 struct ethhdr *eh) in airoha_ppe_foe_set_bridge_addrs() argument 211 br->dest_mac_hi = get_unaligned_be32(eh->h_dest); in airoha_ppe_foe_set_bridge_addrs() 212 br->dest_mac_lo = get_unaligned_be16(eh->h_dest + 4); in airoha_ppe_foe_set_bridge_addrs() 213 br->src_mac_hi = get_unaligned_be16(eh->h_source); in airoha_ppe_foe_set_bridge_addrs() 214 br->src_mac_lo = get_unaligned_be32(eh->h_source + 2); in airoha_ppe_foe_set_bridge_addrs()
|
| /drivers/scsi/bnx2fc/ |
| A D | bnx2fc_fcoe.c | 266 struct ethhdr *eh; in bnx2fc_xmit() local 372 eh = eth_hdr(skb); in bnx2fc_xmit() 373 eh->h_proto = htons(ETH_P_FCOE); in bnx2fc_xmit() 375 fc_fcoe_set_mac(eh->h_dest, fh->fh_d_id); in bnx2fc_xmit() 378 memcpy(eh->h_dest, ctlr->dest_addr, ETH_ALEN); in bnx2fc_xmit() 381 memcpy(eh->h_source, ctlr->ctl_src_addr, ETH_ALEN); in bnx2fc_xmit() 383 memcpy(eh->h_source, port->data_src_addr, ETH_ALEN); in bnx2fc_xmit() 385 hp = (struct fcoe_hdr *)(eh + 1); in bnx2fc_xmit()
|