/linux-2.6.39/drivers/tty/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 …]
|
/linux-2.6.39/drivers/isdn/gigaset/ |
D | interface.c | 163 ++cs->open_count; in if_open() 165 if (cs->open_count == 1) { in if_open() 193 else if (!cs->open_count) in if_close() 196 if (!--cs->open_count) { in if_close() 231 } else if (!cs->open_count) in if_ioctl() 361 if (!cs->open_count) { in if_write() 414 } else if (!cs->open_count) in if_write_room() 444 else if (!cs->open_count) in if_chars_in_buffer() 472 else if (!cs->open_count) in if_throttle() 496 else if (!cs->open_count) in if_unthrottle() [all …]
|
/linux-2.6.39/net/irda/ircomm/ |
D | ircomm_tty.c | 284 __FILE__,__LINE__, tty->driver->name, self->open_count ); in ircomm_tty_block_til_ready() 290 self->open_count--; in ircomm_tty_block_til_ready() 333 __FILE__,__LINE__, tty->driver->name, self->open_count ); in ircomm_tty_block_til_ready() 344 self->open_count++; in ircomm_tty_block_til_ready() 350 __FILE__,__LINE__, tty->driver->name, self->open_count); in ircomm_tty_block_til_ready() 419 self->open_count++; in ircomm_tty_open() 426 self->line, self->open_count); in ircomm_tty_open() 512 if ((tty->count == 1) && (self->open_count != 1)) { in ircomm_tty_close() 522 self->open_count); in ircomm_tty_close() 523 self->open_count = 1; in ircomm_tty_close() [all …]
|
/linux-2.6.39/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() 769 if (!dev->open_count) { in ld_usb_disconnect()
|
D | legousbtower.c | 215 int open_count; /* number of times this port has been opened */ member 381 if (dev->open_count) { in tower_open() 386 dev->open_count = 1; in tower_open() 425 dev->open_count = 0; in tower_open() 465 if (dev->open_count != 1) { in tower_release() 484 dev->open_count = 0; in tower_release() 881 dev->open_count = 0; in tower_probe() 1029 if (!dev->open_count) { in tower_disconnect()
|
/linux-2.6.39/drivers/usb/gadget/ |
D | u_serial.c | 101 unsigned open_count; member 740 if (port->open_count) { in gs_open() 742 port->open_count++; in gs_open() 801 port->open_count = 1; in gs_open() 843 if (port->open_count != 1) { in gs_close() 844 if (port->open_count == 0) in gs_close() 847 --port->open_count; in gs_close() 857 port->open_count = 0; in gs_close() 1162 cond = (port->open_count == 0) && !port->openclose; in gs_closed() 1275 if (port->open_count) { in gserial_connect() [all …]
|
/linux-2.6.39/drivers/tty/hvc/ |
D | hvcs.c | 273 int open_count; member 425 if (hvcsd->open_count > 0) { in hvcs_vterm_state_store() 1148 hvcsd->open_count = 1; in hvcs_open() 1182 hvcsd->open_count++; in hvcs_open() 1226 if (--hvcsd->open_count == 0) { in hvcs_close() 1252 } else if (hvcsd->open_count < 0) { in hvcs_close() 1255 hvcsd->vdev->unit_address, hvcsd->open_count); in hvcs_close() 1271 temp_open_count = hvcsd->open_count; in hvcs_hangup() 1286 hvcsd->open_count = 0; in hvcs_hangup() 1357 if (hvcsd->open_count <= 0) { in hvcs_write() [all …]
|
/linux-2.6.39/drivers/staging/frontier/ |
D | alphatrack.c | 139 int open_count; /* number of times this port has been opened */ member 356 if (dev->open_count) { in usb_alphatrack_open() 360 dev->open_count = 1; in usb_alphatrack_open() 385 dev->open_count = 0; in usb_alphatrack_open() 421 if (dev->open_count != 1) { in usb_alphatrack_release() 441 dev->open_count = 0; in usb_alphatrack_release() 847 if (!dev->open_count) { in usb_alphatrack_disconnect()
|
D | tranzport.c | 128 int open_count; /* number of times this port opened */ member 376 if (dev->open_count) { in usb_tranzport_open() 380 dev->open_count = 1; in usb_tranzport_open() 406 dev->open_count = 0; in usb_tranzport_open() 442 if (dev->open_count != 1) { in usb_tranzport_release() 462 dev->open_count = 0; in usb_tranzport_release() 952 if (!dev->open_count) {
|
/linux-2.6.39/drivers/char/ |
D | msm_smd_pkt.c | 45 int open_count; member 302 if (smd_pkt_devp->open_count == 0) { in smd_pkt_open() 324 smd_pkt_devp->open_count++; in smd_pkt_open() 342 if (--smd_pkt_devp->open_count == 0) { in smd_pkt_release()
|
/linux-2.6.39/sound/drivers/ |
D | mts64.c | 69 int open_count; member 699 if (mts->open_count == 0) { in snd_mts64_rawmidi_open() 707 ++(mts->open_count); in snd_mts64_rawmidi_open() 717 --(mts->open_count); in snd_mts64_rawmidi_close() 718 if (mts->open_count == 0) { in snd_mts64_rawmidi_close() 727 } else if (mts->open_count < 0) in snd_mts64_rawmidi_close() 728 mts->open_count = 0; in snd_mts64_rawmidi_close()
|
/linux-2.6.39/arch/s390/include/asm/ |
D | dasd.h | 37 unsigned int open_count; member 101 unsigned int open_count; member
|
/linux-2.6.39/drivers/usb/ |
D | usb-skeleton.c | 63 int open_count; /* count the number of openers */ member 116 if (!dev->open_count++) { in skel_open() 119 dev->open_count--; in skel_open() 151 if (!--dev->open_count && dev->interface) in skel_release()
|
/linux-2.6.39/include/net/irda/ |
D | ircomm_tty.h | 108 int open_count; member
|
/linux-2.6.39/drivers/s390/block/ |
D | dasd_ioctl.c | 312 dasd_info->open_count = atomic_read(&block->open_count); in dasd_ioctl_information() 314 dasd_info->open_count++; in dasd_ioctl_information()
|
/linux-2.6.39/drivers/gpu/drm/ |
D | drm_fops.c | 138 if (!dev->open_count++) in drm_open() 475 DRM_DEBUG("open_count = %d\n", dev->open_count); in drm_release() 487 dev->open_count); in drm_release() 569 if (!--dev->open_count) { in drm_release()
|
/linux-2.6.39/drivers/staging/quatech_usb2/ |
D | quatech_usb2.c | 181 int open_count; member 349 qt2_port->open_count = 0; /* port is not open */ in qt2_attach() 605 port_extra->open_count++; in qt2_open() 685 port_extra->open_count--; in qt2_close() 1187 if (!port_extra->open_count) { in qt2_break() 1218 if (!port_extra->open_count) { in qt2_throttle() 1260 if (!port_extra->open_count) { in qt2_unthrottle() 1586 if (active_extra->open_count > 0) in qt2_read_bulk_callback()
|
/linux-2.6.39/net/mac80211/ |
D | pm.c | 98 if (local->open_count) in __ieee80211_suspend()
|
D | iface.c | 214 if (local->open_count == 0) { in ieee80211_do_open() 238 if (!local->open_count) in ieee80211_do_open() 330 local->open_count++; in ieee80211_do_open() 350 if (!local->open_count) in ieee80211_do_open() 477 local->open_count--; in ieee80211_do_stop() 536 if (local->open_count == 0) { in ieee80211_do_stop()
|
/linux-2.6.39/include/linux/regulator/ |
D | driver.h | 187 u32 open_count; member
|
/linux-2.6.39/include/linux/ |
D | dm-ioctl.h | 125 __s32 open_count; /* out */ member
|
/linux-2.6.39/drivers/media/video/cpia2/ |
D | cpia2_v4l.c | 251 if (cam->open_count == 0) { in cpia2_open() 271 ++cam->open_count; in cpia2_open() 289 (cam->open_count == 1 || fh->prio == V4L2_PRIORITY_RECORD)) { in cpia2_close() 292 if (cam->open_count == 1) { in cpia2_close() 307 if (--cam->open_count == 0) { in cpia2_close() 1487 if (!cam->open_count) { in cpia2_unregister_camera()
|
/linux-2.6.39/drivers/net/usb/ |
D | hso.c | 260 int open_count; member 1193 if (serial->open_count > 0) { in put_rxbuf_data_and_resubmit_ctrl_urb() 1229 if (serial->open_count == 0) in hso_std_serial_read_bulk_callback() 1314 serial->open_count++; in hso_serial_open() 1315 if (serial->open_count == 1) { in hso_serial_open() 1327 serial->open_count--; in hso_serial_open() 1364 serial->open_count--; in hso_serial_close() 1366 if (serial->open_count <= 0) { in hso_serial_close() 1367 serial->open_count = 0; in hso_serial_close() 1449 if (serial->open_count) in hso_serial_set_termios() [all …]
|
/linux-2.6.39/drivers/media/video/hdpvr/ |
D | hdpvr.h | 87 uint open_count; member
|