Home
last modified time | relevance | path

Searched refs:opened (Results 1 – 25 of 129) sorted by relevance

123456

/linux-2.6.39/sound/core/seq/oss/
Dseq_oss_midi.c47 int opened; /* flag for opening */ member
186 mdev->opened = 0; in snd_seq_oss_midi_check_new_port()
340 if (mdev->opened && mdev->devinfo != dp) { in snd_seq_oss_midi_open()
357 if ((mdev->opened & perm) == perm) { in snd_seq_oss_midi_open()
362 perm &= ~mdev->opened; in snd_seq_oss_midi_open()
371 mdev->opened |= PERM_WRITE; in snd_seq_oss_midi_open()
380 mdev->opened |= PERM_READ; in snd_seq_oss_midi_open()
383 if (! mdev->opened) { in snd_seq_oss_midi_open()
404 if (! mdev->opened || mdev->devinfo != dp) { in snd_seq_oss_midi_close()
409 debug_printk(("closing client %d port %d mode %d\n", mdev->client, mdev->port, mdev->opened)); in snd_seq_oss_midi_close()
[all …]
Dseq_oss_synth.c59 int opened; member
117 rec->opened = 0; in snd_seq_oss_synth_register()
236 info->opened = 0; in snd_seq_oss_synth_setup()
259 info->opened++; in snd_seq_oss_synth_setup()
260 rec->opened++; in snd_seq_oss_synth_setup()
292 info->opened = 1; in snd_seq_oss_synth_setup_midi()
293 midi_synth_dev.opened++; in snd_seq_oss_synth_setup_midi()
316 if (! info->opened) in snd_seq_oss_synth_cleanup()
319 if (midi_synth_dev.opened > 0) { in snd_seq_oss_synth_cleanup()
321 midi_synth_dev.opened--; in snd_seq_oss_synth_cleanup()
[all …]
/linux-2.6.39/sound/oss/
Dsys_timer.c21 static volatile int opened, tmr_running; variable
54 if (opened) in poll_def_tmr()
96 if (opened) in def_tmr_open()
102 opened = 1; in def_tmr_open()
114 opened = tmr_running = 0; in def_tmr_close()
183 if (!opened) in def_tmr_get_time()
Dsound_timer.c19 static volatile int initialized, opened, tmr_running; variable
97 if (opened) in timer_open()
102 opened = 1; in timer_open()
109 opened = tmr_running = 0; in timer_close()
176 if (!opened) in timer_get_time()
285 if (!opened) in sound_timer_interrupt()
Dsb_midi.c43 if (devc->opened) in sb_midi_open()
48 devc->opened = 1; in sb_midi_open()
58 devc->opened = 0; in sb_midi_open()
83 devc->opened = 0; in sb_midi_close()
Dv_midi.c55 if (devc->opened) in v_midi_open()
60 devc->opened = 1; in v_midi_open()
85 devc->opened = 0; in v_midi_close()
220 v_devc[0]->opened = v_devc[0]->input_opened = 0; in attach_v_midi()
241 v_devc[1]->opened = v_devc[1]->input_opened = 0; in attach_v_midi()
Duart401.c39 int opened, disabled; member
93 else if (devc->opened & OPEN_READ && devc->midi_input_intr) in uart401_input_loop()
123 if (devc->opened) in uart401_open()
132 devc->opened = mode; in uart401_open()
144 devc->opened = 0; in uart401_close()
320 devc->opened = 0; in probe_uart401()
381 devc->opened = 0; in probe_uart401()
Dmpu401.c42 int opened; /* member
430 else if (devc->opened & OPEN_READ && devc->inputintr != NULL) in mpu401_input_loop()
447 if (devc->base != 0 && (devc->opened & OPEN_READ || devc->mode == MODE_SYNTH)) in mpuintr()
472 if (devc->opened) in mpu401_open()
513 devc->opened = mode; in mpu401_open()
536 devc->opened = 0; in mpu401_close()
615 if (devc->opened && devc->mode == MODE_SYNTH) in mpu401_command()
825 if (devc->opened) in mpu_synth_open()
843 devc->opened = mode; in mpu_synth_open()
874 devc->opened = 0; in mpu_synth_close()
[all …]
Dv_midi.h5 int opened; member
Dsb_audio.c50 if (devc->opened) in sb_audio_open()
63 devc->opened = mode; in sb_audio_open()
104 && (devc->opened & OPEN_READ) && (devc->opened & OPEN_WRITE)) in sb_audio_close()
120 if ((devc->submodel == SUBMDL_ALS007) && (devc->opened & OPEN_READ)) in sb_audio_close()
125 devc->opened = 0; in sb_audio_close()
291 if (devc->opened & OPEN_READ) in sb1_audio_set_speed()
453 if (devc->opened & OPEN_READ && speed > 15000) in sb201_audio_set_speed()
/linux-2.6.39/scripts/
Drecordmcount.pl368 my $opened = 0;
444 if (!$opened) {
446 $opened = 1;
530 if (!$opened) {
/linux-2.6.39/drivers/input/misc/
Dcma3000_d0x.c79 bool opened; member
235 data->opened = true; in cma3000_open()
251 data->opened = false; in cma3000_close()
260 if (!data->suspended && data->opened) in cma3000_suspend()
274 if (data->suspended && data->opened) in cma3000_resume()
Dadxl34x.c202 bool opened; /* P: mutex */ member
419 if (!ac->suspended && !ac->disabled && ac->opened) in adxl34x_suspend()
432 if (ac->suspended && !ac->disabled && ac->opened) in adxl34x_resume()
463 if (!ac->suspended && ac->opened) { in adxl34x_disable_store()
592 if (!ac->disabled && !ac->suspended && ac->opened) in adxl34x_autosleep_store()
670 ac->opened = true; in adxl34x_input_open()
686 ac->opened = false; in adxl34x_input_close()
/linux-2.6.39/drivers/isdn/hardware/eicon/
Ddivamnt.c47 static unsigned long opened; variable
137 if (test_and_set_bit(0, &opened)) in maint_open()
155 clear_bit(0, &opened); in maint_close()
/linux-2.6.39/fs/ncpfs/
Dfile.c43 atomic_read(&NCP_FINFO(inode)->opened), in ncp_make_open()
48 if (!atomic_read(&NCP_FINFO(inode)->opened)) { in ncp_make_open()
83 atomic_set(&NCP_FINFO(inode)->opened, 1); in ncp_make_open()
89 atomic_inc(&NCP_FINFO(inode)->opened); in ncp_make_open()
Dncp_fs_i.h21 atomic_t opened; member
/linux-2.6.39/drivers/staging/lirc/
Dlirc_ttusbir.c101 int opened; member
112 ttusbir->opened = 1; in set_use_inc()
131 ttusbir->opened = 0; in set_use_dec()
188 if (!ttusbir->opened) in urb_complete()
/linux-2.6.39/sound/atmel/
Dac97c.c79 int opened; member
177 chip->opened++; in atmel_ac97c_playback_open()
196 chip->opened++; in atmel_ac97c_capture_open()
214 chip->opened--; in atmel_ac97c_playback_close()
215 if (!chip->opened) { in atmel_ac97c_playback_close()
231 chip->opened--; in atmel_ac97c_capture_close()
232 if (!chip->opened) { in atmel_ac97c_capture_close()
346 if (chip->opened <= 1) in atmel_ac97c_playback_prepare()
437 if (chip->opened <= 1) in atmel_ac97c_capture_prepare()
529 if (chip->opened <= 1) in atmel_ac97c_playback_trigger()
[all …]
/linux-2.6.39/drivers/usb/misc/
Diowarrior.c96 int opened; /* this is 1 if the device is currently open */ member
411 if (!dev->opened) { in iowarrior_write()
630 if (dev->opened) { in iowarrior_open()
642 ++dev->opened; in iowarrior_open()
671 if (dev->opened <= 0) { in iowarrior_release()
675 dev->opened = 0; /* we're closeing now */ in iowarrior_release()
905 if (dev->opened) { in iowarrior_disconnect()
/linux-2.6.39/arch/um/drivers/
Dchan_kern.c106 if (chan->opened) in open_one_chan()
124 chan->opened = 1; in open_one_chan()
225 if (!chan->opened) in close_one_chan()
243 chan->opened = 0; in close_one_chan()
534 .opened = 0, in parse_chan()
/linux-2.6.39/drivers/input/touchscreen/
Dtsc2005.c141 bool opened; member
537 ts->opened = true; in tsc2005_open()
553 ts->opened = false; in tsc2005_close()
710 if (!ts->suspended && ts->opened) in tsc2005_suspend()
727 if (ts->suspended && ts->opened) in tsc2005_resume()
/linux-2.6.39/net/bluetooth/rfcomm/
Dtty.c56 atomic_t opened; member
257 atomic_set(&dev->opened, 0); in rfcomm_dev_add()
331 if (atomic_read(&dev->opened) > 0) in rfcomm_dev_del()
693 dev->channel, atomic_read(&dev->opened)); in rfcomm_tty_open()
695 if (atomic_inc_return(&dev->opened) > 1) in rfcomm_tty_open()
755 atomic_read(&dev->opened)); in rfcomm_tty_close()
757 if (atomic_dec_and_test(&dev->opened)) { in rfcomm_tty_close()
/linux-2.6.39/arch/um/include/shared/
Dchan_kern.h23 unsigned int opened:1; member
/linux-2.6.39/drivers/misc/
Dphantom.c46 unsigned int opened; member
227 if (dev->opened) { in phantom_open()
238 dev->opened++; in phantom_open()
250 dev->opened = 0; in phantom_release()
/linux-2.6.39/drivers/watchdog/
Df71808e_wdt.c136 unsigned long opened; member
468 if (test_and_set_bit(0, &watchdog.opened)) in watchdog_open()
473 clear_bit(0, &watchdog.opened); in watchdog_open()
486 clear_bit(0, &watchdog.opened); in watchdog_release()

123456