Lines Matching full:txp

111 			     const struct xen_netif_tx_request *txp,
207 struct xen_netif_tx_request *txp, in xenvif_tx_err() argument
213 make_tx_response(queue, txp, extra_count, XEN_NETIF_RSP_ERROR); in xenvif_tx_err()
216 RING_COPY_REQUEST(&queue->tx, cons++, txp); in xenvif_tx_err()
234 struct xen_netif_tx_request *txp, in xenvif_count_requests() argument
283 txp = &dropped_tx; in xenvif_count_requests()
285 RING_COPY_REQUEST(&queue->tx, cons + slots, txp); in xenvif_count_requests()
296 if (!drop_err && txp->size > first->size) { in xenvif_count_requests()
300 txp->size, first->size); in xenvif_count_requests()
304 first->size -= txp->size; in xenvif_count_requests()
307 if (unlikely((txp->offset + txp->size) > XEN_PAGE_SIZE)) { in xenvif_count_requests()
308 netdev_err(queue->vif->dev, "Cross page boundary, txp->offset: %u, size: %u\n", in xenvif_count_requests()
309 txp->offset, txp->size); in xenvif_count_requests()
314 more_data = txp->flags & XEN_NETTXF_more_data; in xenvif_count_requests()
317 txp++; in xenvif_count_requests()
342 struct xen_netif_tx_request *txp, in xenvif_tx_create_map_op() argument
349 txp->gref, queue->vif->domid); in xenvif_tx_create_map_op()
351 memcpy(&queue->pending_tx_info[pending_idx].req, txp, in xenvif_tx_create_map_op()
352 sizeof(*txp)); in xenvif_tx_create_map_op()
393 struct xen_netif_tx_request *txp = first; in xenvif_get_requests() local
403 int amount = data_len > txp->size ? txp->size : data_len; in xenvif_get_requests()
406 cop->source.u.ref = txp->gref; in xenvif_get_requests()
408 cop->source.offset = txp->offset; in xenvif_get_requests()
437 if (amount == txp->size) { in xenvif_get_requests()
441 txp, sizeof(*txp)); in xenvif_get_requests()
443 (txp == first) ? extra_count : 0; in xenvif_get_requests()
445 if (txp == first) in xenvif_get_requests()
446 txp = txfrags; in xenvif_get_requests()
448 txp++; in xenvif_get_requests()
456 txp->offset += amount; in xenvif_get_requests()
457 txp->size -= amount; in xenvif_get_requests()
463 if (unlikely(!txp->size)) { in xenvif_get_requests()
464 make_tx_response(queue, txp, 0, XEN_NETIF_RSP_OKAY); in xenvif_get_requests()
465 ++txp; in xenvif_get_requests()
471 xenvif_tx_create_map_op(queue, pending_idx, txp, in xenvif_get_requests()
472 txp == first ? extra_count : 0, gop); in xenvif_get_requests()
477 if (txp == first) in xenvif_get_requests()
478 txp = txfrags; in xenvif_get_requests()
480 txp++; in xenvif_get_requests()
488 for (shinfo->nr_frags = 0; shinfo->nr_frags < nr_slots; ++txp) { in xenvif_get_requests()
489 if (unlikely(!txp->size)) { in xenvif_get_requests()
490 make_tx_response(queue, txp, 0, in xenvif_get_requests()
497 xenvif_tx_create_map_op(queue, pending_idx, txp, 0, in xenvif_get_requests()
696 struct xen_netif_tx_request *txp; in xenvif_fill_frags() local
713 txp = &queue->pending_tx_info[pending_idx].req; in xenvif_fill_frags()
715 __skb_fill_page_desc(skb, i, page, txp->offset, txp->size); in xenvif_fill_frags()
716 skb->len += txp->size; in xenvif_fill_frags()
717 skb->data_len += txp->size; in xenvif_fill_frags()
718 skb->truesize += txp->size; in xenvif_fill_frags()
1179 struct xen_netif_tx_request *txp; in xenvif_tx_submit() local
1183 txp = &queue->pending_tx_info[pending_idx].req; in xenvif_tx_submit()
1201 if (txp->flags & XEN_NETTXF_csum_blank) in xenvif_tx_submit()
1203 else if (txp->flags & XEN_NETTXF_data_validated) in xenvif_tx_submit()
1425 const struct xen_netif_tx_request *txp, in _make_tx_response() argument
1433 resp->id = txp->id; in _make_tx_response()
1478 const struct xen_netif_tx_request *txp, in make_tx_response() argument
1486 _make_tx_response(queue, txp, extra_count, status); in make_tx_response()