Lines Matching refs:vd_lh
183 &dvd->vd_lh, zfs_li);
189 ldi_get_devid(dvd->vd_lh, &devid) == 0) {
192 (void) ldi_close(dvd->vd_lh, spa_mode(spa),
194 dvd->vd_lh = NULL;
213 spa_mode(spa), kcred, &dvd->vd_lh, zfs_li);
225 kcred, &dvd->vd_lh, zfs_li);
234 kcred, &dvd->vd_lh, zfs_li);
246 if (ldi_get_dev(dvd->vd_lh, &dev) == 0 &&
247 ldi_get_otyp(dvd->vd_lh, &otyp) == 0) {
253 ldi_get_minor_name(dvd->vd_lh, &minorname) == 0 &&
271 if (ldi_get_size(dvd->vd_lh, psize) != 0) {
282 (void) ldi_ioctl(dvd->vd_lh, DKIOCSETWCE, (intptr_t)&wce,
290 if (ldi_ioctl(dvd->vd_lh, DKIOCGMEDIAINFOEXT, (intptr_t)&dkmext,
319 if (dvd->vd_lh != NULL)
320 (void) ldi_close(dvd->vd_lh, spa_mode(vd->vdev_spa), kcred);
328 vdev_disk_physio(ldi_handle_t vd_lh, caddr_t data, size_t size,
334 if (vd_lh == NULL)
346 error = ldi_strategy(vd_lh, bp);
433 error = ldi_ioctl(dvd->vd_lh, zio->io_cmd,
483 VERIFY(ldi_strategy(dvd->vd_lh, bp) == 0);
503 if (ldi_ioctl(dvd->vd_lh, DKIOCSTATE, (intptr_t)&state,
540 ldi_handle_t vd_lh;
554 FREAD, kcred, &vd_lh, zfs_li);
559 if (error && (error = ldi_open_by_name(devpath, FREAD, kcred, &vd_lh,
563 if (ldi_get_size(vd_lh, &s)) {
564 (void) ldi_close(vd_lh, FREAD, kcred);
577 if (vdev_disk_physio(vd_lh, (caddr_t)label,
605 (void) ldi_close(vd_lh, FREAD, kcred);