Home
last modified time | relevance | path

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

12

/drivers/infiniband/hw/hfi1/
Dtrace.c267 union ib_ehdrs *eh = ehdrs; in parse_everbs_hdrs() local
279 be32_to_cpu(eh->imm_data)); in parse_everbs_hdrs()
285 get_ib_reth_vaddr(&eh->rc.reth), in parse_everbs_hdrs()
286 be32_to_cpu(eh->rc.reth.rkey), in parse_everbs_hdrs()
287 be32_to_cpu(eh->rc.reth.length), in parse_everbs_hdrs()
288 be32_to_cpu(eh->rc.imm_data)); in parse_everbs_hdrs()
297 get_ib_reth_vaddr(&eh->rc.reth), in parse_everbs_hdrs()
298 be32_to_cpu(eh->rc.reth.rkey), in parse_everbs_hdrs()
299 be32_to_cpu(eh->rc.reth.length)); in parse_everbs_hdrs()
305 trace_seq_printf(p, AETH_PRN, be32_to_cpu(eh->aeth) >> 24, in parse_everbs_hdrs()
[all …]
/drivers/net/ethernet/8390/
Detherh.c124 static inline void etherh_set_ctrl(struct etherh_priv *eh, unsigned char mask) in etherh_set_ctrl() argument
126 unsigned char ctrl = eh->ctrl | mask; in etherh_set_ctrl()
127 eh->ctrl = ctrl; in etherh_set_ctrl()
128 writeb(ctrl, eh->ctrl_port); in etherh_set_ctrl()
131 static inline void etherh_clr_ctrl(struct etherh_priv *eh, unsigned char mask) in etherh_clr_ctrl() argument
133 unsigned char ctrl = eh->ctrl & ~mask; in etherh_clr_ctrl()
134 eh->ctrl = ctrl; in etherh_clr_ctrl()
135 writeb(ctrl, eh->ctrl_port); in etherh_clr_ctrl()
138 static inline unsigned int etherh_get_stat(struct etherh_priv *eh) in etherh_get_stat() argument
140 return readb(eh->ctrl_port); in etherh_get_stat()
[all …]
/drivers/net/ethernet/sfc/falcon/
Drx.c65 static inline u32 ef4_rx_buf_hash(struct ef4_nic *efx, const u8 *eh) in ef4_rx_buf_hash() argument
68 return __le32_to_cpup((const __le32 *)(eh + efx->rx_packet_hash_offset)); in ef4_rx_buf_hash()
70 const u8 *data = eh + efx->rx_packet_hash_offset; in ef4_rx_buf_hash()
427 unsigned int n_frags, u8 *eh) in ef4_rx_packet_gro() argument
444 skb_set_hash(skb, ef4_rx_buf_hash(efx, eh), in ef4_rx_packet_gro()
475 u8 *eh, int hdr_len) in ef4_rx_mk_skb() argument
491 memcpy(skb->data + efx->rx_ip_align, eh - efx->rx_prefix_size, in ef4_rx_mk_skb()
616 static void ef4_rx_deliver(struct ef4_channel *channel, u8 *eh, in ef4_rx_deliver() argument
623 skb = ef4_rx_mk_skb(channel, rx_buf, n_frags, eh, hdr_len); in ef4_rx_deliver()
652 u8 *eh = ef4_rx_buf_va(rx_buf); in __ef4_rx_packet() local
[all …]
/drivers/net/ethernet/sfc/
Drx.c65 static inline u32 efx_rx_buf_hash(struct efx_nic *efx, const u8 *eh) in efx_rx_buf_hash() argument
68 return __le32_to_cpup((const __le32 *)(eh + efx->rx_packet_hash_offset)); in efx_rx_buf_hash()
70 const u8 *data = eh + efx->rx_packet_hash_offset; in efx_rx_buf_hash()
416 unsigned int n_frags, u8 *eh) in efx_rx_packet_gro() argument
433 skb_set_hash(skb, efx_rx_buf_hash(efx, eh), in efx_rx_packet_gro()
465 u8 *eh, int hdr_len) in efx_rx_mk_skb() argument
481 memcpy(skb->data + efx->rx_ip_align, eh - efx->rx_prefix_size, in efx_rx_mk_skb()
606 static void efx_rx_deliver(struct efx_channel *channel, u8 *eh, in efx_rx_deliver() argument
613 skb = efx_rx_mk_skb(channel, rx_buf, n_frags, eh, hdr_len); in efx_rx_deliver()
646 u8 *eh = efx_rx_buf_va(rx_buf); in __efx_rx_packet() local
[all …]
Dptp.c1732 static inline u32 efx_rx_buf_timestamp_minor(struct efx_nic *efx, const u8 *eh) in efx_rx_buf_timestamp_minor() argument
1735 return __le32_to_cpup((const __le32 *)(eh + efx->rx_packet_ts_offset)); in efx_rx_buf_timestamp_minor()
1737 const u8 *data = eh + efx->rx_packet_ts_offset; in efx_rx_buf_timestamp_minor()
/drivers/scsi/fnic/
Dfnic_fcs.c601 struct ethhdr *eh; in fnic_handle_fip_frame() local
621 eh = (struct ethhdr *)skb->data; in fnic_handle_fip_frame()
622 if (eh->h_proto == htons(ETH_P_FIP)) { in fnic_handle_fip_frame()
623 skb_pull(skb, sizeof(*eh)); in fnic_handle_fip_frame()
657 struct ethhdr *eh; in fnic_import_rq_eth_pkt() local
664 eh = (struct ethhdr *)skb->data; in fnic_import_rq_eth_pkt()
665 if (eh->h_proto == htons(ETH_P_8021Q)) { in fnic_import_rq_eth_pkt()
666 memmove((u8 *)eh + VLAN_HLEN, eh, ETH_ALEN * 2); in fnic_import_rq_eth_pkt()
667 eh = skb_pull(skb, VLAN_HLEN); in fnic_import_rq_eth_pkt()
670 if (eh->h_proto == htons(ETH_P_FIP)) { in fnic_import_rq_eth_pkt()
[all …]
/drivers/net/ethernet/sgi/
Dioc3-eth.c505 struct ethhdr *eh = eth_hdr(skb); in ioc3_tcpudp_checksum() local
526 if (eh->h_proto != htons(ETH_P_IP)) in ioc3_tcpudp_checksum()
529 ih = (struct iphdr *) ((char *)eh + ETH_HLEN); in ioc3_tcpudp_checksum()
545 ew = (uint16_t *) eh; in ioc3_tcpudp_checksum()
555 cp = (char *)eh + len; /* points at trailing CRC */ in ioc3_tcpudp_checksum()
1418 uint16_t *eh; in ioc3_start_xmit() local
1422 eh = (uint16_t *) skb->data; in ioc3_start_xmit()
1425 ehsum = eh[0] + eh[1] + eh[2] + eh[3] + eh[4] + eh[5] + eh[6]; in ioc3_start_xmit()
/drivers/parisc/
Deisa_enumerator.c489 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()
/drivers/bluetooth/
Dhci_ll.c405 struct hci_event_hdr *eh; in ll_recv() local
432 eh = hci_event_hdr(ll->rx_skb); in ll_recv()
434 BT_DBG("Event header: evt 0x%2.2x plen %d", eh->evt, eh->plen); in ll_recv()
436 ll_check_data_len(hu->hdev, ll, eh->plen); in ll_recv()
Dbtuart_cs.c242 struct hci_event_hdr *eh; in btuart_receive() local
250 eh = hci_event_hdr(info->rx_skb); in btuart_receive()
252 info->rx_count = eh->plen; in btuart_receive()
Dbt3c_cs.c292 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()
Dbluecard_cs.c456 struct hci_event_hdr *eh; in bluecard_receive() local
463 eh = hci_event_hdr(info->rx_skb); in bluecard_receive()
465 info->rx_count = eh->plen; in bluecard_receive()
/drivers/scsi/fcoe/
Dfcoe.c1356 struct ethhdr *eh; in fcoe_rcv() local
1381 eh = eth_hdr(skb); in fcoe_rcv()
1384 !ether_addr_equal(eh->h_source, ctlr->dest_addr)) { in fcoe_rcv()
1386 eh->h_source); in fcoe_rcv()
1401 if (ntoh24(&eh->h_dest[3]) != ntoh24(fh->fh_d_id)) { in fcoe_rcv()
1403 eh->h_dest); in fcoe_rcv()
1487 struct ethhdr *eh; in fcoe_xmit() local
1576 eh = eth_hdr(skb); in fcoe_xmit()
1577 eh->h_proto = htons(ETH_P_FCOE); in fcoe_xmit()
1578 memcpy(eh->h_dest, ctlr->dest_addr, ETH_ALEN); in fcoe_xmit()
[all …]
Dfcoe_ctlr.c1339 struct ethhdr *eh = eth_hdr(skb); in fcoe_ctlr_recv_clr_vlink() local
1361 if (!ether_addr_equal(eh->h_source, fcf->fcf_mac)) { in fcoe_ctlr_recv_clr_vlink()
1363 "mismatch with FCF src=%pM\n", eh->h_source); in fcoe_ctlr_recv_clr_vlink()
1550 struct ethhdr *eh; in fcoe_ctlr_recv_handler() local
1560 eh = eth_hdr(skb); in fcoe_ctlr_recv_handler()
1562 if (!ether_addr_equal(eh->h_dest, fip->ctl_src_addr) && in fcoe_ctlr_recv_handler()
1563 !ether_addr_equal(eh->h_dest, fcoe_all_vn2vn) && in fcoe_ctlr_recv_handler()
1564 !ether_addr_equal(eh->h_dest, fcoe_all_p2p)) in fcoe_ctlr_recv_handler()
1566 } else if (!ether_addr_equal(eh->h_dest, fip->ctl_src_addr) && in fcoe_ctlr_recv_handler()
1567 !ether_addr_equal(eh->h_dest, fcoe_all_enode)) in fcoe_ctlr_recv_handler()
/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dcore.c201 struct ethhdr *eh; in brcmf_netdev_start_xmit() local
233 if (skb->len < sizeof(*eh)) { in brcmf_netdev_start_xmit()
239 eh = (struct ethhdr *)(skb->data); in brcmf_netdev_start_xmit()
241 if (eh->h_proto == htons(ETH_P_PAE)) in brcmf_netdev_start_xmit()
371 struct ethhdr *eh; in brcmf_txfinalize() local
374 eh = (struct ethhdr *)(txp->data); in brcmf_txfinalize()
375 type = ntohs(eh->h_proto); in brcmf_txfinalize()
Dmsgbuf.c653 struct ethhdr *eh = (struct ethhdr *)(skb->data); in brcmf_msgbuf_flowring_create() local
661 flowid = brcmf_flowring_create(msgbuf->flow, eh->h_dest, in brcmf_msgbuf_flowring_create()
670 memcpy(create->sa, eh->h_source, ETH_ALEN); in brcmf_msgbuf_flowring_create()
671 memcpy(create->da, eh->h_dest, ETH_ALEN); in brcmf_msgbuf_flowring_create()
788 struct ethhdr *eh = (struct ethhdr *)(skb->data); in brcmf_msgbuf_tx_queue_data() local
793 flowid = brcmf_flowring_lookup(flow, eh->h_dest, skb->priority, ifidx); in brcmf_msgbuf_tx_queue_data()
Dfwsignal.c2101 struct ethhdr *eh = (struct ethhdr *)(skb->data); in brcmf_fws_process_skb() local
2103 bool multicast = is_multicast_ether_addr(eh->h_dest); in brcmf_fws_process_skb()
2106 brcmf_dbg(DATA, "tx proto=0x%X\n", ntohs(eh->h_proto)); in brcmf_fws_process_skb()
2120 skcb->mac = brcmf_fws_macdesc_find(fws, ifp, eh->h_dest); in brcmf_fws_process_skb()
2122 eh->h_dest, multicast, fifo); in brcmf_fws_process_skb()
/drivers/scsi/qedf/
Dqedf_main.c827 struct ethhdr *eh; in qedf_xmit() local
964 eh = eth_hdr(skb); in qedf_xmit()
965 eh->h_proto = htons(ETH_P_FCOE); in qedf_xmit()
967 fc_fcoe_set_mac(eh->h_dest, fh->fh_d_id); in qedf_xmit()
970 ether_addr_copy(eh->h_dest, qedf->ctlr.dest_addr); in qedf_xmit()
973 ether_addr_copy(eh->h_source, qedf->data_src_addr); in qedf_xmit()
975 hp = (struct fcoe_hdr *)(eh + 1); in qedf_xmit()
2274 struct ethhdr *eh; in qedf_ll2_process_skb() local
2281 eh = (struct ethhdr *)skb->data; in qedf_ll2_process_skb()
2284 if (eh->h_proto == htons(ETH_P_8021Q)) { in qedf_ll2_process_skb()
[all …]
/drivers/scsi/
Dsr.c199 struct event_header *eh = (void *)buf; in sr_get_events() local
209 if (result || be16_to_cpu(eh->data_len) < sizeof(*med)) in sr_get_events()
212 if (eh->nea || eh->notification_class != 0x4) in sr_get_events()
/drivers/net/wireless/intersil/orinoco/
Dmain.c363 struct ethhdr *eh; in orinoco_process_xmit_skb() local
375 eh = (struct ethhdr *)skb->data; in orinoco_process_xmit_skb()
378 if (ntohs(eh->h_proto) > ETH_DATA_LEN) { /* Ethernet-II frame */ in orinoco_process_xmit_skb()
394 memcpy(&hdr.eth, eh, 2 * ETH_ALEN); in orinoco_process_xmit_skb()
399 eh = skb_push(skb, ENCAPS_OVERHEAD); in orinoco_process_xmit_skb()
400 memcpy(eh, &hdr, sizeof(hdr)); in orinoco_process_xmit_skb()
416 eh->h_dest, eh->h_source, 0 /* priority */, in orinoco_process_xmit_skb()
/drivers/scsi/bnx2fc/
Dbnx2fc_fcoe.c268 struct ethhdr *eh; in bnx2fc_xmit() local
375 eh = eth_hdr(skb); in bnx2fc_xmit()
376 eh->h_proto = htons(ETH_P_FCOE); in bnx2fc_xmit()
378 fc_fcoe_set_mac(eh->h_dest, fh->fh_d_id); in bnx2fc_xmit()
381 memcpy(eh->h_dest, ctlr->dest_addr, ETH_ALEN); in bnx2fc_xmit()
384 memcpy(eh->h_source, ctlr->ctl_src_addr, ETH_ALEN); in bnx2fc_xmit()
386 memcpy(eh->h_source, port->data_src_addr, ETH_ALEN); in bnx2fc_xmit()
388 hp = (struct fcoe_hdr *)(eh + 1); in bnx2fc_xmit()
/drivers/net/ethernet/emulex/benet/
Dbe_main.c1086 struct ethhdr *eh = (struct ethhdr *)skb->data; in be_ipv6_exthdr_check() local
1089 if (eh->h_proto == htons(ETH_P_IPV6)) { in be_ipv6_exthdr_check()
1249 #define is_mc_allowed_on_bmc(adapter, eh) \ argument
1251 is_multicast_ether_addr(eh->h_dest) && \
1252 !is_broadcast_ether_addr(eh->h_dest))
1254 #define is_bc_allowed_on_bmc(adapter, eh) \ argument
1256 is_broadcast_ether_addr(eh->h_dest))
1261 #define is_broadcast_packet(eh, adapter) \ argument
1262 (is_multicast_ether_addr(eh->h_dest) && \
1263 !compare_ether_addr(eh->h_dest, adapter->netdev->broadcast))
[all …]
/drivers/ide/
DMakefile10 ide-io-std.o ide-eh.o
/drivers/ata/
DMakefile124 libata-y := libata-core.o libata-scsi.o libata-eh.o \
/drivers/md/
Ddm-snap.c719 static void dm_insert_exception(struct dm_exception_table *eh, in dm_insert_exception() argument
725 l = &eh->table[exception_hash(eh, new_e->old_chunk)]; in dm_insert_exception()
728 if (!eh->hash_shift) in dm_insert_exception()

12