Lines Matching refs:dev
29 * This driver implements a simplistic /dev/{r}dsk/ interface to a
38 * 2. Access the device as before through /dev/rdsk/c?t?d?s?
140 /* hash table of major dev structures */
502 sv_getmajor(const dev_t dev)
505 major_t umaj = getmajor(dev);
609 sv_dev_to_sv(const dev_t dev, sv_maj_t **majpp)
611 minor_t umin = getminor(dev);
618 maj = sv_getmajor(dev);
627 dev_t, dev);
645 DTRACE_PROBE1(sv_dev_to_sv_retry, dev_t, dev);
650 if (svp->sv_dev == dev)
1103 dev_t dev = (dev_t)arg;
1104 sv_dev_t *svp = sv_dev_to_sv(dev, NULL);
1141 dev_t dev = (dev_t)arg;
1142 sv_dev_t *svp = sv_dev_to_sv(dev, NULL);
1164 sv_disable(dev_t dev, spcs_s_info_t kstatus)
1166 sv_dev_t *svp = sv_dev_to_sv(dev, NULL);
1306 sv_lyr_close(dev_t dev, int flag, int otyp, cred_t *crp)
1313 svp = sv_dev_to_sv(dev, &maj);
1325 dev_t, dev);
1345 DTRACE_PROBE1(sv_lyr_close_end, dev_t, dev);
1357 ret = (*fn)(dev, flag, otyp, crp);
1360 ret = (*fn)(dev, flag, otyp, crp);
1379 sv_find_enabled(const dev_t dev, sv_maj_t **majpp)
1383 while ((svp = sv_dev_to_sv(dev, majpp)) != NULL) {
1397 DTRACE_PROBE1(sv_find_enabled_retry, dev_t, dev);
1407 sv_lyr_uio(dev_t dev, uio_t *uiop, cred_t *crp, int rw)
1414 svp = sv_find_enabled(dev, &maj);
1425 rc = (*fn)(dev, uiop, crp);
1428 rc = (*fn)(dev, uiop, crp);
1470 sv_lyr_read(dev_t dev, uio_t *uiop, cred_t *crp)
1472 return (sv_lyr_uio(dev, uiop, crp, NSC_READ));
1477 sv_lyr_write(dev_t dev, uio_t *uiop, cred_t *crp)
1479 return (sv_lyr_uio(dev, uiop, crp, NSC_WRITE));
1486 sv_lyr_aread(dev_t dev, struct aio_req *aio, cred_t *crp)
1489 anocancel, dev, B_READ, minphys, aio));
1496 sv_lyr_awrite(dev_t dev, struct aio_req *aio, cred_t *crp)
1499 anocancel, dev, B_WRITE, minphys, aio));
1688 svclose(dev_t dev, int flag, int otyp, cred_t *crp)
1725 svioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *crp, int *rvalp)
1760 DTRACE_PROBE1(sv_ioctl_err_kcreate, dev_t, dev);
1822 DTRACE_PROBE3(sv_ioctl_end, dev_t, dev, int, *rvalp, int, rc);
1900 DTRACE_PROBE3(sv_ioctl_2, dev_t, dev, int, *rvalp, int, rc);
1997 DTRACE_PROBE3(sv_ioctl_3, dev_t, dev, int, *rvalp, int, 0);
2046 DTRACE_PROBE3(sv_ioctl_4, dev_t, dev, int, *rvalp, int, 0);
2064 DTRACE_PROBE3(sv_ioctl_4, dev_t, dev, int, *rvalp, int, EINVAL);
2076 svprint(dev_t dev, char *str)
2441 "for dev %lx", svp->sv_dev);
2540 "!sv_efi: unable to determine partition number for dev %lx",
2690 sv_lyr_ioctl(const dev_t dev, const int cmd, const intptr_t arg,
2712 svp = sv_find_enabled(dev, &maj);
2724 dev_t, dev);
2758 DTRACE_PROBE2(sv_lyr_ioctl_svtoc, dev_t, dev, int, EPERM);
2773 rc = (*fn)(dev, cmd, arg, mode, crp, rvalp);
2776 rc = (*fn)(dev, cmd, arg, mode, crp, rvalp);