Home
last modified time | relevance | path

Searched refs:open_cnt (Results 1 – 4 of 4) sorted by relevance

/drivers/scsi/
Dsg.c172 int open_cnt; /* count of opens (perhaps < num(sfds) ) */ member
251 while (sdp->open_cnt > 0) { in open_wait()
255 !sdp->open_cnt)); in open_wait()
327 if (sdp->open_cnt > 0) { in sg_open()
347 if (sdp->open_cnt < 1) { /* no existing opens */ in sg_open()
359 sdp->open_cnt++; in sg_open()
397 sdp->open_cnt--; in sg_release()
404 } else if (0 == sdp->open_cnt) { in sg_release()
2622 sdp->sg_tablesize, sdp->exclude, sdp->open_cnt); in sg_proc_seq_show_debug()
/drivers/block/drbd/
Ddrbd_main.c1908 device->open_cnt++; in drbd_open()
1920 device->open_cnt--; in drbd_release()
2202 D_ASSERT(device, device->open_cnt == 0); in drbd_destroy_device()
Ddrbd_int.h856 int open_cnt; member
Ddrbd_state.c850 else if (ns.role == R_SECONDARY && device->open_cnt) in is_valid_state()