Lines Matching refs:eh
80 if (!memcmp(dst, s->eh.h_source, ETH_ALEN)) in __bnep_get_session()
335 s->eh.h_proto = get_unaligned((u16 *) (skb->data - 2)); in bnep_rx_frame()
343 if (ntohs(s->eh.h_proto) == 0x8100) { in bnep_rx_frame()
346 s->eh.h_proto = get_unaligned((u16 *) (skb->data - 2)); in bnep_rx_frame()
362 memcpy(__skb_put(nskb, ETH_HLEN), &s->eh, ETH_HLEN); in bnep_rx_frame()
366 memcpy(__skb_put(nskb, ETH_ALEN), s->eh.h_dest, ETH_ALEN); in bnep_rx_frame()
368 put_unaligned(s->eh.h_proto, (u16 *) __skb_put(nskb, 2)); in bnep_rx_frame()
373 memcpy(__skb_put(nskb, ETH_ALEN + 2), s->eh.h_source, ETH_ALEN + 2); in bnep_rx_frame()
378 put_unaligned(s->eh.h_proto, (u16 *) __skb_put(nskb, 2)); in bnep_rx_frame()
407 struct ethhdr *eh = (void *) skb->data; in bnep_tx_frame() local
423 if (!memcmp(eh->h_dest, s->eh.h_source, ETH_ALEN)) in bnep_tx_frame()
426 if (!memcmp(eh->h_source, s->eh.h_dest, ETH_ALEN)) in bnep_tx_frame()
435 iv[il++] = (struct iovec) { eh->h_source, ETH_ALEN }; in bnep_tx_frame()
440 iv[il++] = (struct iovec) { eh->h_dest, ETH_ALEN }; in bnep_tx_frame()
563 memcpy(s->eh.h_dest, &src, ETH_ALEN); in bnep_add_connection()
564 memcpy(s->eh.h_source, &dst, ETH_ALEN); in bnep_add_connection()
636 memcpy(ci->dst, s->eh.h_source, ETH_ALEN); in __bnep_copy_ci()