Home
last modified time | relevance | path

Searched refs:txreq (Results 1 – 8 of 8) sorted by relevance

/linux-3.4.99/drivers/net/xen-netback/
Dnetback.c1388 struct xen_netif_tx_request txreq; in xen_netbk_tx_build_gops() local
1427 memcpy(&txreq, RING_GET_REQUEST(&vif->tx, idx), sizeof(txreq)); in xen_netbk_tx_build_gops()
1430 if (txreq.size > vif->remaining_credit && in xen_netbk_tx_build_gops()
1431 tx_credit_exceeded(vif, txreq.size)) { in xen_netbk_tx_build_gops()
1436 vif->remaining_credit -= txreq.size; in xen_netbk_tx_build_gops()
1442 if (txreq.flags & XEN_NETTXF_extra_info) { in xen_netbk_tx_build_gops()
1450 ret = netbk_count_requests(vif, &txreq, idx, in xen_netbk_tx_build_gops()
1457 if (unlikely(txreq.size < ETH_HLEN)) { in xen_netbk_tx_build_gops()
1459 "Bad packet size: %d\n", txreq.size); in xen_netbk_tx_build_gops()
1460 netbk_tx_err(vif, &txreq, idx); in xen_netbk_tx_build_gops()
[all …]
/linux-3.4.99/drivers/infiniband/hw/qib/
Dqib_sdma.c511 tx->txreq.start_idx = 0; in complete_sdma_err_req()
512 tx->txreq.next_descq_idx = 0; in complete_sdma_err_req()
513 list_add_tail(&tx->txreq.list, &ppd->sdma_activelist); in complete_sdma_err_req()
548 if (tx->txreq.sg_count > qib_sdma_descq_freecnt(ppd)) { in qib_sdma_verbs_send()
558 make_sdma_desc(ppd, sdmadesc, (u64) tx->txreq.addr, dwoffset, 0); in qib_sdma_verbs_send()
561 if (tx->txreq.flags & QIB_SDMA_TXREQ_F_USELARGEBUF) in qib_sdma_verbs_send()
577 tx->txreq.start_idx = tail; in qib_sdma_verbs_send()
598 if (tx->txreq.flags & QIB_SDMA_TXREQ_F_USELARGEBUF) in qib_sdma_verbs_send()
636 if (tx->txreq.flags & QIB_SDMA_TXREQ_F_HEADTOHOST) in qib_sdma_verbs_send()
638 if (tx->txreq.flags & QIB_SDMA_TXREQ_F_INTREQ) in qib_sdma_verbs_send()
[all …]
Dqib_verbs.c931 tx = list_entry(l, struct qib_verbs_txreq, txreq.list); in __get_txreq()
960 tx = list_entry(l, struct qib_verbs_txreq, txreq.list); in get_txreq()
984 if (tx->txreq.flags & QIB_SDMA_TXREQ_F_FREEBUF) { in qib_put_txreq()
985 tx->txreq.flags &= ~QIB_SDMA_TXREQ_F_FREEBUF; in qib_put_txreq()
987 tx->txreq.addr, tx->hdr_dwords << 2, in qib_put_txreq()
995 list_add(&tx->txreq.list, &dev->txreq_free); in qib_put_txreq()
1040 if (qp->s_tx->txreq.sg_count > avail) in qib_verbs_sdma_desc_avail()
1042 avail -= qp->s_tx->txreq.sg_count; in qib_verbs_sdma_desc_avail()
1069 container_of(cookie, struct qib_verbs_txreq, txreq); in sdma_complete()
1078 if (tx->txreq.flags & QIB_SDMA_TXREQ_F_FREEBUF) in sdma_complete()
[all …]
Dqib.h250 struct qib_sdma_txreq txreq; member
/linux-3.4.99/drivers/infiniband/hw/ipath/
Dipath_sdma.c693 if (tx->txreq.sg_count > ipath_sdma_descq_freecnt(dd)) { in ipath_sdma_verbs_send()
700 addr = dma_map_single(&dd->pcidev->dev, tx->txreq.map_addr, in ipath_sdma_verbs_send()
710 if (tx->txreq.flags & IPATH_SDMA_TXREQ_F_USELARGEBUF) in ipath_sdma_verbs_send()
719 if (tx->txreq.flags & IPATH_SDMA_TXREQ_F_FREEDESC) in ipath_sdma_verbs_send()
720 tx->txreq.start_idx = tail; in ipath_sdma_verbs_send()
747 if (tx->txreq.flags & IPATH_SDMA_TXREQ_F_USELARGEBUF) in ipath_sdma_verbs_send()
786 if (tx->txreq.flags & IPATH_SDMA_TXREQ_F_INTREQ) { in ipath_sdma_verbs_send()
795 tx->txreq.next_descq_idx = tail; in ipath_sdma_verbs_send()
796 tx->txreq.callback_status = IPATH_SDMA_TXREQ_S_OK; in ipath_sdma_verbs_send()
798 dd->ipath_sdma_descq_added += tx->txreq.sg_count; in ipath_sdma_verbs_send()
[all …]
Dipath_verbs.c1012 tx = list_entry(l, struct ipath_verbs_txreq, txreq.list); in get_txreq()
1024 list_add(&tx->txreq.list, &dev->txreq_free); in put_txreq()
1053 if (tx->txreq.flags & IPATH_SDMA_TXREQ_F_FREEBUF) in sdma_complete()
1054 kfree(tx->txreq.map_addr); in sdma_complete()
1140 tx->txreq.callback = sdma_complete; in ipath_verbs_send_dma()
1141 tx->txreq.callback_cookie = tx; in ipath_verbs_send_dma()
1142 tx->txreq.flags = IPATH_SDMA_TXREQ_F_HEADTOHOST | in ipath_verbs_send_dma()
1145 tx->txreq.flags |= IPATH_SDMA_TXREQ_F_USELARGEBUF; in ipath_verbs_send_dma()
1150 tx->txreq.flags |= IPATH_SDMA_TXREQ_F_VL15; in ipath_verbs_send_dma()
1167 tx->txreq.sg_count = ndesc; in ipath_verbs_send_dma()
[all …]
Dipath_qp.c989 if (qp->s_tx->txreq.flags & IPATH_SDMA_TXREQ_F_FREEBUF) in ipath_destroy_qp()
990 kfree(qp->s_tx->txreq.map_addr); in ipath_destroy_qp()
992 list_add(&qp->s_tx->txreq.list, &dev->txreq_free); in ipath_destroy_qp()
Dipath_verbs.h652 struct ipath_sdma_txreq txreq; member