Home
last modified time | relevance | path

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

12

/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()
Dhw_gpio.h44 bool opened; member
/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()
/drivers/gpu/drm/
Ddrm_debugfs_crc.c154 if (crc->opened) { in crc_control_write()
192 crc->opened = false; in crtc_crc_cleanup()
231 if (!crc->opened) { in crtc_crc_open()
232 crc->opened = true; in crtc_crc_open()
265 crc->opened = false; in crtc_crc_release()
/drivers/net/ethernet/mellanox/mlx5/core/en/
Dqos.c458 bool opened; in mlx5e_htb_root_add() local
469 opened = test_bit(MLX5E_STATE_OPENED, &priv->state); in mlx5e_htb_root_add()
470 if (opened) { in mlx5e_htb_root_add()
500 if (opened) in mlx5e_htb_root_add()
743 bool opened; in mlx5e_htb_leaf_del() local
755 opened = test_bit(MLX5E_STATE_OPENED, &priv->state); in mlx5e_htb_leaf_del()
756 if (opened) { in mlx5e_htb_leaf_del()
774 if (opened) in mlx5e_htb_leaf_del()
784 if (opened) in mlx5e_htb_leaf_del()
800 if (opened) { in mlx5e_htb_leaf_del()
[all …]
/drivers/vhost/
Dvdpa.c44 atomic_t opened; member
968 int nvqs, i, r, opened; in vhost_vdpa_open() local
972 opened = atomic_cmpxchg(&v->opened, 0, 1); in vhost_vdpa_open()
973 if (opened) in vhost_vdpa_open()
1015 atomic_dec(&v->opened); in vhost_vdpa_open()
1044 atomic_dec(&v->opened); in vhost_vdpa_release()
1150 atomic_set(&v->opened, 0); in vhost_vdpa_probe()
1191 int opened; in vhost_vdpa_remove() local
1196 opened = atomic_cmpxchg(&v->opened, 0, 1); in vhost_vdpa_remove()
1197 if (!opened) in vhost_vdpa_remove()
/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()
Dbcm2835.h62 unsigned int opened; member
/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()
/drivers/usb/misc/
Diowarrior.c91 int opened; /* this is 1 if the device is currently open */ member
407 if (!dev->opened) { in iowarrior_write()
615 if (dev->opened) { in iowarrior_open()
627 ++dev->opened; in iowarrior_open()
654 if (dev->opened <= 0) { in iowarrior_release()
658 dev->opened = 0; /* we're closing now */ in iowarrior_release()
898 if (dev->opened) { in iowarrior_disconnect()
/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()
/drivers/staging/media/av7110/
Daudio-fopen.rst69 of the open() call itself. A device opened in blocking mode can later be
74 fail, and an error code will be returned. If the Audio Device is opened
Dvideo-fopen.rst70 affect the semantics of the open() call itself. A device opened in
76 returned. If the Video Device is opened in O_RDONLY mode, the only
Dvideo-fclose.rst38 This system call closes a previously opened video device.
Daudio-fclose.rst38 This system call closes a previously opened audio device.
/drivers/misc/
Dphantom.c42 unsigned int opened; member
223 if (dev->opened) { in phantom_open()
234 dev->opened++; in phantom_open()
246 dev->opened = 0; in phantom_release()
/drivers/watchdog/
Df71808e_wdt.c142 unsigned long opened; member
501 if (test_and_set_bit(0, &watchdog.opened)) in watchdog_open()
506 clear_bit(0, &watchdog.opened); in watchdog_open()
519 clear_bit(0, &watchdog.opened); in watchdog_release()
/drivers/input/mouse/
Dbcm5974.c281 int opened; /* 1: opened, 0: closed */ member
841 dev->opened = 1; in bcm5974_open()
858 dev->opened = 0; in bcm5974_close()
871 if (dev->opened) in bcm5974_suspend()
886 if (dev->opened) in bcm5974_resume()
/drivers/media/usb/dvb-usb/
Daf9005-fe.c43 int opened; member
461 if (state->opened) in af9005_fe_read_status()
1081 state->opened++; in af9005_ts_bus_ctrl()
1084 state->opened--; in af9005_ts_bus_ctrl()
1085 if (!state->opened) in af9005_ts_bus_ctrl()
1434 state->opened = 0; in af9005_fe_attach()
/drivers/hsi/clients/
Dcmt_speech.c37 unsigned int opened; member
137 if (!cs_char_data.opened) { in cs_notify()
1280 if (cs_char_data.opened) { in cs_char_open()
1285 cs_char_data.opened = 1; in cs_char_open()
1313 cs_char_data.opened = 0; in cs_char_open()
1344 csdata->opened = 0; in cs_char_release()
1376 cs_char_data.opened = 0; in cs_hsi_client_probe()
/drivers/net/caif/
DKconfig20 identified as N_CAIF. When this ldisc is opened from user space
/drivers/tty/serial/
Dsccnxp.c114 bool opened[SCCNXP_MAX_UARTS]; member
491 if (s->opened[i] && (isr & ISR_RXRDY(i))) in sccnxp_handle_events()
493 if (s->opened[i] && (isr & ISR_TXRDY(i))) in sccnxp_handle_events()
749 s->opened[port->line] = 1; in sccnxp_startup()
763 s->opened[port->line] = 0; in sccnxp_shutdown()
/drivers/vfio/
Dvfio.c84 atomic_t opened; member
403 atomic_set(&group->opened, 0); in vfio_create_group()
1589 int opened; in vfio_group_fops_open() local
1601 opened = atomic_cmpxchg(&group->opened, 0, 1); in vfio_group_fops_open()
1602 if (opened) { in vfio_group_fops_open()
1609 atomic_dec(&group->opened); in vfio_group_fops_open()
1631 atomic_dec(&group->opened); in vfio_group_fops_release()
/drivers/net/usb/
Dkaweth.c207 int opened; member
615 kaweth->opened = 1; in kaweth_open()
652 kaweth->opened = 0; in kaweth_close()
853 if (!kaweth->opened) in kaweth_resume()

12