Lines Matching refs:inst
299 ulong_t inst = getminor((dev_t)arg); in vscan_drv_getinfo() local
306 *result = (void *)inst; in vscan_drv_getinfo()
407 int inst = getminor(*devp); in vscan_drv_open() local
409 if ((inst < 0) || (inst > vs_nodes_max)) in vscan_drv_open()
419 if (inst == 0) { in vscan_drv_open()
436 (vscan_drv_inst_state[inst] != VS_DRV_INST_INIT)) { in vscan_drv_open()
440 vscan_drv_inst_state[inst] = VS_DRV_INST_OPEN; in vscan_drv_open()
463 int i, inst = getminor(dev); in vscan_drv_close() local
465 if ((inst < 0) || (inst > vs_nodes_max)) in vscan_drv_close()
469 if (inst != 0) { in vscan_drv_close()
470 vscan_drv_inst_state[inst] = VS_DRV_INST_INIT; in vscan_drv_close()
543 int inst = getminor(dev); in vscan_drv_read() local
546 if ((inst <= 0) || (inst > vs_nodes_max)) in vscan_drv_read()
551 (vscan_drv_inst_state[inst] != VS_DRV_INST_OPEN)) { in vscan_drv_read()
555 vscan_drv_inst_state[inst] = VS_DRV_INST_READING; in vscan_drv_read()
558 if ((vp = vscan_svc_get_vnode(inst)) == NULL) in vscan_drv_read()
566 if (vscan_drv_inst_state[inst] == VS_DRV_INST_READING) in vscan_drv_read()
567 vscan_drv_inst_state[inst] = VS_DRV_INST_OPEN; in vscan_drv_read()
591 int inst = getminor(dev); in vscan_drv_ioctl() local
595 if (inst != 0) in vscan_drv_ioctl()