Home
last modified time | relevance | path

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

1234567

/linux-6.15/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 Dbtree_key_cache.c729 long nr = atomic_long_read(&bc->nr_keys) - in bch2_btree_key_cache_count()
730 atomic_long_read(&bc->nr_dirty); in bch2_btree_key_cache_count()
757 while (atomic_long_read(&bc->nr_keys)) { in bch2_fs_btree_key_cache_exit()
779 if (atomic_long_read(&bc->nr_dirty) && in bch2_fs_btree_key_cache_exit()
783 atomic_long_read(&bc->nr_dirty)); in bch2_fs_btree_key_cache_exit()
785 if (atomic_long_read(&bc->nr_keys)) in bch2_fs_btree_key_cache_exit()
787 atomic_long_read(&bc->nr_keys)); in bch2_fs_btree_key_cache_exit()
838 prt_printf(out, "keys:\t%lu\r\n", atomic_long_read(&bc->nr_keys)); in bch2_btree_key_cache_to_text()
839 prt_printf(out, "dirty:\t%lu\r\n", atomic_long_read(&bc->nr_dirty)); in bch2_btree_key_cache_to_text()
/linux-6.15/net/l2tp/
H A Dl2tp_debugfs.c168 atomic_long_read(&tunnel->stats.tx_packets), in l2tp_dfs_seq_tunnel_show()
169 atomic_long_read(&tunnel->stats.tx_bytes), in l2tp_dfs_seq_tunnel_show()
170 atomic_long_read(&tunnel->stats.tx_errors), in l2tp_dfs_seq_tunnel_show()
171 atomic_long_read(&tunnel->stats.rx_packets), in l2tp_dfs_seq_tunnel_show()
172 atomic_long_read(&tunnel->stats.rx_bytes), in l2tp_dfs_seq_tunnel_show()
173 atomic_long_read(&tunnel->stats.rx_errors)); in l2tp_dfs_seq_tunnel_show()
219 atomic_long_read(&session->stats.tx_packets), in l2tp_dfs_seq_session_show()
220 atomic_long_read(&session->stats.tx_bytes), in l2tp_dfs_seq_session_show()
221 atomic_long_read(&session->stats.tx_errors), in l2tp_dfs_seq_session_show()
222 atomic_long_read(&session->stats.rx_packets), in l2tp_dfs_seq_session_show()
[all …]
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()
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()
765 atomic_long_read(&session->stats.tx_bytes), in l2tp_nl_session_send()
768 atomic_long_read(&session->stats.tx_errors), in l2tp_nl_session_send()
774 atomic_long_read(&session->stats.rx_bytes), in l2tp_nl_session_send()
[all …]
H A Dl2tp_ppp.c1508 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()
1510 atomic_long_read(&tunnel->stats.tx_errors), in pppol2tp_seq_tunnel_show()
1511 atomic_long_read(&tunnel->stats.rx_packets), in pppol2tp_seq_tunnel_show()
1512 atomic_long_read(&tunnel->stats.rx_bytes), in pppol2tp_seq_tunnel_show()
1513 atomic_long_read(&tunnel->stats.rx_errors)); in pppol2tp_seq_tunnel_show()
1557 atomic_long_read(&session->stats.tx_packets), in pppol2tp_seq_session_show()
1558 atomic_long_read(&session->stats.tx_bytes), in pppol2tp_seq_session_show()
1559 atomic_long_read(&session->stats.tx_errors), in pppol2tp_seq_session_show()
1560 atomic_long_read(&session->stats.rx_packets), in pppol2tp_seq_session_show()
[all …]
/linux-6.15/arch/riscv/mm/
H A Dcontext.c97 unsigned long cntx = atomic_long_read(&mm->context.id); in __new_context()
98 unsigned long asid, ver = atomic_long_read(&current_version); in __new_context()
150 cntx = atomic_long_read(&mm->context.id); in set_mm_asid()
168 old_active_cntx = atomic_long_read(&per_cpu(active_context, cpu)); in set_mm_asid()
170 (cntx2version(cntx) == atomic_long_read(&current_version)) && in set_mm_asid()
178 cntx = atomic_long_read(&mm->context.id); in set_mm_asid()
179 if (cntx2version(cntx) != atomic_long_read(&current_version)) { in set_mm_asid()
/linux-6.15/kernel/module/
H A Dstats.c290 total_size = atomic_long_read(&total_mod_size); in read_file_mod_stats()
291 text_size = atomic_long_read(&total_text_size); in read_file_mod_stats()
292 ikread_bytes = atomic_long_read(&invalid_kread_bytes); in read_file_mod_stats()
293 idecompress_bytes = atomic_long_read(&invalid_decompress_bytes); in read_file_mod_stats()
294 ibecoming_bytes = atomic_long_read(&invalid_becoming_bytes); in read_file_mod_stats()
295 imod_bytes = atomic_long_read(&invalid_mod_bytes); in read_file_mod_stats()
389 atomic_long_read(&mod_fail->count), mod_fail_to_str(mod_fail)); in read_file_mod_stats()
/linux-6.15/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-6.15/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-6.15/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-6.15/kernel/locking/
H A Drwsem.c71 #c, atomic_long_read(&(sem)->count), \
73 atomic_long_read(&(sem)->owner), (long)current, \
157 return atomic_long_read(&sem->owner) & flags; in rwsem_test_oflags()
202 long count = atomic_long_read(&sem->count); in is_rwsem_reader_owned()
217 unsigned long val = atomic_long_read(&sem->owner); in rwsem_clear_reader_owned()
444 if (unlikely(atomic_long_read(&sem->count) < 0)) in rwsem_mark_wake()
525 oldcount = atomic_long_read(&sem->count); in rwsem_mark_wake()
610 count = atomic_long_read(&sem->count); in rwsem_try_write_lock()
690 long count = atomic_long_read(&sem->count); in rwsem_try_write_lock_unqueued()
806 long count = atomic_long_read(&sem->count); in rwsem_rspin_threshold()
[all …]
/linux-6.15/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-6.15/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 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()
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()
/linux-6.15/kernel/printk/
H A Dprintk_ringbuffer.c447 state_val = atomic_long_read(state_var); /* LMM(desc_read:A) */ in desc_read()
534 state_val = atomic_long_read(state_var); /* LMM(desc_read:E) */ in desc_read()
737 tail_lpos_new = atomic_long_read(&data_ring->tail_lpos in data_push_tail()
787 if (DESC_ID(atomic_long_read(&desc.state_var)) == in desc_push_tail()
918 if (id_prev_wrap == atomic_long_read(&desc_ring->tail_id in desc_reserve()
1049 begin_lpos = atomic_long_read(&data_ring->head_lpos); in data_alloc()
1123 head_lpos = atomic_long_read(&data_ring->head_lpos); in data_realloc()
1285 id = atomic_long_read(&desc_ring->head_id); in desc_reopen_last()
1758 head_id = atomic_long_read(&desc_ring->head_id); /* LMM(prb_commit:A) */ in prb_commit()
1919 id = DESC_ID(atomic_long_read(state_var)); in prb_read()
[all …]
/linux-6.15/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-6.15/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-6.15/kernel/sched/
H A Dloadavg.c288 if (atomic_long_read(&calc_load_nohz[idx])) in calc_load_nohz_read()
316 active = atomic_long_read(&calc_load_tasks); in calc_global_nohz()
365 active = atomic_long_read(&calc_load_tasks); in calc_global_load()
/linux-6.15/drivers/md/bcache/
H A Dsysfs.c231 wb ? atomic_long_read(&dc->writeback_rate.rate) << 9 in SHOW()
320 long int v = atomic_long_read(&dc->writeback_rate.rate); in STORE()
752 atomic_long_read(&c->cache_read_races)); in SHOW()
755 atomic_long_read(&c->reclaim)); in SHOW()
758 atomic_long_read(&c->reclaimed_journal_buckets)); in SHOW()
761 atomic_long_read(&c->flush_write)); in SHOW()
764 atomic_long_read(&c->writeback_keys_done)); in SHOW()
766 atomic_long_read(&c->writeback_keys_failed)); in SHOW()
1044 atomic_long_read(&ca->btree_sectors_written) << 9); in SHOW()
1046 (atomic_long_read(&ca->meta_sectors_written) + in SHOW()
[all …]
/linux-6.15/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()
139 atomic_long_read(&num_poisoned_pages) << (PAGE_SHIFT - 10)); in meminfo_proc_show()
/linux-6.15/drivers/target/
H A Dtarget_core_stat.c142 atomic_long_read(&to_stat_tgt_dev(item)->num_resets)); in target_stat_tgt_resets_show()
149 atomic_long_read(&to_stat_tgt_dev(item)->aborts_complete)); in target_stat_tgt_aborts_complete_show()
156 atomic_long_read(&to_stat_tgt_dev(item)->aborts_no_task)); in target_stat_tgt_aborts_no_task_show()
286 atomic_long_read(&dev->num_cmds)); in target_stat_lu_num_cmds_show()
296 atomic_long_read(&dev->read_bytes) >> 20); in target_stat_lu_read_mbytes_show()
306 atomic_long_read(&dev->write_bytes) >> 20); in target_stat_lu_write_mbytes_show()
315 atomic_long_read(&dev->num_resets)); in target_stat_lu_resets_show()
616 atomic_long_read(&lun->lun_stats.cmd_pdus)); in target_stat_tgt_port_in_cmds_show()
1033 atomic_long_read(&deve->total_cmds)); in target_stat_auth_num_cmds_show()
1054 (u32)(atomic_long_read(&deve->read_bytes) >> 20)); in target_stat_auth_read_mbytes_show()
[all …]
/linux-6.15/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-6.15/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()

1234567