Searched refs:cpu (Results 1 – 10 of 10) sorted by relevance
/fs/proc/ |
D | stat.c | 16 #define arch_irq_stat_cpu(cpu) 0 argument 24 static cputime64_t get_idle_time(int cpu) in get_idle_time() argument 28 idle = kcpustat_cpu(cpu).cpustat[CPUTIME_IDLE]; in get_idle_time() 29 if (cpu_online(cpu) && !nr_iowait_cpu(cpu)) in get_idle_time() 30 idle += arch_idle_time(cpu); in get_idle_time() 34 static cputime64_t get_iowait_time(int cpu) in get_iowait_time() argument 38 iowait = kcpustat_cpu(cpu).cpustat[CPUTIME_IOWAIT]; in get_iowait_time() 39 if (cpu_online(cpu) && nr_iowait_cpu(cpu)) in get_iowait_time() 40 iowait += arch_idle_time(cpu); in get_iowait_time() 46 static u64 get_idle_time(int cpu) in get_idle_time() argument [all …]
|
/fs/squashfs/ |
D | decompressor_multi_percpu.c | 33 int err, cpu; in squashfs_decompressor_create() local 39 for_each_possible_cpu(cpu) { in squashfs_decompressor_create() 40 stream = per_cpu_ptr(percpu, cpu); in squashfs_decompressor_create() 52 for_each_possible_cpu(cpu) { in squashfs_decompressor_create() 53 stream = per_cpu_ptr(percpu, cpu); in squashfs_decompressor_create() 66 int cpu; in squashfs_decompressor_destroy() local 69 for_each_possible_cpu(cpu) { in squashfs_decompressor_destroy() 70 stream = per_cpu_ptr(percpu, cpu); in squashfs_decompressor_destroy()
|
/fs/pstore/ |
D | internal.h | 18 unsigned int cpu; member 23 pstore_ftrace_encode_cpu(struct pstore_ftrace_record *rec, unsigned int cpu) in pstore_ftrace_encode_cpu() argument 26 rec->cpu = cpu; in pstore_ftrace_encode_cpu() 28 rec->ip |= cpu; in pstore_ftrace_encode_cpu() 36 return rec->cpu; in pstore_ftrace_decode_cpu()
|
/fs/xfs/ |
D | xfs_stats.c | 25 int val = 0, cpu; in counter_val() local 27 for_each_possible_cpu(cpu) in counter_val() 28 val += *(((__u32 *)&per_cpu(xfsstats, cpu) + idx)); in counter_val()
|
/fs/fscache/ |
D | main.c | 106 unsigned int cpu; in fscache_init() local 129 for_each_possible_cpu(cpu) in fscache_init() 130 init_waitqueue_head(&per_cpu(fscache_object_cong_wait, cpu)); in fscache_init()
|
/fs/btrfs/ |
D | ctree.h | 2471 static inline void btrfs_disk_key_to_cpu(struct btrfs_key *cpu, in btrfs_disk_key_to_cpu() argument 2474 cpu->offset = le64_to_cpu(disk->offset); in btrfs_disk_key_to_cpu() 2475 cpu->type = disk->type; in btrfs_disk_key_to_cpu() 2476 cpu->objectid = le64_to_cpu(disk->objectid); in btrfs_disk_key_to_cpu() 2480 struct btrfs_key *cpu) in btrfs_cpu_key_to_disk() argument 2482 disk->offset = cpu_to_le64(cpu->offset); in btrfs_cpu_key_to_disk() 2483 disk->type = cpu->type; in btrfs_cpu_key_to_disk() 2484 disk->objectid = cpu_to_le64(cpu->objectid); in btrfs_cpu_key_to_disk() 2712 btrfs_disk_balance_args_to_cpu(struct btrfs_balance_args *cpu, in btrfs_disk_balance_args_to_cpu() argument 2715 memset(cpu, 0, sizeof(*cpu)); in btrfs_disk_balance_args_to_cpu() [all …]
|
/fs/ |
D | file_table.c | 367 int cpu; in __file_sb_list_add() local 368 cpu = smp_processor_id(); in __file_sb_list_add() 369 file->f_sb_list_cpu = cpu; in __file_sb_list_add() 370 list = per_cpu_ptr(sb->s_files, cpu); in __file_sb_list_add()
|
D | namespace.c | 153 int cpu; in mnt_get_count() local 155 for_each_possible_cpu(cpu) { in mnt_get_count() 156 count += per_cpu_ptr(mnt->mnt_pcp, cpu)->mnt_count; in mnt_get_count() 269 int cpu; in mnt_get_writers() local 271 for_each_possible_cpu(cpu) { in mnt_get_writers() 272 count += per_cpu_ptr(mnt->mnt_pcp, cpu)->mnt_writers; in mnt_get_writers()
|
D | buffer.c | 1403 static bool has_bh_in_lru(int cpu, void *dummy) in has_bh_in_lru() argument 1405 struct bh_lru *b = per_cpu_ptr(&bh_lrus, cpu); in has_bh_in_lru() 3316 static void buffer_exit_cpu(int cpu) in buffer_exit_cpu() argument 3319 struct bh_lru *b = &per_cpu(bh_lrus, cpu); in buffer_exit_cpu() 3325 this_cpu_add(bh_accounting.nr, per_cpu(bh_accounting, cpu).nr); in buffer_exit_cpu() 3326 per_cpu(bh_accounting, cpu).nr = 0; in buffer_exit_cpu()
|
/fs/nfs/ |
D | super.c | 802 int i, cpu; in nfs_show_stats() local 851 for_each_possible_cpu(cpu) { in nfs_show_stats() 855 stats = per_cpu_ptr(nfss->io_stats, cpu); in nfs_show_stats()
|