Home
last modified time | relevance | path

Searched refs:attach_lock (Results 1 – 7 of 7) sorted by relevance

/linux-6.12.1/drivers/comedi/kcomedilib/
Dkcomedilib_main.c45 down_read(&dev->attach_lock); in comedi_open()
50 up_read(&dev->attach_lock); in comedi_open()
216 down_read(&dev->attach_lock); in comedi_find_subdevice_by_type()
225 up_read(&dev->attach_lock); in comedi_find_subdevice_by_type()
234 down_read(&dev->attach_lock); in comedi_get_n_channels()
239 up_read(&dev->attach_lock); in comedi_get_n_channels()
/linux-6.12.1/drivers/power/supply/
Dmt6370-charger.c91 struct mutex attach_lock; member
262 mutex_lock(&priv->attach_lock); in mt6370_chg_bc12_work_func()
307 mutex_unlock(&priv->attach_lock); in mt6370_chg_bc12_work_func()
428 mutex_lock(&priv->attach_lock); in mt6370_chg_get_online()
430 mutex_unlock(&priv->attach_lock); in mt6370_chg_get_online()
514 mutex_lock(&priv->attach_lock); in mt6370_chg_set_online()
517 mutex_unlock(&priv->attach_lock); in mt6370_chg_set_online()
522 mutex_unlock(&priv->attach_lock); in mt6370_chg_set_online()
766 struct mutex *attach_lock = data; in mt6370_chg_destroy_attach_lock() local
768 mutex_destroy(attach_lock); in mt6370_chg_destroy_attach_lock()
[all …]
Drt9467-charger.c274 struct mutex attach_lock; member
660 mutex_lock(&data->attach_lock); in rt9467_psy_get_property()
666 mutex_unlock(&data->attach_lock); in rt9467_psy_get_property()
692 mutex_lock(&data->attach_lock); in rt9467_psy_get_property()
694 mutex_unlock(&data->attach_lock); in rt9467_psy_get_property()
926 mutex_lock(&data->attach_lock); in rt9467_report_usb_state()
950 mutex_unlock(&data->attach_lock); in rt9467_report_usb_state()
1153 struct mutex *attach_lock = data; in rt9467_chg_destroy_attach_lock() local
1155 mutex_destroy(attach_lock); in rt9467_chg_destroy_attach_lock()
1223 mutex_init(&data->attach_lock); in rt9467_charger_probe()
[all …]
/linux-6.12.1/drivers/comedi/
Dproc.c36 down_read(&dev->attach_lock); in comedi_read()
43 up_read(&dev->attach_lock); in comedi_read()
Ddrivers.c161 lockdep_assert_held(&dev->attach_lock); in comedi_device_detach_cleanup()
203 down_write(&dev->attach_lock); in comedi_device_detach()
209 up_write(&dev->attach_lock); in comedi_device_detach()
759 down_write(&dev->attach_lock); in comedi_device_postconfig()
761 up_write(&dev->attach_lock); in comedi_device_postconfig()
Dcomedi_fops.c107 init_rwsem(&dev->attach_lock); in comedi_device_init()
2341 if (!down_read_trylock(&dev->attach_lock)) in comedi_mmap()
2420 up_read(&dev->attach_lock); in comedi_mmap()
2432 down_read(&dev->attach_lock); in comedi_poll()
2462 up_read(&dev->attach_lock); in comedi_poll()
2482 down_read(&dev->attach_lock); in comedi_write()
2574 up_read(&dev->attach_lock); in comedi_write()
2597 up_read(&dev->attach_lock); in comedi_write()
2618 down_read(&dev->attach_lock); in comedi_read()
2710 up_read(&dev->attach_lock); in comedi_read()
[all …]
/linux-6.12.1/include/linux/comedi/
Dcomedidev.h557 struct rw_semaphore attach_lock; member