Lines Matching full:txp

111 			     const struct xen_netif_tx_request *txp,
208 struct xen_netif_tx_request *txp, in xenvif_tx_err() argument
214 make_tx_response(queue, txp, extra_count, XEN_NETIF_RSP_ERROR); in xenvif_tx_err()
217 RING_COPY_REQUEST(&queue->tx, cons++, txp); in xenvif_tx_err()
235 struct xen_netif_tx_request *txp, in xenvif_count_requests() argument
284 txp = &dropped_tx; in xenvif_count_requests()
286 RING_COPY_REQUEST(&queue->tx, cons + slots, txp); in xenvif_count_requests()
297 if (!drop_err && txp->size > first->size) { in xenvif_count_requests()
301 txp->size, first->size); in xenvif_count_requests()
305 first->size -= txp->size; in xenvif_count_requests()
308 if (unlikely((txp->offset + txp->size) > XEN_PAGE_SIZE)) { in xenvif_count_requests()
309 netdev_err(queue->vif->dev, "Cross page boundary, txp->offset: %u, size: %u\n", in xenvif_count_requests()
310 txp->offset, txp->size); in xenvif_count_requests()
315 more_data = txp->flags & XEN_NETTXF_more_data; in xenvif_count_requests()
318 txp++; in xenvif_count_requests()
343 struct xen_netif_tx_request *txp, in xenvif_tx_create_map_op() argument
350 txp->gref, queue->vif->domid); in xenvif_tx_create_map_op()
352 memcpy(&queue->pending_tx_info[pending_idx].req, txp, in xenvif_tx_create_map_op()
353 sizeof(*txp)); in xenvif_tx_create_map_op()
394 struct xen_netif_tx_request *txp = first; in xenvif_get_requests() local
404 int amount = data_len > txp->size ? txp->size : data_len; in xenvif_get_requests()
407 cop->source.u.ref = txp->gref; in xenvif_get_requests()
409 cop->source.offset = txp->offset; in xenvif_get_requests()
438 if (amount == txp->size) { in xenvif_get_requests()
442 txp, sizeof(*txp)); in xenvif_get_requests()
444 (txp == first) ? extra_count : 0; in xenvif_get_requests()
446 if (txp == first) in xenvif_get_requests()
447 txp = txfrags; in xenvif_get_requests()
449 txp++; in xenvif_get_requests()
457 txp->offset += amount; in xenvif_get_requests()
458 txp->size -= amount; in xenvif_get_requests()
464 if (unlikely(!txp->size)) { in xenvif_get_requests()
465 make_tx_response(queue, txp, 0, XEN_NETIF_RSP_OKAY); in xenvif_get_requests()
466 ++txp; in xenvif_get_requests()
472 xenvif_tx_create_map_op(queue, pending_idx, txp, in xenvif_get_requests()
473 txp == first ? extra_count : 0, gop); in xenvif_get_requests()
478 if (txp == first) in xenvif_get_requests()
479 txp = txfrags; in xenvif_get_requests()
481 txp++; in xenvif_get_requests()
489 for (shinfo->nr_frags = 0; shinfo->nr_frags < nr_slots; ++txp) { in xenvif_get_requests()
490 if (unlikely(!txp->size)) { in xenvif_get_requests()
491 make_tx_response(queue, txp, 0, in xenvif_get_requests()
498 xenvif_tx_create_map_op(queue, pending_idx, txp, 0, in xenvif_get_requests()
697 struct xen_netif_tx_request *txp; in xenvif_fill_frags() local
714 txp = &queue->pending_tx_info[pending_idx].req; in xenvif_fill_frags()
716 __skb_fill_page_desc(skb, i, page, txp->offset, txp->size); in xenvif_fill_frags()
717 skb->len += txp->size; in xenvif_fill_frags()
718 skb->data_len += txp->size; in xenvif_fill_frags()
719 skb->truesize += txp->size; in xenvif_fill_frags()
1180 struct xen_netif_tx_request *txp; in xenvif_tx_submit() local
1184 txp = &queue->pending_tx_info[pending_idx].req; in xenvif_tx_submit()
1202 if (txp->flags & XEN_NETTXF_csum_blank) in xenvif_tx_submit()
1204 else if (txp->flags & XEN_NETTXF_data_validated) in xenvif_tx_submit()
1426 const struct xen_netif_tx_request *txp, in _make_tx_response() argument
1434 resp->id = txp->id; in _make_tx_response()
1479 const struct xen_netif_tx_request *txp, in make_tx_response() argument
1487 _make_tx_response(queue, txp, extra_count, status); in make_tx_response()