Lines Matching refs:npo

258 						 struct netrx_pending_operations *npo)  in get_next_rx_buffer()  argument
265 meta = npo->meta + npo->meta_prod++; in get_next_rx_buffer()
271 npo->copy_off = 0; in get_next_rx_buffer()
272 npo->copy_gref = req.gref; in get_next_rx_buffer()
279 struct netrx_pending_operations *npo; member
296 struct netrx_pending_operations *npo = info->npo; in xenvif_setup_copy_gop() local
299 BUG_ON(npo->copy_off > MAX_BUFFER_OFFSET); in xenvif_setup_copy_gop()
301 if (npo->copy_off == MAX_BUFFER_OFFSET) in xenvif_setup_copy_gop()
302 info->meta = get_next_rx_buffer(queue, npo); in xenvif_setup_copy_gop()
304 if (npo->copy_off + *len > MAX_BUFFER_OFFSET) in xenvif_setup_copy_gop()
305 *len = MAX_BUFFER_OFFSET - npo->copy_off; in xenvif_setup_copy_gop()
307 copy_gop = npo->copy + npo->copy_prod++; in xenvif_setup_copy_gop()
323 copy_gop->dest.offset = npo->copy_off; in xenvif_setup_copy_gop()
324 copy_gop->dest.u.ref = npo->copy_gref; in xenvif_setup_copy_gop()
326 npo->copy_off += *len; in xenvif_setup_copy_gop()
356 struct netrx_pending_operations *npo, in xenvif_gop_frag_copy() argument
362 .npo = npo, in xenvif_gop_frag_copy()
378 info.meta = npo->meta + npo->meta_prod - 1; in xenvif_gop_frag_copy()
421 struct netrx_pending_operations *npo, in xenvif_gop_skb() argument
434 old_meta_prod = npo->meta_prod; in xenvif_gop_skb()
447 meta = npo->meta + npo->meta_prod++; in xenvif_gop_skb()
455 meta = npo->meta + npo->meta_prod++; in xenvif_gop_skb()
467 npo->copy_off = 0; in xenvif_gop_skb()
468 npo->copy_gref = req.gref; in xenvif_gop_skb()
478 xenvif_gop_frag_copy(queue, skb, npo, in xenvif_gop_skb()
484 xenvif_gop_frag_copy(queue, skb, npo, in xenvif_gop_skb()
491 return npo->meta_prod - old_meta_prod; in xenvif_gop_skb()
501 struct netrx_pending_operations *npo) in xenvif_check_gop() argument
508 copy_op = npo->copy + npo->copy_cons++; in xenvif_check_gop()
563 struct netrx_pending_operations npo = { in xenvif_rx_action() local
574 XENVIF_RX_CB(skb)->meta_slots_used = xenvif_gop_skb(skb, &npo, queue); in xenvif_rx_action()
579 BUG_ON(npo.meta_prod > ARRAY_SIZE(queue->meta)); in xenvif_rx_action()
581 if (!npo.copy_prod) in xenvif_rx_action()
584 BUG_ON(npo.copy_prod > MAX_GRANT_COPY_OPS); in xenvif_rx_action()
585 gnttab_batch_copy(queue->grant_copy_op, npo.copy_prod); in xenvif_rx_action()
589 if ((1 << queue->meta[npo.meta_cons].gso_type) & in xenvif_rx_action()
596 resp->offset = queue->meta[npo.meta_cons].gso_size; in xenvif_rx_action()
597 resp->id = queue->meta[npo.meta_cons].id; in xenvif_rx_action()
600 npo.meta_cons++; in xenvif_rx_action()
610 &npo); in xenvif_rx_action()
624 resp = make_rx_response(queue, queue->meta[npo.meta_cons].id, in xenvif_rx_action()
626 queue->meta[npo.meta_cons].size, in xenvif_rx_action()
629 if ((1 << queue->meta[npo.meta_cons].gso_type) & in xenvif_rx_action()
638 gso->u.gso.type = queue->meta[npo.meta_cons].gso_type; in xenvif_rx_action()
639 gso->u.gso.size = queue->meta[npo.meta_cons].gso_size; in xenvif_rx_action()
648 queue->meta + npo.meta_cons + 1, in xenvif_rx_action()
655 npo.meta_cons += XENVIF_RX_CB(skb)->meta_slots_used; in xenvif_rx_action()