Searched refs:attach_lock (Results 1 – 6 of 6) sorted by relevance
45 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()
91 struct mutex attach_lock; member262 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() local773 mutex_destroy(attach_lock); in mt6370_chg_destroy_attach_lock()[all …]
36 down_read(&dev->attach_lock); in comedi_read()43 up_read(&dev->attach_lock); in comedi_read()
161 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()
108 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 …]
557 struct rw_semaphore attach_lock; member