/drivers/char/pcmcia/ipwireless/ |
D | tty.c | 54 int open_count; member 130 if (tty->open_count == 0) in ipw_open() 133 tty->open_count++; in ipw_open() 149 tty->open_count--; in do_ipw_close() 151 if (tty->open_count == 0) { in do_ipw_close() 172 if (tty->open_count == 0) { in ipw_hangup() 201 if (!tty->open_count) { in ipwireless_tty_received() 243 if (!tty->open_count) { in ipw_write() 283 if (!tty->open_count) in ipw_write_room() 325 if (!tty->open_count) in ipw_chars_in_buffer() [all …]
|
/drivers/media/video/usbvideo/ |
D | vicam.c | 135 u8 open_count; member 491 if (cam->open_count > 0) { in vicam_open() 530 cam->open_count++; in vicam_open() 542 int open_count; in vicam_close() local 559 cam->open_count--; in vicam_close() 560 open_count = cam->open_count; in vicam_close() 565 if (!open_count && !udev) { in vicam_close() 886 int open_count; in vicam_disconnect() local 914 open_count = cam->open_count; in vicam_disconnect() 918 if (!open_count) { in vicam_disconnect()
|
/drivers/isdn/gigaset/ |
D | interface.c | 168 ++cs->open_count; in if_open() 170 if (cs->open_count == 1) { in if_open() 196 if (!cs->open_count) in if_close() 199 if (!--cs->open_count) { in if_close() 231 if (!cs->open_count) in if_ioctl() 363 if (!cs->open_count) in if_write() 397 if (!cs->open_count) in if_write_room() 429 if (!cs->open_count) in if_chars_in_buffer() 459 if (!cs->open_count) in if_throttle() 482 if (!cs->open_count) in if_unthrottle() [all …]
|
/drivers/usb/misc/ |
D | adutux.c | 100 int open_count; /* number of times this port has been opened */ member 299 if (dev->open_count) { in adu_open() 304 ++dev->open_count; in adu_open() 305 dbg(2,"%s : open count %d", __func__, dev->open_count); in adu_open() 344 --dev->open_count; in adu_release_internal() 345 dbg(2," %s : open count %d", __func__, dev->open_count); in adu_release_internal() 346 if (dev->open_count <= 0) { in adu_release_internal() 348 dev->open_count = 0; in adu_release_internal() 376 if (dev->open_count <= 0) { in adu_release() 385 if (!dev->open_count) /* ... and we're the last user */ in adu_release() [all …]
|
D | ldusb.c | 148 int open_count; /* number of times this port has been opened */ member 320 if (dev->open_count) { in ld_usb_open() 324 dev->open_count = 1; in ld_usb_open() 347 dev->open_count = 0; in ld_usb_open() 380 if (dev->open_count != 1) { in ld_usb_release() 396 dev->open_count = 0; in ld_usb_release() 765 if (!dev->open_count) { in ld_usb_disconnect()
|
D | legousbtower.c | 212 int open_count; /* number of times this port has been opened */ member 372 if (dev->open_count) { in tower_open() 377 dev->open_count = 1; in tower_open() 416 dev->open_count = 0; in tower_open() 456 if (dev->open_count != 1) { in tower_release() 475 dev->open_count = 0; in tower_release() 869 dev->open_count = 0; in tower_probe() 1017 if (!dev->open_count) { in tower_disconnect()
|
/drivers/usb/gadget/ |
D | u_serial.c | 99 unsigned open_count; member 721 if (port->open_count) { in gs_open() 723 port->open_count++; in gs_open() 782 port->open_count = 1; in gs_open() 829 if (port->open_count != 1) { in gs_close() 830 if (port->open_count == 0) in gs_close() 833 --port->open_count; in gs_close() 843 port->open_count = 0; in gs_close() 1149 cond = (port->open_count == 0) && !port->openclose; in gs_closed() 1261 if (port->open_count) { in gserial_connect() [all …]
|
/drivers/char/ |
D | hvcs.c | 272 int open_count; member 422 if (hvcsd->open_count > 0) { in hvcs_vterm_state_store() 1138 hvcsd->open_count = 1; in hvcs_open() 1172 hvcsd->open_count++; in hvcs_open() 1216 if (--hvcsd->open_count == 0) { in hvcs_close() 1242 } else if (hvcsd->open_count < 0) { in hvcs_close() 1245 hvcsd->vdev->unit_address, hvcsd->open_count); in hvcs_close() 1261 temp_open_count = hvcsd->open_count; in hvcs_hangup() 1276 hvcsd->open_count = 0; in hvcs_hangup() 1347 if (hvcsd->open_count <= 0) { in hvcs_write() [all …]
|
D | sonypi.c | 493 int open_count; member 902 sonypi_device.open_count--; in sonypi_misc_release() 912 if (!sonypi_device.open_count) in sonypi_misc_open() 914 sonypi_device.open_count++; in sonypi_misc_open()
|
/drivers/misc/hdpuftrs/ |
D | hdpu_cpustate.c | 70 if (cpustate.open_count) in cpustate_get_ref() 75 cpustate.open_count++; in cpustate_get_ref() 89 cpustate.open_count--; in cpustate_free_ref()
|
/drivers/staging/frontier/ |
D | alphatrack.c | 149 int open_count; /* number of times this port has been opened */ member 352 if (dev->open_count) { in usb_alphatrack_open() 356 dev->open_count = 1; in usb_alphatrack_open() 380 dev->open_count = 0; in usb_alphatrack_open() 417 if (dev->open_count != 1) { in usb_alphatrack_release() 435 dev->open_count = 0; in usb_alphatrack_release() 804 if (!dev->open_count) { in usb_alphatrack_disconnect()
|
D | tranzport.c | 147 int open_count; /* number of times this port has been opened */ member 446 if (dev->open_count) { in usb_tranzport_open() 450 dev->open_count = 1; in usb_tranzport_open() 475 dev->open_count = 0; in usb_tranzport_open() 512 if (dev->open_count != 1) { in usb_tranzport_release() 530 dev->open_count = 0; in usb_tranzport_release() 958 if (!dev->open_count) { in usb_tranzport_disconnect()
|
/drivers/misc/ |
D | goldfish_audio.c | 103 static atomic_t open_count = ATOMIC_INIT(0); variable 197 if (atomic_inc_return(&open_count) == 1) in goldfish_audio_open() 206 atomic_dec(&open_count); in goldfish_audio_open() 213 atomic_dec(&open_count); in goldfish_audio_release()
|
/drivers/usb/ |
D | usb-skeleton.c | 60 int open_count; /* count the number of openers */ member 109 if (!dev->open_count++) { in skel_open() 112 dev->open_count--; in skel_open() 144 if (!--dev->open_count && dev->interface) in skel_release()
|
/drivers/media/video/ |
D | cpia_pp.c | 80 int open_count; member 645 if(cam->open_count == 0) { in cpia_pp_open() 659 ++cam->open_count; in cpia_pp_open() 692 if (--cam->open_count == 0) { in cpia_pp_close() 774 if(cam->open_count > 0) in cpia_pp_detach()
|
/drivers/gpu/drm/ |
D | drm_fops.c | 135 if (!dev->open_count++) { in drm_open() 439 DRM_DEBUG("open_count = %d\n", dev->open_count); in drm_release() 451 dev->open_count); in drm_release() 530 if (!--dev->open_count) { in drm_release()
|
/drivers/s390/block/ |
D | dasd_ioctl.c | 285 dasd_info->open_count = atomic_read(&block->open_count); in dasd_ioctl_information() 287 dasd_info->open_count++; in dasd_ioctl_information()
|
D | dasd.c | 135 atomic_set(&block->open_count, -1); in dasd_alloc_block() 2034 atomic_inc(&block->open_count); in dasd_open() 2064 atomic_dec(&block->open_count); in dasd_open() 2072 atomic_dec(&block->open_count); in dasd_release() 2296 int max_count, open_count; in dasd_generic_set_offline() local 2314 open_count = atomic_read(&device->block->open_count); in dasd_generic_set_offline() 2315 if (open_count > max_count) { in dasd_generic_set_offline() 2316 if (open_count > 0) in dasd_generic_set_offline() 2319 open_count); in dasd_generic_set_offline()
|
/drivers/net/usb/ |
D | hso.c | 260 int open_count; member 1176 if (serial->open_count > 0) { in put_rxbuf_data_and_resubmit_ctrl_urb() 1212 if (serial->open_count == 0) in hso_std_serial_read_bulk_callback() 1307 serial->open_count++; in hso_serial_open() 1308 if (serial->open_count == 1) { in hso_serial_open() 1321 serial->open_count--; in hso_serial_open() 1358 serial->open_count--; in hso_serial_close() 1360 if (serial->open_count <= 0) { in hso_serial_close() 1361 serial->open_count = 0; in hso_serial_close() 1441 if (serial->open_count) in hso_serial_set_termios() [all …]
|
/drivers/media/video/cpia2/ |
D | cpia2_v4l.c | 260 if (cam->open_count > 0) { in cpia2_open() 291 ++cam->open_count; in cpia2_open() 314 (cam->open_count == 1 in cpia2_close() 319 if(cam->open_count == 1) { in cpia2_close() 336 if (--cam->open_count == 0) { in cpia2_close() 1966 if (!cam->open_count) { in cpia2_unregister_camera()
|
D | cpia2_usb.c | 220 if (!cam->streaming || !cam->present || cam->open_count == 0) { in cpia2_usb_complete() 223 cam->streaming, cam->present, cam->open_count); in cpia2_usb_complete() 886 if (cam->open_count == 0) { in cpia2_usb_disconnect()
|
/drivers/md/ |
D | dm.c | 117 atomic_t open_count; member 312 atomic_inc(&md->open_count); in dm_blk_open() 323 atomic_dec(&md->open_count); in dm_blk_close() 330 return atomic_read(&md->open_count); in dm_open_count() 1107 atomic_set(&md->open_count, 0); in alloc_dev()
|
/drivers/video/nvidia/ |
D | nvidia.c | 1009 if (!par->open_count) { in nvidiafb_open() 1014 par->open_count++; in nvidiafb_open() 1026 if (!par->open_count) { in nvidiafb_release() 1031 if (par->open_count == 1) { in nvidiafb_release() 1036 par->open_count--; in nvidiafb_release()
|
D | nv_type.h | 151 u32 open_count; member
|
/drivers/net/wan/ |
D | hdlc_fr.c | 124 int open_count; member 350 if (pvc->open_count++ == 0) { in pvc_open() 367 if (--pvc->open_count == 0) { in pvc_close() 545 if (pvc->open_count && !pvc->state.active && in fr_lmi_send()
|