Home
last modified time | relevance | path

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

/Linux-v6.6/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()
325 if (sdp->open_cnt > 0) { in sg_open()
345 if (sdp->open_cnt < 1) { /* no existing opens */ in sg_open()
357 sdp->open_cnt++; in sg_open()
394 sdp->open_cnt--; in sg_release()
401 } else if (0 == sdp->open_cnt) { in sg_release()
2618 sdp->sg_tablesize, sdp->exclude, sdp->open_cnt); in sg_proc_seq_show_debug()
/Linux-v6.6/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()