Lines Matching refs:txp
110 struct xen_netif_tx_request *txp,
205 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()
218 RING_COPY_REQUEST(&queue->tx, cons++, txp); in xenvif_tx_err()
236 struct xen_netif_tx_request *txp, in xenvif_count_requests() argument
285 txp = &dropped_tx; in xenvif_count_requests()
287 RING_COPY_REQUEST(&queue->tx, cons + slots, txp); in xenvif_count_requests()
298 if (!drop_err && txp->size > first->size) { in xenvif_count_requests()
302 txp->size, first->size); in xenvif_count_requests()
306 first->size -= txp->size; in xenvif_count_requests()
309 if (unlikely((txp->offset + txp->size) > XEN_PAGE_SIZE)) { in xenvif_count_requests()
311 txp->offset, txp->size); in xenvif_count_requests()
316 more_data = txp->flags & XEN_NETTXF_more_data; in xenvif_count_requests()
319 txp++; in xenvif_count_requests()
340 struct xen_netif_tx_request *txp, in xenvif_tx_create_map_op() argument
347 txp->gref, queue->vif->domid); in xenvif_tx_create_map_op()
349 memcpy(&queue->pending_tx_info[pending_idx].req, txp, in xenvif_tx_create_map_op()
350 sizeof(*txp)); in xenvif_tx_create_map_op()
373 struct xen_netif_tx_request *txp, in xenvif_get_requests() argument
391 shinfo->nr_frags++, txp++, gop++) { in xenvif_get_requests()
394 xenvif_tx_create_map_op(queue, pending_idx, txp, 0, gop); in xenvif_get_requests()
404 shinfo->nr_frags++, txp++, gop++) { in xenvif_get_requests()
407 xenvif_tx_create_map_op(queue, pending_idx, txp, 0, in xenvif_get_requests()
580 struct xen_netif_tx_request *txp; in xenvif_fill_frags() local
597 txp = &queue->pending_tx_info[pending_idx].req; in xenvif_fill_frags()
599 __skb_fill_page_desc(skb, i, page, txp->offset, txp->size); in xenvif_fill_frags()
600 skb->len += txp->size; in xenvif_fill_frags()
601 skb->data_len += txp->size; in xenvif_fill_frags()
602 skb->truesize += txp->size; in xenvif_fill_frags()
1113 struct xen_netif_tx_request *txp; in xenvif_tx_submit() local
1118 txp = &queue->pending_tx_info[pending_idx].req; in xenvif_tx_submit()
1138 if (data_len < txp->size) { in xenvif_tx_submit()
1140 txp->offset += data_len; in xenvif_tx_submit()
1141 txp->size -= data_len; in xenvif_tx_submit()
1148 if (txp->flags & XEN_NETTXF_csum_blank) in xenvif_tx_submit()
1150 else if (txp->flags & XEN_NETTXF_data_validated) in xenvif_tx_submit()
1395 struct xen_netif_tx_request *txp, in make_tx_response() argument
1403 resp->id = txp->id; in make_tx_response()