Home
last modified time | relevance | path

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

12345678910

/linux/sound/core/seq/oss/
H A Dseq_oss_synth.c41 int opened; member
98 rec->opened = 0; in snd_seq_oss_synth_probe()
207 info->opened = 0; in snd_seq_oss_synth_setup()
225 info->opened++; in snd_seq_oss_synth_setup()
226 rec->opened++; in snd_seq_oss_synth_setup()
257 info->opened = 1; in snd_seq_oss_synth_setup_midi()
258 midi_synth_dev.opened++; in snd_seq_oss_synth_setup_midi()
280 if (! info->opened) in snd_seq_oss_synth_cleanup()
283 if (midi_synth_dev.opened > 0) { in snd_seq_oss_synth_cleanup()
285 midi_synth_dev.opened--; in snd_seq_oss_synth_cleanup()
[all …]
H A Dseq_oss_midi.c35 int opened; /* flag for opening */ member
164 mdev->opened = 0; in snd_seq_oss_midi_check_new_port()
317 if (mdev->opened && mdev->devinfo != dp) in snd_seq_oss_midi_open()
330 if ((mdev->opened & perm) == perm) in snd_seq_oss_midi_open()
333 perm &= ~mdev->opened; in snd_seq_oss_midi_open()
342 mdev->opened |= PERM_WRITE; in snd_seq_oss_midi_open()
351 mdev->opened |= PERM_READ; in snd_seq_oss_midi_open()
354 if (!mdev->opened) in snd_seq_oss_midi_open()
374 if (!mdev->opened || mdev->devinfo != dp) in snd_seq_oss_midi_close()
378 if (mdev->opened & PERM_WRITE) { in snd_seq_oss_midi_close()
[all …]
/linux/Documentation/firmware-guide/acpi/
H A 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/drivers/gpu/drm/amd/display/dc/gpio/
H A 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/sound/atmel/
H A Dac97c.c53 int opened; member
92 chip->opened++; in atmel_ac97c_playback_open()
110 chip->opened++; in atmel_ac97c_capture_open()
127 chip->opened--; in atmel_ac97c_playback_close()
128 if (!chip->opened) { in atmel_ac97c_playback_close()
143 chip->opened--; in atmel_ac97c_capture_close()
144 if (!chip->opened) { in atmel_ac97c_capture_close()
208 if (chip->opened <= 1) in atmel_ac97c_playback_prepare()
290 if (chip->opened <= 1) in atmel_ac97c_capture_prepare()
363 if (chip->opened <= 1) in atmel_ac97c_playback_trigger()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dhtb.c180 bool opened; in mlx5e_htb_root_add() local
187 opened = test_bit(MLX5E_STATE_OPENED, &priv->state); in mlx5e_htb_root_add()
188 if (opened) { in mlx5e_htb_root_add()
214 if (opened) in mlx5e_htb_root_add()
450 bool opened; in mlx5e_htb_leaf_del() local
462 opened = test_bit(MLX5E_STATE_OPENED, &priv->state); in mlx5e_htb_leaf_del()
463 if (opened) { in mlx5e_htb_leaf_del()
481 if (opened) in mlx5e_htb_leaf_del()
491 if (opened) in mlx5e_htb_leaf_del()
507 if (opened) { in mlx5e_htb_leaf_del()
[all …]
/linux/scripts/
H A Drecordmcount.pl367 my $opened = 0;
436 if (!$opened) {
438 $opened = 1;
530 if (!$opened) {
/linux/drivers/input/misc/
H A Dcma3000_d0x.c70 bool opened; member
226 data->opened = true; in cma3000_open()
240 data->opened = false; in cma3000_close()
247 if (!data->suspended && data->opened) in cma3000_suspend()
259 if (data->suspended && data->opened) in cma3000_resume()
H A Dadxl34x.c203 bool opened; /* P: mutex */ member
422 if (!ac->suspended && !ac->disabled && ac->opened) in adxl34x_suspend()
436 if (ac->suspended && !ac->disabled && ac->opened) in adxl34x_resume()
466 if (!ac->suspended && ac->opened) { in adxl34x_disable_store()
588 if (!ac->disabled && !ac->suspended && ac->opened) in adxl34x_autosleep_store()
666 ac->opened = true; in adxl34x_input_open()
680 ac->opened = false; in adxl34x_input_close()
/linux/sound/hda/core/ext/
H A Dstream.c309 if (!hstream->opened) { in hdac_ext_host_dma_stream_assign()
316 res->hstream.opened = 1; in hdac_ext_host_dma_stream_assign()
397 if (!hext_stream->hstream.opened) in snd_hdac_ext_stream_release()
433 if (!hstream->opened) { in snd_hdac_ext_cstream_assign()
441 res->hstream.opened = 1; in snd_hdac_ext_cstream_assign()
/linux/Documentation/userspace-api/media/v4l/
H A Dvidioc-subdev-g-client-cap.rst41 handle of the opened subdev device node, and the client must set the
42 capabilities for each opened subdev separately.
44 By default no client capabilities are set when a subdev device node is opened.
75 - Sub-device client capabilities of the opened device.
/linux/Documentation/userspace-api/media/dvb/
H A Dquery-dvb-frontend-info.rst9 Usually, the first thing to do when the frontend is opened is to check
13 be opened either in read only or read/write mode.
H A Dfrontend_f_open.rst28 Device to be opened.
53 The device can be opened in read-only mode, which only allows monitoring
59 long as a front-end device is opened in read/write mode, other open()
61 non-blocking or blocking mode was specified. A front-end device opened
/linux/drivers/gpu/drm/
H A Ddrm_debugfs_crc.c155 if (crc->opened) { in crc_control_write()
193 crc->opened = false; in crtc_crc_cleanup()
232 if (!crc->opened) { in crtc_crc_open()
233 crc->opened = true; in crtc_crc_open()
266 crc->opened = false; in crtc_crc_release()
/linux/drivers/staging/vc04_services/bcm2835-audio/
H A Dbcm2835-pcm.c96 if (spdif && chip->opened) { in snd_bcm2835_playback_open_generic()
99 } else if (!spdif && (chip->opened & (1 << idx))) { in snd_bcm2835_playback_open_generic()
149 chip->opened |= (1 << idx); in snd_bcm2835_playback_open_generic()
188 chip->opened &= ~(1 << substream->number); in snd_bcm2835_playback_close()
/linux/drivers/input/touchscreen/
H A Dtsc200x-core.c103 bool opened; member
415 ts->opened = true; in tsc200x_open()
429 ts->opened = false; in tsc200x_close()
563 if (!ts->suspended && ts->opened) in tsc200x_suspend()
585 if (ts->suspended && ts->opened) in tsc200x_resume()
/linux/drivers/tty/hvc/
H A Dhvsi_lib.c60 if (!pv->is_console && pv->opened) { in hvsi_cd_change()
194 if (!pv->opened) in hvsilib_get_chars()
373 pv->opened = 1; in hvsilib_establish()
400 pv->opened = 0; in hvsilib_close()
/linux/drivers/usb/misc/
H A Diowarrior.c91 int opened; /* this is 1 if the device is currently open */ member
433 if (!dev->opened) { in iowarrior_write()
640 if (dev->opened) { in iowarrior_open()
652 ++dev->opened; in iowarrior_open()
679 if (dev->opened <= 0) { in iowarrior_release()
683 dev->opened = 0; /* we're closing now */ in iowarrior_release()
922 if (dev->opened) { in iowarrior_disconnect()
/linux/sound/core/seq/
H A Dseq_ump_client.c39 int opened[2]; /* current opens for each direction */ member
66 if (!client->opened[STR_IN]) in seq_ump_input_receive()
112 if (dir == STR_OUT && !client->opened[dir]) { in seq_ump_client_open()
120 client->opened[dir]++; in seq_ump_client_open()
130 if (!--client->opened[dir]) in seq_ump_client_close()
/linux/Documentation/userspace-api/media/mediactl/
H A Dmedia-func-open.rst28 Device to be opened.
41 When the device is opened in read-only mode, attempts to modify its
/linux/sound/usb/
H A Dendpoint.c34 int opened; member
43 int opened; member
753 if (!ep->opened) in endpoint_compatible()
784 * former opened parameters.
808 if (!ep->opened) { in snd_usb_endpoint_open()
829 ep->clock_ref->opened++; in snd_usb_endpoint_open()
867 ep_num, ep->opened); in snd_usb_endpoint_open()
870 if (!ep->iface_ref->opened++) in snd_usb_endpoint_open()
873 ep->opened++; in snd_usb_endpoint_open()
951 * Unreference the already opened endpoin
[all...]
/linux/arch/um/drivers/
H A Dchan_kern.c94 if (chan->opened) in open_one_chan()
136 chan->opened = 1; in open_one_chan()
245 if (!chan->opened) in close_one_chan()
265 chan->opened = 0; in close_one_chan()
519 .opened = 0, in parse_chan()
/linux/Documentation/userspace-api/media/cec/
H A Dcec-func-open.rst28 Device to be opened.
50 When the device is opened in read-only mode, attempts to modify its
/linux/sound/core/
H A Drawmidi.c211 if (!substream->opened) in snd_rawmidi_output_trigger()
218 if (!substream->opened) in snd_rawmidi_input_trigger()
237 if (substream->opened && substream->runtime) in reset_runtime_ptrs()
257 if (!substream->opened || !runtime || !runtime->buffer) in snd_rawmidi_drain_output()
323 if (substream->opened) { in assign_substream()
354 substream->opened = 1; in open_substream()
557 substream->opened = 0; in close_substream()
1151 if (!substream->opened) in snd_rawmidi_receive()
1337 if (!substream->opened || !runtime || !runtime->buffer) { in snd_rawmidi_transmit_empty()
1417 if (!substream->opened || !substream->runtime) in snd_rawmidi_transmit_peek()
[all …]
/linux/drivers/vhost/
H A Dvdpa.c54 atomic_t opened; member
1409 int r, opened; in vhost_vdpa_open() local
1414 opened = atomic_cmpxchg(&v->opened, 0, 1); in vhost_vdpa_open()
1415 if (opened) in vhost_vdpa_open()
1451 atomic_dec(&v->opened); in vhost_vdpa_open()
1478 atomic_dec(&v->opened); in vhost_vdpa_release()
1586 atomic_set(&v->opened, 0); in vhost_vdpa_probe()
1629 int opened; in vhost_vdpa_remove() local
1634 opened = atomic_cmpxchg(&v->opened, 0, 1); in vhost_vdpa_remove()
1635 if (!opened) in vhost_vdpa_remove()

12345678910