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

Lines Matching defs:gnttab

156 			 const struct mbuf *mbufc, gnttab_copy_table gnttab);
159 gnttab_copy_table gnttab);
168 gnttab_copy_table gnttab,
172 const gnttab_copy_table gnttab, int n_entries);
178 gnttab_copy_table gnttab,
182 const gnttab_copy_table gnttab, int n_entries,
525 printf("gnttab dest ref=\t%u\n", entry->dest.u.ref);
527 printf("gnttab dest gmfn=\t%"PRI_xen_pfn"\n",
529 printf("gnttab dest offset=\t%hu\n", entry->dest.offset);
530 printf("gnttab dest domid=\t%hu\n", entry->dest.domid);
532 printf("gnttab source ref=\t%u\n", entry->source.u.ref);
534 printf("gnttab source gmfn=\t%"PRI_xen_pfn"\n",
536 printf("gnttab source offset=\t%hu\n", entry->source.offset);
537 printf("gnttab source domid=\t%hu\n", entry->source.domid);
538 printf("gnttab len=\t%hu\n", entry->len);
539 printf("gnttab flags=\t%hu\n", entry->flags);
540 printf("gnttab status=\t%hd\n", entry->status);
1701 * \param[out] gnttab Storage for the returned grant table
1704 * \return The number of gnttab entries filled
1708 gnttab_copy_table gnttab, const netif_tx_back_ring_t *txb,
1735 gnttab[gnt_idx].source.u.ref = txq->gref;
1736 gnttab[gnt_idx].source.domid = otherend_id;
1737 gnttab[gnt_idx].source.offset = txq->offset + r_ofs;
1738 gnttab[gnt_idx].dest.u.gmfn = virt_to_mfn(
1740 gnttab[gnt_idx].dest.offset = virt_to_offset(
1742 gnttab[gnt_idx].dest.domid = DOMID_SELF;
1743 gnttab[gnt_idx].len = space;
1744 gnttab[gnt_idx].flags = GNTCOPY_source_gref;
1770 * \param[in] gnttab A grant table for a just completed copy op
1774 xnb_update_mbufc(struct mbuf *mbufc, const gnttab_copy_table gnttab,
1782 KASSERT(gnttab[i].status == GNTST_okay,
1784 gnttab[i].status));
1786 mbuf->m_len += gnttab[i].len;
1787 total_size += gnttab[i].len;
1808 * \param[in,out] gnttab Pointer to enough memory for a grant table. We make
1815 struct ifnet *ifnet, gnttab_copy_table gnttab)
1858 nr_ents = xnb_txpkt2gnttab(&pkt, *mbufc, gnttab, txb, otherend);
1862 gnttab, nr_ents);
1865 xnb_update_mbufc(*mbufc, gnttab, nr_ents);
1953 * \param[out] gnttab Storage for the returned grant table
1956 * \return The number of gnttab entries filled
1960 gnttab_copy_table gnttab, const netif_rx_back_ring_t *rxb,
1989 gnttab[gnt_idx].dest.u.ref = rxq->gref;
1990 gnttab[gnt_idx].dest.domid = otherend_id;
1991 gnttab[gnt_idx].dest.offset = r_ofs;
1992 gnttab[gnt_idx].source.u.gmfn = virt_to_mfn(
1994 gnttab[gnt_idx].source.offset = virt_to_offset(
1996 gnttab[gnt_idx].source.domid = DOMID_SELF;
1997 gnttab[gnt_idx].len = space;
1998 gnttab[gnt_idx].flags = GNTCOPY_dest_gref;
2025 * \param[in] gnttab The grant copy table corresponding to this packet.
2034 xnb_rxpkt2rsp(const struct xnb_pkt *pkt, const gnttab_copy_table gnttab,
2039 * * All entries in gnttab set GNTCOPY_dest_gref
2040 * * The entries in gnttab are grouped by their grefs: any two
2049 KASSERT(gnttab != NULL, ("Received a null granttable copy"));
2054 * after the one we send. So we must loop all the way through gnttab
2062 int16_t status = gnttab[gnt_idx].status;
2070 if (gnttab[gnt_idx].dest.u.ref != last_gref) {
2072 last_gref = gnttab[gnt_idx].dest.u.ref;
2126 for (; gnttab[gnt_idx].dest.u.ref == rxq.gref;
2128 rsp->status += gnttab[gnt_idx].len;
2392 * \param[in,out] gnttab Pointer to enough memory for a grant table. We make
2399 gnttab_copy_table gnttab)
2409 n_entries = xnb_rxpkt2gnttab(&pkt, mbufc, gnttab, ring, otherend);
2412 gnttab, n_entries);
2417 n_reqs = xnb_rxpkt2rsp(&pkt, gnttab, n_entries, ring);