Searched refs:refs (Results 1 – 19 of 19) sorted by relevance
| /include/linux/ |
| 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()
|
| A D | refcount_types.h | 16 atomic_t refs; member
|
| A D | mm_inline.h | 136 static inline int lru_tier_from_refs(int refs, bool workingset) in lru_tier_from_refs() argument 138 VM_WARN_ON_ONCE(refs > BIT(LRU_REFS_WIDTH)); in lru_tier_from_refs() 141 return workingset ? MAX_NR_TIERS - 1 : order_base_2(refs); in lru_tier_from_refs() 307 unsigned long refs = READ_ONCE(old->flags) & LRU_REFS_MASK; in folio_migrate_refs() local 309 set_mask_bits(&new->flags, LRU_REFS_MASK, refs); in folio_migrate_refs()
|
| A D | io_uring_types.h | 259 struct percpu_ref refs; member 695 atomic_t refs; member
|
| A D | hugetlb.h | 52 struct kref refs; member 106 struct kref refs; member
|
| A D | bpf_verifier.h | 388 struct bpf_reference_state *refs; member
|
| A D | mm.h | 1377 static inline void folio_put_refs(struct folio *folio, int refs) in folio_put_refs() argument 1379 if (folio_ref_sub_and_test(folio, refs)) in folio_put_refs() 1383 void folios_put_refs(struct folio_batch *folios, unsigned int *refs);
|
| A D | blkdev.h | 492 refcount_t refs; member
|
| /include/uapi/xen/ |
| A D | gntdev.h | 70 struct ioctl_gntdev_grant_ref refs[1]; member 256 __u32 refs[1]; member 298 __u32 refs[1]; member
|
| /include/net/ |
| 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()
|
| A D | ipv6_frag.h | 69 int refs = 1; in ip6frag_expire_frag_queue() local 81 inet_frag_kill(&fq->q, &refs); in ip6frag_expire_frag_queue() 113 inet_frag_putn(&fq->q, refs); in ip6frag_expire_frag_queue()
|
| A D | mctpdevice.h | 22 refcount_t refs; member
|
| A D | mctp.h | 159 refcount_t refs; member 259 refcount_t refs; member
|
| /include/media/ |
| A D | v4l2-h264.h | 39 } refs[V4L2_H264_NUM_DPB_ENTRIES]; member
|
| /include/uapi/linux/ |
| A D | xdp_diag.h | 71 __u32 refs; member
|
| A D | btrfs_tree.h | 783 __le64 refs; member 789 __le32 refs; member 929 __le32 refs; member
|
| /include/trace/events/ |
| A D | btrfs.h | 295 __field( int, refs ) 304 __entry->refs = refcount_read(&map->refs); 313 __entry->refs) 514 __field( int, refs ) 528 __entry->refs = refcount_read(&ordered->refs); 547 __entry->compress_type, __entry->refs) 1087 __field( int, refs ) 1096 __entry->refs = refcount_read(&buf->refs); 1105 __entry->refs,
|
| /include/net/netfilter/ |
| A D | nf_tables.h | 582 refcount_t refs; member 633 return refcount_read(&s->refs) != 1; in nft_set_gc_is_pending()
|
| /include/sound/ |
| A D | pcm.h | 459 refcount_t refs; member
|
Completed in 63 milliseconds