| /linux-6.15/tools/bpf/bpftool/ |
| H A D | pids.c | 43 if (refs->refs[i].pid == e->pid) in add_ref() 47 tmp = realloc(refs->refs, (refs->ref_cnt + 1) * sizeof(*ref)); in add_ref() 53 refs->refs = tmp; in add_ref() 54 ref = &refs->refs[refs->ref_cnt]; in add_ref() 64 refs = calloc(1, sizeof(*refs)); in add_ref() 71 refs->refs = malloc(sizeof(*refs->refs)); in add_ref() 72 if (!refs->refs) { in add_ref() 78 ref = &refs->refs[0]; in add_ref() 195 free(refs->refs); in delete_obj_refs_table() 223 struct obj_ref *ref = &refs->refs[i]; in emit_obj_refs_json() [all …]
|
| /linux-6.15/drivers/media/v4l2-core/ |
| H A D | v4l2-h264.c | 60 b->refs[i].longterm = true; in v4l2_h264_init_reflist_builder() 138 if (builder->refs[idxa].longterm != builder->refs[idxb].longterm) { in v4l2_h264_p_ref_list_cmp() 140 if (!builder->refs[idxa].longterm) in v4l2_h264_p_ref_list_cmp() 154 if (!builder->refs[idxa].longterm) in v4l2_h264_p_ref_list_cmp() 159 return builder->refs[idxa].frame_num < builder->refs[idxb].frame_num ? in v4l2_h264_p_ref_list_cmp() 177 if (builder->refs[idxa].longterm != builder->refs[idxb].longterm) { in v4l2_h264_b0_ref_list_cmp() 179 if (!builder->refs[idxa].longterm) in v4l2_h264_b0_ref_list_cmp() 186 if (builder->refs[idxa].longterm) in v4l2_h264_b0_ref_list_cmp() 222 if (builder->refs[idxa].longterm != builder->refs[idxb].longterm) { in v4l2_h264_b1_ref_list_cmp() 224 if (!builder->refs[idxa].longterm) in v4l2_h264_b1_ref_list_cmp() [all …]
|
| /linux-6.15/tools/include/linux/ |
| H A D | refcount.h | 53 atomic_t refs; member 56 #define REFCOUNT_INIT(n) { .refs = ATOMIC_INIT(n), } 60 atomic_set(&r->refs, n); in refcount_set() 65 atomic_set(&r->refs, n); in refcount_set_release() 70 return atomic_read(&r->refs); in refcount_read() 83 unsigned int old, new, val = atomic_read(&r->refs); in refcount_inc_not_zero() 94 old = atomic_cmpxchg_relaxed(&r->refs, val, new); in refcount_inc_not_zero() 128 unsigned int old, new, val = atomic_read(&r->refs); in refcount_sub_and_test() 140 old = atomic_cmpxchg_release(&r->refs, val, new); in refcount_sub_and_test()
|
| /linux-6.15/io_uring/ |
| H A D | refs.h | 12 ((unsigned int) atomic_read(&(req->refs)) + 127u <= 127u) 17 return atomic_inc_not_zero(&req->refs); in req_ref_inc_not_zero() 24 return atomic_dec_and_test(&req->refs); in req_ref_put_and_test_atomic() 33 return atomic_dec_and_test(&req->refs); in req_ref_put_and_test() 40 atomic_inc(&req->refs); in req_ref_get() 47 atomic_dec(&req->refs); in req_ref_put() 54 atomic_set(&req->refs, nr); in __io_req_set_refcount()
|
| H A D | waitid.c | 29 atomic_t refs; member 119 WARN_ON_ONCE(!(atomic_read(&iw->refs) & IO_WAITID_REF_MASK)); in io_waitid_complete() 140 atomic_or(IO_WAITID_CANCEL_FLAG, &iw->refs); in __io_waitid_cancel() 143 if (atomic_fetch_inc(&iw->refs) & IO_WAITID_REF_MASK) in __io_waitid_cancel() 171 if (!atomic_sub_return(1, &iw->refs)) in io_waitid_drop_issue_ref() 205 if (!(atomic_read(&iw->refs) & IO_WAITID_CANCEL_FLAG)) { in io_waitid_cb() 236 if (atomic_fetch_inc(&iw->refs) & IO_WAITID_REF_MASK) in io_waitid_wait() 282 atomic_set(&iw->refs, 1); in io_waitid()
|
| H A D | eventfd.c | 19 refcount_t refs; member 38 if (refcount_dec_and_test(&ev_fd->refs)) in io_eventfd_put() 108 if (io_eventfd_trigger(ev_fd) && refcount_inc_not_zero(&ev_fd->refs)) in io_eventfd_grab() 186 refcount_set(&ev_fd->refs, 1); in io_eventfd_register()
|
| H A D | rsrc.h | 17 int refs; member 36 refcount_t refs; member 102 if (!--node->refs) in io_put_rsrc_node() 133 node->refs++; in io_req_assign_rsrc_node()
|
| /linux-6.15/fs/smb/client/ |
| H A D | dfs_cache.c | 391 ce->srvtype = refs[0].server_type; in copy_ref_data() 392 ce->hdr_flags = refs[0].flags; in copy_ref_data() 393 ce->ref_flags = refs[0].ref_flag; in copy_ref_data() 399 t = alloc_target(refs[i].node_name, refs[i].path_consumed); in copy_ref_data() 430 ce->path = refs[0].path_name; in alloc_cache_entry() 431 refs[0].path_name = NULL; in alloc_cache_entry() 488 rc = cache_entry_hash(refs[0].path_name, strlen(refs[0].path_name), &hash); in add_cache_entry_locked() 650 *refs = NULL; in get_dfs_referral() 723 dump_refs(refs, numrefs); in cache_refresh_path() 745 free_dfs_info_array(refs, numrefs); in cache_refresh_path() [all …]
|
| /linux-6.15/drivers/xen/ |
| H A D | gntdev-dmabuf.c | 44 grant_ref_t *refs; member 449 map->grants[i].ref = refs[i]; in dmabuf_exp_from_refs() 512 refs[i] = cur_ref; in dmabuf_imp_grant_foreign_access() 549 if (!gntdev_dmabuf->u.imp.refs) in dmabuf_imp_alloc_storage() 735 u32 *refs; in gntdev_ioctl_dmabuf_exp_from_refs() local 750 refs = kcalloc(op.count, sizeof(*refs), GFP_KERNEL); in gntdev_ioctl_dmabuf_exp_from_refs() 751 if (!refs) in gntdev_ioctl_dmabuf_exp_from_refs() 754 if (copy_from_user(refs, u->refs, sizeof(*refs) * op.count) != 0) { in gntdev_ioctl_dmabuf_exp_from_refs() 760 op.domid, refs, &op.fd); in gntdev_ioctl_dmabuf_exp_from_refs() 768 kfree(refs); in gntdev_ioctl_dmabuf_exp_from_refs() [all …]
|
| /linux-6.15/include/linux/ |
| H A D | refcount.h | 113 #define REFCOUNT_INIT(n) { .refs = ATOMIC_INIT(n), } 134 atomic_set(&r->refs, n); in refcount_set() 159 atomic_set_release(&r->refs, n); in refcount_set_release() 170 return atomic_read(&r->refs); in refcount_read() 181 } while (!atomic_try_cmpxchg_relaxed(&r->refs, &old, old + i)); in __refcount_add_not_zero() 230 } while (!atomic_try_cmpxchg_acquire(&r->refs, &old, old + i)); in __refcount_add_not_zero_limited_acquire() 283 int old = atomic_fetch_add_relaxed(i, &r->refs); in __refcount_add() 389 int old = atomic_fetch_sub_release(i, &r->refs); in __refcount_sub_and_test() 455 int old = atomic_fetch_sub_release(1, &r->refs); in __refcount_dec()
|
| /linux-6.15/drivers/gpu/drm/nouveau/nvkm/core/ |
| H A D | event.c | 34 if (--event->refs[index * event->types_nr + type] == 0) { in nvkm_event_put() 51 if (++event->refs[index * event->types_nr + type] == 1) { in nvkm_event_get() 175 if (!event->refs || WARN_ON(id >= event->index_nr)) in nvkm_event_ntfy() 194 if (event->refs) { in nvkm_event_fini() 195 kfree(event->refs); in nvkm_event_fini() 196 event->refs = NULL; in nvkm_event_fini() 204 event->refs = kzalloc(array3_size(index_nr, types_nr, sizeof(*event->refs)), GFP_KERNEL); in __nvkm_event_init() 205 if (!event->refs) in __nvkm_event_init()
|
| /linux-6.15/scripts/lib/abi/ |
| H A D | system_symbols.py | 175 def check_file(self, refs, found): argument 181 for names in refs: 238 refs = [] 241 refs.append(ref) 245 yield refs 247 refs = [] 249 yield refs 321 for refs in self.get_fileref(all_refs, chunk_size): 322 if refs: 324 f_list.append(exe.submit(self.check_file, refs, found))
|
| /linux-6.15/tools/testing/selftests/net/ |
| H A D | nl_netdev.py | 75 refs = sum([pp["inflight"] for pp in pp_list]) 76 ksft_eq(refs, 0) 87 refs = sum([pp["inflight"] for pp in pp_list if pp.get("ifindex") == nsim.ifindex]) 88 ksft_ge(refs, 1) 94 refs = sum([pp["inflight"] for pp in pp_list]) 95 ksft_eq(refs, 1)
|
| /linux-6.15/net/ieee802154/6lowpan/ |
| H A D | reassembly.c | 35 int *refs); 49 int refs = 1; in lowpan_frag_expire() local 58 inet_frag_kill(&fq->q, &refs); in lowpan_frag_expire() 61 inet_frag_putn(&fq->q, refs); in lowpan_frag_expire() 88 int *refs) in lowpan_frag_queue() argument 149 res = lowpan_frag_reasm(fq, skb, prev_tail, ldev, refs); in lowpan_frag_queue() 169 int *refs) in lowpan_frag_reasm() argument 173 inet_frag_kill(&fq->q, refs); in lowpan_frag_reasm() 310 int ret, refs = 0; in lowpan_frag_rcv() local 313 ret = lowpan_frag_queue(fq, skb, frag_type, &refs); in lowpan_frag_rcv() [all …]
|
| /linux-6.15/net/ipv6/netfilter/ |
| H A D | nf_conntrack_reasm.c | 127 int *refs); 172 int *refs) in nf_ct_frag6_queue() argument 226 inet_frag_kill(&fq->q, refs); in nf_ct_frag6_queue() 292 err = nf_ct_frag6_reasm(fq, skb, prev, dev, refs); in nf_ct_frag6_queue() 306 inet_frag_kill(&fq->q, refs); in nf_ct_frag6_queue() 321 int *refs) in nf_ct_frag6_reasm() argument 327 inet_frag_kill(&fq->q, refs); in nf_ct_frag6_reasm() 378 inet_frag_kill(&fq->q, refs); in nf_ct_frag6_reasm() 453 int refs = 0; in nf_ct_frag6_gather() local 491 ret = nf_ct_frag6_queue(fq, skb, fhdr, nhoff, &refs); in nf_ct_frag6_gather() [all …]
|
| /linux-6.15/net/ipv4/ |
| H A D | ip_fragment.c | 80 int *refs); 131 int refs = 1; in ip_expire() local 148 inet_frag_kill(&qp->q, &refs); in ip_expire() 191 inet_frag_putn(&qp->q, refs); in ip_expire() 287 inet_frag_kill(&qp->q, refs); in ip_frag_queue() 374 inet_frag_kill(&qp->q, refs); in ip_frag_queue() 391 inet_frag_kill(&qp->q, refs); in ip_frag_queue() 406 int *refs) in ip_frag_reasm() argument 414 inet_frag_kill(&qp->q, refs); in ip_frag_reasm() 489 int ret, refs = 0; in ip_defrag() local [all …]
|
| /linux-6.15/mm/ |
| H A D | gup.c | 99 folio_put_refs(folio, refs); in try_get_folio() 118 folio_put_refs(folio, refs); in gup_put_folio() 154 folio_ref_add(folio, refs); in try_grab_folio() 168 folio_ref_add(folio, refs); in try_grab_folio() 566 folio_put_refs(folio, refs); in try_grab_folio_fast() 3087 int refs; in gup_fast_pmd_leaf() local 3123 *nr += refs; in gup_fast_pmd_leaf() 3134 int refs; in gup_fast_pud_leaf() local 3171 *nr += refs; in gup_fast_pud_leaf() 3180 int refs; in gup_fast_pgd_leaf() local [all …]
|
| /linux-6.15/fs/btrfs/ |
| H A D | delayed-inode.c | 76 refcount_inc(&node->refs); in btrfs_get_delayed_node() 108 refcount_inc(&node->refs); in btrfs_get_delayed_node() 143 refcount_set(&node->refs, 2); in btrfs_get_or_create_delayed_node() 223 refcount_inc(&node->refs); in btrfs_first_delayed_node() 250 refcount_inc(&next->refs); in btrfs_next_delayed_node() 306 refcount_inc(&node->refs); in btrfs_first_prepared_delayed_node() 334 refcount_set(&item->refs, 1); in btrfs_alloc_delayed_item() 1699 refcount_inc(&item->refs); in btrfs_readdir_get_delayed_items() 1706 refcount_inc(&item->refs); in btrfs_readdir_get_delayed_items() 2157 refcount_dec(&node->refs); in btrfs_log_get_delayed_items() [all …]
|
| /linux-6.15/lib/ |
| H A D | refcount.c | 59 return atomic_try_cmpxchg_release(&r->refs, &val, 0); in refcount_dec_if_one() 76 unsigned int new, val = atomic_read(&r->refs); in refcount_dec_not_one() 91 } while (!atomic_try_cmpxchg_release(&r->refs, &val, new)); in refcount_dec_not_one()
|
| /linux-6.15/include/net/ |
| H A D | inet_frag.h | 140 void inet_frag_kill(struct inet_frag_queue *q, int *refs); 148 static inline void inet_frag_putn(struct inet_frag_queue *q, int refs) in inet_frag_putn() argument 150 if (refs && refcount_sub_and_test(refs, &q->refcnt)) in inet_frag_putn()
|
| /linux-6.15/drivers/gpu/drm/nouveau/nvkm/engine/fifo/ |
| H A D | cgrp.c | 39 if (refcount_dec_and_test(&ectx->refs)) { in nvkm_cgrp_ectx_put() 65 refcount_inc(&ectx->refs); in nvkm_cgrp_ectx_get() 76 refcount_set(&ectx->refs, 1); in nvkm_cgrp_ectx_get() 100 if (refcount_dec_and_test(&vctx->refs)) { in nvkm_cgrp_vctx_put() 130 refcount_inc(&vctx->refs); in nvkm_cgrp_vctx_get() 151 refcount_set(&vctx->refs, 1); in nvkm_cgrp_vctx_get()
|
| /linux-6.15/drivers/thermal/ |
| H A D | k3_j72xx_bandgap.c | 78 int refs[4]; member 90 idx1 = err_vals->refs[seg]; in create_table_segments() 92 idx2 = err_vals->refs[seg + 1]; in create_table_segments() 95 ref1 = err_vals->refs[seg]; in create_table_segments() 96 ref2 = err_vals->refs[seg + 1]; in create_table_segments() 490 err_vals.refs[0] = MINUS40CREF; in k3_j72xx_bandgap_probe() 491 err_vals.refs[1] = PLUS30CREF; in k3_j72xx_bandgap_probe() 492 err_vals.refs[2] = PLUS125CREF; in k3_j72xx_bandgap_probe() 493 err_vals.refs[3] = PLUS150CREF; in k3_j72xx_bandgap_probe()
|
| /linux-6.15/net/ipv6/ |
| H A D | reassembly.c | 72 int *refs); 109 u32 *prob_offset, int *refs) in ip6_frag_queue() argument 224 err = ip6_frag_reasm(fq, skb, prev_tail, dev, refs); in ip6_frag_queue() 242 inet_frag_kill(&fq->q, refs); in ip6_frag_queue() 259 int *refs) in ip6_frag_reasm() argument 267 inet_frag_kill(&fq->q, refs); in ip6_frag_reasm() 321 inet_frag_kill(&fq->q, refs); in ip6_frag_reasm() 382 int ret, refs = 0; in ipv6_frag_rcv() local 388 &prob_offset, &refs); in ipv6_frag_rcv() 392 inet_frag_putn(&fq->q, refs); in ipv6_frag_rcv()
|
| /linux-6.15/include/uapi/xen/ |
| H A D | gntdev.h | 70 struct ioctl_gntdev_grant_ref refs[1]; member 256 __u32 refs[1]; member 298 __u32 refs[1]; member
|
| /linux-6.15/tools/net/ynl/samples/ |
| H A D | page-pool.c | 18 size_t refs, bytes; member 52 s->live[l].refs += pp->inflight; in count() 127 s->live[1].refs, s->live[1].bytes, in main() 128 s->live[0].refs, s->live[0].bytes); in main()
|