Lines Matching refs:txp
110 struct xen_netif_tx_request *txp,
207 struct xen_netif_tx_request *txp, in xenvif_tx_err() argument
215 make_tx_response(queue, txp, extra_count, XEN_NETIF_RSP_ERROR); in xenvif_tx_err()
220 RING_COPY_REQUEST(&queue->tx, cons++, txp); in xenvif_tx_err()
238 struct xen_netif_tx_request *txp, in xenvif_count_requests() argument
287 txp = &dropped_tx; in xenvif_count_requests()
289 RING_COPY_REQUEST(&queue->tx, cons + slots, txp); in xenvif_count_requests()
300 if (!drop_err && txp->size > first->size) { in xenvif_count_requests()
304 txp->size, first->size); in xenvif_count_requests()
308 first->size -= txp->size; in xenvif_count_requests()
311 if (unlikely((txp->offset + txp->size) > XEN_PAGE_SIZE)) { in xenvif_count_requests()
313 txp->offset, txp->size); in xenvif_count_requests()
318 more_data = txp->flags & XEN_NETTXF_more_data; in xenvif_count_requests()
321 txp++; in xenvif_count_requests()
346 struct xen_netif_tx_request *txp, in xenvif_tx_create_map_op() argument
353 txp->gref, queue->vif->domid); in xenvif_tx_create_map_op()
355 memcpy(&queue->pending_tx_info[pending_idx].req, txp, in xenvif_tx_create_map_op()
356 sizeof(*txp)); in xenvif_tx_create_map_op()
397 struct xen_netif_tx_request *txp = first; in xenvif_get_requests() local
407 int amount = data_len > txp->size ? txp->size : data_len; in xenvif_get_requests()
410 cop->source.u.ref = txp->gref; in xenvif_get_requests()
412 cop->source.offset = txp->offset; in xenvif_get_requests()
441 if (amount == txp->size) { in xenvif_get_requests()
445 txp, sizeof(*txp)); in xenvif_get_requests()
447 (txp == first) ? extra_count : 0; in xenvif_get_requests()
449 if (txp == first) in xenvif_get_requests()
450 txp = txfrags; in xenvif_get_requests()
452 txp++; in xenvif_get_requests()
460 txp->offset += amount; in xenvif_get_requests()
461 txp->size -= amount; in xenvif_get_requests()
469 xenvif_tx_create_map_op(queue, pending_idx, txp, in xenvif_get_requests()
470 txp == first ? extra_count : 0, gop); in xenvif_get_requests()
473 if (txp == first) in xenvif_get_requests()
474 txp = txfrags; in xenvif_get_requests()
476 txp++; in xenvif_get_requests()
485 shinfo->nr_frags++, txp++, gop++) { in xenvif_get_requests()
488 xenvif_tx_create_map_op(queue, pending_idx, txp, 0, in xenvif_get_requests()
679 struct xen_netif_tx_request *txp; in xenvif_fill_frags() local
696 txp = &queue->pending_tx_info[pending_idx].req; in xenvif_fill_frags()
698 __skb_fill_page_desc(skb, i, page, txp->offset, txp->size); in xenvif_fill_frags()
699 skb->len += txp->size; in xenvif_fill_frags()
700 skb->data_len += txp->size; in xenvif_fill_frags()
701 skb->truesize += txp->size; in xenvif_fill_frags()
1164 struct xen_netif_tx_request *txp; in xenvif_tx_submit() local
1168 txp = &queue->pending_tx_info[pending_idx].req; in xenvif_tx_submit()
1186 if (txp->flags & XEN_NETTXF_csum_blank) in xenvif_tx_submit()
1188 else if (txp->flags & XEN_NETTXF_data_validated) in xenvif_tx_submit()
1432 struct xen_netif_tx_request *txp, in make_tx_response() argument
1440 resp->id = txp->id; in make_tx_response()