Searched refs:refs (Results 1 - 25 of 169) sorted by relevance

1234567

/linux-master/include/linux/
H A Drefcount_types.h9 * @refs: atomic_t counter field
16 atomic_t refs; member in struct:refcount_struct
H A Drefcount.h104 #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 Dpids.c34 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 Drefcount.h53 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 Drefs.h12 ((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 Dsqpoll.h4 refcount_t refs; member in struct:io_sq_data
H A Dio-wq.h28 refcount_t refs; member in struct:io_wq_hash
35 if (refcount_dec_and_test(&hash->refs))
H A Dwaitid.c29 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 Dv4l2-h264.c60 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 Drefcount.c59 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 Dgntdev.h70 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 Dnouveau_vmm.h9 int refs; member in struct:nouveau_vma
H A Dnouveau_vmm.c65 if (vma && --vma->refs <= 0) {
86 vma->refs++;
93 vma->refs = 1;
/linux-master/include/media/
H A Dv4l2-h264.h18 * @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 Devent.c34 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 Dbpf_iter_netlink.c46 s->sk_wmem_alloc.refs.counter - 1,
47 nlk->cb_running, s->sk_refcnt.refs.counter);
H A Dbpf_iter_ipv6_route.c50 rt->fib6_ref.refs.counter, 0, flags, dev->name);
53 rt->fib6_ref.refs.counter, 0, flags);
H A Dbpf_iter_udp6.c70 inet->sk.sk_wmem_alloc.refs.counter - 1,
74 inet->sk.sk_refcnt.refs.counter, udp_sk,
H A Dbpf_iter_udp4.c62 inet->sk.sk_wmem_alloc.refs.counter - 1,
66 inet->sk.sk_refcnt.refs.counter, udp_sk,
/linux-master/fs/smb/client/
H A Ddfs_cache.c250 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 Ddfs.h28 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 Dgntdev-dmabuf.c44 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 Dmctpdevice.h22 refcount_t refs; member in struct:mctp_dev
/linux-master/tools/net/ynl/samples/
H A Dpage-pool.c18 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 Dcgrp.h11 refcount_t refs; member in struct:nvkm_vctx
21 refcount_t refs; member in struct:nvkm_ectx

Completed in 283 milliseconds

1234567