/openbmc/linux/arch/riscv/kernel/ |
H A D | sbi.c | 22 static int (*__sbi_rfence)(int fid, const struct cpumask *cpu_mask, 72 static unsigned long __sbi_v01_cpumask_to_hartmask(const struct cpumask *cpu_mask) in __sbi_v01_cpumask_to_hartmask() argument 84 for_each_cpu(cpuid, cpu_mask) { in __sbi_v01_cpumask_to_hartmask() 158 static int __sbi_rfence_v01(int fid, const struct cpumask *cpu_mask, in __sbi_rfence_v01() argument 165 if (!cpu_mask || cpumask_empty(cpu_mask)) in __sbi_rfence_v01() 166 cpu_mask = cpu_online_mask; in __sbi_rfence_v01() 167 hart_mask = __sbi_v01_cpumask_to_hartmask(cpu_mask); in __sbi_rfence_v01() 210 static int __sbi_rfence_v01(int fid, const struct cpumask *cpu_mask, in __sbi_rfence_v01() argument 301 static int __sbi_rfence_v02(int fid, const struct cpumask *cpu_mask, in __sbi_rfence_v02() argument 308 if (!cpu_mask || cpumask_empty(cpu_mask)) in __sbi_rfence_v02() [all …]
|
/openbmc/qemu/linux-user/alpha/ |
H A D | target_proc.h | 13 unsigned long cpu_mask; in open_cpuinfo() local 25 t = sched_getaffinity(getpid(), sizeof(cpu_mask), (cpu_set_t *)&cpu_mask); in open_cpuinfo() 27 if (num_cpus >= sizeof(cpu_mask) * 8) { in open_cpuinfo() 28 cpu_mask = -1; in open_cpuinfo() 30 cpu_mask = (1UL << num_cpus) - 1; in open_cpuinfo() 61 max_cpus, num_cpus, cpu_mask); in open_cpuinfo()
|
/openbmc/linux/arch/powerpc/platforms/pseries/ |
H A D | hotplug-cpu.c | 154 cpumask_var_t *cpu_mask) in find_cpu_id_range() argument 163 cpumask_clear(*cpu_mask); in find_cpu_id_range() 165 cpumask_set_cpu(cpu, *cpu_mask); in find_cpu_id_range() 189 while (!cpumask_empty(*cpu_mask)) { in find_cpu_id_range() 190 if (cpumask_subset(*cpu_mask, candidate_mask)) in find_cpu_id_range() 193 cpumask_shift_left(*cpu_mask, *cpu_mask, nthreads); in find_cpu_id_range() 196 if (!cpumask_empty(*cpu_mask)) in find_cpu_id_range() 215 cpumask_var_t cpu_mask; in pseries_add_processor() local 224 if (!alloc_cpumask_var(&cpu_mask, GFP_KERNEL)) in pseries_add_processor() 240 rc = find_cpu_id_range(nthreads, node, &cpu_mask); in pseries_add_processor() [all …]
|
/openbmc/linux/arch/riscv/include/asm/ |
H A D | sbi.h | 275 int sbi_remote_fence_i(const struct cpumask *cpu_mask); 277 int sbi_remote_sfence_vma_asid(const struct cpumask *cpu_mask, 281 int sbi_remote_hfence_gvma(const struct cpumask *cpu_mask, 284 int sbi_remote_hfence_gvma_vmid(const struct cpumask *cpu_mask, 288 int sbi_remote_hfence_vvma(const struct cpumask *cpu_mask, 291 int sbi_remote_hfence_vvma_asid(const struct cpumask *cpu_mask, 326 static inline int sbi_remote_fence_i(const struct cpumask *cpu_mask) { return -1; } in sbi_remote_fence_i() argument
|
/openbmc/linux/scripts/gdb/linux/ |
H A D | cpus.py | 56 cpu_mask = {} variable 60 global cpu_mask 61 cpu_mask = {} 68 global cpu_mask 70 if mask_name in cpu_mask: 71 mask = cpu_mask[mask_name] 75 cpu_mask[mask_name] = mask
|
/openbmc/linux/lib/ |
H A D | group_cpus.c | 132 const struct cpumask *cpu_mask, in alloc_nodes_groups() argument 147 cpumask_and(nmsk, cpu_mask, node_to_cpumask[n]); in alloc_nodes_groups() 251 const struct cpumask *cpu_mask, in __group_cpus_evenly() argument 260 if (cpumask_empty(cpu_mask)) in __group_cpus_evenly() 263 nodes = get_nodes_in_cpumask(node_to_cpumask, cpu_mask, &nodemsk); in __group_cpus_evenly() 272 cpumask_and(nmsk, cpu_mask, node_to_cpumask[n]); in __group_cpus_evenly() 287 alloc_nodes_groups(numgrps, node_to_cpumask, cpu_mask, in __group_cpus_evenly() 297 cpumask_and(nmsk, cpu_mask, node_to_cpumask[nv->id]); in __group_cpus_evenly()
|
/openbmc/linux/arch/x86/kernel/cpu/resctrl/ |
H A D | rdtgroup.c | 293 mask = &rdtgrp->plr->d->cpu_mask; in rdtgroup_cpus_show() 300 cpumask_pr_args(&rdtgrp->cpu_mask)); in rdtgroup_cpus_show() 339 update_closid_rmid(const struct cpumask *cpu_mask, struct rdtgroup *r) in update_closid_rmid() argument 341 on_each_cpu_mask(cpu_mask, update_cpu_closid_rmid, r, 1); in update_closid_rmid() 351 cpumask_andnot(tmpmask, newmask, &prgrp->cpu_mask); in cpus_mon_write() 358 cpumask_andnot(tmpmask, &rdtgrp->cpu_mask, newmask); in cpus_mon_write() 361 cpumask_or(&prgrp->cpu_mask, &prgrp->cpu_mask, tmpmask); in cpus_mon_write() 369 cpumask_andnot(tmpmask, newmask, &rdtgrp->cpu_mask); in cpus_mon_write() 375 cpumask_andnot(&crgrp->cpu_mask, &crgrp->cpu_mask, in cpus_mon_write() 382 cpumask_copy(&rdtgrp->cpu_mask, newmask); in cpus_mon_write() [all …]
|
H A D | ctrlmondata.c | 275 cpumask_var_t cpu_mask) in apply_config() argument 280 cpumask_set_cpu(cpumask_any(&dom->cpu_mask), cpu_mask); in apply_config() 297 if (!cpumask_test_cpu(smp_processor_id(), &d->cpu_mask)) in resctrl_arch_update_one() 316 cpumask_var_t cpu_mask; in resctrl_arch_update_domains() local 320 if (!zalloc_cpumask_var(&cpu_mask, GFP_KERNEL)) in resctrl_arch_update_domains() 332 if (!apply_config(hw_dom, cfg, idx, cpu_mask)) in resctrl_arch_update_domains() 346 if (cpumask_empty(cpu_mask)) in resctrl_arch_update_domains() 350 on_each_cpu_mask(cpu_mask, rdt_ctrl_update, &msr_param, 1); in resctrl_arch_update_domains() 353 free_cpumask_var(cpu_mask); in resctrl_arch_update_domains() 542 smp_call_function_any(&d->cpu_mask, mon_event_count, rr, 1); in mon_event_read()
|
/openbmc/linux/arch/sparc/mm/ |
H A D | srmmu.c | 1659 cpumask_t cpu_mask; in smp_flush_cache_mm() local 1660 cpumask_copy(&cpu_mask, mm_cpumask(mm)); in smp_flush_cache_mm() 1661 cpumask_clear_cpu(smp_processor_id(), &cpu_mask); in smp_flush_cache_mm() 1662 if (!cpumask_empty(&cpu_mask)) in smp_flush_cache_mm() 1671 cpumask_t cpu_mask; in smp_flush_tlb_mm() local 1672 cpumask_copy(&cpu_mask, mm_cpumask(mm)); in smp_flush_tlb_mm() 1673 cpumask_clear_cpu(smp_processor_id(), &cpu_mask); in smp_flush_tlb_mm() 1674 if (!cpumask_empty(&cpu_mask)) { in smp_flush_tlb_mm() 1691 cpumask_t cpu_mask; in smp_flush_cache_range() local 1692 cpumask_copy(&cpu_mask, mm_cpumask(mm)); in smp_flush_cache_range() [all …]
|
/openbmc/linux/tools/power/x86/amd_pstate_tracer/ |
H A D | amd_pstate_trace.py | 156 …, freq_ghz, mperf, aperf, tsc, common_comm, load, duration_ms, sample_num, elapsed_time, cpu_mask): argument 161 if cpu_mask[cpu_int] == 0: 186 def read_trace_data(file_name, cpu_mask): argument 235 …f, freq_ghz, mperf, aperf, tsc, common_comm, load, duration_ms, sample_num, elapsed_time, cpu_mask) 240 ipt.split_csv(current_max_cpu, cpu_mask) 264 cpu_mask = zeros((MAX_CPUS,), dtype=int) variable 298 cpu_mask[int(p)] = 1 301 cpu_mask[i] = 1 331 read_trace_data(file_name, cpu_mask)
|
/openbmc/u-boot/arch/arm/cpu/armv8/s32v234/ |
H A D | cpu.c | 14 u32 cpu_mask(void) in cpu_mask() function 75 mask = cpu_mask(); in cpu_numcores() 76 numcores = hweight32(cpu_mask()); in cpu_numcores()
|
/openbmc/linux/tools/power/x86/intel_pstate_tracer/ |
H A D | intel_pstate_tracer.py | 326 …, freq_ghz, io_boost, common_comm, load, duration_ms, sample_num, elapsed_time, tsc_ghz, cpu_mask): argument 331 if cpu_mask[cpu_int] == 0: 345 def split_csv(current_max_cpu, cpu_mask): argument 350 if cpu_mask[int(index)] != 0: 420 def read_trace_data(filename, cpu_mask): argument 480 …c, freq_ghz, io_boost, common_comm, load, duration_ms, sample_num, elapsed_time, tsc_ghz, cpu_mask) 486 split_csv(current_max_cpu, cpu_mask) 511 cpu_mask = zeros((MAX_CPUS,), dtype=int) variable 544 cpu_mask[int(p)] = 1 547 cpu_mask[i] = 1 [all …]
|
/openbmc/linux/arch/x86/events/amd/ |
H A D | power.c | 41 static cpumask_t cpu_mask; variable 149 return cpumap_print_to_pagebuf(true, buf, &cpu_mask); in get_attr_cpumask() 223 if (!cpumask_test_and_clear_cpu(cpu, &cpu_mask)) in power_cpu_exit() 233 cpumask_set_cpu(target, &cpu_mask); in power_cpu_exit() 254 cpumask_set_cpu(cpu, &cpu_mask); in power_cpu_init()
|
/openbmc/linux/arch/arm/mach-omap2/ |
H A D | clkt2xxx_virt_prcm_set.c | 42 static u16 cpu_mask; variable 82 if (!(ptr->flags & cpu_mask)) in omap2_round_to_table_rate() 106 if (!(prcm->flags & cpu_mask)) in omap2_select_table_rate() 179 if (!(prcm->flags & cpu_mask)) in omap2xxx_clkt_vps_check_bootloader_rates()
|
/openbmc/qemu/tests/qtest/ |
H A D | fw_cfg-test.c | 140 uint64_t *cpu_mask; in test_fw_cfg_numa() local 148 cpu_mask = g_new0(uint64_t, max_cpus); in test_fw_cfg_numa() 151 qfw_cfg_read_data(fw_cfg, cpu_mask, sizeof(uint64_t) * max_cpus); in test_fw_cfg_numa() 155 g_assert(cpu_mask[0] & 0x01); in test_fw_cfg_numa() 160 g_free(cpu_mask); in test_fw_cfg_numa()
|
/openbmc/linux/kernel/trace/ |
H A D | preemptirq_delay_test.c | 122 struct cpumask cpu_mask; in preemptirq_delay_run() local 125 cpumask_clear(&cpu_mask); in preemptirq_delay_run() 126 cpumask_set_cpu(cpu_affinity, &cpu_mask); in preemptirq_delay_run() 127 if (set_cpus_allowed_ptr(current, &cpu_mask)) in preemptirq_delay_run()
|
/openbmc/linux/drivers/irqchip/ |
H A D | irq-vf610-mscm-ir.c | 43 u16 cpu_mask; member 95 WARN_ON(irsprc & ~chip_data->cpu_mask); in vf610_mscm_ir_enable() 97 writew_relaxed(chip_data->cpu_mask, in vf610_mscm_ir_enable() 210 mscm_ir_data->cpu_mask = 0x1 << cpuid; in vf610_mscm_ir_of_init()
|
H A D | irq-hip04.c | 272 unsigned int cpu_mask, cpu = smp_processor_id(); in hip04_irq_cpu_init() local 279 cpu_mask = hip04_get_cpumask(intc); in hip04_irq_cpu_init() 280 hip04_cpu_map[cpu] = cpu_mask; in hip04_irq_cpu_init() 288 hip04_cpu_map[i] &= ~cpu_mask; in hip04_irq_cpu_init()
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | cpu_mask.c | 33 const char *cpu_mask; member 65 err = parse_cpu_mask_str(test_cases[i].cpu_mask, &mask, &n); in test_cpu_mask()
|
/openbmc/linux/tools/perf/tests/ |
H A D | perf-record.c | 54 cpu_set_t cpu_mask; in test__PERF_RECORD() local 55 size_t cpu_mask_size = sizeof(cpu_mask); in test__PERF_RECORD() 114 err = sched__get_first_possible_cpu(evlist->workload.pid, &cpu_mask); in test__PERF_RECORD() 126 if (sched_setaffinity(evlist->workload.pid, cpu_mask_size, &cpu_mask) < 0) { in test__PERF_RECORD()
|
/openbmc/linux/arch/arm/mm/ |
H A D | proc-arm9tdmi.S | 71 .macro arm9tdmi_proc_info name:req, cpu_val:req, cpu_mask:req, cpu_name:req 75 .long \cpu_mask
|
H A D | proc-arm7tdmi.S | 77 .macro arm7tdmi_proc_info name:req, cpu_val:req, cpu_mask:req, cpu_name:req, \ 82 .long \cpu_mask
|
/openbmc/linux/arch/powerpc/mm/nohash/ |
H A D | tlb.c | 243 struct cpumask *cpu_mask; in __flush_tlb_page() local 257 cpu_mask = mm_cpumask(mm); in __flush_tlb_page() 276 smp_call_function_many(cpu_mask, in __flush_tlb_page()
|
/openbmc/linux/drivers/soc/ti/ |
H A D | knav_qmss_acc.c | 200 struct cpumask *cpu_mask; in knav_range_setup_acc_irq() local 207 cpu_mask = range->irqs[0].cpu_mask; in knav_range_setup_acc_irq() 211 cpu_mask = range->irqs[queue].cpu_mask; in knav_range_setup_acc_irq() 234 if (!ret && cpu_mask) { in knav_range_setup_acc_irq() 235 ret = irq_set_affinity_hint(irq, cpu_mask); in knav_range_setup_acc_irq()
|
/openbmc/u-boot/arch/powerpc/cpu/mpc8xxx/ |
H A D | cpu.c | 232 __weak u32 cpu_mask(void) in cpu_mask() function 295 return hweight32(cpu_mask()); in cpu_numcores() 308 return !!((1 << core) & cpu_mask()); in is_core_valid() 330 cpu->mask = cpu_mask(); in fixup_cpu()
|