Lines Matching defs:pg_vec

490 	h.raw = rb->pg_vec[pg_vec_pos].buffer +
580 struct pgv *pg_vec,
589 p1->pkbdq = pg_vec;
590 pbd = (struct tpacket_block_desc *)pg_vec[0].buffer;
591 p1->pkblk_start = pg_vec[0].buffer;
2480 if (likely(po->tx_ring.pg_vec)) {
2695 /* packet_sendmsg() check on tx_ring.pg_vec was lockless,
2698 if (unlikely(!po->tx_ring.pg_vec)) {
3062 /* Reading tx_ring.pg_vec without holding pg_vec_lock is racy.
3065 if (data_race(po->tx_ring.pg_vec))
3111 if (po->rx_ring.pg_vec) {
3116 if (po->tx_ring.pg_vec) {
3819 if (po->rx_ring.pg_vec || po->tx_ring.pg_vec) {
3839 if (po->rx_ring.pg_vec || po->tx_ring.pg_vec) {
3858 if (po->rx_ring.pg_vec || po->tx_ring.pg_vec) {
3903 if (po->rx_ring.pg_vec || po->tx_ring.pg_vec) {
3967 if (po->rx_ring.pg_vec || po->tx_ring.pg_vec) {
4223 if (po->rx_ring.pg_vec) {
4231 if (po->tx_ring.pg_vec) {
4269 static void free_pg_vec(struct pgv *pg_vec, unsigned int order,
4275 if (likely(pg_vec[i].buffer)) {
4276 if (is_vmalloc_addr(pg_vec[i].buffer))
4277 vfree(pg_vec[i].buffer);
4279 free_pages((unsigned long)pg_vec[i].buffer,
4281 pg_vec[i].buffer = NULL;
4284 kfree(pg_vec);
4315 struct pgv *pg_vec;
4318 pg_vec = kcalloc(block_nr, sizeof(struct pgv), GFP_KERNEL | __GFP_NOWARN);
4319 if (unlikely(!pg_vec))
4323 pg_vec[i].buffer = alloc_one_pg_vec_page(order);
4324 if (unlikely(!pg_vec[i].buffer))
4329 return pg_vec;
4332 free_pg_vec(pg_vec, order, block_nr);
4333 pg_vec = NULL;
4340 struct pgv *pg_vec = NULL;
4367 if (unlikely(rb->pg_vec))
4408 pg_vec = alloc_pg_vec(req, order);
4409 if (unlikely(!pg_vec))
4415 init_prb_bdqc(po, rb, pg_vec, req_u);
4462 swap(rb->pg_vec, pg_vec);
4474 po->prot_hook.func = (po->rx_ring.pg_vec) ?
4489 if (pg_vec && (po->tp_version > TPACKET_V2)) {
4496 if (pg_vec) {
4498 free_pg_vec(pg_vec, order, req->tp_block_nr);
4522 if (rb->pg_vec) {
4538 if (rb->pg_vec == NULL)
4543 void *kaddr = rb->pg_vec[i].buffer;