Lines Matching refs:vd_devid
8533 vd_devid_t *vd_devid; in vdc_setup_devid() local
8548 vd_devid = kmem_zalloc(bufsize, KM_SLEEP); in vdc_setup_devid()
8551 rv = vdc_do_op(vdc, VD_OP_GET_DEVID, (caddr_t)vd_devid, in vdc_setup_devid()
8557 kmem_free(vd_devid, bufsize); in vdc_setup_devid()
8561 if (vd_devid->length > bufid_len) { in vdc_setup_devid()
8566 kmem_free(vd_devid, bufsize); in vdc_setup_devid()
8567 bufsize = P2ROUNDUP(VD_DEVID_SIZE(vd_devid->length), in vdc_setup_devid()
8569 vd_devid = kmem_zalloc(bufsize, KM_SLEEP); in vdc_setup_devid()
8572 rv = vdc_do_sync_op(vdc, VD_OP_GET_DEVID, (caddr_t)vd_devid, in vdc_setup_devid()
8576 kmem_free(vd_devid, bufsize); in vdc_setup_devid()
8592 DMSG(vdc, 2, ": devid length = %d\n", vd_devid->length); in vdc_setup_devid()
8595 if (ddi_devid_init(vdc->dip, DEVID_ENCAP, vd_devid->length, in vdc_setup_devid()
8596 vd_devid->id, &vdisk_devid) != DDI_SUCCESS) { in vdc_setup_devid()
8598 kmem_free(vd_devid, bufsize); in vdc_setup_devid()
8602 DEVID_FORMTYPE((impl_devid_t *)vdisk_devid, vd_devid->type); in vdc_setup_devid()
8606 kmem_free(vd_devid, bufsize); in vdc_setup_devid()