Home
last modified time | relevance | path

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

12345678910>>...102

/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.c96 int owner; in arch_load_niai4() local
101 : [owner] "=d" (owner) : [lock] "R" (*lock) : "memory"); in arch_load_niai4()
102 return owner; in arch_load_niai4()
160 int lockval, ix, node_id, tail_id, old, new, owner, count; in arch_spin_lock_queued() local
201 owner = arch_spin_yield_target(old, node); in arch_spin_lock_queued()
202 if (owner && arch_vcpu_is_preempted(owner - 1)) in arch_spin_lock_queued()
203 smp_yield_cpu(owner - 1); in arch_spin_lock_queued()
213 owner = arch_spin_yield_target(old, node); in arch_spin_lock_queued()
214 if (owner && arch_vcpu_is_preempted(owner - 1)) in arch_spin_lock_queued()
215 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/drivers/xen/
H A Dpci.c312 struct xen_device_domain_owner *owner; in find_device() local
314 list_for_each_entry(owner, &dev_domain_list, list) { in find_device()
315 if (owner->dev == dev) in find_device()
316 return owner; in find_device()
323 struct xen_device_domain_owner *owner; in xen_find_device_domain_owner() local
327 owner = find_device(dev); in xen_find_device_domain_owner()
328 if (owner) in xen_find_device_domain_owner()
329 domain = owner->domain; in xen_find_device_domain_owner()
337 struct xen_device_domain_owner *owner; in xen_register_device_domain_owner() local
339 owner = kzalloc_obj(struct xen_device_domain_owner); in xen_register_device_domain_owner()
[all …]
/linux/rust/kernel/sync/
H A Dlocked_by.rs79 owner: *const U, field
97 /// It stores a raw pointer to the owner that is never dereferenced. It is only used to ensure
98 /// that the right owner is being used to access the protected data. If the owner is freed, the
99 /// data becomes inaccessible; if another instance of the owner is allocated *on the same
102 pub fn new<B: Backend>(owner: &Lock<U, B>, data: T) -> Self { in new()
108 owner: owner.data.get(), in new()
116 /// reference) that the owner is locked.
123 /// Panics if `owner` i
[all...]
/linux/net/core/
H A Ddevmem.c37 struct dmabuf_genpool_chunk_owner *owner = chunk->owner; net_devmem_dmabuf_free_chunk_owner() local
45 struct dmabuf_genpool_chunk_owner *owner; net_devmem_get_dma_addr() local
90 struct dmabuf_genpool_chunk_owner *owner; net_devmem_alloc_dmabuf() local
276 struct dmabuf_genpool_chunk_owner *owner; net_devmem_bind_dmabuf() local
/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/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
[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.c49 static int read_mutex_state(int mutex, __u32 *count, __u32 *owner) in read_mutex_state()
57 *owner = args.owner;
61 #define check_mutex_state(mutex, count, owner) \
67 EXPECT_EQ((owner), __owner); \ in unlock_mutex()
70 static int unlock_mutex(int mutex, __u32 owner, __u32 *count) in unlock_mutex()
75 args.owner = owner;
104 const int *objs, __u32 owner, int alert, __u32 *index) in wait_objs()
115 args.owner in wait_objs()
43 read_mutex_state(int mutex,__u32 * count,__u32 * owner) read_mutex_state() argument
55 check_mutex_state(mutex,count,owner) global() argument
64 unlock_mutex(int mutex,__u32 owner,__u32 * count) unlock_mutex() argument
98 wait_objs(int fd,unsigned long request,__u32 count,const int * objs,__u32 owner,int alert,__u32 * index) wait_objs() argument
117 wait_any(int fd,__u32 count,const int * objs,__u32 owner,__u32 * index) wait_any() argument
122 wait_all(int fd,__u32 count,const int * objs,__u32 owner,__u32 * index) wait_all() argument
128 wait_any_alert(int fd,__u32 count,const int * objs,__u32 owner,int alert,__u32 * index) wait_any_alert() argument
135 wait_all_alert(int fd,__u32 count,const int * objs,__u32 owner,int alert,__u32 * index) wait_all_alert() argument
228 __u32 owner, count, index; TEST() local
505 __u32 owner, index, count, i; TEST() local
619 __u32 owner, index, count; TEST() local
[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()
70 bpf_selem_alloc(struct bpf_local_storage_map *smap, void *owner, in bpf_selem_alloc() argument
75 if (mem_charge(smap, owner, smap->elem_size)) in bpf_selem_alloc()
94 mem_uncharge(smap, owner, smap->elem_size); in bpf_selem_alloc()
180 void *owner in bpf_selem_unlink_storage_nolock_misc() local
476 bpf_local_storage_alloc(void * owner,struct bpf_local_storage_map * smap,struct bpf_local_storage_elem * first_selem) bpf_local_storage_alloc() argument
547 bpf_local_storage_update(void * owner,struct bpf_local_storage_map * smap,void * value,u64 map_flags,bool swap_uptrs) bpf_local_storage_update() argument
[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()
329 struct audit_tree *owner = p->owner; remove_chunk_node() local
1026 struct audit_tree *owner; evict_chunk() local
[all...]
H A Dnscommon.c117 struct user_namespace *owner;
121 VFS_WARN_ON_ONCE(!ns->ops->owner);
122 owner = ns->ops->owner(ns);
123 VFS_WARN_ON_ONCE(!owner && ns != to_ns_common(&init_user_ns));
124 if (!owner)
127 if (owner == &init_user_ns)
129 return to_ns_common(owner);
99 struct user_namespace *owner; ns_owner() local
/linux/drivers/gpu/drm/
H A Ddrm_pagemap_util.c482 kref_put(&peer->owner->kref, drm_pagemap_owner_release); in drm_pagemap_release_owner()
483 peer->owner = NULL; in drm_pagemap_release_owner()
530 struct drm_pagemap_owner *owner = NULL; in drm_pagemap_acquire_owner() local
536 if (cur_peer->owner != owner) { in drm_pagemap_acquire_owner()
537 if (owner && interconnect) in drm_pagemap_acquire_owner()
539 owner = cur_peer->owner; in drm_pagemap_acquire_owner()
547 owner = kmalloc_obj(*owner); in drm_pagemap_acquire_owner()
548 if (!owner) { in drm_pagemap_acquire_owner()
552 kref_init(&owner->kref); in drm_pagemap_acquire_owner()
555 kref_get(&owner->kref); in drm_pagemap_acquire_owner()
[all …]
/linux/tools/testing/selftests/ftrace/test.d/00basic/
H A Dtest_ownership.tc13 # find another owner and group that is not the original
31 owner=`stat -c "%u" $file`
34 echo "testing $file $owner=$original_owner and $group=$test_group"
35 if [ $owner -ne $original_owner ]; then
42 # Note, the remount does not update ownership so test going to and from owner
43 echo "test owner $file to $other_owner"
45 owner=`stat -c "%u" $file`
46 if [ $owner -ne $other_owner ]; then
51 owner=`stat -c "%u" $file`
52 if [ $owner
[all...]
/linux/drivers/misc/
H A Dntsync.c63 pid_t owner; member
107 __u32 owner; member
231 static bool is_signaled(struct ntsync_obj *obj, __u32 owner) in is_signaled() argument
239 if (obj->u.mutex.owner && obj->u.mutex.owner != owner) in is_signaled()
273 if (!is_signaled(q->entries[i].obj, q->owner)) { in try_wake_all()
292 obj->u.mutex.owner = q->owner; in try_wake_all()
354 if (mutex->u.mutex.owner && mutex->u.mutex.owner != q->owner) in try_wake_any_mutex()
362 mutex->u.mutex.owner = q->owner; in try_wake_any_mutex()
449 if (mutex->u.mutex.owner != args->owner) in unlock_mutex_state()
453 mutex->u.mutex.owner = 0; in unlock_mutex_state()
[all …]
/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/include/linux/
H A Dlocal_lock_internal.h17 struct task_struct *owner; in context_lock_struct() local
26 struct task_struct *owner; in context_lock_struct() local
39 .owner = NULL,
47 DEBUG_LOCKS_WARN_ON(l->owner); in local_lock_acquire()
48 l->owner = current; in local_lock_acquire()
54 DEBUG_LOCKS_WARN_ON(l->owner); in local_trylock_acquire()
55 l->owner = current; in local_trylock_acquire()
60 DEBUG_LOCKS_WARN_ON(l->owner != current); in local_lock_release()
61 l->owner = NULL; in local_lock_release()
67 l->owner = NULL; in local_lock_debug_init()
/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()

12345678910>>...102