Searched refs:attach_lock (Results 1 – 7 of 7) 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 …]
274 struct mutex attach_lock; member667 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() local1163 mutex_destroy(attach_lock); in rt9467_chg_destroy_attach_lock()1231 mutex_init(&data->attach_lock); in rt9467_charger_probe()[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()
107 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 …]
557 struct rw_semaphore attach_lock; member