Home
last modified time | relevance | path

Searched refs:owner (Results 1 – 25 of 4153) sorted by relevance

12345678910>>...167

/linux-6.15/fs/btrfs/
H A Dlocking.h104 #define btrfs_might_wait_for_event(owner, lock) \ argument
106 rwsem_acquire(&owner->lock##_map, 0, 0, _THIS_IP_); \
107 rwsem_release(&owner->lock##_map, _THIS_IP_); \
121 #define btrfs_lockdep_acquire(owner, lock) \ argument
122 rwsem_acquire_read(&owner->lock##_map, 0, 0, _THIS_IP_)
128 #define btrfs_lockdep_release(owner, lock) \ argument
129 rwsem_release(&owner->lock##_map, _THIS_IP_)
135 #define btrfs_lockdep_inode_acquire(owner, lock) \ argument
138 #define btrfs_lockdep_inode_release(owner, lock) \ argument
145 #define btrfs_might_wait_for_state(owner, i) \ argument
[all …]
/linux-6.15/arch/s390/lib/
H A Dspinlock.c95 int owner; in arch_load_niai4() local
100 : [owner] "=d" (owner) : [lock] "R" (*lock) : "memory"); in arch_load_niai4()
101 return owner; in arch_load_niai4()
201 if (owner && arch_vcpu_is_preempted(owner - 1)) in arch_spin_lock_queued()
202 smp_yield_cpu(owner - 1); in arch_spin_lock_queued()
213 if (owner && arch_vcpu_is_preempted(owner - 1)) in arch_spin_lock_queued()
223 if (!owner) { in arch_spin_lock_queued()
258 if (owner && arch_vcpu_is_preempted(owner - 1)) in arch_spin_lock_classic()
266 if (!owner) { in arch_spin_lock_classic()
294 int owner, count; in arch_spin_trylock_retry() local
[all …]
/linux-6.15/kernel/locking/
H A Dmutex.c72 return owner & MUTEX_FLAGS; in __owner_flags()
78 unsigned long owner = atomic_long_read(&lock->owner); in mutex_get_owner() local
90 owner = atomic_long_read(&lock->owner); in __mutex_trylock_common()
112 if (atomic_long_try_cmpxchg_acquire(&lock->owner, &owner, task | flags)) { in __mutex_trylock_common()
224 unsigned long owner = atomic_long_read(&lock->owner); in __mutex_handoff() local
237 if (atomic_long_try_cmpxchg_release(&lock->owner, &owner, new)) in __mutex_handoff()
399 if (owner) in mutex_can_spin_on_owner()
460 if (!owner) in mutex_optimistic_spin()
904 unsigned long owner; in __mutex_unlock_slowpath() local
916 owner = atomic_long_read(&lock->owner); in __mutex_unlock_slowpath()
[all …]
H A Drtmutex.c113 xchg_acquire(&lock->owner, rt_mutex_owner_encode(lock, owner)); in rt_mutex_set_owner()
131 unsigned long owner, *p = (unsigned long *) &lock->owner; in fixup_rt_mutex_waiters() local
194 owner = READ_ONCE(*p); in fixup_rt_mutex_waiters()
244 unsigned long owner, new; in mark_rt_mutex_waiters() local
246 owner = READ_ONCE(*p); in mark_rt_mutex_waiters()
343 lock->owner = NULL; in unlock_rt_mutex_safe()
1262 if (!owner) in task_blocks_on_rt_mutex()
1642 owner = NULL; in rt_mutex_slowlock_block()
1645 if (!owner || !rtmutex_spin_on_owner(lock, waiter, owner)) { in rt_mutex_slowlock_block()
1863 owner = NULL; in rtlock_slowlock_locked()
[all …]
H A Dspinlock_debug.c29 lock->owner = SPINLOCK_OWNER_INIT; in __raw_spin_lock_init()
48 lock->owner = SPINLOCK_OWNER_INIT; in __rwlock_init()
57 struct task_struct *owner = READ_ONCE(lock->owner); in spin_dump() local
59 if (owner == SPINLOCK_OWNER_INIT) in spin_dump()
60 owner = NULL; in spin_dump()
67 owner ? owner->comm : "<none>", in spin_dump()
68 owner ? task_pid_nr(owner) : -1, in spin_dump()
95 WRITE_ONCE(lock->owner, current); in debug_spin_lock_after()
105 WRITE_ONCE(lock->owner, SPINLOCK_OWNER_INIT); in debug_spin_unlock()
195 WRITE_ONCE(lock->owner, current); in debug_write_lock_after()
[all …]
H A Drwsem.c149 atomic_long_set(&sem->owner, 0); in rwsem_clear_owner()
171 struct task_struct *owner) in __rwsem_set_reader_owned() argument
237 unsigned long owner = atomic_long_read(&sem->owner); in rwsem_set_nonspinnable() local
242 if (owner & RWSEM_NONSPINNABLE) in rwsem_set_nonspinnable()
244 } while (!atomic_long_try_cmpxchg(&sem->owner, &owner, in rwsem_set_nonspinnable()
282 unsigned long owner = atomic_long_read(&sem->owner); in rwsem_owner_flags() local
324 atomic_long_set(&sem->owner, 0L); in __init_rwsem()
453 struct task_struct *owner; in rwsem_mark_wake() local
480 owner = waiter->task; in rwsem_mark_wake()
705 struct task_struct *owner; in rwsem_can_spin_on_owner() local
[all …]
/linux-6.15/net/core/
H A Ddevmem.c40 struct dmabuf_genpool_chunk_owner *owner = chunk->owner; in net_devmem_dmabuf_free_chunk_owner() local
42 kvfree(owner->area.niovs); in net_devmem_dmabuf_free_chunk_owner()
43 kfree(owner); in net_devmem_dmabuf_free_chunk_owner()
51 return owner->base_dma_addr + in net_devmem_get_dma_addr()
87 (void **)&owner); in net_devmem_alloc_dmabuf()
240 owner = kzalloc_node(sizeof(*owner), GFP_KERNEL, in net_devmem_bind_dmabuf()
242 if (!owner) { in net_devmem_bind_dmabuf()
254 owner); in net_devmem_bind_dmabuf()
256 kfree(owner); in net_devmem_bind_dmabuf()
261 owner->area.niovs = kvmalloc_array(owner->area.num_niovs, in net_devmem_bind_dmabuf()
[all …]
/linux-6.15/drivers/media/mc/
H A Dmc-dev-allocator.c31 struct module *owner; member
63 struct module *owner) in __media_device_get() argument
74 if (owner != mdi->owner && !try_module_get(mdi->owner)) in __media_device_get()
88 mdi->owner = owner; in __media_device_get()
99 struct module *owner) in media_device_usb_allocate() argument
104 mdev = __media_device_get(&udev->dev, module_name, owner); in media_device_usb_allocate()
120 struct module *owner) in media_device_delete() argument
126 if (mdi->owner != owner) { in media_device_delete()
127 module_put(mdi->owner); in media_device_delete()
/linux-6.15/rust/kernel/sync/
H A Dlocked_by.rs79 owner: *const U, field
102 pub fn new<B: Backend>(owner: &Lock<U, B>, data: T) -> Self { in new()
108 owner: owner.data.get(), in new()
125 pub fn access<'a>(&'a self, owner: &'a U) -> &'a T in access()
133 if !ptr::eq(owner, self.owner) { in access()
157 pub fn access_mut<'a>(&'a self, owner: &'a mut U) -> &'a mut T { in access_mut()
162 if !ptr::eq(owner, self.owner) { in access_mut()
/linux-6.15/drivers/xen/
H A Dpci.c315 if (owner->dev == dev) in find_device()
316 return owner; in find_device()
328 if (owner) in xen_find_device_domain_owner()
329 domain = owner->domain; in xen_find_device_domain_owner()
340 if (!owner) in xen_register_device_domain_owner()
346 kfree(owner); in xen_register_device_domain_owner()
349 owner->domain = domain; in xen_register_device_domain_owner()
350 owner->dev = dev; in xen_register_device_domain_owner()
363 if (!owner) { in xen_unregister_device_domain_owner()
367 list_del(&owner->list); in xen_unregister_device_domain_owner()
[all …]
/linux-6.15/scripts/coccinelle/api/
H A Dplatform_no_drv_owner.cocci2 /// Remove .owner field if calls are used which set it automatically
31 - .owner = THIS_MODULE,
40 - .owner = THIS_MODULE,
62 - .owner = THIS_MODULE,
71 - .owner = THIS_MODULE,
84 * .owner@j0 = THIS_MODULE,
95 * .owner@j0 = THIS_MODULE,
106 * .owner@j0 = THIS_MODULE,
117 * .owner@j0 = THIS_MODULE,
127 msg = "No need to set .owner here. The core will do it."
[all …]
/linux-6.15/drivers/regulator/
H A Ddb8500-prcmu.c221 .owner = THIS_MODULE,
231 .owner = THIS_MODULE,
241 .owner = THIS_MODULE,
251 .owner = THIS_MODULE,
261 .owner = THIS_MODULE,
271 .owner = THIS_MODULE,
284 .owner = THIS_MODULE,
294 .owner = THIS_MODULE,
304 .owner = THIS_MODULE,
315 .owner = THIS_MODULE,
[all …]
H A Dlp8788-ldo.c193 .owner = THIS_MODULE,
206 .owner = THIS_MODULE,
219 .owner = THIS_MODULE,
232 .owner = THIS_MODULE,
245 .owner = THIS_MODULE,
258 .owner = THIS_MODULE,
271 .owner = THIS_MODULE,
284 .owner = THIS_MODULE,
297 .owner = THIS_MODULE,
310 .owner = THIS_MODULE,
[all …]
H A Dlm363x-regulator.c114 .owner = THIS_MODULE,
127 .owner = THIS_MODULE,
142 .owner = THIS_MODULE,
157 .owner = THIS_MODULE,
172 .owner = THIS_MODULE,
188 .owner = THIS_MODULE,
201 .owner = THIS_MODULE,
216 .owner = THIS_MODULE,
233 .owner = THIS_MODULE,
246 .owner = THIS_MODULE,
[all …]
/linux-6.15/kernel/bpf/
H A Dbpf_local_storage.c51 return map->ops->map_owner_storage_ptr(owner); in owner_storage()
110 mem_uncharge(smap, owner, smap->elem_size); in bpf_selem_alloc()
291 void *owner; in bpf_selem_unlink_storage_nolock() local
294 owner = local_storage->owner; in bpf_selem_unlink_storage_nolock()
301 mem_uncharge(smap, owner, smap->elem_size); in bpf_selem_unlink_storage_nolock()
307 local_storage->owner = NULL; in bpf_selem_unlink_storage_nolock()
483 int bpf_local_storage_alloc(void *owner, in bpf_local_storage_alloc() argument
509 storage->owner = owner; in bpf_local_storage_alloc()
547 mem_uncharge(smap, owner, sizeof(*storage)); in bpf_local_storage_alloc()
592 mem_uncharge(smap, owner, smap->elem_size); in bpf_local_storage_update()
[all …]
/linux-6.15/tools/testing/selftests/drivers/ntsync/
H A Dntsync.c51 *owner = args.owner; in read_mutex_state()
69 args.owner = owner; in unlock_mutex()
109 args.owner = owner; in wait_objs()
243 mutex_args.owner = 0; in TEST()
297 owner = 0; in TEST()
302 owner = 123; in TEST()
308 owner = 456; in TEST()
332 owner = 123; in TEST()
351 mutex_args.owner = 0; in TEST()
562 owner = 123; in TEST()
[all …]
/linux-6.15/Documentation/locking/
H A Drt-mutex.rst19 A low priority owner of a rt-mutex inherits the priority of a higher
21 boosted owner blocks on a rt-mutex itself it propagates the priority
22 boosting to the owner of the other rt_mutex it gets blocked on. The
34 rtmutex, only the top priority waiter is enqueued into the owner's
37 got a signal), the priority of the owner task is readjusted. The
46 The state of the rt-mutex is tracked via the owner field of the rt-mutex
49 lock->owner holds the task_struct pointer of the owner. Bit 0 is used to
53 owner bit0 Notes
63 possible when bit 0 of lock->owner is 0.
76 that anymore. The pending owner happens to be the top_waiter of a lock
[all …]
/linux-6.15/drivers/gpu/drm/imagination/
H A Dpvr_stream_defs.c13 #define PVR_STREAM_DEF_SET(owner, member, _size, _array_size, _feature) \ argument
14 { .offset = offsetof(struct owner, member), \
19 #define PVR_STREAM_DEF(owner, member, member_size) \ argument
22 #define PVR_STREAM_DEF_FEATURE(owner, member, member_size, feature) \ argument
26 PVR_STREAM_DEF_SET(owner, member, PVR_STREAM_SIZE_ ## member_size, 0, \
30 PVR_STREAM_DEF_SET(owner, member, PVR_STREAM_SIZE_ARRAY, \
31 sizeof(((struct owner *)0)->member), PVR_FEATURE_NONE)
33 #define PVR_STREAM_DEF_ARRAY_FEATURE(owner, member, feature) \ argument
34 PVR_STREAM_DEF_SET(owner, member, PVR_STREAM_SIZE_ARRAY, \
35 sizeof(((struct owner *)0)->member), feature)
[all …]
/linux-6.15/tools/testing/selftests/ftrace/test.d/00basic/
H A Dtest_ownership.tc31 owner=`stat -c "%u" $file`
34 echo "testing $file $owner=$original_owner and $group=$test_group"
35 if [ $owner -ne $original_owner ]; then
45 owner=`stat -c "%u" $file`
46 if [ $owner -ne $other_owner ]; then
51 owner=`stat -c "%u" $file`
52 if [ $owner -ne $original_owner ]; then
/linux-6.15/arch/powerpc/include/asm/
H A Drheap.h23 const char *owner; member
43 const char *owner; member
67 const char *owner);
70 extern unsigned long rh_alloc(rh_info_t * info, int size, const char *owner);
74 const char *owner);
90 extern int rh_set_owner(rh_info_t * info, unsigned long start, const char *owner);
/linux-6.15/kernel/
H A Daudit_tree.c35 struct audit_tree *owner; member
301 owner->root = new; in replace_chunk()
307 owner = old->owners[j].owner; in replace_chunk()
308 new->owners[i].owner = owner; in replace_chunk()
312 get_tree(owner); in replace_chunk()
327 struct audit_tree *owner = p->owner; in remove_chunk_node() local
331 owner->root = NULL; in remove_chunk_node()
334 p->owner = NULL; in remove_chunk_node()
335 put_tree(owner); in remove_chunk_node()
505 p->owner = tree; in tag_chunk()
[all …]
/linux-6.15/fs/xfs/libxfs/
H A Dxfs_rmap.c41 uint64_t owner, in xfs_rmap_lookup_le() argument
80 uint64_t owner, in xfs_rmap_lookup_eq() argument
125 uint64_t owner, in xfs_rmap_insert() argument
167 uint64_t owner, in xfs_rmap_delete() argument
434 uint64_t owner, in xfs_rmap_find_left_neighbor() argument
533 uint64_t owner, in xfs_rmap_lookup_le_range() argument
601 uint64_t owner, in xfs_rmap_free_check_owner() argument
687 uint64_t owner; in xfs_rmap_unmap() local
994 uint64_t owner, in xfs_rmap_is_mergeable() argument
1259 uint64_t owner; in xfs_rmap_convert() local
[all …]
/linux-6.15/drivers/misc/
H A Dntsync.c62 pid_t owner; member
106 __u32 owner; member
238 if (obj->u.mutex.owner && obj->u.mutex.owner != owner) in is_signaled()
291 obj->u.mutex.owner = q->owner; in try_wake_all()
353 if (mutex->u.mutex.owner && mutex->u.mutex.owner != q->owner) in try_wake_any_mutex()
361 mutex->u.mutex.owner = q->owner; in try_wake_any_mutex()
448 if (mutex->u.mutex.owner != args->owner) in unlock_mutex_state()
499 if (mutex->u.mutex.owner != owner) in kill_mutex_state()
622 args.owner = mutex->u.mutex.owner; in ntsync_mutex_read()
781 mutex->u.mutex.owner = args.owner; in ntsync_create_mutex()
[all …]
/linux-6.15/drivers/dma/bestcomm/
H A Dsram.c37 int bcom_sram_init(struct device_node *sram_node, char *owner) in bcom_sram_init() argument
47 "Already initialized !\n", owner); in bcom_sram_init()
54 "Couldn't allocate internal state !\n", owner); in bcom_sram_init()
62 "Invalid device node !\n", owner); in bcom_sram_init()
70 if (!request_mem_region(res.start, resource_size(&res), owner)) { in bcom_sram_init()
72 "Couldn't request region !\n", owner); in bcom_sram_init()
84 owner, (long)bcom_sram->base_phys, bcom_sram->size ); in bcom_sram_init()
/linux-6.15/arch/arm64/kvm/hyp/include/nvhe/
H A Dspinlock.h24 u16 next, owner; member
26 u16 owner, next;
78 : "Q" (lock->owner) in hyp_spin_lock()
96 : "=Q" (lock->owner), "=&r" (tmp) in hyp_spin_unlock()
105 return lockval.owner != lockval.next; in hyp_spin_is_locked()

12345678910>>...167