Home
last modified time | relevance | path

Searched refs:atomic_long_read (Results 1 – 25 of 146) sorted by relevance

123456

/linux/fs/bcachefs/ !
H A Dbtree_key_cache.h7 size_t nr_dirty = atomic_long_read(&c->btree_key_cache.nr_dirty); in bch2_nr_btree_keys_need_flush()
8 size_t nr_keys = atomic_long_read(&c->btree_key_cache.nr_keys); in bch2_nr_btree_keys_need_flush()
16 size_t nr_dirty = atomic_long_read(&c->btree_key_cache.nr_dirty); in __bch2_btree_key_cache_must_wait()
17 size_t nr_keys = atomic_long_read(&c->btree_key_cache.nr_keys); in __bch2_btree_key_cache_must_wait()
30 size_t nr_dirty = atomic_long_read(&c->btree_key_cache.nr_dirty); in bch2_btree_key_cache_wait_done()
31 size_t nr_keys = atomic_long_read(&c->btree_key_cache.nr_keys); in bch2_btree_key_cache_wait_done()
H A Dtwo_state_shared_lock.h30 EBUG_ON(atomic_long_read(&lock->v) == 0); in bch2_two_state_unlock()
41 old = atomic_long_read(&lock->v); in bch2_two_state_trylock()
H A Denumerated_ref.c39 if (atomic_long_read(&ref->refs[i])) in enumerated_ref_put()
95 BUG_ON(atomic_long_read(&ref->refs[i])); in enumerated_ref_start()
140 atomic_long_read(&ref->refs[i])); in enumerated_ref_to_text()
H A Dbtree_key_cache.c745 long nr = atomic_long_read(&bc->nr_keys) - in bch2_btree_key_cache_count()
746 atomic_long_read(&bc->nr_dirty); in bch2_btree_key_cache_count()
773 while (atomic_long_read(&bc->nr_keys)) { in bch2_fs_btree_key_cache_exit()
795 if (atomic_long_read(&bc->nr_dirty) && in bch2_fs_btree_key_cache_exit()
799 atomic_long_read(&bc->nr_dirty)); in bch2_fs_btree_key_cache_exit()
801 if (atomic_long_read(&bc->nr_keys)) in bch2_fs_btree_key_cache_exit()
803 atomic_long_read(&bc->nr_keys)); in bch2_fs_btree_key_cache_exit()
854 prt_printf(out, "keys:\t%lu\r\n", atomic_long_read(&bc->nr_keys)); in bch2_btree_key_cache_to_text()
855 prt_printf(out, "dirty:\t%lu\r\n", atomic_long_read(&bc->nr_dirty)); in bch2_btree_key_cache_to_text()
H A Denumerated_ref.h47 if (atomic_long_read(&ref->refs[i])) in enumerated_ref_is_zero()
/linux/fs/ubifs/ !
H A Dshrinker.c67 if (!c->zroot.znode || atomic_long_read(&c->clean_zn_cnt) == 0) in shrink_tnc()
82 atomic_long_read(&c->clean_zn_cnt) > 0) { in shrink_tnc()
237 dirty_zn_cnt = atomic_long_read(&c->dirty_zn_cnt); in kick_a_thread()
270 long clean_zn_cnt = atomic_long_read(&ubifs_clean_zn_cnt); in ubifs_shrink_count()
285 long clean_zn_cnt = atomic_long_read(&ubifs_clean_zn_cnt); in ubifs_shrink_scan()
/linux/net/l2tp/ !
H A Dl2tp_netlink.c407 atomic_long_read(&tunnel->stats.tx_packets), in l2tp_nl_tunnel_send()
410 atomic_long_read(&tunnel->stats.tx_bytes), in l2tp_nl_tunnel_send()
413 atomic_long_read(&tunnel->stats.tx_errors), in l2tp_nl_tunnel_send()
416 atomic_long_read(&tunnel->stats.rx_packets), in l2tp_nl_tunnel_send()
419 atomic_long_read(&tunnel->stats.rx_bytes), in l2tp_nl_tunnel_send()
422 atomic_long_read(&tunnel->stats.rx_seq_discards), in l2tp_nl_tunnel_send()
425 atomic_long_read(&tunnel->stats.rx_cookie_discards), in l2tp_nl_tunnel_send()
428 atomic_long_read(&tunnel->stats.rx_oos_packets), in l2tp_nl_tunnel_send()
431 atomic_long_read(&tunnel->stats.rx_errors), in l2tp_nl_tunnel_send()
434 atomic_long_read(&tunnel->stats.rx_invalid), in l2tp_nl_tunnel_send()
[all …]
H A Dl2tp_ppp.c1013 dest->tx_packets = atomic_long_read(&stats->tx_packets); in pppol2tp_copy_stats()
1014 dest->tx_bytes = atomic_long_read(&stats->tx_bytes); in pppol2tp_copy_stats()
1015 dest->tx_errors = atomic_long_read(&stats->tx_errors); in pppol2tp_copy_stats()
1016 dest->rx_packets = atomic_long_read(&stats->rx_packets); in pppol2tp_copy_stats()
1017 dest->rx_bytes = atomic_long_read(&stats->rx_bytes); in pppol2tp_copy_stats()
1018 dest->rx_seq_discards = atomic_long_read(&stats->rx_seq_discards); in pppol2tp_copy_stats()
1019 dest->rx_oos_packets = atomic_long_read(&stats->rx_oos_packets); in pppol2tp_copy_stats()
1020 dest->rx_errors = atomic_long_read(&stats->rx_errors); in pppol2tp_copy_stats()
1508 atomic_long_read(&tunnel->stats.tx_packets), in pppol2tp_seq_tunnel_show()
1509 atomic_long_read(&tunnel->stats.tx_bytes), in pppol2tp_seq_tunnel_show()
[all …]
/linux/mm/ !
H A Dpage_counter.c31 old_protected = atomic_long_read(&c->min_usage); in propagate_protected_usage()
40 old_protected = atomic_long_read(&c->low_usage); in propagate_protected_usage()
243 propagate_protected_usage(c, atomic_long_read(&c->usage)); in page_counter_set_min()
260 propagate_protected_usage(c, atomic_long_read(&c->usage)); in page_counter_set_low()
456 atomic_long_read(&parent->children_min_usage), in page_counter_calculate_protection()
462 atomic_long_read(&parent->children_low_usage), in page_counter_calculate_protection()
/linux/net/can/ !
H A Dproc.c121 long rx_frames = atomic_long_read(&pkg_stats->rx_frames); in can_stat_update()
122 long tx_frames = atomic_long_read(&pkg_stats->tx_frames); in can_stat_update()
123 long matches = atomic_long_read(&pkg_stats->matches); in can_stat_update()
124 long rx_frames_delta = atomic_long_read(&pkg_stats->rx_frames_delta); in can_stat_update()
125 long tx_frames_delta = atomic_long_read(&pkg_stats->tx_frames_delta); in can_stat_update()
126 long matches_delta = atomic_long_read(&pkg_stats->matches_delta); in can_stat_update()
223 atomic_long_read(&pkg_stats->tx_frames)); in can_stats_proc_show()
225 atomic_long_read(&pkg_stats->rx_frames)); in can_stats_proc_show()
227 atomic_long_read(&pkg_stats->matches)); in can_stats_proc_show()
/linux/kernel/locking/ !
H A Drwsem.c72 #c, atomic_long_read(&(sem)->count), \
74 atomic_long_read(&(sem)->owner), (long)current, \
158 return atomic_long_read(&sem->owner) & flags; in rwsem_test_oflags()
175 (atomic_long_read(&sem->owner) & RWSEM_NONSPINNABLE); in __rwsem_set_reader_owned()
192 (atomic_long_read(&sem->owner) & ~RWSEM_OWNER_FLAGS_MASK); in rwsem_owner()
203 long count = atomic_long_read(&sem->count); in is_rwsem_reader_owned()
218 unsigned long val = atomic_long_read(&sem->owner); in rwsem_clear_reader_owned()
238 unsigned long owner = atomic_long_read(&sem->owner); in rwsem_set_nonspinnable()
283 unsigned long owner = atomic_long_read(&sem->owner); in rwsem_owner_flags()
445 if (unlikely(atomic_long_read(&sem->count) < 0)) in rwsem_mark_wake()
[all …]
H A Dmutex.c79 unsigned long owner = atomic_long_read(&lock->owner); in mutex_get_owner()
91 owner = atomic_long_read(&lock->owner); in __mutex_trylock_common()
221 unsigned long owner = atomic_long_read(&lock->owner); in __mutex_handoff()
320 if (!waiter && (atomic_long_read(&lock->owner) & MUTEX_FLAG_WAITERS)) in ww_mutex_spin_on_owner()
931 owner = atomic_long_read(&lock->owner); in __mutex_unlock_slowpath()
/linux/kernel/ !
H A Dcred.c74 if (atomic_long_read(&cred->usage) != 0) in put_cred_rcu()
76 cred, atomic_long_read(&cred->usage)); in put_cred_rcu()
101 atomic_long_read(&cred->usage)); in __put_cred()
103 BUG_ON(atomic_long_read(&cred->usage) != 0); in __put_cred()
122 atomic_long_read(&tsk->cred->usage)); in exit_creds()
307 p->cred, atomic_long_read(&p->cred->usage)); in copy_creds()
398 atomic_long_read(&new->usage)); in commit_creds()
401 BUG_ON(atomic_long_read(&new->usage) < 1); in commit_creds()
472 atomic_long_read(&new->usage)); in abort_creds()
474 BUG_ON(atomic_long_read(&new->usage) < 1); in abort_creds()
/linux/include/linux/ !
H A Dfile_ref.h182 old = atomic_long_read(&ref->refcnt); in file_ref_put_close()
198 unsigned long c = atomic_long_read(&ref->refcnt); in file_ref_read()
215 return atomic_long_read(&ref->refcnt); in __file_ref_read_raw()
H A Dvmstat.h152 return atomic_long_read(&zone->vm_numa_event[item]); in zone_numa_event_state()
158 return atomic_long_read(&vm_numa_event[item]); in global_numa_event_state()
178 long x = atomic_long_read(&vm_zone_stat[item]); in global_zone_page_state()
189 long x = atomic_long_read(&vm_node_stat[item]); in global_node_page_state_pages()
207 long x = atomic_long_read(&zone->vm_stat[item]); in zone_page_state()
224 long x = atomic_long_read(&zone->vm_stat[item]); in zone_page_state_snapshot()
H A Drwsem.h75 return atomic_long_read(&sem->count) != RWSEM_UNLOCKED_VALUE; in rwsem_is_locked()
80 WARN_ON(atomic_long_read(&sem->count) == RWSEM_UNLOCKED_VALUE); in rwsem_assert_held_nolockdep()
85 WARN_ON(!(atomic_long_read(&sem->count) & RWSEM_WRITER_LOCKED)); in rwsem_assert_held_write_nolockdep()
/linux/lib/ !
H A Dpercpu-refcount.c141 ref->percpu_count_ptr |= atomic_long_read(&ref->data->count) << in percpu_ref_exit()
181 atomic_long_read(&data->count), count); in percpu_ref_switch_to_atomic_rcu()
197 if (WARN_ONCE(atomic_long_read(&data->count) <= 0, in percpu_ref_switch_to_atomic_rcu()
199 data->release, atomic_long_read(&data->count)) && in percpu_ref_switch_to_atomic_rcu()
421 count = atomic_long_read(&ref->data->count); in percpu_ref_is_zero()
/linux/arch/powerpc/platforms/pseries/ !
H A Dcmm.c219 loaned_pages_target = atomic_long_read(&loaned_pages); in cmm_oom_notify()
236 const long __loaned_pages = atomic_long_read(&loaned_pages); in cmm_get_mpp()
323 __loaned_pages = atomic_long_read(&loaned_pages); in cmm_thread()
342 CMM_SHOW(loaned_kb, "%lu\n", PAGES2KB(atomic_long_read(&loaned_pages)));
453 cmm_free_pages(atomic_long_read(&loaned_pages)); in cmm_reboot_notifier()
625 cmm_free_pages(atomic_long_read(&loaned_pages)); in cmm_exit()
646 cmm_free_pages(atomic_long_read(&loaned_pages)); in cmm_set_disable()
/linux/kernel/sched/ !
H A Dloadavg.c290 if (atomic_long_read(&calc_load_nohz[idx])) in calc_load_nohz_read()
318 active = atomic_long_read(&calc_load_tasks); in calc_global_nohz()
367 active = atomic_long_read(&calc_load_tasks); in calc_global_load()
/linux/fs/proc/ !
H A Dmeminfo.c86 (unsigned long)atomic_long_read(&mmap_pages_allocated)); in meminfo_proc_show()
94 (unsigned long)atomic_long_read(&zswap_stored_pages) << in meminfo_proc_show()
137 atomic_long_read(&num_poisoned_pages) << (PAGE_SHIFT - 10)); in meminfo_proc_show()
/linux/net/ipv6/ !
H A Dproc.c164 atomic_long_read(smib + i)); in snmp6_seq_show_icmpv6msg()
171 val = atomic_long_read(smib + i); in snmp6_seq_show_icmpv6msg()
200 atomic_long_read(smib + itemlist[i].entry)); in snmp6_seq_show_item()
/linux/drivers/misc/sgi-gru/ !
H A Dgruprocfs.c24 unsigned long val = atomic_long_read(v); in printstat_val()
124 count = atomic_long_read(&mcs_op_statistics[op].count); in mcs_statistics_show()
125 total = atomic_long_read(&mcs_op_statistics[op].total); in mcs_statistics_show()
/linux/arch/powerpc/mm/book3s64/ !
H A Dpgtable.c520 atomic_long_read(&direct_pages_count[MMU_PAGE_4K]) << 2); in arch_report_meminfo()
522 atomic_long_read(&direct_pages_count[MMU_PAGE_64K]) << 6); in arch_report_meminfo()
524 atomic_long_read(&direct_pages_count[MMU_PAGE_2M]) << 11); in arch_report_meminfo()
526 atomic_long_read(&direct_pages_count[MMU_PAGE_1G]) << 20); in arch_report_meminfo()
/linux/drivers/target/iscsi/ !
H A Discsi_target_stat.c655 atomic_long_read(&sess->cmd_pdus)); in iscsi_stat_sess_cmd_pdus_show()
677 atomic_long_read(&sess->rsp_pdus)); in iscsi_stat_sess_rsp_pdus_show()
699 atomic_long_read(&sess->tx_data_octets)); in iscsi_stat_sess_txdata_octs_show()
721 atomic_long_read(&sess->rx_data_octets)); in iscsi_stat_sess_rxdata_octs_show()
743 atomic_long_read(&sess->conn_digest_errors)); in iscsi_stat_sess_conn_digest_errors_show()
765 atomic_long_read(&sess->conn_timeout_errors)); in iscsi_stat_sess_conn_timeout_errors_show()
/linux/kernel/rcu/ !
H A Dsrcutree.c446 sum += atomic_long_read(&sdp->srcu_ctrs[idx].srcu_locks); in srcu_readers_lock_idx()
470 sum += atomic_long_read(&sdp->srcu_ctrs[idx].srcu_unlocks); in srcu_readers_unlock_idx()
587 sum += atomic_long_read(&sdp->srcu_ctrs[0].srcu_locks); in srcu_readers_active()
588 sum += atomic_long_read(&sdp->srcu_ctrs[1].srcu_locks); in srcu_readers_active()
589 sum -= atomic_long_read(&sdp->srcu_ctrs[0].srcu_unlocks); in srcu_readers_active()
590 sum -= atomic_long_read(&sdp->srcu_ctrs[1].srcu_unlocks); in srcu_readers_active()
1931 u0 = data_race(atomic_long_read(&sdp->srcu_ctrs[!idx].srcu_unlocks)); in srcu_torture_stats_print()
1932 u1 = data_race(atomic_long_read(&sdp->srcu_ctrs[idx].srcu_unlocks)); in srcu_torture_stats_print()
1940 l0 = data_race(atomic_long_read(&sdp->srcu_ctrs[!idx].srcu_locks)); in srcu_torture_stats_print()
1941 l1 = data_race(atomic_long_read(&sdp->srcu_ctrs[idx].srcu_locks)); in srcu_torture_stats_print()

123456