Lines Matching refs:req
86 struct tpacket_req req; member
591 ring->req.tp_block_size = getpagesize() << 2; in __v1_v2_fill()
592 ring->req.tp_frame_size = TPACKET_ALIGNMENT << 7; in __v1_v2_fill()
593 ring->req.tp_block_nr = blocks; in __v1_v2_fill()
595 ring->req.tp_frame_nr = ring->req.tp_block_size / in __v1_v2_fill()
596 ring->req.tp_frame_size * in __v1_v2_fill()
597 ring->req.tp_block_nr; in __v1_v2_fill()
599 ring->mm_len = ring->req.tp_block_size * ring->req.tp_block_nr; in __v1_v2_fill()
601 ring->rd_num = ring->req.tp_frame_nr; in __v1_v2_fill()
602 ring->flen = ring->req.tp_frame_size; in __v1_v2_fill()
639 ret = setsockopt(sock, SOL_PACKET, type, &ring->req, in setup_ring()
640 sizeof(ring->req)); in setup_ring()