Lines Matching defs:bdesc

611 		xnf_buf_t *bdesc;
613 bdesc = xnf_buf_get(xnfp, KM_SLEEP, B_FALSE);
614 VERIFY(bdesc != NULL);
615 xnf_rxbuf_hang(xnfp, bdesc);
1900 * Hang buffer `bdesc' on the RX ring.
1903 xnf_rxbuf_hang(xnf_t *xnfp, xnf_buf_t *bdesc)
1915 reqp->id = bdesc->id = hang_ix;
1916 reqp->gref = bdesc->grant_ref;
1918 xnfp->xnf_rx_pkt_info[hang_ix] = bdesc;
1948 xnf_buf_t *bdesc;
1967 bdesc = xnfp->xnf_rx_pkt_info[rxpkt->id];
1973 ASSERT(bdesc->id == rxpkt->id);
1975 ref = bdesc->grant_ref;
1982 char *, bdesc->buf, int, rxpkt->offset,
1983 char *, ((char *)bdesc->buf) + rxpkt->offset);
1990 char *, bdesc->buf, int, rxpkt->offset,
1991 char *, ((char *)bdesc->buf) + rxpkt->offset);
2007 } else if (bdesc->grant_ref == INVALID_GRANT_REF) {
2020 char *, bdesc->buf, int, off,
2021 char *, ((char *)bdesc->buf) + off);
2043 mp = desballoc((unsigned char *)bdesc->buf,
2044 bdesc->len, 0, &bdesc->free_rtn);
2063 bdesc->grant_ref, 0);
2064 gref_put(xnfp, bdesc->grant_ref);
2065 bdesc->grant_ref = INVALID_GRANT_REF;
2067 bdesc = nbuf;
2085 bcopy(bdesc->buf + off, mp->b_wptr,
2093 xnf_rxbuf_hang(xnfp, bdesc);
2319 xnf_buf_t *bdesc = buf;
2330 ddiflags, 0, &bdesc->dma_handle) != DDI_SUCCESS)
2334 if (ddi_dma_mem_alloc(bdesc->dma_handle,
2336 &bdesc->buf, &len, &bdesc->acc_handle) != DDI_SUCCESS)
2340 if (ddi_dma_addr_bind_handle(bdesc->dma_handle, NULL,
2341 bdesc->buf, len, DDI_DMA_RDWR | DDI_DMA_STREAMING,
2346 bdesc->free_rtn.free_func = xnf_buf_recycle;
2347 bdesc->free_rtn.free_arg = (caddr_t)bdesc;
2348 bdesc->xnfp = xnfp;
2349 bdesc->buf_phys = dma_cookie.dmac_laddress;
2350 bdesc->buf_mfn = pfn_to_mfn(xnf_btop(bdesc->buf_phys));
2351 bdesc->len = dma_cookie.dmac_size;
2352 bdesc->grant_ref = INVALID_GRANT_REF;
2353 bdesc->gen = xnfp->xnf_gen;
2360 ddi_dma_mem_free(&bdesc->acc_handle);
2363 ddi_dma_free_handle(&bdesc->dma_handle);
2374 xnf_buf_t *bdesc = buf;
2377 (void) ddi_dma_unbind_handle(bdesc->dma_handle);
2378 ddi_dma_mem_free(&bdesc->acc_handle);
2379 ddi_dma_free_handle(&bdesc->dma_handle);
2439 xnf_buf_refresh(xnf_buf_t *bdesc)
2441 bdesc->buf_mfn = pfn_to_mfn(xnf_btop(bdesc->buf_phys));
2442 bdesc->gen = bdesc->xnfp->xnf_gen;
2450 xnf_buf_recycle(xnf_buf_t *bdesc)
2452 xnf_t *xnfp = bdesc->xnfp;
2454 xnf_buf_put(xnfp, bdesc, B_TRUE);