/linux-master/include/linux/ |
H A D | refcount_types.h | 9 * @refs: atomic_t counter field 16 atomic_t refs; member in struct:refcount_struct
|
H A D | refcount.h | 104 #define REFCOUNT_INIT(n) { .refs = ATOMIC_INIT(n), } 125 atomic_set(&r->refs, n); 136 return atomic_read(&r->refs); 147 } while (!atomic_try_cmpxchg_relaxed(&r->refs, &old, old + i)); 184 int old = atomic_fetch_add_relaxed(i, &r->refs); 264 int old = atomic_fetch_sub_release(i, &r->refs); 330 int old = atomic_fetch_sub_release(1, &r->refs);
|
/linux-master/tools/bpf/bpftool/ |
H A D | pids.c | 34 struct obj_refs *refs; local 40 refs = entry->pvalue; 42 for (i = 0; i < refs->ref_cnt; i++) { 43 if (refs->refs[i].pid == e->pid) 47 tmp = realloc(refs->refs, (refs->ref_cnt + 1) * sizeof(*ref)); 53 refs->refs 186 struct obj_refs *refs = entry->pvalue; local 204 struct obj_refs *refs = entry->pvalue; local 236 struct obj_refs *refs = entry->pvalue; local [all...] |
/linux-master/tools/include/linux/ |
H A D | refcount.h | 53 atomic_t refs; member in struct:refcount_struct 56 #define REFCOUNT_INIT(n) { .refs = ATOMIC_INIT(n), } 60 atomic_set(&r->refs, n); 65 return atomic_read(&r->refs); 78 unsigned int old, new, val = atomic_read(&r->refs); 89 old = atomic_cmpxchg_relaxed(&r->refs, val, new); 123 unsigned int old, new, val = atomic_read(&r->refs); 135 old = atomic_cmpxchg_release(&r->refs, val, new);
|
/linux-master/io_uring/ |
H A D | refs.h | 12 ((unsigned int) atomic_read(&(req->refs)) + 127u <= 127u) 17 return atomic_inc_not_zero(&req->refs); 26 return atomic_dec_and_test(&req->refs); 33 atomic_inc(&req->refs); 40 atomic_set(&req->refs, nr);
|
H A D | sqpoll.h | 4 refcount_t refs; member in struct:io_sq_data
|
H A D | io-wq.h | 28 refcount_t refs; member in struct:io_wq_hash 35 if (refcount_dec_and_test(&hash->refs))
|
H A D | waitid.c | 29 atomic_t refs; member in struct:io_waitid 124 WARN_ON_ONCE(!(atomic_read(&iw->refs) & IO_WAITID_REF_MASK)); 146 atomic_or(IO_WAITID_CANCEL_FLAG, &iw->refs); 149 if (atomic_fetch_inc(&iw->refs) & IO_WAITID_REF_MASK) 212 if (!atomic_sub_return(1, &iw->refs)) 246 if (!(atomic_read(&iw->refs) & IO_WAITID_CANCEL_FLAG)) { 276 if (atomic_fetch_inc(&iw->refs) & IO_WAITID_REF_MASK) 322 atomic_set(&iw->refs, 1);
|
/linux-master/drivers/media/v4l2-core/ |
H A D | v4l2-h264.c | 60 b->refs[i].longterm = true; 68 if (!b->refs[i].longterm && dpb[i].frame_num > cur_frame_num) 69 b->refs[i].frame_num = (int)dpb[i].frame_num - 72 b->refs[i].frame_num = dpb[i].frame_num; 74 b->refs[i].top_field_order_cnt = dpb[i].top_field_order_cnt; 75 b->refs[i].bottom_field_order_cnt = dpb[i].bottom_field_order_cnt; 113 return min(b->refs[ref->index].top_field_order_cnt, 114 b->refs[ref->index].bottom_field_order_cnt); 116 return b->refs[ref->index].top_field_order_cnt; 118 return b->refs[re [all...] |
/linux-master/lib/ |
H A D | refcount.c | 59 return atomic_try_cmpxchg_release(&r->refs, &val, 0); 76 unsigned int new, val = atomic_read(&r->refs); 91 } while (!atomic_try_cmpxchg_release(&r->refs, &val, new));
|
/linux-master/include/uapi/xen/ |
H A D | gntdev.h | 70 struct ioctl_gntdev_grant_ref refs[1]; member in struct:ioctl_gntdev_map_grant_ref 226 * Create a dma-buf [1] from grant references @refs of count @count provided 247 /* Number of grant references in @refs array. */ 256 __u32 refs[1]; member in struct:ioctl_gntdev_dmabuf_exp_from_refs 281 * to the pages of that dma-buf into array @refs of size @count. 290 /* Number of grant references in @refs array. */ 298 __u32 refs[1]; member in struct:ioctl_gntdev_dmabuf_imp_to_refs
|
/linux-master/drivers/gpu/drm/nouveau/ |
H A D | nouveau_vmm.h | 9 int refs; member in struct:nouveau_vma
|
H A D | nouveau_vmm.c | 65 if (vma && --vma->refs <= 0) { 86 vma->refs++; 93 vma->refs = 1;
|
/linux-master/include/media/ |
H A D | v4l2-h264.h | 18 * @refs.top_field_order_cnt: top field order count 19 * @refs.bottom_field_order_cnt: bottom field order count 20 * @refs.frame_num: reference frame number 21 * @refs.longterm: set to true for a long term reference 22 * @refs: array of references 27 * @num_valid: number of valid references in the refs array 39 } refs[V4L2_H264_NUM_DPB_ENTRIES]; member in struct:v4l2_h264_reflist_builder
|
/linux-master/drivers/gpu/drm/nouveau/nvkm/core/ |
H A D | event.c | 34 if (--event->refs[index * event->types_nr + type] == 0) { 51 if (++event->refs[index * event->types_nr + type] == 1) { 175 if (!event->refs || WARN_ON(id >= event->index_nr)) 194 if (event->refs) { 195 kfree(event->refs); 196 event->refs = NULL; 204 event->refs = kzalloc(array3_size(index_nr, types_nr, sizeof(*event->refs)), GFP_KERNEL); 205 if (!event->refs)
|
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | bpf_iter_netlink.c | 46 s->sk_wmem_alloc.refs.counter - 1, 47 nlk->cb_running, s->sk_refcnt.refs.counter);
|
H A D | bpf_iter_ipv6_route.c | 50 rt->fib6_ref.refs.counter, 0, flags, dev->name); 53 rt->fib6_ref.refs.counter, 0, flags);
|
H A D | bpf_iter_udp6.c | 70 inet->sk.sk_wmem_alloc.refs.counter - 1, 74 inet->sk.sk_refcnt.refs.counter, udp_sk,
|
H A D | bpf_iter_udp4.c | 62 inet->sk.sk_wmem_alloc.refs.counter - 1, 66 inet->sk.sk_refcnt.refs.counter, udp_sk,
|
/linux-master/fs/smb/client/ |
H A D | dfs_cache.c | 250 static inline void dump_refs(const struct dfs_info3_param *refs, int numrefs) argument 256 const struct dfs_info3_param *ref = &refs[i]; 382 static int copy_ref_data(const struct dfs_info3_param *refs, int numrefs, argument 388 ce->ttl = max_t(int, refs[0].ttl, CACHE_MIN_TTL); 390 ce->srvtype = refs[0].server_type; 391 ce->hdr_flags = refs[0].flags; 392 ce->ref_flags = refs[0].ref_flag; 393 ce->path_consumed = refs[0].path_consumed; 398 t = alloc_target(refs[i].node_name, refs[ 420 alloc_cache_entry(struct dfs_info3_param *refs, int numrefs) argument 475 add_cache_entry_locked(struct dfs_info3_param *refs, int numrefs) argument 620 update_cache_entry_locked(struct cache_entry *ce, const struct dfs_info3_param *refs, int numrefs) argument 646 get_dfs_referral(const unsigned int xid, struct cifs_ses *ses, const char *path, struct dfs_info3_param **refs, int *numrefs) argument 688 struct dfs_info3_param *refs = NULL; local [all...] |
H A D | dfs.h | 28 struct dfs_ref refs[MAX_NESTED_LINKS]; member in struct:dfs_ref_walk 31 #define ref_walk_start(w) ((w)->refs) 32 #define ref_walk_end(w) (&(w)->refs[ARRAY_SIZE((w)->refs) - 1])
|
/linux-master/drivers/xen/ |
H A D | gntdev-dmabuf.c | 44 grant_ref_t *refs; member in struct:gntdev_dmabuf::__anon522::__anon524 437 int count, u32 domid, u32 *refs, u32 *fd) 449 map->grants[i].ref = refs[i]; 488 dmabuf_imp_grant_foreign_access(unsigned long *gfns, u32 *refs, argument 512 refs[i] = cur_ref; 522 static void dmabuf_imp_end_foreign_access(u32 *refs, int count) argument 527 if (refs[i] != INVALID_GRANT_REF) 528 gnttab_end_foreign_access(refs[i], NULL); 533 kfree(gntdev_dmabuf->u.imp.refs); 546 gntdev_dmabuf->u.imp.refs 436 dmabuf_exp_from_refs(struct gntdev_priv *priv, int flags, int count, u32 domid, u32 *refs, u32 *fd) argument 735 u32 *refs; local [all...] |
/linux-master/include/net/ |
H A D | mctpdevice.h | 22 refcount_t refs; member in struct:mctp_dev
|
/linux-master/tools/net/ynl/samples/ |
H A D | page-pool.c | 18 size_t refs, bytes; member in struct:stat::__anon3332 52 s->live[l].refs += pp->inflight; 126 printf("\t\trefs: %zu bytes: %zu (refs: %zu bytes: %zu)\n", 127 s->live[1].refs, s->live[1].bytes, 128 s->live[0].refs, s->live[0].bytes);
|
/linux-master/drivers/gpu/drm/nouveau/nvkm/engine/fifo/ |
H A D | cgrp.h | 11 refcount_t refs; member in struct:nvkm_vctx 21 refcount_t refs; member in struct:nvkm_ectx
|