Lines Matching refs:inst
299 ulong_t inst = getminor((dev_t)arg);
306 *result = (void *)inst;
394 * If inst == 0, this is vscand initializing.
400 * If inst != 0, open the file associated with inst.
407 int inst = getminor(*devp);
409 if ((inst < 0) || (inst > vs_nodes_max))
419 if (inst == 0) {
436 (vscan_drv_inst_state[inst] != VS_DRV_INST_INIT)) {
440 vscan_drv_inst_state[inst] = VS_DRV_INST_OPEN;
451 * If inst == 0, this is vscand detaching.
457 * If inst != 0, close the file associated with inst
463 int i, inst = getminor(dev);
465 if ((inst < 0) || (inst > vs_nodes_max))
469 if (inst != 0) {
470 vscan_drv_inst_state[inst] = VS_DRV_INST_INIT;
543 int inst = getminor(dev);
546 if ((inst <= 0) || (inst > vs_nodes_max))
551 (vscan_drv_inst_state[inst] != VS_DRV_INST_OPEN)) {
555 vscan_drv_inst_state[inst] = VS_DRV_INST_READING;
558 if ((vp = vscan_svc_get_vnode(inst)) == NULL)
566 if (vscan_drv_inst_state[inst] == VS_DRV_INST_READING)
567 vscan_drv_inst_state[inst] = VS_DRV_INST_OPEN;
591 int inst = getminor(dev);
595 if (inst != 0)