Home
last modified time | relevance | path

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

12345678

/Linux-v5.4/sound/core/seq/oss/
Dseq_oss_synth.c48 int opened; member
106 rec->opened = 0; in snd_seq_oss_synth_probe()
225 info->opened = 0; in snd_seq_oss_synth_setup()
246 info->opened++; in snd_seq_oss_synth_setup()
247 rec->opened++; in snd_seq_oss_synth_setup()
279 info->opened = 1; in snd_seq_oss_synth_setup_midi()
280 midi_synth_dev.opened++; in snd_seq_oss_synth_setup_midi()
303 if (! info->opened) in snd_seq_oss_synth_cleanup()
306 if (midi_synth_dev.opened > 0) { in snd_seq_oss_synth_cleanup()
308 midi_synth_dev.opened--; in snd_seq_oss_synth_cleanup()
[all …]
Dseq_oss_midi.c35 int opened; /* flag for opening */ member
172 mdev->opened = 0; in snd_seq_oss_midi_check_new_port()
325 if (mdev->opened && mdev->devinfo != dp) { in snd_seq_oss_midi_open()
342 if ((mdev->opened & perm) == perm) { in snd_seq_oss_midi_open()
347 perm &= ~mdev->opened; in snd_seq_oss_midi_open()
356 mdev->opened |= PERM_WRITE; in snd_seq_oss_midi_open()
365 mdev->opened |= PERM_READ; in snd_seq_oss_midi_open()
368 if (! mdev->opened) { in snd_seq_oss_midi_open()
389 if (! mdev->opened || mdev->devinfo != dp) { in snd_seq_oss_midi_close()
395 if (mdev->opened & PERM_WRITE) { in snd_seq_oss_midi_close()
[all …]
/Linux-v5.4/drivers/staging/exfat/
Dexfat_blkdev.c15 if (p_bd->opened) in bdev_open()
23 p_bd->opened = true; in bdev_open()
30 p_bd->opened = false; in bdev_close()
46 if (!p_bd->opened) in bdev_read()
83 if (!p_bd->opened) in bdev_write()
132 if (!p_bd->opened) in bdev_sync()
/Linux-v5.4/Documentation/firmware-guide/acpi/
Dacpi-lid.rst18 report the "current" state of the lid as either "opened" or "closed".
43 changed to "opened". Thus the "opened" notification is not guaranteed. But
67 firmware cannot make sure "opened"/"closed" events are paired, the ACPI
70 If the userspace hasn't been prepared to ignore the unreliable "opened"
77 and whether the "opened"/"closed" events are paired fully relies on the
89 initial lid state as "opened" and whether the "opened"/"closed" events
96 If the userspace has been prepared to ignore the unreliable "opened" events
105 "opened" input events. But there is still no guarantee that the "opened"
107 opens given that some AML tables do not send "opened" notifications
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/gpio/
Dhw_gpio.c68 ptr->opened = (dal_hw_gpio_config_mode(pin, mode) == GPIO_RESULT_OK); in dal_hw_gpio_open()
70 return ptr->opened; in dal_hw_gpio_open()
138 ptr->opened = false; in dal_hw_gpio_close()
189 pin->base.opened = false; in dal_hw_gpio_construct()
202 ASSERT(!pin->base.opened); in dal_hw_gpio_destruct()
/Linux-v5.4/scripts/
Drecordmcount.pl409 my $opened = 0;
485 if (!$opened) {
487 $opened = 1;
579 if (!$opened) {
/Linux-v5.4/sound/atmel/
Dac97c.c53 int opened; member
92 chip->opened++; in atmel_ac97c_playback_open()
111 chip->opened++; in atmel_ac97c_capture_open()
129 chip->opened--; in atmel_ac97c_playback_close()
130 if (!chip->opened) { in atmel_ac97c_playback_close()
146 chip->opened--; in atmel_ac97c_capture_close()
147 if (!chip->opened) { in atmel_ac97c_capture_close()
226 if (chip->opened <= 1) in atmel_ac97c_playback_prepare()
308 if (chip->opened <= 1) in atmel_ac97c_capture_prepare()
381 if (chip->opened <= 1) in atmel_ac97c_playback_trigger()
[all …]
/Linux-v5.4/drivers/input/misc/
Dcma3000_d0x.c69 bool opened; member
225 data->opened = true; in cma3000_open()
241 data->opened = false; in cma3000_close()
250 if (!data->suspended && data->opened) in cma3000_suspend()
264 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-v5.4/Documentation/media/uapi/dvb/
Dquery-dvb-frontend-info.rst16 Usually, the first thing to do when the frontend is opened is to check
20 be opened either in read only or read/write mode.
Dfrontend_f_open.rst37 Device to be opened.
63 The device can be opened in read-only mode, which only allows monitoring
69 long as a front-end device is opened in read/write mode, other open()
71 non-blocking or blocking mode was specified. A front-end device opened
Daudio-fopen.rst79 of the open() call itself. A device opened in blocking mode can later be
84 fail, and an error code will be returned. If the Audio Device is opened
Dvideo-fopen.rst79 affect the semantics of the open() call itself. A device opened in
85 returned. If the Video Device is opened in O_RDONLY mode, the only
/Linux-v5.4/drivers/staging/vc04_services/bcm2835-audio/
Dbcm2835-pcm.c97 if (spdif && chip->opened) { in snd_bcm2835_playback_open_generic()
100 } else if (!spdif && (chip->opened & (1 << idx))) { in snd_bcm2835_playback_open_generic()
150 chip->opened |= (1 << idx); in snd_bcm2835_playback_open_generic()
189 chip->opened &= ~(1 << substream->number); in snd_bcm2835_playback_close()
/Linux-v5.4/drivers/gpu/drm/
Ddrm_debugfs_crc.c152 if (crc->opened) { in crc_control_write()
190 crc->opened = false; in crtc_crc_cleanup()
229 if (!crc->opened) { in crtc_crc_open()
230 crc->opened = true; in crtc_crc_open()
/Linux-v5.4/drivers/usb/misc/
Diowarrior.c82 int opened; /* this is 1 if the device is currently open */ member
393 if (!dev->opened) { in iowarrior_write()
602 if (dev->opened) { in iowarrior_open()
614 ++dev->opened; in iowarrior_open()
641 if (dev->opened <= 0) { in iowarrior_release()
645 dev->opened = 0; /* we're closing now */ in iowarrior_release()
863 if (dev->opened) { in iowarrior_disconnect()
/Linux-v5.4/sound/soc/sof/intel/
Dhda-stream.c166 if (s->direction == direction && !s->opened) { in hda_dsp_stream_get()
175 s->opened = true; in hda_dsp_stream_get()
217 if (!s->opened) in hda_dsp_stream_put()
221 s->opened = false; in hda_dsp_stream_put()
564 if (status & BIT(s->index) && s->opened) { in hda_dsp_stream_check()
722 hstream->opened = false; in hda_dsp_stream_init()
778 hstream->opened = false; in hda_dsp_stream_init()
/Linux-v5.4/drivers/tty/hvc/
Dhvsi_lib.c60 if (!pv->is_console && pv->opened) { in hvsi_cd_change()
193 if (!pv->opened) in hvsilib_get_chars()
371 pv->opened = 1; in hvsilib_establish()
398 pv->opened = 0; in hvsilib_close()
/Linux-v5.4/arch/um/drivers/
Dchan_kern.c88 if (chan->opened) in open_one_chan()
106 chan->opened = 1; in open_one_chan()
209 if (!chan->opened) in close_one_chan()
226 chan->opened = 0; in close_one_chan()
480 .opened = 0, in parse_chan()
/Linux-v5.4/drivers/input/touchscreen/
Dtsc200x-core.c100 bool opened; member
419 ts->opened = true; in tsc200x_open()
435 ts->opened = false; in tsc200x_close()
598 if (!ts->suspended && ts->opened) in tsc200x_suspend()
614 if (ts->suspended && ts->opened) in tsc200x_resume()
/Linux-v5.4/Documentation/media/uapi/mediactl/
Dmedia-func-open.rst37 Device to be opened.
51 When the device is opened in read-only mode, attempts to modify its
/Linux-v5.4/Documentation/media/uapi/cec/
Dcec-func-open.rst37 Device to be opened.
60 When the device is opened in read-only mode, attempts to modify its
/Linux-v5.4/include/drm/
Ddrm_debugfs_crc.h56 bool opened, overflow; member
/Linux-v5.4/arch/xtensa/platforms/iss/
Dnetwork.c42 static LIST_HEAD(opened);
320 list_for_each(ele, &opened) { in iss_net_poll()
382 list_add(&lp->opened_list, &opened); in iss_net_open()
402 list_del(&opened); in iss_net_close()
/Linux-v5.4/sound/hda/ext/
Dhdac_ext_stream.c302 if (!stream->opened) { in hdac_ext_host_stream_assign()
311 res->hstream.opened = 1; in hdac_ext_host_stream_assign()
387 if (stream->decoupled && !stream->hstream.opened) in snd_hdac_ext_stream_release()

12345678