Home
last modified time | relevance | path

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

12345

/Linux-v5.4/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_eth.c96 stats->tx_bytes = (unsigned long) atomic_long_read(&priv->tx_bytes); in l2tp_eth_get_stats64()
97 stats->tx_packets = (unsigned long) atomic_long_read(&priv->tx_packets); in l2tp_eth_get_stats64()
98 stats->tx_dropped = (unsigned long) atomic_long_read(&priv->tx_dropped); in l2tp_eth_get_stats64()
99 stats->rx_bytes = (unsigned long) atomic_long_read(&priv->rx_bytes); in l2tp_eth_get_stats64()
100 stats->rx_packets = (unsigned long) atomic_long_read(&priv->rx_packets); in l2tp_eth_get_stats64()
101 stats->rx_errors = (unsigned long) atomic_long_read(&priv->rx_errors); in l2tp_eth_get_stats64()
Dl2tp_netlink.c350 atomic_long_read(&tunnel->stats.tx_packets), in l2tp_nl_tunnel_send()
353 atomic_long_read(&tunnel->stats.tx_bytes), in l2tp_nl_tunnel_send()
356 atomic_long_read(&tunnel->stats.tx_errors), in l2tp_nl_tunnel_send()
359 atomic_long_read(&tunnel->stats.rx_packets), in l2tp_nl_tunnel_send()
362 atomic_long_read(&tunnel->stats.rx_bytes), in l2tp_nl_tunnel_send()
365 atomic_long_read(&tunnel->stats.rx_seq_discards), in l2tp_nl_tunnel_send()
368 atomic_long_read(&tunnel->stats.rx_oos_packets), in l2tp_nl_tunnel_send()
371 atomic_long_read(&tunnel->stats.rx_errors), in l2tp_nl_tunnel_send()
747 atomic_long_read(&session->stats.tx_packets), in l2tp_nl_session_send()
750 atomic_long_read(&session->stats.tx_bytes), in l2tp_nl_session_send()
[all …]
Dl2tp_ppp.c1026 dest->tx_packets = atomic_long_read(&stats->tx_packets); in pppol2tp_copy_stats()
1027 dest->tx_bytes = atomic_long_read(&stats->tx_bytes); in pppol2tp_copy_stats()
1028 dest->tx_errors = atomic_long_read(&stats->tx_errors); in pppol2tp_copy_stats()
1029 dest->rx_packets = atomic_long_read(&stats->rx_packets); in pppol2tp_copy_stats()
1030 dest->rx_bytes = atomic_long_read(&stats->rx_bytes); in pppol2tp_copy_stats()
1031 dest->rx_seq_discards = atomic_long_read(&stats->rx_seq_discards); in pppol2tp_copy_stats()
1032 dest->rx_oos_packets = atomic_long_read(&stats->rx_oos_packets); in pppol2tp_copy_stats()
1033 dest->rx_errors = atomic_long_read(&stats->rx_errors); in pppol2tp_copy_stats()
1534 atomic_long_read(&tunnel->stats.tx_packets), in pppol2tp_seq_tunnel_show()
1535 atomic_long_read(&tunnel->stats.tx_bytes), in pppol2tp_seq_tunnel_show()
[all …]
/Linux-v5.4/mm/
Dpage_counter.c25 if (c->min || atomic_long_read(&c->min_usage)) { in propagate_protected_usage()
37 if (c->low || atomic_long_read(&c->low_usage)) { in propagate_protected_usage()
190 usage = atomic_long_read(&counter->usage); in page_counter_set_max()
197 if (atomic_long_read(&counter->usage) <= usage) in page_counter_set_max()
219 propagate_protected_usage(c, atomic_long_read(&c->usage)); in page_counter_set_min()
236 propagate_protected_usage(c, atomic_long_read(&c->usage)); in page_counter_set_low()
/Linux-v5.4/kernel/locking/
Drwsem.c109 #c, atomic_long_read(&(sem)->count), \
111 atomic_long_read(&(sem)->owner), (long)current, \
190 return atomic_long_read(&sem->owner) & flags; in rwsem_test_oflags()
207 (atomic_long_read(&sem->owner) & RWSEM_RD_NONSPINNABLE); in __rwsem_set_reader_owned()
226 long count = atomic_long_read(&sem->count); in is_rwsem_reader_owned()
243 unsigned long val = atomic_long_read(&sem->owner); in rwsem_clear_reader_owned()
263 unsigned long owner = atomic_long_read(&sem->owner); in rwsem_set_nonspinnable()
288 (atomic_long_read(&sem->owner) & ~RWSEM_OWNER_FLAGS_MASK); in rwsem_owner()
298 unsigned long owner = atomic_long_read(&sem->owner); in rwsem_owner_flags()
436 if (unlikely(atomic_long_read(&sem->count) < 0)) in rwsem_mark_wake()
[all …]
Dmutex.c75 return (struct task_struct *)(atomic_long_read(&lock->owner) & ~MUTEX_FLAGS); in __mutex_owner()
111 owner = atomic_long_read(&lock->owner); in __mutex_trylock_or_owner()
226 unsigned long owner = atomic_long_read(&lock->owner); in __mutex_handoff()
487 if (likely(!(atomic_long_read(&lock->base.owner) & MUTEX_FLAG_WAITERS))) in ww_mutex_set_context_fastpath()
530 if (!waiter && (atomic_long_read(&lock->owner) & MUTEX_FLAG_WAITERS)) in ww_mutex_spin_on_owner()
1237 owner = atomic_long_read(&lock->owner); in __mutex_unlock_slowpath()
/Linux-v5.4/drivers/lightnvm/
Dpblk-sysfs.c98 atomic_long_read(&pblk->read_failed), in pblk_sysfs_stats()
99 atomic_long_read(&pblk->read_high_ecc), in pblk_sysfs_stats()
100 atomic_long_read(&pblk->read_empty), in pblk_sysfs_stats()
101 atomic_long_read(&pblk->read_failed_gc), in pblk_sysfs_stats()
102 atomic_long_read(&pblk->write_failed), in pblk_sysfs_stats()
103 atomic_long_read(&pblk->erase_failed)); in pblk_sysfs_stats()
435 atomic_long_read(&pblk->inflight_writes), in pblk_sysfs_stats_debug()
436 atomic_long_read(&pblk->inflight_reads), in pblk_sysfs_stats_debug()
437 atomic_long_read(&pblk->req_writes), in pblk_sysfs_stats_debug()
439 atomic_long_read(&pblk->padded_writes), in pblk_sysfs_stats_debug()
[all …]
/Linux-v5.4/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-v5.4/include/linux/
Dvmstat.h145 long x = atomic_long_read(&vm_numa_stat[item]); in global_numa_state()
153 long x = atomic_long_read(&zone->vm_numa_stat[item]); in zone_numa_state_snapshot()
179 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()
200 long x = atomic_long_read(&zone->vm_stat[item]); in zone_page_state()
217 long x = atomic_long_read(&zone->vm_stat[item]); in zone_page_state_snapshot()
Diocontext.h131 WARN_ON_ONCE(atomic_long_read(&ioc->refcount) <= 0); in get_io_context_active()
Dpage_counter.h47 return atomic_long_read(&counter->usage); in page_counter_read()
/Linux-v5.4/kernel/sched/
Dloadavg.c276 if (atomic_long_read(&calc_load_nohz[idx])) in calc_load_nohz_fold()
304 active = atomic_long_read(&calc_load_tasks); in calc_global_nohz()
353 active = atomic_long_read(&calc_load_tasks); in calc_global_load()
/Linux-v5.4/drivers/md/bcache/
Dsysfs.c184 wb ? atomic_long_read(&dc->writeback_rate.rate) << 9 : 0); in SHOW()
207 wb ? atomic_long_read(&dc->writeback_rate.rate) << 9 in SHOW()
296 long int v = atomic_long_read(&dc->writeback_rate.rate); in STORE()
708 atomic_long_read(&c->cache_read_races)); in SHOW()
711 atomic_long_read(&c->reclaim)); in SHOW()
714 atomic_long_read(&c->reclaimed_journal_buckets)); in SHOW()
717 atomic_long_read(&c->flush_write)); in SHOW()
720 atomic_long_read(&c->writeback_keys_done)); in SHOW()
722 atomic_long_read(&c->writeback_keys_failed)); in SHOW()
979 sysfs_hprint(written, atomic_long_read(&ca->sectors_written) << 9); in SHOW()
[all …]
/Linux-v5.4/drivers/target/
Dtarget_core_stat.c145 atomic_long_read(&to_stat_tgt_dev(item)->num_resets)); in target_stat_tgt_resets_show()
152 atomic_long_read(&to_stat_tgt_dev(item)->aborts_complete)); in target_stat_tgt_aborts_complete_show()
159 atomic_long_read(&to_stat_tgt_dev(item)->aborts_no_task)); in target_stat_tgt_aborts_no_task_show()
289 atomic_long_read(&dev->num_cmds)); in target_stat_lu_num_cmds_show()
299 atomic_long_read(&dev->read_bytes) >> 20); in target_stat_lu_read_mbytes_show()
309 atomic_long_read(&dev->write_bytes) >> 20); in target_stat_lu_write_mbytes_show()
318 atomic_long_read(&dev->num_resets)); in target_stat_lu_resets_show()
619 atomic_long_read(&lun->lun_stats.cmd_pdus)); in target_stat_tgt_port_in_cmds_show()
635 (u32)(atomic_long_read(&lun->lun_stats.rx_data_octets) >> 20)); in target_stat_tgt_port_write_mbytes_show()
651 (u32)(atomic_long_read(&lun->lun_stats.tx_data_octets) >> 20)); in target_stat_tgt_port_read_mbytes_show()
[all …]
/Linux-v5.4/lib/
Dpercpu-refcount.c144 atomic_long_read(&ref->count), (long)count); in percpu_ref_switch_to_atomic_rcu()
160 WARN_ONCE(atomic_long_read(&ref->count) <= 0, in percpu_ref_switch_to_atomic_rcu()
162 ref->release, atomic_long_read(&ref->count)); in percpu_ref_switch_to_atomic_rcu()
Dshow_mem.c42 printk("%lu pages hwpoisoned\n", atomic_long_read(&num_poisoned_pages)); in show_mem()
/Linux-v5.4/arch/powerpc/mm/book3s64/
Dpgtable.c417 atomic_long_read(&direct_pages_count[MMU_PAGE_4K]) << 2); in arch_report_meminfo()
419 atomic_long_read(&direct_pages_count[MMU_PAGE_64K]) << 6); in arch_report_meminfo()
421 atomic_long_read(&direct_pages_count[MMU_PAGE_2M]) << 11); in arch_report_meminfo()
423 atomic_long_read(&direct_pages_count[MMU_PAGE_1G]) << 20); in arch_report_meminfo()
/Linux-v5.4/net/ipv6/
Dproc.c160 atomic_long_read(smib + i)); in snmp6_seq_show_icmpv6msg()
167 val = atomic_long_read(smib + i); in snmp6_seq_show_icmpv6msg()
196 atomic_long_read(smib + itemlist[i].entry)); in snmp6_seq_show_item()
/Linux-v5.4/net/unix/
Dgarbage.c237 inflight_refs = atomic_long_read(&u->inflight); in unix_gc()
268 if (atomic_long_read(&u->inflight) > 0) { in unix_gc()
/Linux-v5.4/fs/proc/
Dmeminfo.c85 (unsigned long)atomic_long_read(&mmap_pages_allocated)); in meminfo_proc_show()
125 atomic_long_read(&num_poisoned_pages) << (PAGE_SHIFT - 10)); in meminfo_proc_show()
/Linux-v5.4/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-v5.4/drivers/target/iscsi/
Discsi_target_stat.c656 atomic_long_read(&sess->cmd_pdus)); in iscsi_stat_sess_cmd_pdus_show()
678 atomic_long_read(&sess->rsp_pdus)); in iscsi_stat_sess_rsp_pdus_show()
700 atomic_long_read(&sess->tx_data_octets)); in iscsi_stat_sess_txdata_octs_show()
722 atomic_long_read(&sess->rx_data_octets)); in iscsi_stat_sess_rxdata_octs_show()
744 atomic_long_read(&sess->conn_digest_errors)); in iscsi_stat_sess_conn_digest_errors_show()
766 atomic_long_read(&sess->conn_timeout_errors)); in iscsi_stat_sess_conn_timeout_errors_show()
/Linux-v5.4/arch/s390/mm/
Dpageattr.c49 atomic_long_read(&direct_pages_count[PG_DIRECT_MAP_4K]) << 2); in arch_report_meminfo()
51 atomic_long_read(&direct_pages_count[PG_DIRECT_MAP_1M]) << 10); in arch_report_meminfo()
53 atomic_long_read(&direct_pages_count[PG_DIRECT_MAP_2G]) << 21); in arch_report_meminfo()
/Linux-v5.4/drivers/tty/
Dtty_ldsem.c348 long count = atomic_long_read(&sem->count); in ldsem_down_read_trylock()
374 long count = atomic_long_read(&sem->count); in ldsem_down_write_trylock()

12345