Searched refs:refs (Results 101 - 125 of 170) sorted by relevance

1234567

/linux-master/kernel/
H A Daudit_tree.c31 atomic_long_t refs; member in struct:audit_chunk
77 * chunk is refcounted by embedded .refs. Mark associated with the chunk holds
141 if (atomic_long_dec_and_test(&chunk->refs))
200 atomic_long_set(&chunk->refs, 1);
254 atomic_long_inc(&p->refs);
H A Dseccomp.c193 * @refs: Reference count to manage the object lifetime.
196 * requested for the user notifier. When @refs reaches zero,
204 * or equal to @refs. Hence, reaching 0 for @users does not mean
224 * to a task_struct (other than @refs).
227 refcount_t refs; member in struct:seccomp_filter
543 while (orig && refcount_dec_and_test(&orig->refs)) {
687 refcount_set(&sfilter->refs, 1);
930 refcount_inc(&filter->refs);
/linux-master/drivers/android/
H A Dbinder_internal.h183 * @refs: list of references on this node
189 * @local_weak_refs: weak user refs from local process
192 * @local_strong_refs: strong user refs from local process
195 * @tmp_refs: temporary kernel refs
239 struct hlist_head refs; member in struct:binder_node
302 * @node_entry: list entry for node->refs list in target node
318 /* node => refs + procs (proc exit) */
336 * @refs_by_desc: rbtree of refs ordered by ref->desc
338 * @refs_by_node: rbtree of refs ordered by ref->node
548 * @fbo: binder object (nodes and refs)
[all...]
H A Dbinder.c897 !hlist_empty(&node->refs))
907 if (hlist_empty(&node->refs) && !node->local_strong_refs &&
1058 * into the given proc rb_trees and node refs list.
1122 hlist_add_head(&new_ref->node_entry, &node->refs);
2849 * binder_get_node_refs_for_txn() - Get required refs on node for txn
2850 * @node: struct binder_node for which to get refs
2865 * Return: The target_node with refs taken or NULL if no @node->proc is NULL.
4523 weak = !hlist_empty(&node->refs) ||
5764 static int binder_node_release(struct binder_node *node, int refs) argument
5779 if (hlist_empty(&node->refs)
[all...]
/linux-master/tools/mm/
H A Dslabinfo.c31 int refs; member in struct:slabinfo
1144 s->refs++;
1162 if (!show_single_ref && a->slab->refs == 1)
1192 if (s->refs > 1 && !show_first_alias)
1249 slab->refs = 0;
/linux-master/arch/x86/kernel/
H A Dalternative.c2091 atomic_t refs; member in struct:bp_patching_desc
2101 if (!raw_atomic_inc_not_zero(&desc->refs))
2112 raw_atomic_dec(&desc->refs);
2145 * bp_desc.refs = 1 INT3
2147 * write INT3 if (bp_desc.refs != 0)
2253 atomic_set_release(&bp_desc.refs, 1);
2365 * Remove and wait for refs to be zero.
2367 if (!atomic_dec_and_test(&bp_desc.refs))
2368 atomic_cond_read_acquire(&bp_desc.refs, !VAL);
/linux-master/drivers/base/test/
H A Dproperty-entry-test.c412 static const struct software_node_ref_args refs[] = { local
420 PROPERTY_ENTRY_REF_ARRAY("ref-3", refs),
/linux-master/fs/btrfs/
H A Draid56.c89 if (!refcount_dec_and_test(&rbio->refs))
389 refcount_dec(&rbio->refs);
477 refcount_inc(&rbio->refs);
672 refcount_dec(&cur->refs);
716 refcount_inc(&rbio->refs);
763 refcount_dec(&rbio->refs);
780 refcount_inc(&next->refs);
958 refcount_set(&rbio->refs, 1);
H A Dextent_io.h107 atomic_t refs; member in struct:extent_buffer
H A Dctree.c268 if (atomic_inc_not_zero(&eb->refs)) {
417 u64 refs; local
443 &refs, &flags, NULL);
446 if (unlikely(refs == 0)) {
456 refs = 1;
468 if (refs > 1) {
620 atomic_inc(&cow->refs);
1134 atomic_inc(&left->refs);
1705 atomic_inc(&b->refs);
2897 atomic_inc(&c->refs);
[all...]
H A Daccessors.h341 BTRFS_SETGET_FUNCS(extent_refs, struct btrfs_extent_item, refs, 64);
740 BTRFS_SETGET_FUNCS(disk_root_refs, struct btrfs_root_item, refs, 32);
749 BTRFS_SETGET_STACK_FUNCS(root_refs, struct btrfs_root_item, refs, 32);
H A Dprint-tree.c118 pr_info("\t\textent refs %llu gen %llu flags %llu\n",
224 * Helper to output refs and locking status of extent buffer. Useful to debug
230 btrfs_info(eb->fs_info, "refs %u lock_owner %u current %u",
231 atomic_read(&eb->refs), eb->lock_owner, current->pid);
285 pr_info("\t\troot data bytenr %llu refs %u\n",
H A Dctree.h240 refcount_t refs; member in struct:btrfs_root
/linux-master/io_uring/
H A Dtctx.c30 refcount_set(&hash->refs, 1);
H A Dkbuf.c51 atomic_set(&bl->refs, 1);
377 if (atomic_dec_and_test(&bl->refs)) {
801 ret = atomic_inc_not_zero(&bl->refs);
H A Drsrc.c187 if (node->refs)
212 ref_node->refs = 1;
/linux-master/fs/btrfs/tests/
H A Dextent-map-tests.c28 if (refcount_read(&em->refs) != 1) {
31 "em leak: em (start %llu len %llu block_start %llu block_len %llu) refs %d",
33 em->block_len, refcount_read(&em->refs));
35 refcount_set(&em->refs, 1);
/linux-master/block/
H A Dblk-core.c288 if (refcount_dec_and_test(&q->refs))
434 refcount_set(&q->refs, 1);
482 refcount_inc(&q->refs);
/linux-master/fs/hugetlbfs/
H A Dinode.c502 kref_get(&vma_lock->refs);
530 kref_put(&vma_lock->refs, hugetlb_vma_lock_release);
544 kref_put(&vma_lock->refs, hugetlb_vma_lock_release);
700 resv_map_release(&resv_map->refs);
1037 kref_put(&resv_map->refs, resv_map_release);
/linux-master/mm/
H A Dmigrate.c384 int refs = 1; local
386 return refs;
388 refs += folio_nr_pages(folio);
390 refs++;
392 return refs;
455 /* Move dirty while page refs frozen and newpage not yet exposed */
745 /* Check whether page does not have extra refs before we do more work */
/linux-master/include/linux/
H A Dmm.h1444 bool __put_devmap_managed_folio_refs(struct folio *folio, int refs);
1445 static inline bool put_devmap_managed_folio_refs(struct folio *folio, int refs) argument
1451 return __put_devmap_managed_folio_refs(folio, refs);
1454 static inline bool put_devmap_managed_folio_refs(struct folio *folio, int refs) argument
1514 * @refs: The amount to subtract from the folio's reference count.
1525 static inline void folio_put_refs(struct folio *folio, int refs) argument
1527 if (folio_ref_sub_and_test(folio, refs))
1531 void folios_put_refs(struct folio_batch *folios, unsigned int *refs);
/linux-master/drivers/iommu/iommufd/
H A Dselftest.c880 unsigned int refs)
901 if (count / GUP_PIN_COUNTING_BIAS != refs) {
1414 cmd->check_refs.length, cmd->check_refs.refs);
878 iommufd_test_md_check_refs(struct iommufd_ucmd *ucmd, void __user *uptr, size_t length, unsigned int refs) argument
/linux-master/fs/ocfs2/dlm/
H A Ddlmdebug.c92 res->last_used, kref_read(&res->refs),
507 kref_read(&res->refs));
H A Ddlmcommon.h278 struct kref refs; member in struct:dlm_lock_resource
859 kref_get(&res->refs);
/linux-master/drivers/media/platform/nvidia/tegra-vde/
H A Dh264.c740 frame_num = b->refs[ref_id].frame_num;
822 if (b.refs[dpb_idx].top_field_order_cnt < b.cur_pic_order_count)

Completed in 693 milliseconds

1234567