Home
last modified time | relevance | path

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

12345678910>>...151

/kernel/linux/linux-5.10/arch/s390/lib/
Dspinlock.c75 int owner; in arch_load_niai4() local
80 : "=d" (owner) : "Q" (*lock) : "memory"); in arch_load_niai4()
81 return owner; in arch_load_niai4()
120 int lockval, ix, node_id, tail_id, old, new, owner, count; in arch_spin_lock_queued() local
161 owner = arch_spin_yield_target(old, node); in arch_spin_lock_queued()
162 if (owner && arch_vcpu_is_preempted(owner - 1)) in arch_spin_lock_queued()
163 smp_yield_cpu(owner - 1); in arch_spin_lock_queued()
173 owner = arch_spin_yield_target(old, node); in arch_spin_lock_queued()
174 if (owner && arch_vcpu_is_preempted(owner - 1)) in arch_spin_lock_queued()
175 smp_yield_cpu(owner - 1); in arch_spin_lock_queued()
[all …]
/kernel/linux/linux-5.10/kernel/locking/
Dmutex.c42 atomic_long_set(&lock->owner, 0); in __mutex_init()
75 return (struct task_struct *)(atomic_long_read(&lock->owner) & ~MUTEX_FLAGS); in __mutex_owner()
78 static inline struct task_struct *__owner_task(unsigned long owner) in __owner_task() argument
80 return (struct task_struct *)(owner & ~MUTEX_FLAGS); in __owner_task()
99 static inline unsigned long __owner_flags(unsigned long owner) in __owner_flags() argument
101 return owner & MUTEX_FLAGS; in __owner_flags()
109 unsigned long owner, curr = (unsigned long)current; in __mutex_trylock_or_owner() local
111 owner = atomic_long_read(&lock->owner); in __mutex_trylock_or_owner()
113 unsigned long old, flags = __owner_flags(owner); in __mutex_trylock_or_owner()
114 unsigned long task = owner & ~MUTEX_FLAGS; in __mutex_trylock_or_owner()
[all …]
Dspinlock_debug.c28 lock->owner = SPINLOCK_OWNER_INIT; in __raw_spin_lock_init()
46 lock->owner = SPINLOCK_OWNER_INIT; in __rwlock_init()
54 struct task_struct *owner = READ_ONCE(lock->owner); in spin_dump() local
56 if (owner == SPINLOCK_OWNER_INIT) in spin_dump()
57 owner = NULL; in spin_dump()
64 owner ? owner->comm : "<none>", in spin_dump()
65 owner ? task_pid_nr(owner) : -1, in spin_dump()
84 SPIN_BUG_ON(READ_ONCE(lock->owner) == current, lock, "recursion"); in debug_spin_lock_before()
92 WRITE_ONCE(lock->owner, current); in debug_spin_lock_after()
99 SPIN_BUG_ON(lock->owner != current, lock, "wrong owner"); in debug_spin_unlock()
[all …]
Drtmutex.c53 rt_mutex_set_owner(struct rt_mutex *lock, struct task_struct *owner) in rt_mutex_set_owner() argument
55 unsigned long val = (unsigned long)owner; in rt_mutex_set_owner()
60 WRITE_ONCE(lock->owner, (struct task_struct *)val); in rt_mutex_set_owner()
65 lock->owner = (struct task_struct *) in clear_rt_mutex_waiters()
66 ((unsigned long)lock->owner & ~RT_MUTEX_HAS_WAITERS); in clear_rt_mutex_waiters()
71 unsigned long owner, *p = (unsigned long *) &lock->owner; in fixup_rt_mutex_waiters() local
134 owner = READ_ONCE(*p); in fixup_rt_mutex_waiters()
135 if (owner & RT_MUTEX_HAS_WAITERS) in fixup_rt_mutex_waiters()
136 WRITE_ONCE(*p, owner & ~RT_MUTEX_HAS_WAITERS); in fixup_rt_mutex_waiters()
144 # define rt_mutex_cmpxchg_acquire(l,c,n) (cmpxchg_acquire(&l->owner, c, n) == c)
[all …]
Drwsem.c110 atomic_long_read(&(sem)->owner), (long)current, \
176 atomic_long_set(&sem->owner, (long)current); in rwsem_set_owner()
181 atomic_long_set(&sem->owner, 0); in rwsem_clear_owner()
189 return atomic_long_read(&sem->owner) & flags; in rwsem_test_oflags()
203 struct task_struct *owner) in __rwsem_set_reader_owned() argument
205 unsigned long val = (unsigned long)owner | RWSEM_READER_OWNED | in __rwsem_set_reader_owned()
206 (atomic_long_read(&sem->owner) & RWSEM_RD_NONSPINNABLE); in __rwsem_set_reader_owned()
208 atomic_long_set(&sem->owner, val); in __rwsem_set_reader_owned()
242 unsigned long val = atomic_long_read(&sem->owner); in rwsem_clear_reader_owned()
245 if (atomic_long_try_cmpxchg(&sem->owner, &val, in rwsem_clear_reader_owned()
[all …]
/kernel/linux/linux-5.10/drivers/media/mc/
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()
/kernel/linux/linux-5.10/kernel/bpf/
Dbpf_local_storage.c24 static int mem_charge(struct bpf_local_storage_map *smap, void *owner, u32 size) in mem_charge() argument
31 return map->ops->map_local_storage_charge(smap, owner, size); in mem_charge()
34 static void mem_uncharge(struct bpf_local_storage_map *smap, void *owner, in mem_uncharge() argument
40 map->ops->map_local_storage_uncharge(smap, owner, size); in mem_uncharge()
44 owner_storage(struct bpf_local_storage_map *smap, void *owner) in owner_storage() argument
48 return map->ops->map_owner_storage_ptr(owner); in owner_storage()
62 bpf_selem_alloc(struct bpf_local_storage_map *smap, void *owner, in bpf_selem_alloc() argument
67 if (charge_mem && mem_charge(smap, owner, smap->elem_size)) in bpf_selem_alloc()
78 mem_uncharge(smap, owner, smap->elem_size); in bpf_selem_alloc()
93 void *owner; in bpf_selem_unlink_storage_nolock() local
[all …]
/kernel/linux/linux-5.10/scripts/coccinelle/api/
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 …]
/kernel/linux/linux-5.10/drivers/regulator/
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 …]
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 …]
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 …]
/kernel/linux/linux-5.10/Documentation/vm/
Dpage_owner.rst4 page owner: Tracking about who allocated each page
10 page owner is for the tracking about who allocated each page.
24 page owner can also be used for various purposes. For example, accurate
26 each page. It is already implemented and activated if page owner is
29 page owner is disabled in default. So, if you'd like to use it, you need
31 with page owner and page owner is disabled in runtime due to no enabling
33 doesn't require memory to store owner information, so there is no runtime
34 memory overhead. And, page owner inserts just two unlikely branches into
36 like as the kernel without page owner. These two unlikely branches should
41 - Without page owner::
[all …]
/kernel/linux/linux-5.10/include/linux/
Dlocal_lock_internal.h12 struct task_struct *owner; member
23 .owner = NULL,
28 DEBUG_LOCKS_WARN_ON(l->owner); in local_lock_acquire()
29 l->owner = current; in local_lock_acquire()
34 DEBUG_LOCKS_WARN_ON(l->owner != current); in local_lock_release()
35 l->owner = NULL; in local_lock_release()
41 l->owner = NULL; in local_lock_debug_init()
/kernel/linux/linux-5.10/fs/xfs/libxfs/
Dxfs_rmap.c34 uint64_t owner, in xfs_rmap_lookup_le() argument
41 cur->bc_rec.r.rm_owner = owner; in xfs_rmap_lookup_le()
56 uint64_t owner, in xfs_rmap_lookup_eq() argument
63 cur->bc_rec.r.rm_owner = owner; in xfs_rmap_lookup_eq()
103 uint64_t owner, in xfs_rmap_insert() argument
111 len, owner, offset, flags); in xfs_rmap_insert()
113 error = xfs_rmap_lookup_eq(rcur, agbno, len, owner, offset, flags, &i); in xfs_rmap_insert()
123 rcur->bc_rec.r.rm_owner = owner; in xfs_rmap_insert()
145 uint64_t owner, in xfs_rmap_delete() argument
153 len, owner, offset, flags); in xfs_rmap_delete()
[all …]
Dxfs_rmap.h84 uint64_t *owner, in xfs_owner_info_unpack() argument
90 *owner = oinfo->oi_owner; in xfs_owner_info_unpack()
102 uint64_t owner, in xfs_owner_info_pack() argument
106 oinfo->oi_owner = owner; in xfs_owner_info_pack()
123 xfs_extlen_t len, uint64_t owner, uint64_t offset,
126 xfs_extlen_t len, uint64_t owner, uint64_t offset,
129 xfs_extlen_t len, uint64_t owner, uint64_t offset,
173 xfs_agblock_t bno, xfs_extlen_t len, uint64_t owner);
175 xfs_agblock_t bno, xfs_extlen_t len, uint64_t owner);
180 uint64_t owner, int whichfork, xfs_fileoff_t startoff,
[all …]
/kernel/linux/linux-5.10/Documentation/locking/
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.
67 we need to set the bit0 before looking at the lock, and the owner may
[all …]
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
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);
/kernel/liteos_a/kernel/base/ipc/
Dlos_mux.c229 mutex->owner = NULL; in LOS_MuxInit()
267 LosTaskCB *owner = (LosTaskCB *)mutex->owner; in OsMuxBitmapSet() local
268 INT32 ret = OsSchedParamCompare(owner, runTask); in OsMuxBitmapSet()
271 owner->ops->priorityInheritance(owner, &param); in OsMuxBitmapSet()
282 LosTaskCB *owner = (LosTaskCB *)mutex->owner; in OsMuxBitmapRestore() local
284 owner->ops->priorityRestore(owner, list, &param); in OsMuxBitmapRestore()
294 mutex->owner = NULL; in OsMuxPendOp()
300 mutex->owner = (VOID *)runTask; in OsMuxPendOp()
311 if (((LosTaskCB *)mutex->owner == runTask) && (mutex->attr.type == LOS_MUX_RECURSIVE)) { in OsMuxPendOp()
356 if ((mutex->attr.type == LOS_MUX_ERRORCHECK) && (mutex->owner == (VOID *)runTask)) { in OsMuxLockUnsafe()
[all …]
/kernel/linux/linux-5.10/arch/x86/pci/
Dxen.c602 struct xen_device_domain_owner *owner; in find_device() local
604 list_for_each_entry(owner, &dev_domain_list, list) { in find_device()
605 if (owner->dev == dev) in find_device()
606 return owner; in find_device()
613 struct xen_device_domain_owner *owner; in xen_find_device_domain_owner() local
617 owner = find_device(dev); in xen_find_device_domain_owner()
618 if (owner) in xen_find_device_domain_owner()
619 domain = owner->domain; in xen_find_device_domain_owner()
627 struct xen_device_domain_owner *owner; in xen_register_device_domain_owner() local
629 owner = kzalloc(sizeof(struct xen_device_domain_owner), GFP_KERNEL); in xen_register_device_domain_owner()
[all …]
/kernel/linux/linux-5.10/kernel/
Daudit_tree.c35 struct audit_tree *owner; member
133 if (chunk->owners[i].owner) in free_chunk()
134 put_tree(chunk->owners[i].owner); in free_chunk()
265 if (chunk->owners[n].owner == tree) in audit_tree_match()
295 struct audit_tree *owner; in replace_chunk() local
300 list_for_each_entry(owner, &new->trees, same_root) in replace_chunk()
301 owner->root = new; in replace_chunk()
303 if (!old->owners[j].owner) { in replace_chunk()
307 owner = old->owners[j].owner; in replace_chunk()
308 new->owners[i].owner = owner; in replace_chunk()
[all …]
/kernel/linux/linux-5.10/drivers/pinctrl/
Dpinmux.c108 int pin, const char *owner, in pin_request() argument
124 pin, desc->name, owner); in pin_request()
127 desc->mux_usecount && strcmp(desc->mux_owner, owner)) { in pin_request()
130 desc->name, desc->mux_owner, owner); in pin_request()
137 desc->name, desc->gpio_owner, owner); in pin_request()
142 desc->gpio_owner = owner; in pin_request()
148 desc->mux_owner = owner; in pin_request()
152 if (!try_module_get(pctldev->owner)) { in pin_request()
174 module_put(pctldev->owner); in pin_request()
190 pin, owner, status); in pin_request()
[all …]
/kernel/liteos_m/kernel/src/
Dlos_mux.c71 muxNode->owner = (LosTaskCB *)NULL; in OsMuxInit()
112 muxCreated->owner = (LosTaskCB *)NULL; in LOS_MuxCreate()
216 muxPended->owner = runningTask; in LOS_MuxPend()
222 if (muxPended->owner == runningTask) { in LOS_MuxPend()
235 if (muxPended->owner->priority > runningTask->priority) { in LOS_MuxPend()
236 (VOID)OsSchedModifyTaskSchedParam(muxPended->owner, runningTask->priority); in LOS_MuxPend()
292 if ((muxPosted->muxCount == 0) || (muxPosted->owner != runningTask)) { in LOS_MuxPost()
303 if ((muxPosted->owner->priority) != muxPosted->priority) { in LOS_MuxPost()
304 (VOID)OsSchedModifyTaskSchedParam(muxPosted->owner, muxPosted->priority); in LOS_MuxPost()
311 muxPosted->owner = resumedTask; in LOS_MuxPost()
[all …]
/kernel/linux/linux-5.10/drivers/dma/bestcomm/
Dsram.c41 int bcom_sram_init(struct device_node *sram_node, char *owner) in bcom_sram_init() argument
51 "Already initialized !\n", owner); in bcom_sram_init()
58 "Couldn't allocate internal state !\n", owner); in bcom_sram_init()
66 "Invalid device node !\n", owner); in bcom_sram_init()
77 if (!request_mem_region(bcom_sram->base_phys, bcom_sram->size, owner)) { in bcom_sram_init()
79 "Couldn't request region !\n", owner); in bcom_sram_init()
91 owner, (long)bcom_sram->base_phys, bcom_sram->size ); in bcom_sram_init()
/kernel/linux/linux-5.10/arch/csky/include/asm/
Dspinlock.h31 while (lockval.tickets.next != lockval.tickets.owner) in arch_spin_lock()
32 lockval.tickets.owner = READ_ONCE(lock->tickets.owner); in arch_spin_lock()
68 WRITE_ONCE(lock->tickets.owner, lock->tickets.owner + 1); in arch_spin_unlock()
73 return lock.tickets.owner == lock.tickets.next; in arch_spin_value_unlocked()
85 return (tickets.next - tickets.owner) > 1; in arch_spin_is_contended()
/kernel/linux/linux-5.10/drivers/iommu/
Dexynos-iommu.c673 struct exynos_iommu_owner *owner = dev_iommu_priv_get(master); in exynos_sysmmu_suspend() local
675 mutex_lock(&owner->rpm_lock); in exynos_sysmmu_suspend()
680 mutex_unlock(&owner->rpm_lock); in exynos_sysmmu_suspend()
691 struct exynos_iommu_owner *owner = dev_iommu_priv_get(master); in exynos_sysmmu_resume() local
693 mutex_lock(&owner->rpm_lock); in exynos_sysmmu_resume()
698 mutex_unlock(&owner->rpm_lock); in exynos_sysmmu_resume()
841 struct exynos_iommu_owner *owner = dev_iommu_priv_get(dev); in exynos_iommu_detach_device() local
846 if (!has_sysmmu(dev) || owner->domain != iommu_domain) in exynos_iommu_detach_device()
849 mutex_lock(&owner->rpm_lock); in exynos_iommu_detach_device()
851 list_for_each_entry(data, &owner->controllers, owner_node) { in exynos_iommu_detach_device()
[all …]

12345678910>>...151