| /linux/fs/btrfs/ |
| H A D | locking.h | 104 #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 D | spinlock.c | 95 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 D | mc-dev-allocator.c | 31 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/rust/kernel/sync/ |
| H A D | locked_by.rs | 79 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/net/core/ |
| H A D | devmem.c | 37 struct dmabuf_genpool_chunk_owner *owner = chunk->owner; 39 kvfree(owner->area.niovs); in net_devmem_dmabuf_free_chunk_owner() 40 kfree(owner); in net_devmem_dmabuf_free_chunk_owner() 45 struct dmabuf_genpool_chunk_owner *owner; in net_devmem_dmabuf_free_chunk_owner() 47 owner = net_devmem_iov_to_chunk_owner(niov); 48 return owner->base_dma_addr + in net_devmem_get_dma_addr() 90 struct dmabuf_genpool_chunk_owner *owner; in net_devmem_alloc_dmabuf() 97 (void **)&owner); in net_devmem_alloc_dmabuf() 101 offset = dma_addr - owner in net_devmem_alloc_dmabuf() 42 struct dmabuf_genpool_chunk_owner *owner = chunk->owner; net_devmem_dmabuf_free_chunk_owner() local 50 struct dmabuf_genpool_chunk_owner *owner; net_devmem_get_dma_addr() local 85 struct dmabuf_genpool_chunk_owner *owner; net_devmem_alloc_dmabuf() local 258 struct dmabuf_genpool_chunk_owner *owner; net_devmem_bind_dmabuf() local [all...] |
| /linux/scripts/coccinelle/api/ |
| H A D | platform_no_drv_owner.cocci | 2 /// 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 D | rwsem.c | 74 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 D | bpf_local_storage.c | 27 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 selem_linked_to_map() 75 if (mem_charge(smap, owner, smap->elem_size)) in bpf_selem_alloc() argument 100 mem_uncharge(smap, owner, smap->elem_size); in bpf_selem_alloc() 264 void *owner 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 D | lp8788-ldo.c | 193 .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 D | lm363x-regulator.c | 114 .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 D | ntsync.c | 43 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/Documentation/locking/ |
| H A D | rt-mutex.rst | 19 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/drivers/gpu/drm/imagination/ |
| H A D | pvr_stream_defs.c | 13 #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/tools/testing/selftests/ftrace/test.d/00basic/ |
| H A D | test_ownership.tc | 31 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/kernel/ |
| H A D | nscommon.c | 99 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()
|
| H A D | audit_tree.c | 35 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 …]
|
| /linux/arch/powerpc/include/asm/ |
| H A D | rheap.h | 23 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/fs/xfs/libxfs/ |
| H A D | xfs_rmap.c | 34 * Lookup the first record less than or equal to [bno, len, owner, offset] 41 uint64_t owner, in xfs_rmap_lookup_le() argument 52 cur->bc_rec.r.rm_owner = owner; in xfs_rmap_lookup_le() 72 * Lookup the record exactly matching [bno, len, owner, offset] 80 uint64_t owner, in xfs_rmap_lookup_eq() argument 87 cur->bc_rec.r.rm_owner = owner; in xfs_rmap_lookup_eq() 95 * by [bno, len, owner, offset]. 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, offse in xfs_rmap_insert() 167 xfs_rmap_delete(struct xfs_btree_cur * rcur,xfs_agblock_t agbno,xfs_extlen_t len,uint64_t owner,uint64_t offset,unsigned int flags) xfs_rmap_delete() argument 434 xfs_rmap_find_left_neighbor(struct xfs_btree_cur * cur,xfs_agblock_t bno,uint64_t owner,uint64_t offset,unsigned int flags,struct xfs_rmap_irec * irec,int * stat) xfs_rmap_find_left_neighbor() argument 533 xfs_rmap_lookup_le_range(struct xfs_btree_cur * cur,xfs_agblock_t bno,uint64_t owner,uint64_t offset,unsigned int flags,struct xfs_rmap_irec * irec,int * stat) xfs_rmap_lookup_le_range() argument 601 xfs_rmap_free_check_owner(struct xfs_btree_cur * cur,uint64_t ltoff,struct xfs_rmap_irec * rec,xfs_extlen_t len,uint64_t owner,uint64_t offset,unsigned int flags) xfs_rmap_free_check_owner() argument 687 uint64_t owner; xfs_rmap_unmap() local 994 xfs_rmap_is_mergeable(struct xfs_rmap_irec * irec,uint64_t owner,unsigned int flags) xfs_rmap_is_mergeable() argument 1034 uint64_t owner; xfs_rmap_map() local 1259 uint64_t owner; xfs_rmap_convert() local 1757 uint64_t owner; xfs_rmap_convert_shared() local 2190 uint64_t owner; xfs_rmap_unmap_shared() local 2384 uint64_t owner; xfs_rmap_map_shared() local 2748 __xfs_rmap_add(struct xfs_trans * tp,enum xfs_rmap_intent_type type,uint64_t owner,bool isrt,int whichfork,struct xfs_bmbt_irec * bmap) __xfs_rmap_add() argument 2839 xfs_rmap_alloc_extent(struct xfs_trans * tp,bool isrt,xfs_fsblock_t fsbno,xfs_extlen_t len,uint64_t owner) xfs_rmap_alloc_extent() argument 2861 xfs_rmap_free_extent(struct xfs_trans * tp,bool isrt,xfs_fsblock_t fsbno,xfs_extlen_t len,uint64_t owner) xfs_rmap_free_extent() argument [all...] |
| /linux/drivers/dma/bestcomm/ |
| H A D | sram.c | 37 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 D | spinlock.h | 24 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 D | map.c | 24 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/include/media/ |
| H A D | media-dev-allocator.h | 40 struct module *owner); 53 struct module *owner); 57 struct module *owner) in media_device_usb_allocate() argument 61 struct module *owner) { } in media_device_delete() argument
|
| /linux/net/dsa/ |
| H A D | tag.c | 134 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/drivers/media/v4l2-core/ |
| H A D | v4l2-spi.c | 25 sd->owner = spi->dev.driver->owner; in v4l2_spi_subdev_init() 53 if (!try_module_get(spi->dev.driver->owner)) in v4l2_spi_new_subdev() 62 if (__v4l2_device_register_subdev(v4l2_dev, sd, sd->owner)) in v4l2_spi_new_subdev() 66 module_put(spi->dev.driver->owner); in v4l2_spi_new_subdev()
|
| /linux/arch/powerpc/lib/ |
| H A D | rheap.c | 140 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 …]
|