Lines Matching refs:lock
26 int (*lock)(dev_t, void *); member
29 struct mutex *lock; member
34 int (*lock)(dev_t, void *), void *data) in kobj_map()
51 p->lock = lock; in kobj_map()
56 mutex_lock(domain->lock); in kobj_map()
64 mutex_unlock(domain->lock); in kobj_map()
78 mutex_lock(domain->lock); in kobj_unmap()
91 mutex_unlock(domain->lock); in kobj_unmap()
102 mutex_lock(domain->lock); in kobj_lookup()
119 if (p->lock && p->lock(dev, data) < 0) { in kobj_lookup()
123 mutex_unlock(domain->lock); in kobj_lookup()
131 mutex_unlock(domain->lock); in kobj_lookup()
135 struct kobj_map *kobj_map_init(kobj_probe_t *base_probe, struct mutex *lock) in kobj_map_init() argument
152 p->lock = lock; in kobj_map_init()