Home
last modified time | relevance | path

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

12

/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/usb/usbip/
Dusbip_event.c86 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()
Dstub_dev.c383 kthread_stop_put(sdev->ud.eh); in stub_probe()
448 if (busid_priv->sdev->ud.eh == current) in stub_disconnect()
Dusbip_common.h270 struct task_struct *eh; member
/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()
425 unsigned int n_frags, u8 *eh) in efx_rx_packet_gro() argument
443 skb_set_hash(skb, efx_rx_buf_hash(efx, eh), in efx_rx_packet_gro()
475 u8 *eh, int hdr_len) in efx_rx_mk_skb() argument
491 memcpy(skb->data + efx->rx_ip_align, eh - efx->rx_prefix_size, in efx_rx_mk_skb()
616 static void efx_rx_deliver(struct efx_channel *channel, u8 *eh, in efx_rx_deliver() argument
623 skb = efx_rx_mk_skb(channel, rx_buf, n_frags, eh, hdr_len); in efx_rx_deliver()
651 u8 *eh = efx_rx_buf_va(rx_buf); in __efx_rx_packet() local
[all …]
/drivers/bluetooth/
Dhci_ll.c377 struct hci_event_hdr *eh; in ll_recv() local
404 eh = hci_event_hdr(ll->rx_skb); in ll_recv()
406 BT_DBG("Event header: evt 0x%2.2x plen %d", eh->evt, eh->plen); in ll_recv()
408 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.c295 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()
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/fnic/
Dfnic_fcs.c569 struct ethhdr *eh; in fnic_handle_fip_frame() local
589 eh = (struct ethhdr *)skb->data; in fnic_handle_fip_frame()
590 if (eh->h_proto == htons(ETH_P_FIP)) { in fnic_handle_fip_frame()
591 skb_pull(skb, sizeof(*eh)); in fnic_handle_fip_frame()
625 struct ethhdr *eh; in fnic_import_rq_eth_pkt() local
632 eh = (struct ethhdr *)skb->data; in fnic_import_rq_eth_pkt()
633 if (eh->h_proto == htons(ETH_P_8021Q)) { in fnic_import_rq_eth_pkt()
634 memmove((u8 *)eh + VLAN_HLEN, eh, ETH_ALEN * 2); in fnic_import_rq_eth_pkt()
635 eh = (struct ethhdr *)skb_pull(skb, VLAN_HLEN); in fnic_import_rq_eth_pkt()
638 if (eh->h_proto == htons(ETH_P_FIP)) { in fnic_import_rq_eth_pkt()
[all …]
/drivers/net/ethernet/sgi/
Dioc3-eth.c509 struct ethhdr *eh = eth_hdr(skb); in ioc3_tcpudp_checksum() local
530 if (eh->h_proto != htons(ETH_P_IP)) in ioc3_tcpudp_checksum()
533 ih = (struct iphdr *) ((char *)eh + ETH_HLEN); in ioc3_tcpudp_checksum()
549 ew = (uint16_t *) eh; in ioc3_tcpudp_checksum()
559 cp = (char *)eh + len; /* points at trailing CRC */ in ioc3_tcpudp_checksum()
1423 uint16_t *eh; in ioc3_start_xmit() local
1427 eh = (uint16_t *) skb->data; in ioc3_start_xmit()
1430 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/scsi/fcoe/
Dfcoe.c1437 struct ethhdr *eh; in fcoe_rcv() local
1462 eh = eth_hdr(skb); in fcoe_rcv()
1465 !ether_addr_equal(eh->h_source, ctlr->dest_addr)) { in fcoe_rcv()
1467 eh->h_source); in fcoe_rcv()
1482 if (ntoh24(&eh->h_dest[3]) != ntoh24(fh->fh_d_id)) { in fcoe_rcv()
1484 eh->h_dest); in fcoe_rcv()
1589 struct ethhdr *eh; in fcoe_xmit() local
1680 eh = eth_hdr(skb); in fcoe_xmit()
1681 eh->h_proto = htons(ETH_P_FCOE); in fcoe_xmit()
1682 memcpy(eh->h_dest, ctlr->dest_addr, ETH_ALEN); in fcoe_xmit()
[all …]
Dfcoe_ctlr.c1513 struct ethhdr *eh; in fcoe_ctlr_recv_handler() local
1522 eh = eth_hdr(skb); in fcoe_ctlr_recv_handler()
1524 if (!ether_addr_equal(eh->h_dest, fip->ctl_src_addr) && in fcoe_ctlr_recv_handler()
1525 !ether_addr_equal(eh->h_dest, fcoe_all_vn2vn) && in fcoe_ctlr_recv_handler()
1526 !ether_addr_equal(eh->h_dest, fcoe_all_p2p)) in fcoe_ctlr_recv_handler()
1528 } else if (!ether_addr_equal(eh->h_dest, fip->ctl_src_addr) && in fcoe_ctlr_recv_handler()
1529 !ether_addr_equal(eh->h_dest, fcoe_all_enode)) in fcoe_ctlr_recv_handler()
/drivers/net/wireless/brcm80211/brcmfmac/
Ddhd_linux.c195 struct ethhdr *eh; in brcmf_netdev_start_xmit() local
226 if (skb->len < sizeof(*eh)) { in brcmf_netdev_start_xmit()
232 eh = (struct ethhdr *)(skb->data); in brcmf_netdev_start_xmit()
234 if (eh->h_proto == htons(ETH_P_PAE)) in brcmf_netdev_start_xmit()
543 struct ethhdr *eh; in brcmf_txfinalize() local
550 eh = (struct ethhdr *)(txp->data); in brcmf_txfinalize()
551 type = ntohs(eh->h_proto); in brcmf_txfinalize()
Dmsgbuf.c663 struct ethhdr *eh = (struct ethhdr *)(skb->data); in brcmf_msgbuf_flowring_create() local
671 flowid = brcmf_flowring_create(msgbuf->flow, eh->h_dest, in brcmf_msgbuf_flowring_create()
680 memcpy(create->sa, eh->h_source, ETH_ALEN); in brcmf_msgbuf_flowring_create()
681 memcpy(create->da, eh->h_dest, ETH_ALEN); in brcmf_msgbuf_flowring_create()
791 struct ethhdr *eh = (struct ethhdr *)(skb->data); in brcmf_msgbuf_txdata() local
794 flowid = brcmf_flowring_lookup(flow, eh->h_dest, skb->priority, ifidx); in brcmf_msgbuf_txdata()
Dfwsignal.c1892 struct ethhdr *eh = (struct ethhdr *)(skb->data); in brcmf_fws_process_skb() local
1894 bool multicast = is_multicast_ether_addr(eh->h_dest); in brcmf_fws_process_skb()
1897 brcmf_dbg(DATA, "tx proto=0x%X\n", ntohs(eh->h_proto)); in brcmf_fws_process_skb()
1923 skcb->mac = brcmf_fws_macdesc_find(fws, ifp, eh->h_dest); in brcmf_fws_process_skb()
1925 eh->h_dest, multicast, fifo); in brcmf_fws_process_skb()
/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/
Dvxlan.c552 struct ethhdr *eh, *eh2; in vxlan_gro_receive() local
570 hlen = off_eth + sizeof(*eh); in vxlan_gro_receive()
571 eh = skb_gro_header_fast(skb, off_eth); in vxlan_gro_receive()
573 eh = skb_gro_header_slow(skb, hlen, off_eth); in vxlan_gro_receive()
574 if (unlikely(!eh)) in vxlan_gro_receive()
586 if (vh->vx_vni != vh2->vx_vni || compare_ether_header(eh, eh2)) { in vxlan_gro_receive()
592 type = eh->h_proto; in vxlan_gro_receive()
601 skb_gro_pull(skb, sizeof(*eh)); /* pull inner eth header */ in vxlan_gro_receive()
602 skb_gro_postpull_rcsum(skb, eh, sizeof(*eh)); in vxlan_gro_receive()
615 struct ethhdr *eh; in vxlan_gro_complete() local
[all …]
Dtun.c689 struct ethhdr *eh = (struct ethhdr *) skb->data; in run_filter() local
694 if (ether_addr_equal(eh->h_dest, filter->addr[i])) in run_filter()
698 if (is_multicast_ether_addr(eh->h_dest)) in run_filter()
699 return addr_hash_test(filter->mask, eh->h_dest); in run_filter()
/drivers/net/wireless/orinoco/
Dmain.c374 struct ethhdr *eh; in orinoco_process_xmit_skb() local
386 eh = (struct ethhdr *)skb->data; in orinoco_process_xmit_skb()
389 if (ntohs(eh->h_proto) > ETH_DATA_LEN) { /* Ethernet-II frame */ in orinoco_process_xmit_skb()
405 memcpy(&hdr.eth, eh, 2 * ETH_ALEN); in orinoco_process_xmit_skb()
410 eh = (struct ethhdr *) skb_push(skb, ENCAPS_OVERHEAD); in orinoco_process_xmit_skb()
411 memcpy(eh, &hdr, sizeof(hdr)); in orinoco_process_xmit_skb()
427 eh->h_dest, eh->h_source, 0 /* priority */, in orinoco_process_xmit_skb()
/drivers/scsi/bnx2fc/
Dbnx2fc_fcoe.c245 struct ethhdr *eh; in bnx2fc_xmit() local
352 eh = eth_hdr(skb); in bnx2fc_xmit()
353 eh->h_proto = htons(ETH_P_FCOE); in bnx2fc_xmit()
355 fc_fcoe_set_mac(eh->h_dest, fh->fh_d_id); in bnx2fc_xmit()
358 memcpy(eh->h_dest, ctlr->dest_addr, ETH_ALEN); in bnx2fc_xmit()
361 memcpy(eh->h_source, ctlr->ctl_src_addr, ETH_ALEN); in bnx2fc_xmit()
363 memcpy(eh->h_source, port->data_src_addr, ETH_ALEN); in bnx2fc_xmit()
365 hp = (struct fcoe_hdr *)(eh + 1); in bnx2fc_xmit()
/drivers/ide/
DMakefile9 ide-io-std.o ide-eh.o
/drivers/ata/
DMakefile114 libata-y := libata-core.o libata-scsi.o libata-eh.o libata-transport.o
/drivers/md/
Ddm-snap.c697 static void dm_insert_exception(struct dm_exception_table *eh, in dm_insert_exception() argument
703 l = &eh->table[exception_hash(eh, new_e->old_chunk)]; in dm_insert_exception()
706 if (!eh->hash_shift) in dm_insert_exception()

12