Lines Matching refs:buf
89 hci1394_buf_t *buf;
100 buf = kmem_alloc(sizeof (hci1394_buf_t), KM_SLEEP);
103 *handle = buf;
106 buf->bu_drvinfo = drvinfo;
116 DDI_DMA_SLEEP, NULL, &buf->bu_dma_handle);
118 kmem_free(buf, sizeof (hci1394_buf_t));
126 status = ddi_dma_mem_alloc(buf->bu_dma_handle, parms->bp_length,
128 NULL, &info->bi_kaddr, &info->bi_real_length, &buf->bu_handle);
130 ddi_dma_free_handle(&buf->bu_dma_handle);
131 kmem_free(buf, sizeof (hci1394_buf_t));
139 status = ddi_dma_addr_bind_handle(buf->bu_dma_handle, NULL,
144 ddi_dma_mem_free(&buf->bu_handle);
145 ddi_dma_free_handle(&buf->bu_dma_handle);
146 kmem_free(buf, sizeof (hci1394_buf_t));
155 info->bi_handle = buf->bu_handle;
156 info->bi_dma_handle = buf->bu_dma_handle;
173 hci1394_buf_t *buf;
178 buf = *handle;
179 (void) ddi_dma_unbind_handle(buf->bu_dma_handle);
180 ddi_dma_mem_free(&buf->bu_handle);
181 ddi_dma_free_handle(&buf->bu_dma_handle);
184 kmem_free(buf, sizeof (hci1394_buf_t));