Home
last modified time | relevance | path

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

/drivers/net/arm/
Detherh.c128 static inline void etherh_set_ctrl(struct etherh_priv *eh, unsigned char mask) in etherh_set_ctrl() argument
130 unsigned char ctrl = eh->ctrl | mask; in etherh_set_ctrl()
131 eh->ctrl = ctrl; in etherh_set_ctrl()
132 writeb(ctrl, eh->ctrl_port); in etherh_set_ctrl()
135 static inline void etherh_clr_ctrl(struct etherh_priv *eh, unsigned char mask) in etherh_clr_ctrl() argument
137 unsigned char ctrl = eh->ctrl & ~mask; in etherh_clr_ctrl()
138 eh->ctrl = ctrl; in etherh_clr_ctrl()
139 writeb(ctrl, eh->ctrl_port); in etherh_clr_ctrl()
142 static inline unsigned int etherh_get_stat(struct etherh_priv *eh) in etherh_get_stat() argument
144 return readb(eh->ctrl_port); in etherh_get_stat()
[all …]
/drivers/staging/usbip/
Dusbip_event.c76 struct usbip_device *ud = container_of(ut, struct usbip_device, eh); in event_handler_loop()
94 struct usbip_task *eh = &ud->eh; in usbip_start_eh() local
99 usbip_task_init(eh, "usbip_eh", event_handler_loop); in usbip_start_eh()
101 kernel_thread(usbip_thread, (void *)eh, 0); in usbip_start_eh()
103 wait_for_completion(&eh->thread_done); in usbip_start_eh()
109 struct usbip_task *eh = &ud->eh; in usbip_stop_eh() local
111 wait_for_completion(&eh->thread_done); in usbip_stop_eh()
Dusbip_common.h370 struct usbip_task eh; member
/drivers/bluetooth/
Dhci_h4.c156 struct hci_event_hdr *eh; in h4_recv() local
185 eh = hci_event_hdr(h4->rx_skb); in h4_recv()
187 BT_DBG("Event header: evt 0x%2.2x plen %d", eh->evt, eh->plen); in h4_recv()
189 h4_check_data_len(h4, eh->plen); in h4_recv()
Dhci_ll.c378 struct hci_event_hdr *eh; in ll_recv() local
405 eh = (struct hci_event_hdr *) ll->rx_skb->data; in ll_recv()
407 BT_DBG("Event header: evt 0x%2.2x plen %d", eh->evt, eh->plen); in ll_recv()
409 ll_check_data_len(ll, eh->plen); in ll_recv()
Dbtuart_cs.c245 struct hci_event_hdr *eh; in btuart_receive() local
253 eh = hci_event_hdr(info->rx_skb); in btuart_receive()
255 info->rx_count = eh->plen; in btuart_receive()
Dbt3c_cs.c299 struct hci_event_hdr *eh; in bt3c_receive() local
306 eh = hci_event_hdr(info->rx_skb); in bt3c_receive()
308 info->rx_count = eh->plen; in bt3c_receive()
Dbluecard_cs.c457 struct hci_event_hdr *eh; in bluecard_receive() local
464 eh = hci_event_hdr(info->rx_skb); in bluecard_receive()
466 info->rx_count = eh->plen; in bluecard_receive()
/drivers/net/
Dioc3-eth.c512 struct ethhdr *eh = eth_hdr(skb); in ioc3_tcpudp_checksum() local
533 if (eh->h_proto != ntohs(ETH_P_IP)) in ioc3_tcpudp_checksum()
536 ih = (struct iphdr *) ((char *)eh + ETH_HLEN); in ioc3_tcpudp_checksum()
552 ew = (uint16_t *) eh; in ioc3_tcpudp_checksum()
562 cp = (char *)eh + len; /* points at trailing CRC */ in ioc3_tcpudp_checksum()
1426 uint16_t *eh; in ioc3_start_xmit() local
1430 eh = (uint16_t *) skb->data; in ioc3_start_xmit()
1433 ehsum = eh[0] + eh[1] + eh[2] + eh[3] + eh[4] + eh[5] + eh[6]; in ioc3_start_xmit()
Dtun.c193 struct ethhdr *eh = (struct ethhdr *) skb->data; in run_filter() local
198 if (!compare_ether_addr(eh->h_dest, filter->addr[i])) in run_filter()
202 if (is_multicast_ether_addr(eh->h_dest)) in run_filter()
203 return addr_hash_test(filter->mask, eh->h_dest); in run_filter()
Dhamachi.c1298 struct ethhdr *eh = (struct ethhdr *)skb->data; in hamachi_start_xmit() local
1299 if (eh->h_proto == __constant_htons(ETH_P_IP)) { in hamachi_start_xmit()
1300 struct iphdr *ih = (struct iphdr *)((char *)eh + ETH_HLEN); in hamachi_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/net/sfc/
Drx.c138 struct ethhdr *eh; in efx_get_frag_hdr() local
142 eh = page_address(frag->page) + frag->page_offset; in efx_get_frag_hdr()
143 *mac_hdr = eh; in efx_get_frag_hdr()
145 if (eh->h_proto == htons(ETH_P_IP)) { in efx_get_frag_hdr()
146 iph = (struct iphdr *)(eh + 1); in efx_get_frag_hdr()
148 struct vlan_ethhdr *veh = (struct vlan_ethhdr *)eh; in efx_get_frag_hdr()
/drivers/scsi/fcoe/
Dlibfcoe.c374 struct ethhdr *eh; in fcoe_xmit() local
467 eh = eth_hdr(skb); in fcoe_xmit()
468 eh->h_proto = htons(ETH_P_FCOE); in fcoe_xmit()
470 fc_fcoe_set_mac(eh->h_dest, fh->fh_d_id); in fcoe_xmit()
473 memcpy(eh->h_dest, fc->dest_addr, ETH_ALEN); in fcoe_xmit()
476 memcpy(eh->h_source, fc->ctl_src_addr, ETH_ALEN); in fcoe_xmit()
478 memcpy(eh->h_source, fc->data_src_addr, ETH_ALEN); in fcoe_xmit()
480 hp = (struct fcoe_hdr *)(eh + 1); in fcoe_xmit()
/drivers/md/
Ddm-snap.c323 static void insert_exception(struct exception_table *eh, in insert_exception() argument
326 struct list_head *l = &eh->table[exception_hash(eh, e->old_chunk)]; in insert_exception()
393 struct exception_table *eh = &s->complete; in insert_completed_exception() local
397 l = &eh->table[exception_hash(eh, new_e->old_chunk)]; in insert_completed_exception()
400 if (!eh->hash_shift) in insert_completed_exception()
/drivers/net/cxgb3/
Dsge.c1997 const struct ethhdr *eh = (struct ethhdr *)(p + 1); in lro_frame_ok() local
1998 const struct iphdr *ih = (struct iphdr *)(eh + 1); in lro_frame_ok()
2001 eh->h_proto == htons(ETH_P_IP) && ih->ihl == (sizeof(*ih) >> 2); in lro_frame_ok()
2004 static int t3_get_lro_header(void **eh, void **iph, void **tcph, in t3_get_lro_header() argument
2012 *eh = (struct ethhdr *)(cpl + 1); in t3_get_lro_header()
2013 *iph = (struct iphdr *)((struct ethhdr *)*eh + 1); in t3_get_lro_header()
2024 void *eh; in t3_get_skb_header() local
2026 return t3_get_lro_header(&eh, iph, tcph, hdr_flags, priv); in t3_get_skb_header()
2029 static int t3_get_frag_header(struct skb_frag_struct *frag, void **eh, in t3_get_frag_header() argument
2033 return t3_get_lro_header(eh, iph, tcph, hdr_flags, priv); in t3_get_frag_header()
/drivers/ata/
DMakefile83 libata-objs := libata-core.o libata-scsi.o libata-eh.o
/drivers/staging/rtl8187se/ieee80211/
Dieee80211_tx.c279 struct ether_header *eh = (struct ether_header*)skb->data; in ieee80211_classify() local
287 if(eh->ether_type == __constant_htons(ETHERTYPE_IP)) { in ieee80211_classify()
/drivers/net/benet/
Dbe_main.c1518 struct ethhdr *eh; in be_get_frag_header() local
1525 eh = (struct ethhdr *)va; in be_get_frag_header()
1526 *mac_hdr = eh; in be_get_frag_header()
1528 if (eh->h_proto != htons(ETH_P_IP)) { in be_get_frag_header()
1529 if (eh->h_proto == htons(ETH_P_8021Q)) { in be_get_frag_header()
/drivers/net/wireless/orinoco/
Dorinoco.c907 struct ethhdr *eh; in orinoco_xmit() local
987 eh = (struct ethhdr *)skb->data; in orinoco_xmit()
990 if (ntohs(eh->h_proto) > ETH_DATA_LEN) { /* Ethernet-II frame */ in orinoco_xmit()
1000 memcpy(&hdr.eth, eh, 2 * ETH_ALEN); in orinoco_xmit()
1011 eh = (struct ethhdr *) skb_push(skb, sizeof(hdr)); in orinoco_xmit()
1012 memcpy(eh, &hdr, sizeof(hdr)); in orinoco_xmit()
1044 eh->h_dest, eh->h_source, 0 /* priority */, in orinoco_xmit()
/drivers/cdrom/
Dcdrom.c464 struct event_header *eh = (struct event_header *) buffer; in cdrom_get_media_event() local
476 if (be16_to_cpu(eh->data_len) < sizeof(*med)) in cdrom_get_media_event()
479 if (eh->nea || eh->notification_class != 0x4) in cdrom_get_media_event()
482 memcpy(med, &buffer[sizeof(*eh)], sizeof(*med)); in cdrom_get_media_event()
/drivers/staging/at76_usb/
Dat76_usb.c3130 struct ethhdr *eh = (struct ethhdr *)skb->data; in at76_tx() local
3160 if (ntohs(eh->h_proto) <= ETH_DATA_LEN) { in at76_tx()
3181 memcpy(payload + sizeof(rfc1042sig), &eh->h_proto, in at76_tx()
3195 memcpy(i802_11_hdr->addr1, eh->h_dest, ETH_ALEN); in at76_tx()
3196 memcpy(i802_11_hdr->addr2, eh->h_source, ETH_ALEN); in at76_tx()
3200 memcpy(i802_11_hdr->addr2, eh->h_source, ETH_ALEN); in at76_tx()
3201 memcpy(i802_11_hdr->addr3, eh->h_dest, ETH_ALEN); in at76_tx()
/drivers/net/myri10ge/
Dmyri10ge.c2193 struct ethhdr *eh; in myri10ge_get_frag_header() local
2203 eh = (struct ethhdr *)va; in myri10ge_get_frag_header()
2204 *mac_hdr = eh; in myri10ge_get_frag_header()
2206 if (eh->h_proto != htons(ETH_P_IP)) { in myri10ge_get_frag_header()
2207 if (eh->h_proto == htons(ETH_P_8021Q)) { in myri10ge_get_frag_header()