Home
last modified time | relevance | path

Searched refs:refs (Results 1 – 18 of 18) sorted by relevance

/include/linux/
Dfreelist.h19 atomic_t refs; member
50 atomic_set_release(&node->refs, 1); in __freelist_add()
57 if (atomic_fetch_add_release(REFS_ON_FREELIST - 1, &node->refs) == 1) in __freelist_add()
70 if (!atomic_fetch_add_release(REFS_ON_FREELIST, &node->refs)) { in freelist_add()
82 unsigned int refs; in freelist_try_get() local
86 refs = atomic_read(&head->refs); in freelist_try_get()
87 if ((refs & REFS_MASK) == 0 || in freelist_try_get()
88 !atomic_try_cmpxchg_acquire(&head->refs, &refs, refs+1)) { in freelist_try_get()
106 WARN_ON_ONCE(atomic_read(&head->refs) & REFS_ON_FREELIST); in freelist_try_get()
112 atomic_fetch_add(-2, &head->refs); in freelist_try_get()
[all …]
Drefcount.h112 atomic_t refs; member
115 #define REFCOUNT_INIT(n) { .refs = ATOMIC_INIT(n), }
136 atomic_set(&r->refs, n); in refcount_set()
147 return atomic_read(&r->refs); in refcount_read()
157 } while (!atomic_try_cmpxchg_relaxed(&r->refs, &old, old + i)); in __refcount_add_not_zero()
193 int old = atomic_fetch_add_relaxed(i, &r->refs); in __refcount_add()
272 int old = atomic_fetch_sub_release(i, &r->refs); in __refcount_sub_and_test()
338 int old = atomic_fetch_sub_release(1, &r->refs); in __refcount_dec()
Dio_uring_types.h185 atomic_t refs; member
215 struct percpu_ref refs; member
578 atomic_t refs; member
Dmm_inline.h138 static inline int lru_tier_from_refs(int refs) in lru_tier_from_refs() argument
140 VM_WARN_ON_ONCE(refs > BIT(LRU_REFS_WIDTH)); in lru_tier_from_refs()
143 return order_base_2(refs + 1); in lru_tier_from_refs()
Dbpf_verifier.h318 struct bpf_reference_state *refs; member
Dhugetlb.h57 struct kref refs; member
111 struct kref refs; member
Dmm.h1441 bool __put_devmap_managed_page_refs(struct page *page, int refs);
1442 static inline bool put_devmap_managed_page_refs(struct page *page, int refs) in put_devmap_managed_page_refs() argument
1448 return __put_devmap_managed_page_refs(page, refs); in put_devmap_managed_page_refs()
1451 static inline bool put_devmap_managed_page_refs(struct page *page, int refs) in put_devmap_managed_page_refs() argument
1527 static inline void folio_put_refs(struct folio *folio, int refs) in folio_put_refs() argument
1529 if (folio_ref_sub_and_test(folio, refs)) in folio_put_refs()
Dblkdev.h455 refcount_t refs; member
/include/uapi/xen/
Dgntdev.h70 struct ioctl_gntdev_grant_ref refs[1]; member
256 __u32 refs[1]; member
298 __u32 refs[1]; member
/include/kvm/
Diommu.h51 atomic_t refs; member
/include/media/
Dv4l2-h264.h39 } refs[V4L2_H264_NUM_DPB_ENTRIES]; member
/include/net/
Dmctpdevice.h22 refcount_t refs; member
Dmctp.h155 refcount_t refs; member
244 refcount_t refs; member
/include/uapi/linux/
Dxdp_diag.h71 __u32 refs; member
Dbtrfs_tree.h742 __le64 refs; member
748 __le32 refs; member
884 __le32 refs; member
/include/trace/events/
Dbtrfs.h301 __field( int, refs )
314 __entry->refs = refcount_read(&map->refs);
330 __entry->refs, __entry->compress_type)
531 __field( int, refs )
545 __entry->refs = refcount_read(&ordered->refs);
564 __entry->compress_type, __entry->refs)
1121 __field( int, refs )
1130 __entry->refs = atomic_read(&buf->refs);
1139 __entry->refs,
/include/net/netfilter/
Dnf_tables.h546 refcount_t refs; member
597 return refcount_read(&s->refs) != 1; in nft_set_gc_is_pending()
/include/sound/
Dpcm.h448 refcount_t refs; member