Lines Matching defs:vdp
666 static void vd_free_dring_task(vd_t *vdp);
6716 uint64_t ldc_id, vd_t **vdp)
6727 ASSERT(vdp != NULL);
6734 *vdp = vd; /* assign here so vds_destroy_vd() can cleanup later */
6858 vd_free_dring_task(vd_t *vdp)
6860 if (vdp->dring_task != NULL) {
6861 ASSERT(vdp->dring_len != 0);
6863 for (int i = 0; i < vdp->dring_len; i++) {
6864 (void) ldc_mem_free_handle(vdp->dring_task[i].mhdl);
6865 kmem_free(vdp->dring_task[i].request,
6866 (vdp->descriptor_size -
6868 vdp->dring_task[i].request = NULL;
6869 kmem_free(vdp->dring_task[i].msg, vdp->max_msglen);
6870 vdp->dring_task[i].msg = NULL;
6872 kmem_free(vdp->dring_task,
6873 (sizeof (*vdp->dring_task)) * vdp->dring_len);
6874 vdp->dring_task = NULL;
6877 if (vdp->write_queue != NULL) {
6878 kmem_free(vdp->write_queue, sizeof (buf_t *) * vdp->dring_len);
6879 vdp->write_queue = NULL;