• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/dev/xen/netback/

Lines Matching defs:gnttab

154 			 const struct mbuf *mbufc, gnttab_copy_table gnttab);
157 gnttab_copy_table gnttab);
166 gnttab_copy_table gnttab,
170 const gnttab_copy_table gnttab, int n_entries);
176 gnttab_copy_table gnttab,
180 const gnttab_copy_table gnttab, int n_entries,
521 printf("gnttab dest ref=\t%u\n", entry->dest.u.ref);
523 printf("gnttab dest gmfn=\t%"PRI_xen_pfn"\n",
525 printf("gnttab dest offset=\t%hu\n", entry->dest.offset);
526 printf("gnttab dest domid=\t%hu\n", entry->dest.domid);
528 printf("gnttab source ref=\t%u\n", entry->source.u.ref);
530 printf("gnttab source gmfn=\t%"PRI_xen_pfn"\n",
532 printf("gnttab source offset=\t%hu\n", entry->source.offset);
533 printf("gnttab source domid=\t%hu\n", entry->source.domid);
534 printf("gnttab len=\t%hu\n", entry->len);
535 printf("gnttab flags=\t%hu\n", entry->flags);
536 printf("gnttab status=\t%hd\n", entry->status);
1694 * \param[out] gnttab Storage for the returned grant table
1697 * \return The number of gnttab entries filled
1701 gnttab_copy_table gnttab, const netif_tx_back_ring_t *txb,
1728 gnttab[gnt_idx].source.u.ref = txq->gref;
1729 gnttab[gnt_idx].source.domid = otherend_id;
1730 gnttab[gnt_idx].source.offset = txq->offset + r_ofs;
1731 gnttab[gnt_idx].dest.u.gmfn = virt_to_mfn(
1733 gnttab[gnt_idx].dest.offset = virt_to_offset(
1735 gnttab[gnt_idx].dest.domid = DOMID_SELF;
1736 gnttab[gnt_idx].len = space;
1737 gnttab[gnt_idx].flags = GNTCOPY_source_gref;
1763 * \param[in] gnttab A grant table for a just completed copy op
1767 xnb_update_mbufc(struct mbuf *mbufc, const gnttab_copy_table gnttab,
1775 KASSERT(gnttab[i].status == GNTST_okay,
1777 gnttab[i].status));
1779 mbuf->m_len += gnttab[i].len;
1780 total_size += gnttab[i].len;
1801 * \param[in,out] gnttab Pointer to enough memory for a grant table. We make
1808 struct ifnet *ifnet, gnttab_copy_table gnttab)
1851 nr_ents = xnb_txpkt2gnttab(&pkt, *mbufc, gnttab, txb, otherend);
1855 gnttab, nr_ents);
1858 xnb_update_mbufc(*mbufc, gnttab, nr_ents);
1946 * \param[out] gnttab Storage for the returned grant table
1949 * \return The number of gnttab entries filled
1953 gnttab_copy_table gnttab, const netif_rx_back_ring_t *rxb,
1982 gnttab[gnt_idx].dest.u.ref = rxq->gref;
1983 gnttab[gnt_idx].dest.domid = otherend_id;
1984 gnttab[gnt_idx].dest.offset = r_ofs;
1985 gnttab[gnt_idx].source.u.gmfn = virt_to_mfn(
1987 gnttab[gnt_idx].source.offset = virt_to_offset(
1989 gnttab[gnt_idx].source.domid = DOMID_SELF;
1990 gnttab[gnt_idx].len = space;
1991 gnttab[gnt_idx].flags = GNTCOPY_dest_gref;
2018 * \param[in] gnttab The grant copy table corresponding to this packet.
2027 xnb_rxpkt2rsp(const struct xnb_pkt *pkt, const gnttab_copy_table gnttab,
2032 * * All entries in gnttab set GNTCOPY_dest_gref
2033 * * The entries in gnttab are grouped by their grefs: any two
2042 KASSERT(gnttab != NULL, ("Received a null granttable copy"));
2047 * after the one we send. So we must loop all the way through gnttab
2055 int16_t status = gnttab[gnt_idx].status;
2063 if (gnttab[gnt_idx].dest.u.ref != last_gref) {
2065 last_gref = gnttab[gnt_idx].dest.u.ref;
2119 for (; gnttab[gnt_idx].dest.u.ref == rxq.gref;
2121 rsp->status += gnttab[gnt_idx].len;
2386 * \param[in,out] gnttab Pointer to enough memory for a grant table. We make
2393 gnttab_copy_table gnttab)
2403 n_entries = xnb_rxpkt2gnttab(&pkt, mbufc, gnttab, ring, otherend);
2406 gnttab, n_entries);
2411 n_reqs = xnb_rxpkt2rsp(&pkt, gnttab, n_entries, ring);