Home
last modified time | relevance | path

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

123456

/linux-6.6.21/net/l2tp/
Dl2tp_debugfs.c169 atomic_long_read(&tunnel->stats.tx_packets), in l2tp_dfs_seq_tunnel_show()
170 atomic_long_read(&tunnel->stats.tx_bytes), in l2tp_dfs_seq_tunnel_show()
171 atomic_long_read(&tunnel->stats.tx_errors), in l2tp_dfs_seq_tunnel_show()
172 atomic_long_read(&tunnel->stats.rx_packets), in l2tp_dfs_seq_tunnel_show()
173 atomic_long_read(&tunnel->stats.rx_bytes), in l2tp_dfs_seq_tunnel_show()
174 atomic_long_read(&tunnel->stats.rx_errors)); in l2tp_dfs_seq_tunnel_show()
220 atomic_long_read(&session->stats.tx_packets), in l2tp_dfs_seq_session_show()
221 atomic_long_read(&session->stats.tx_bytes), in l2tp_dfs_seq_session_show()
222 atomic_long_read(&session->stats.tx_errors), in l2tp_dfs_seq_session_show()
223 atomic_long_read(&session->stats.rx_packets), in l2tp_dfs_seq_session_show()
[all …]
Dl2tp_netlink.c406 atomic_long_read(&tunnel->stats.tx_packets), in l2tp_nl_tunnel_send()
409 atomic_long_read(&tunnel->stats.tx_bytes), in l2tp_nl_tunnel_send()
412 atomic_long_read(&tunnel->stats.tx_errors), in l2tp_nl_tunnel_send()
415 atomic_long_read(&tunnel->stats.rx_packets), in l2tp_nl_tunnel_send()
418 atomic_long_read(&tunnel->stats.rx_bytes), in l2tp_nl_tunnel_send()
421 atomic_long_read(&tunnel->stats.rx_seq_discards), in l2tp_nl_tunnel_send()
424 atomic_long_read(&tunnel->stats.rx_cookie_discards), in l2tp_nl_tunnel_send()
427 atomic_long_read(&tunnel->stats.rx_oos_packets), in l2tp_nl_tunnel_send()
430 atomic_long_read(&tunnel->stats.rx_errors), in l2tp_nl_tunnel_send()
433 atomic_long_read(&tunnel->stats.rx_invalid), in l2tp_nl_tunnel_send()
[all …]
Dl2tp_eth.c95 stats->tx_bytes = (unsigned long)atomic_long_read(&priv->tx_bytes); in l2tp_eth_get_stats64()
96 stats->tx_packets = (unsigned long)atomic_long_read(&priv->tx_packets); in l2tp_eth_get_stats64()
97 stats->tx_dropped = (unsigned long)atomic_long_read(&priv->tx_dropped); in l2tp_eth_get_stats64()
98 stats->rx_bytes = (unsigned long)atomic_long_read(&priv->rx_bytes); in l2tp_eth_get_stats64()
99 stats->rx_packets = (unsigned long)atomic_long_read(&priv->rx_packets); in l2tp_eth_get_stats64()
100 stats->rx_errors = (unsigned long)atomic_long_read(&priv->rx_errors); in l2tp_eth_get_stats64()
Dl2tp_ppp.c1025 dest->tx_packets = atomic_long_read(&stats->tx_packets); in pppol2tp_copy_stats()
1026 dest->tx_bytes = atomic_long_read(&stats->tx_bytes); in pppol2tp_copy_stats()
1027 dest->tx_errors = atomic_long_read(&stats->tx_errors); in pppol2tp_copy_stats()
1028 dest->rx_packets = atomic_long_read(&stats->rx_packets); in pppol2tp_copy_stats()
1029 dest->rx_bytes = atomic_long_read(&stats->rx_bytes); in pppol2tp_copy_stats()
1030 dest->rx_seq_discards = atomic_long_read(&stats->rx_seq_discards); in pppol2tp_copy_stats()
1031 dest->rx_oos_packets = atomic_long_read(&stats->rx_oos_packets); in pppol2tp_copy_stats()
1032 dest->rx_errors = atomic_long_read(&stats->rx_errors); in pppol2tp_copy_stats()
1518 atomic_long_read(&tunnel->stats.tx_packets), in pppol2tp_seq_tunnel_show()
1519 atomic_long_read(&tunnel->stats.tx_bytes), in pppol2tp_seq_tunnel_show()
[all …]
/linux-6.6.21/arch/riscv/mm/
Dcontext.c98 unsigned long cntx = atomic_long_read(&mm->context.id); in __new_context()
99 unsigned long asid, ver = atomic_long_read(&current_version); in __new_context()
151 cntx = atomic_long_read(&mm->context.id); in set_mm_asid()
169 old_active_cntx = atomic_long_read(&per_cpu(active_context, cpu)); in set_mm_asid()
171 ((cntx & ~asid_mask) == atomic_long_read(&current_version)) && in set_mm_asid()
179 cntx = atomic_long_read(&mm->context.id); in set_mm_asid()
180 if ((cntx & ~asid_mask) != atomic_long_read(&current_version)) { in set_mm_asid()
/linux-6.6.21/kernel/
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()
303 p->cred, atomic_long_read(&p->cred->usage)); in copy_creds()
394 atomic_long_read(&new->usage)); in commit_creds()
397 BUG_ON(atomic_long_read(&new->usage) < 1); in commit_creds()
469 atomic_long_read(&new->usage)); in abort_creds()
471 BUG_ON(atomic_long_read(&new->usage) < 1); in abort_creds()
[all …]
/linux-6.6.21/kernel/module/
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.6.21/fs/ubifs/
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.6.21/kernel/locking/
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()
174 (atomic_long_read(&sem->owner) & RWSEM_NONSPINNABLE); in __rwsem_set_reader_owned()
193 long count = atomic_long_read(&sem->count); in is_rwsem_reader_owned()
210 unsigned long val = atomic_long_read(&sem->owner); in rwsem_clear_reader_owned()
230 unsigned long owner = atomic_long_read(&sem->owner); in rwsem_set_nonspinnable()
274 (atomic_long_read(&sem->owner) & ~RWSEM_OWNER_FLAGS_MASK); in rwsem_owner()
284 unsigned long owner = atomic_long_read(&sem->owner); in rwsem_owner_flags()
446 if (unlikely(atomic_long_read(&sem->count) < 0)) in rwsem_mark_wake()
[all …]
Dmutex.c81 return (struct task_struct *)(atomic_long_read(&lock->owner) & ~MUTEX_FLAGS); in __mutex_owner()
107 owner = atomic_long_read(&lock->owner); in __mutex_trylock_common()
233 unsigned long owner = atomic_long_read(&lock->owner); in __mutex_handoff()
332 if (!waiter && (atomic_long_read(&lock->owner) & MUTEX_FLAG_WAITERS)) in ww_mutex_spin_on_owner()
916 owner = atomic_long_read(&lock->owner); in __mutex_unlock_slowpath()
/linux-6.6.21/kernel/printk/
Dprintk_ringbuffer.c443 state_val = atomic_long_read(state_var); /* LMM(desc_read:A) */ in desc_read()
530 state_val = atomic_long_read(state_var); /* LMM(desc_read:E) */ in desc_read()
661 tail_lpos = atomic_long_read(&data_ring->tail_lpos); /* LMM(data_push_tail:A) */ in data_push_tail()
733 tail_lpos_new = atomic_long_read(&data_ring->tail_lpos in data_push_tail()
783 if (DESC_ID(atomic_long_read(&desc.state_var)) == in desc_push_tail()
867 if (atomic_long_read(&desc_ring->tail_id) == tail_id) /* LMM(desc_push_tail:D) */ in desc_push_tail()
884 head_id = atomic_long_read(&desc_ring->head_id); /* LMM(desc_reserve:A) */ in desc_reserve()
914 if (id_prev_wrap == atomic_long_read(&desc_ring->tail_id in desc_reserve()
974 prev_state_val = atomic_long_read(&desc->state_var); /* LMM(desc_reserve:E) */ in desc_reserve()
1041 begin_lpos = atomic_long_read(&data_ring->head_lpos); in data_alloc()
[all …]
/linux-6.6.21/mm/
Dpage_counter.c26 old_protected = atomic_long_read(&c->min_usage); in propagate_protected_usage()
35 old_protected = atomic_long_read(&c->low_usage); in propagate_protected_usage()
217 propagate_protected_usage(c, atomic_long_read(&c->usage)); in page_counter_set_min()
234 propagate_protected_usage(c, atomic_long_read(&c->usage)); in page_counter_set_low()
/linux-6.6.21/lib/
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.6.21/arch/powerpc/platforms/pseries/
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.6.21/kernel/sched/
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.6.21/drivers/md/bcache/
Dsysfs.c205 wb ? atomic_long_read(&dc->writeback_rate.rate) << 9 : 0); in SHOW()
231 wb ? atomic_long_read(&dc->writeback_rate.rate) << 9 in SHOW()
320 long int v = atomic_long_read(&dc->writeback_rate.rate); in STORE()
756 atomic_long_read(&c->cache_read_races)); in SHOW()
759 atomic_long_read(&c->reclaim)); in SHOW()
762 atomic_long_read(&c->reclaimed_journal_buckets)); in SHOW()
765 atomic_long_read(&c->flush_write)); in SHOW()
768 atomic_long_read(&c->writeback_keys_done)); in SHOW()
770 atomic_long_read(&c->writeback_keys_failed)); in SHOW()
1045 sysfs_hprint(written, atomic_long_read(&ca->sectors_written) << 9); in SHOW()
[all …]
/linux-6.6.21/drivers/target/
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()
632 (u32)(atomic_long_read(&lun->lun_stats.rx_data_octets) >> 20)); in target_stat_tgt_port_write_mbytes_show()
648 (u32)(atomic_long_read(&lun->lun_stats.tx_data_octets) >> 20)); in target_stat_tgt_port_read_mbytes_show()
[all …]
/linux-6.6.21/include/linux/
Dvmstat.h155 return atomic_long_read(&zone->vm_numa_event[item]); in zone_numa_event_state()
161 return atomic_long_read(&vm_numa_event[item]); in global_numa_event_state()
181 long x = atomic_long_read(&vm_zone_stat[item]); in global_zone_page_state()
192 long x = atomic_long_read(&vm_node_stat[item]); in global_node_page_state_pages()
210 long x = atomic_long_read(&zone->vm_stat[item]); in zone_page_state()
227 long x = atomic_long_read(&zone->vm_stat[item]); in zone_page_state_snapshot()
Dfsnotify.h33 if (atomic_long_read(&dir->i_sb->s_fsnotify_connectors) == 0) in fsnotify_name()
47 if (atomic_long_read(&inode->i_sb->s_fsnotify_connectors) == 0) in fsnotify_inode()
62 if (atomic_long_read(&inode->i_sb->s_fsnotify_connectors) == 0) in fsnotify_parent()
/linux-6.6.21/net/ipv6/
Dproc.c163 atomic_long_read(smib + i)); in snmp6_seq_show_icmpv6msg()
170 val = atomic_long_read(smib + i); in snmp6_seq_show_icmpv6msg()
199 atomic_long_read(smib + itemlist[i].entry)); in snmp6_seq_show_item()
/linux-6.6.21/fs/proc/
Dmeminfo.c86 (unsigned long)atomic_long_read(&mmap_pages_allocated)); in meminfo_proc_show()
140 atomic_long_read(&num_poisoned_pages) << (PAGE_SHIFT - 10)); in meminfo_proc_show()
/linux-6.6.21/drivers/misc/sgi-gru/
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-6.6.21/arch/powerpc/mm/book3s64/
Dpgtable.c510 atomic_long_read(&direct_pages_count[MMU_PAGE_4K]) << 2); in arch_report_meminfo()
512 atomic_long_read(&direct_pages_count[MMU_PAGE_64K]) << 6); in arch_report_meminfo()
514 atomic_long_read(&direct_pages_count[MMU_PAGE_2M]) << 11); in arch_report_meminfo()
516 atomic_long_read(&direct_pages_count[MMU_PAGE_1G]) << 20); in arch_report_meminfo()
/linux-6.6.21/drivers/target/iscsi/
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-6.6.21/kernel/rcu/
Dsrcutree.c429 sum += atomic_long_read(&cpuc->srcu_lock_count[idx]); in srcu_readers_lock_idx()
447 sum += atomic_long_read(&cpuc->srcu_unlock_count[idx]); in srcu_readers_unlock_idx()
555 sum += atomic_long_read(&cpuc->srcu_lock_count[0]); in srcu_readers_active()
556 sum += atomic_long_read(&cpuc->srcu_lock_count[1]); in srcu_readers_active()
557 sum -= atomic_long_read(&cpuc->srcu_unlock_count[0]); in srcu_readers_active()
558 sum -= atomic_long_read(&cpuc->srcu_unlock_count[1]); in srcu_readers_active()
1862 u0 = data_race(atomic_long_read(&sdp->srcu_unlock_count[!idx])); in srcu_torture_stats_print()
1863 u1 = data_race(atomic_long_read(&sdp->srcu_unlock_count[idx])); in srcu_torture_stats_print()
1871 l0 = data_race(atomic_long_read(&sdp->srcu_lock_count[!idx])); in srcu_torture_stats_print()
1872 l1 = data_race(atomic_long_read(&sdp->srcu_lock_count[idx])); in srcu_torture_stats_print()

123456