Home
last modified time | relevance | path

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

12345678910>>...106

/linux/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
136 rwsem_acquire_read(&owner->vfs_inode.lock.dep_map, 0, 0, _THIS_IP_)
138 #define btrfs_lockdep_inode_release(owner, lock) \ argument
[all …]
/linux/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()
159 int lockval, ix, node_id, tail_id, old, new, owner, count; in arch_spin_lock_queued() local
200 owner = arch_spin_yield_target(old, node); in arch_spin_lock_queued()
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()
212 owner = arch_spin_yield_target(old, node); in arch_spin_lock_queued()
213 if (owner && arch_vcpu_is_preempted(owner - 1)) in arch_spin_lock_queued()
214 smp_yield_cpu(owner - 1); in arch_spin_lock_queued()
[all …]
/linux/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/net/core/
H A Ddevmem.c42 struct dmabuf_genpool_chunk_owner *owner = chunk->owner; in net_devmem_dmabuf_free_chunk_owner() local
44 kvfree(owner->area.niovs); in net_devmem_dmabuf_free_chunk_owner()
45 kfree(owner); in net_devmem_dmabuf_free_chunk_owner()
50 struct dmabuf_genpool_chunk_owner *owner; in net_devmem_get_dma_addr() local
52 owner = net_devmem_iov_to_chunk_owner(niov); in net_devmem_get_dma_addr()
53 return owner->base_dma_addr + in net_devmem_get_dma_addr()
85 struct dmabuf_genpool_chunk_owner *owner; in net_devmem_alloc_dmabuf() local
92 (void **)&owner); in net_devmem_alloc_dmabuf()
96 offset = dma_addr - owner->base_dma_addr; in net_devmem_alloc_dmabuf()
98 niov = &owner->area.niovs[index]; in net_devmem_alloc_dmabuf()
[all …]
/linux/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/scripts/coccinelle/api/
H A Dplatform_no_drv_owner.cocci2 /// Remove .owner field if calls are used which set it automatically
40 - .owner = THIS_MODULE,
49 - .owner = THIS_MODULE,
71 - .owner = THIS_MODULE,
80 - .owner = THIS_MODULE,
93 * .owner@j0 = THIS_MODULE,
104 * .owner@j0 = THIS_MODULE,
115 * .owner@j0 = THIS_MODULE,
126 * .owner@j0 = THIS_MODULE,
136 msg = "No need to set .owner here. The core will do it."
[all …]
/linux/kernel/locking/
H A Drwsem.c74 atomic_long_read(&(sem)->owner), (long)current, \
144 atomic_long_set(&sem->owner, (long)current); in rwsem_set_owner()
150 atomic_long_set(&sem->owner, 0); in rwsem_clear_owner()
158 return atomic_long_read(&sem->owner) & flags; in rwsem_test_oflags()
172 struct task_struct *owner) in __rwsem_set_reader_owned() argument
174 unsigned long val = (unsigned long)owner | RWSEM_READER_OWNED | in __rwsem_set_reader_owned()
175 (atomic_long_read(&sem->owner) & RWSEM_NONSPINNABLE); in __rwsem_set_reader_owned()
177 atomic_long_set(&sem->owner, val); in __rwsem_set_reader_owned()
192 (atomic_long_read(&sem->owner) & ~RWSEM_OWNER_FLAGS_MASK); in rwsem_owner()
218 unsigned long val = atomic_long_read(&sem->owner); in rwsem_clear_reader_owned()
[all …]
/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 (mem_charge(smap, owner, smap->elem_size)) in bpf_selem_alloc()
103 mem_uncharge(smap, owner, smap->elem_size); in bpf_selem_alloc()
269 void *owner; in bpf_selem_free_list()
291 void *owner; bpf_selem_unlink_storage_nolock() local
483 bpf_local_storage_alloc(void * owner,struct bpf_local_storage_map * smap,struct bpf_local_storage_elem * first_selem,gfp_t gfp_flags) bpf_local_storage_alloc() argument
557 bpf_local_storage_update(void * owner,struct bpf_local_storage_map * smap,void * value,u64 map_flags,bool swap_uptrs,gfp_t gfp_flags) bpf_local_storage_update() argument
[all...]
/linux/drivers/regulator/
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/tools/testing/selftests/drivers/ntsync/
H A Dntsync.c43 static int read_mutex_state(int mutex, __u32 *count, __u32 *owner) in read_mutex_state() argument
51 *owner = args.owner; in read_mutex_state()
55 #define check_mutex_state(mutex, count, owner) \ argument
61 EXPECT_EQ((owner), __owner); \
64 static int unlock_mutex(int mutex, __u32 owner, __u32 *count) in unlock_mutex() argument
69 args.owner = owner; in unlock_mutex()
98 const int *objs, __u32 owner, int alert, __u32 *index) in wait_objs() argument
109 args.owner = owner; in wait_objs()
117 static int wait_any(int fd, __u32 count, const int *objs, __u32 owner, __u32 *index) in wait_any() argument
119 return wait_objs(fd, NTSYNC_IOC_WAIT_ANY, count, objs, owner, 0, index); in wait_any()
[all …]
/linux/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
20 PVR_STREAM_DEF_SET(owner, member, PVR_STREAM_SIZE_ ## member_size, 0, PVR_FEATURE_NONE)
22 #define PVR_STREAM_DEF_FEATURE(owner, member, member_size, feature) \ argument
23 PVR_STREAM_DEF_SET(owner, member, PVR_STREAM_SIZE_ ## member_size, 0, feature)
25 #define PVR_STREAM_DEF_NOT_FEATURE(owner, member, member_size, feature) \ argument
26 PVR_STREAM_DEF_SET(owner, member, PVR_STREAM_SIZE_ ## member_size, 0, \
29 #define PVR_STREAM_DEF_ARRAY(owner, member) \ argument
30 PVR_STREAM_DEF_SET(owner, member, PVR_STREAM_SIZE_ARRAY, \
[all …]
/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 …]
/linux/kernel/
H A Daudit_tree.c35 struct audit_tree *owner; member
135 if (chunk->owners[i].owner) in free_chunk()
136 put_tree(chunk->owners[i].owner); in free_chunk()
267 if (chunk->owners[n].owner == tree) in audit_tree_match()
297 struct audit_tree *owner; in replace_chunk() local
302 list_for_each_entry(owner, &new->trees, same_root) in replace_chunk()
303 owner->root = new; in replace_chunk()
305 if (!old->owners[j].owner) { in replace_chunk()
309 owner = old->owners[j].owner; in replace_chunk()
310 new->owners[i].owner = owner; in replace_chunk()
[all …]
H A Dnscommon.c99 struct user_namespace *owner; in ns_owner() local
103 VFS_WARN_ON_ONCE(!ns->ops->owner); in ns_owner()
104 owner = ns->ops->owner(ns); in ns_owner()
105 VFS_WARN_ON_ONCE(!owner && ns != to_ns_common(&init_user_ns)); in ns_owner()
106 if (!owner) in ns_owner()
109 if (owner == &init_user_ns) in ns_owner()
111 return to_ns_common(owner); in ns_owner()
/linux/fs/xfs/libxfs/
H A Dxfs_rmap.c41 uint64_t owner, in xfs_rmap_lookup_le() argument
52 cur->bc_rec.r.rm_owner = owner; in xfs_rmap_lookup_le()
80 uint64_t owner, in xfs_rmap_lookup_eq() argument
87 cur->bc_rec.r.rm_owner = owner; in xfs_rmap_lookup_eq()
125 uint64_t owner, in xfs_rmap_insert() argument
132 trace_xfs_rmap_insert(rcur, agbno, len, owner, offset, flags); in xfs_rmap_insert()
134 error = xfs_rmap_lookup_eq(rcur, agbno, len, owner, offset, flags, &i); in xfs_rmap_insert()
145 rcur->bc_rec.r.rm_owner = owner; in xfs_rmap_insert()
167 uint64_t owner, in xfs_rmap_delete() argument
174 trace_xfs_rmap_delete(rcur, agbno, len, owner, offset, flags); in xfs_rmap_delete()
[all …]
H A Dxfs_rmap.h88 uint64_t *owner, in xfs_owner_info_unpack() argument
94 *owner = oinfo->oi_owner; in xfs_owner_info_unpack()
106 uint64_t owner, in xfs_owner_info_pack() argument
110 oinfo->oi_owner = owner; in xfs_owner_info_pack()
127 uint64_t owner, uint64_t offset, unsigned int flags,
130 xfs_extlen_t len, uint64_t owner, uint64_t offset,
133 xfs_extlen_t len, uint64_t owner, uint64_t offset,
190 xfs_extlen_t len, uint64_t owner);
192 xfs_extlen_t len, uint64_t owner);
202 uint64_t owner, uint64_t offset, unsigned int flags,
/linux/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/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/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/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()
/linux/drivers/base/
H A Dmap.c24 struct module *owner; member
49 p->owner = module; in kobj_map()
105 struct module *owner; in kobj_lookup() local
112 if (!try_module_get(p->owner)) in kobj_lookup()
114 owner = p->owner; in kobj_lookup()
120 module_put(owner); in kobj_lookup()
126 module_put(owner); in kobj_lookup()
/linux/arch/powerpc/lib/
H A Drheap.c140 blk->owner = NULL; in get_slot()
361 blk->owner = NULL; in rh_attach_region()
442 unsigned long rh_alloc_align(rh_info_t * info, int size, int alignment, const char *owner) in rh_alloc_align() argument
506 newblk->owner = owner; in rh_alloc_align()
517 unsigned long rh_alloc(rh_info_t * info, int size, const char *owner) in rh_alloc() argument
519 return rh_alloc_align(info, size, info->alignment, owner); in rh_alloc()
527 unsigned long rh_alloc_fixed(rh_info_t * info, unsigned long start, int size, const char *owner) in rh_alloc_fixed() argument
569 blk->owner = owner; in rh_alloc_fixed()
599 newblk1->owner = owner; in rh_alloc_fixed()
669 stats->owner = blk->owner; in rh_get_stats()
[all …]
/linux/net/dsa/
H A Dtag.c134 struct module *owner) in dsa_tag_driver_register() argument
136 dsa_tag_driver->owner = owner; in dsa_tag_driver_register()
144 unsigned int count, struct module *owner) in dsa_tag_drivers_register() argument
149 dsa_tag_driver_register(dsa_tag_driver_array[i], owner); in dsa_tag_drivers_register()
192 if (!try_module_get(dsa_tag_driver->owner)) in dsa_tag_driver_get_by_name()
221 if (!try_module_get(dsa_tag_driver->owner)) in dsa_tag_driver_get_by_id()
239 module_put(dsa_tag_driver->owner); in dsa_tag_driver_put()
/linux/arch/powerpc/platforms/ps3/
H A Dos-area.c164 int owner; member
169 .owner = OS_AREA_DB_OWNER_NONE,
174 .owner = OS_AREA_DB_OWNER_ANY,
179 .owner = OS_AREA_DB_OWNER_LINUX,
388 uint8_t owner:5; member
437 if (i->match_id.owner != OS_AREA_DB_OWNER_ANY in db_for_each_64()
438 && i->match_id.owner != (int)i->idx->owner) in db_for_each_64()
454 i.idx->owner, i.idx->key, in db_delete_64()
457 i.idx->owner = 0; in db_delete_64()
470 id->owner, id->key, (unsigned long long)value); in db_set_64()
[all …]

12345678910>>...106