Home
last modified time | relevance | path

Searched full:owner (Results 1 – 25 of 5017) sorted by relevance

12345678910>>...201

/openbmc/linux/kernel/locking/
H A Drtmutex.c66 * lock->owner state tracking:
68 * lock->owner holds the task_struct pointer of the owner. Bit 0
71 * owner bit0
79 * possible when bit 0 of lock->owner is 0.
83 * we need to set the bit0 before looking at the lock, and the owner may be
88 * To prevent a cmpxchg of the owner releasing the lock, we need to
93 rt_mutex_owner_encode(struct rt_mutex_base *lock, struct task_struct *owner) in rt_mutex_owner_encode() argument
95 unsigned long val = (unsigned long)owner; in rt_mutex_owner_encode()
104 rt_mutex_set_owner(struct rt_mutex_base *lock, struct task_struct *owner) in rt_mutex_set_owner() argument
108 * for a new lock owner so WRITE_ONCE is insufficient. in rt_mutex_set_owner()
[all …]
H A Dspinlock_debug.c28 lock->owner = SPINLOCK_OWNER_INIT; in __raw_spin_lock_init()
47 lock->owner = SPINLOCK_OWNER_INIT; in __rwlock_init()
56 struct task_struct *owner = READ_ONCE(lock->owner); in spin_dump() local
58 if (owner == SPINLOCK_OWNER_INIT) in spin_dump()
59 owner = NULL; in spin_dump()
63 printk(KERN_EMERG " lock: %pS, .magic: %08x, .owner: %s/%d, " in spin_dump()
66 owner ? owner->comm : "<none>", in spin_dump()
67 owner ? task_pid_nr(owner) : -1, in spin_dump()
86 SPIN_BUG_ON(READ_ONCE(lock->owner) == current, lock, "recursion"); in debug_spin_lock_before()
94 WRITE_ONCE(lock->owner, current); in debug_spin_lock_after()
[all …]
H A Dmutex.c48 atomic_long_set(&lock->owner, 0); in __mutex_init()
60 * @owner: contains: 'struct task_struct *' to the current lock owner,
81 return (struct task_struct *)(atomic_long_read(&lock->owner) & ~MUTEX_FLAGS); in __mutex_owner()
84 static inline struct task_struct *__owner_task(unsigned long owner) in __owner_task() argument
86 return (struct task_struct *)(owner & ~MUTEX_FLAGS); in __owner_task()
95 static inline unsigned long __owner_flags(unsigned long owner) in __owner_flags() argument
97 return owner & MUTEX_FLAGS; in __owner_flags()
105 unsigned long owner, curr = (unsigned long)current; in __mutex_trylock_common() local
107 owner = atomic_long_read(&lock->owner); in __mutex_trylock_common()
109 unsigned long flags = __owner_flags(owner); in __mutex_trylock_common()
[all …]
H A Drwsem.c36 * The least significant 2 bits of the owner value has the following
45 * into the owner field. It is cleared after an unlock.
48 * pointer into the owner field with the RWSEM_READER_OWNED bit set.
49 * On unlock, the owner field will largely be left untouched. So
50 * for a free or reader-owned rwsem, the owner value may contain
70 …WARN_ONCE(c, "DEBUG_RWSEMS_WARN_ON(%s): count = 0x%lx, magic = 0x%lx, owner = 0x%lx, curr 0x%lx, l…
73 atomic_long_read(&(sem)->owner), (long)current, \
131 * All writes to owner are protected by WRITE_ONCE() to make sure that
133 * the owner value concurrently without lock. Read from owner, however,
143 atomic_long_set(&sem->owner, (long)current); in rwsem_set_owner()
[all …]
/openbmc/linux/drivers/media/mc/
H A Dmc-dev-allocator.c31 struct module *owner; member
63 struct module *owner) in __media_device_get() argument
73 /* get module reference for the media_device owner */ in __media_device_get()
74 if (owner != mdi->owner && !try_module_get(mdi->owner)) in __media_device_get()
76 "%s: module %s get owner reference error\n", in __media_device_get()
79 dev_dbg(dev, "%s: module %s got owner reference\n", in __media_device_get()
88 mdi->owner = owner; in __media_device_get()
92 dev_dbg(dev, "%s: Allocated media device for owner %s\n", 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()
[all …]
/openbmc/linux/rust/kernel/sync/
H A Dlocked_by.rs76 owner: *const U, field
94 /// It stores a raw pointer to the owner that is never dereferenced. It is only used to ensure
95 /// that the right owner is being used to access the protected data. If the owner is freed, the
96 /// data becomes inaccessible; if another instance of the owner is allocated *on the same
99 pub fn new<B: Backend>(owner: &Lock<U, B>, data: T) -> Self { in new()
105 owner: owner.data.get(), in new()
113 /// reference) that the owner is locked.
120 /// Panics if `owner` is different from the data protected by the lock used in
122 pub fn access<'a>(&'a self, owner: &'a U) -> &'a T in access()
128 "`U` cannot be a ZST because `owner` wouldn't be unique" in access()
[all …]
/openbmc/linux/arch/s390/lib/
H A 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 …]
/openbmc/linux/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 …]
/openbmc/linux/fs/btrfs/
H A Dlocking.h91 * @owner: The struct where the lockdep map is defined
99 #define btrfs_might_wait_for_event(owner, lock) \ argument
101 rwsem_acquire(&owner->lock##_map, 0, 0, _THIS_IP_); \
102 rwsem_release(&owner->lock##_map, _THIS_IP_); \
108 * @owner: The struct where the lockdep map is defined
116 #define btrfs_lockdep_acquire(owner, lock) \ argument
117 rwsem_acquire_read(&owner->lock##_map, 0, 0, _THIS_IP_)
123 #define btrfs_lockdep_release(owner, lock) \ argument
124 rwsem_release(&owner->lock##_map, _THIS_IP_)
130 #define btrfs_might_wait_for_state(owner, i) \ argument
[all …]
/openbmc/linux/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.
67 we need to set the bit0 before looking at the lock, and the owner may
[all …]
H A Drt-mutex-design.rst108 pi_waiters rbtree of a mutex owner task (described below).
301 Mutex owner and flags
304 The mutex structure contains a pointer to the owner of the mutex. If the
305 mutex is not owned, this owner is set to NULL. Since all architectures
341 The use of rt_mutex_cmpxchg with the flags in the owner field help optimize
394 (de)boosting (the owner of a mutex that a process is blocking on), a flag to
404 that the state of the owner and lock can change when entered into this function.
425 fails). Only when the owner field of the mutex is NULL can the lock be
435 tree of the owner.
446 the "Has Waiters" flag of the mutex's owner field. By setting this flag
[all …]
/openbmc/linux/kernel/futex/
H A Dpi.c26 pi_state->owner = NULL; in refill_pi_state_cache()
48 struct task_struct *old_owner = pi_state->owner; in pi_state_update_owner()
63 pi_state->owner = new_owner; in pi_state_update_owner()
86 * If pi_state->owner is NULL, the owner is most probably dying in put_pi_state()
89 if (pi_state->owner) { in put_pi_state()
103 * clear pi_state->owner. in put_pi_state()
106 pi_state->owner = NULL; in put_pi_state()
115 * Waiter | pi_state | pi->owner | uTID | uODIED | ?
137 * thread is found then it indicates that the owner TID has died.
147 * [6] Valid state after exit_pi_state_list() which sets the new owner in
[all …]
/openbmc/linux/drivers/xen/
H A Dpci.c271 struct xen_device_domain_owner *owner; in find_device() local
273 list_for_each_entry(owner, &dev_domain_list, list) { in find_device()
274 if (owner->dev == dev) in find_device()
275 return owner; in find_device()
282 struct xen_device_domain_owner *owner; in xen_find_device_domain_owner() local
286 owner = find_device(dev); in xen_find_device_domain_owner()
287 if (owner) in xen_find_device_domain_owner()
288 domain = owner->domain; in xen_find_device_domain_owner()
296 struct xen_device_domain_owner *owner; in xen_register_device_domain_owner() local
298 owner = kzalloc(sizeof(struct xen_device_domain_owner), GFP_KERNEL); in xen_register_device_domain_owner()
[all …]
/openbmc/openbmc/meta-openembedded/meta-filesystems/recipes-utils/xfsdump/files/
H A Dremove-install-as-user.patch32 - echo "Usage: $prog [-o owner] [-g group] [-m mode] -d directory"
33 - echo "or $prog [-D] [-o owner] [-g group] [-m mode] file directory/file"
34 - echo "or $prog [-o owner] [-g group] [-m mode] file [file ...] directory"
39 - echo "or $prog -T lt_arg [-o owner] [-g group] [-m mode] libtool.lai directory"
81 -OWNER=`id -u`
83 -REAL_UID=$OWNER
110 - OWNER=$OPTARG
127 - $CHOWN $OWNER $GROUP $dir
130 - $MANIFEST d $DIRMODE $OWNER $GROUP ${dir#$DIST_ROOT}
139 - $MANIFEST f $FILEMODE $OWNER $GROUP $HERE/$solib ${install_name#$DIST_ROOT}
[all …]
/openbmc/linux/Documentation/mm/
H A Dpage_owner.rst2 page owner: Tracking about who allocated each page
8 page owner is for the tracking about who allocated each page.
22 page owner can also be used for various purposes. For example, accurate
24 each page. It is already implemented and activated if page owner is
27 page owner is disabled by default. So, if you'd like to use it, you need
29 with page owner and page owner is disabled in runtime due to not enabling
31 doesn't require memory to store owner information, so there is no runtime
32 memory overhead. And, page owner inserts just two unlikely branches into
34 like as the kernel without page owner. These two unlikely branches should
39 Although enabling page owner increases kernel size by several kilobytes,
[all …]
/openbmc/phosphor-objmgr/src/
H A Dassociations.cpp77 const std::string& sourcePath, const std::string& owner, in removeAssociation() argument
99 auto assocs = owners->second.find(owner); in removeAssociation()
153 const std::string& owner, const AssociationPaths& newAssociations, in checkAssociationEndpointRemoves() argument
164 auto originalAssociations = originalOwners->second.find(owner); in checkAssociationEndpointRemoves()
232 const std::string& owner, const InterfaceMapType& interfaceMap, in associationChanged() argument
253 addPendingAssociation(objectPath, reverse, path, forward, owner, in associationChanged()
274 checkAssociationEndpointRemoves(io, path, owner, objects, objectServer, in associationChanged()
283 auto o = a->second.find(owner); in associationChanged()
290 a->second.emplace(owner, std::move(objects)); in associationChanged()
296 owners.emplace(owner, std::move(objects)); in associationChanged()
[all …]
/openbmc/linux/fs/xfs/libxfs/
H A Dxfs_rmap.c30 * Lookup the first record less than or equal to [bno, len, owner, offset]
37 uint64_t owner, in xfs_rmap_lookup_le() argument
48 cur->bc_rec.r.rm_owner = owner; in xfs_rmap_lookup_le()
66 * Lookup the record exactly matching [bno, len, owner, offset]
74 uint64_t owner, in xfs_rmap_lookup_eq() argument
81 cur->bc_rec.r.rm_owner = owner; in xfs_rmap_lookup_eq()
89 * by [bno, len, owner, offset].
121 uint64_t owner, in xfs_rmap_insert() argument
129 len, owner, offset, flags); in xfs_rmap_insert()
131 error = xfs_rmap_lookup_eq(rcur, agbno, len, owner, offset, flags, &i); in xfs_rmap_insert()
[all …]
H A Dxfs_rmap.h87 uint64_t *owner, in xfs_owner_info_unpack() argument
93 *owner = oinfo->oi_owner; in xfs_owner_info_unpack()
105 uint64_t owner, in xfs_owner_info_pack() argument
109 oinfo->oi_owner = owner; in xfs_owner_info_pack()
126 uint64_t owner, uint64_t offset, unsigned int flags,
129 xfs_extlen_t len, uint64_t owner, uint64_t offset,
132 xfs_extlen_t len, uint64_t owner, uint64_t offset,
181 xfs_agblock_t bno, xfs_extlen_t len, uint64_t owner);
183 xfs_agblock_t bno, xfs_extlen_t len, uint64_t owner);
191 uint64_t owner, uint64_t offset, unsigned int flags,
[all …]
/openbmc/linux/kernel/bpf/
H A Dbpf_local_storage.c27 static int mem_charge(struct bpf_local_storage_map *smap, void *owner, u32 size) in mem_charge() argument
34 return map->ops->map_local_storage_charge(smap, owner, size); in mem_charge()
37 static void mem_uncharge(struct bpf_local_storage_map *smap, void *owner, in mem_uncharge() argument
43 map->ops->map_local_storage_uncharge(smap, owner, size); in mem_uncharge()
47 owner_storage(struct bpf_local_storage_map *smap, void *owner) in owner_storage() argument
51 return map->ops->map_owner_storage_ptr(owner); in owner_storage()
75 bpf_selem_alloc(struct bpf_local_storage_map *smap, void *owner, in bpf_selem_alloc() argument
80 if (charge_mem && mem_charge(smap, owner, smap->elem_size)) in bpf_selem_alloc()
109 mem_uncharge(smap, owner, smap->elem_size); in bpf_selem_alloc()
259 void *owner; in bpf_selem_unlink_storage_nolock() local
[all …]
/openbmc/linux/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 …]
/openbmc/qemu/ui/
H A Dclipboard.c30 return info && info->owner == peer; in qemu_clipboard_peer_owns()
77 * If data is missing, the clipboard owner's 'request' callback needs to in qemu_clipboard_update()
82 assert(info->owner && info->owner->request); in qemu_clipboard_update()
101 QemuClipboardInfo *qemu_clipboard_info_new(QemuClipboardPeer *owner, in qemu_clipboard_info_new() argument
106 info->owner = owner; in qemu_clipboard_info_new()
144 !info->owner) in qemu_clipboard_request()
147 assert(info->owner->request); in qemu_clipboard_request()
150 info->owner->request(info, type); in qemu_clipboard_request()
177 info->owner != peer) { in qemu_clipboard_set_data()
/openbmc/phosphor-webui/app/configuration/controllers/
H A Ddate-time-controller.js16 // Only used when the owner is "Split"
19 $scope.time = {mode: '', owner: ''}; property in $scope.time
21 ….com/openbmc/phosphor-dbus-interfaces/blob/master/xyz/openbmc_project/Time/Owner.interface.yaml#L13
51 if (data.data[timePath + 'owner'] &&
52 data.data[timePath + 'owner'].hasOwnProperty('TimeOwner')) {
53 $scope.time.owner =
54 data.data[timePath + 'owner'].TimeOwner.split('.').pop();
94 if ($scope.time.mode == 'Manual' || $scope.time.owner == 'Split') {
121 // If owner is 'Split' set both.
122 // If owner is 'Host' set only it.
[all …]
/openbmc/linux/sound/soc/intel/avs/
H A Dpath.c74 if (path->template->owner == template) { in avs_path_find_path()
221 node_id.vindex = mod->owner->owner->dma_id; in avs_copier_create()
227 mod->owner->owner->dma_id; in avs_copier_create()
261 ret = avs_dsp_init_module(adev, mod->module_id, mod->owner->instance_id, in avs_copier_create()
275 path_tmpl = t->owner->owner->owner; in avs_get_module_control()
320 ret = avs_dsp_init_module(adev, mod->module_id, mod->owner->instance_id, t->core_id, in avs_peakvol_create()
344 return avs_dsp_init_module(adev, mod->module_id, mod->owner->instance_id, in avs_updown_mix_create()
361 return avs_dsp_init_module(adev, mod->module_id, mod->owner->instance_id, in avs_src_create()
381 return avs_dsp_init_module(adev, mod->module_id, mod->owner->instance_id, in avs_asrc_create()
400 return avs_dsp_init_module(adev, mod->module_id, mod->owner->instance_id, in avs_aec_create()
[all …]
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_sync.c81 * amdgpu_sync_get_owner - extract the owner of a fence
83 * @f: fence get the owner from
97 return s_fence->owner; in amdgpu_sync_get_owner()
174 /* Determine based on the owner and mode if we should sync to a fence or not */
177 void *owner, struct dma_fence *f) in amdgpu_sync_test_fence() argument
189 owner != AMDGPU_FENCE_OWNER_UNDEFINED) in amdgpu_sync_test_fence()
194 owner != AMDGPU_FENCE_OWNER_UNDEFINED && in amdgpu_sync_test_fence()
195 owner != AMDGPU_FENCE_OWNER_KFD) in amdgpu_sync_test_fence()
205 fence_owner == owner) in amdgpu_sync_test_fence()
211 fence_owner != owner) in amdgpu_sync_test_fence()
[all …]

12345678910>>...201