Lines Matching refs:h
369 union tpacket_uhdr h; in __packet_set_status() local
373 h.raw = frame; in __packet_set_status()
376 WRITE_ONCE(h.h1->tp_status, status); in __packet_set_status()
377 flush_dcache_page(pgv_to_page(&h.h1->tp_status)); in __packet_set_status()
380 WRITE_ONCE(h.h2->tp_status, status); in __packet_set_status()
381 flush_dcache_page(pgv_to_page(&h.h2->tp_status)); in __packet_set_status()
384 WRITE_ONCE(h.h3->tp_status, status); in __packet_set_status()
385 flush_dcache_page(pgv_to_page(&h.h3->tp_status)); in __packet_set_status()
397 union tpacket_uhdr h; in __packet_get_status() local
403 h.raw = frame; in __packet_get_status()
406 flush_dcache_page(pgv_to_page(&h.h1->tp_status)); in __packet_get_status()
407 return READ_ONCE(h.h1->tp_status); in __packet_get_status()
409 flush_dcache_page(pgv_to_page(&h.h2->tp_status)); in __packet_get_status()
410 return READ_ONCE(h.h2->tp_status); in __packet_get_status()
412 flush_dcache_page(pgv_to_page(&h.h3->tp_status)); in __packet_get_status()
413 return READ_ONCE(h.h3->tp_status); in __packet_get_status()
441 union tpacket_uhdr h; in __packet_set_timestamp() local
448 h.raw = frame; in __packet_set_timestamp()
458 h.h1->tp_sec = ts.tv_sec; in __packet_set_timestamp()
459 h.h1->tp_usec = ts.tv_nsec / NSEC_PER_USEC; in __packet_set_timestamp()
462 h.h2->tp_sec = ts.tv_sec; in __packet_set_timestamp()
463 h.h2->tp_nsec = ts.tv_nsec; in __packet_set_timestamp()
466 h.h3->tp_sec = ts.tv_sec; in __packet_set_timestamp()
467 h.h3->tp_nsec = ts.tv_nsec; in __packet_set_timestamp()
475 flush_dcache_page(pgv_to_page(&h.h1->tp_sec)); in __packet_set_timestamp()
487 union tpacket_uhdr h; in packet_lookup_frame() local
492 h.raw = rb->pg_vec[pg_vec_pos].buffer + in packet_lookup_frame()
495 if (status != __packet_get_status(po, h.raw)) in packet_lookup_frame()
498 return h.raw; in packet_lookup_frame()
2208 union tpacket_uhdr h; in tpacket_rcv() local
2226 BUILD_BUG_ON(TPACKET_ALIGN(sizeof(*h.h2)) != 32); in tpacket_rcv()
2227 BUILD_BUG_ON(TPACKET_ALIGN(sizeof(*h.h3)) != 48); in tpacket_rcv()
2323 h.raw = packet_current_rx_frame(po, skb, in tpacket_rcv()
2325 if (!h.raw) in tpacket_rcv()
2336 virtio_net_hdr_from_skb(skb, h.raw + macoff - in tpacket_rcv()
2363 skb_copy_bits(skb, 0, h.raw + macoff, snaplen); in tpacket_rcv()
2377 h.h1->tp_len = skb->len; in tpacket_rcv()
2378 h.h1->tp_snaplen = snaplen; in tpacket_rcv()
2379 h.h1->tp_mac = macoff; in tpacket_rcv()
2380 h.h1->tp_net = netoff; in tpacket_rcv()
2381 h.h1->tp_sec = ts.tv_sec; in tpacket_rcv()
2382 h.h1->tp_usec = ts.tv_nsec / NSEC_PER_USEC; in tpacket_rcv()
2383 hdrlen = sizeof(*h.h1); in tpacket_rcv()
2386 h.h2->tp_len = skb->len; in tpacket_rcv()
2387 h.h2->tp_snaplen = snaplen; in tpacket_rcv()
2388 h.h2->tp_mac = macoff; in tpacket_rcv()
2389 h.h2->tp_net = netoff; in tpacket_rcv()
2390 h.h2->tp_sec = ts.tv_sec; in tpacket_rcv()
2391 h.h2->tp_nsec = ts.tv_nsec; in tpacket_rcv()
2393 h.h2->tp_vlan_tci = skb_vlan_tag_get(skb); in tpacket_rcv()
2394 h.h2->tp_vlan_tpid = ntohs(skb->vlan_proto); in tpacket_rcv()
2397 h.h2->tp_vlan_tci = 0; in tpacket_rcv()
2398 h.h2->tp_vlan_tpid = 0; in tpacket_rcv()
2400 memset(h.h2->tp_padding, 0, sizeof(h.h2->tp_padding)); in tpacket_rcv()
2401 hdrlen = sizeof(*h.h2); in tpacket_rcv()
2407 h.h3->tp_status |= status; in tpacket_rcv()
2408 h.h3->tp_len = skb->len; in tpacket_rcv()
2409 h.h3->tp_snaplen = snaplen; in tpacket_rcv()
2410 h.h3->tp_mac = macoff; in tpacket_rcv()
2411 h.h3->tp_net = netoff; in tpacket_rcv()
2412 h.h3->tp_sec = ts.tv_sec; in tpacket_rcv()
2413 h.h3->tp_nsec = ts.tv_nsec; in tpacket_rcv()
2414 memset(h.h3->tp_padding, 0, sizeof(h.h3->tp_padding)); in tpacket_rcv()
2415 hdrlen = sizeof(*h.h3); in tpacket_rcv()
2421 sll = h.raw + TPACKET_ALIGN(hdrlen); in tpacket_rcv()
2438 end = (u8 *) PAGE_ALIGN((unsigned long) h.raw + in tpacket_rcv()
2441 for (start = h.raw; start < end; start += PAGE_SIZE) in tpacket_rcv()
2449 __packet_set_status(po, h.raw, status); in tpacket_rcv()