Home
last modified time | relevance | path

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

/openbmc/linux/drivers/comedi/kcomedilib/
H A 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()
/openbmc/linux/drivers/power/supply/
H A 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 …]
H A Drt9467-charger.c274 struct mutex attach_lock; member
667 mutex_lock(&data->attach_lock); in rt9467_psy_get_property()
673 mutex_unlock(&data->attach_lock); in rt9467_psy_get_property()
699 mutex_lock(&data->attach_lock); in rt9467_psy_get_property()
701 mutex_unlock(&data->attach_lock); in rt9467_psy_get_property()
934 mutex_lock(&data->attach_lock); in rt9467_report_usb_state()
958 mutex_unlock(&data->attach_lock); in rt9467_report_usb_state()
1161 struct mutex *attach_lock = data; in rt9467_chg_destroy_attach_lock() local
1163 mutex_destroy(attach_lock); in rt9467_chg_destroy_attach_lock()
1231 mutex_init(&data->attach_lock); in rt9467_charger_probe()
[all …]
/openbmc/linux/drivers/comedi/
H A Dproc.c36 down_read(&dev->attach_lock); in comedi_read()
43 up_read(&dev->attach_lock); in comedi_read()
H A 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()
H A Dcomedi_fops.c107 init_rwsem(&dev->attach_lock); in comedi_device_init()
2341 if (!down_read_trylock(&dev->attach_lock)) in comedi_mmap()
2432 up_read(&dev->attach_lock); in comedi_mmap()
2444 down_read(&dev->attach_lock); in comedi_poll()
2474 up_read(&dev->attach_lock); in comedi_poll()
2494 down_read(&dev->attach_lock); in comedi_write()
2586 up_read(&dev->attach_lock); in comedi_write()
2609 up_read(&dev->attach_lock); in comedi_write()
2630 down_read(&dev->attach_lock); in comedi_read()
2722 up_read(&dev->attach_lock); in comedi_read()
[all …]
/openbmc/linux/include/linux/comedi/
H A Dcomedidev.h557 struct rw_semaphore attach_lock; member