Home
last modified time | relevance | path

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

/linux-6.1.9/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.1.9/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()
771 struct mutex *attach_lock = data; in mt6370_chg_destroy_attach_lock() local
773 mutex_destroy(attach_lock); in mt6370_chg_destroy_attach_lock()
[all …]
/linux-6.1.9/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()
202 down_write(&dev->attach_lock); in comedi_device_detach()
208 up_write(&dev->attach_lock); in comedi_device_detach()
758 down_write(&dev->attach_lock); in comedi_device_postconfig()
760 up_write(&dev->attach_lock); in comedi_device_postconfig()
Dcomedi_fops.c108 init_rwsem(&dev->attach_lock); in comedi_device_init()
2336 if (!down_read_trylock(&dev->attach_lock)) in comedi_mmap()
2415 up_read(&dev->attach_lock); in comedi_mmap()
2427 down_read(&dev->attach_lock); in comedi_poll()
2457 up_read(&dev->attach_lock); in comedi_poll()
2477 down_read(&dev->attach_lock); in comedi_write()
2569 up_read(&dev->attach_lock); in comedi_write()
2592 up_read(&dev->attach_lock); in comedi_write()
2613 down_read(&dev->attach_lock); in comedi_read()
2705 up_read(&dev->attach_lock); in comedi_read()
[all …]
/linux-6.1.9/include/linux/comedi/
Dcomedidev.h557 struct rw_semaphore attach_lock; member