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

/linux-4.1.27/drivers/staging/comedi/kcomedilib/
H A Dkcomedilib_main.c54 down_read(&dev->attach_lock); comedi_open()
59 up_read(&dev->attach_lock); comedi_open()
225 down_read(&dev->attach_lock); comedi_find_subdevice_by_type()
234 up_read(&dev->attach_lock); comedi_find_subdevice_by_type()
243 down_read(&dev->attach_lock); comedi_get_n_channels()
248 up_read(&dev->attach_lock); comedi_get_n_channels()
/linux-4.1.27/drivers/staging/comedi/
H A Dproc.c45 down_read(&dev->attach_lock); comedi_read()
52 up_read(&dev->attach_lock); comedi_read()
H A Dcomedi_fops.c102 init_rwsem(&dev->attach_lock); comedi_device_init()
2150 * and down-reading &dev->attach_lock should normally succeed without comedi_mmap()
2154 if (!down_read_trylock(&dev->attach_lock)) comedi_mmap()
2221 up_read(&dev->attach_lock); comedi_mmap()
2280 down_read(&dev->attach_lock); comedi_write()
2327 * while dev->attach_lock is held. Need to comedi_write()
2329 * releasing dev->attach_lock, as it might not comedi_write()
2334 up_read(&dev->attach_lock); comedi_write()
2408 up_read(&dev->attach_lock); comedi_write()
2427 down_read(&dev->attach_lock); comedi_read()
2524 * while dev->attach_lock is held. comedi_read()
2526 up_read(&dev->attach_lock); comedi_read()
2546 up_read(&dev->attach_lock); comedi_read()
H A Ddrivers.c163 down_write(&dev->attach_lock); comedi_device_detach()
169 up_write(&dev->attach_lock); comedi_device_detach()
623 down_write(&dev->attach_lock); comedi_device_postconfig()
625 up_write(&dev->attach_lock); comedi_device_postconfig()
H A Dcomedidev.h276 struct rw_semaphore attach_lock; member in struct:comedi_device
/linux-4.1.27/drivers/iommu/
H A Dshmobile-iommu.c34 spinlock_t attach_lock; member in struct:shmobile_iommu_archdata
138 spin_lock(&archdata->attach_lock); shmobile_iommu_attach_device()
152 spin_unlock(&archdata->attach_lock); shmobile_iommu_attach_device()
166 spin_lock(&archdata->attach_lock); shmobile_iommu_detach_device()
174 spin_unlock(&archdata->attach_lock); shmobile_iommu_detach_device()
397 spin_lock_init(&archdata->attach_lock); ipmmu_iommu_init()

Completed in 149 milliseconds