/linux-6.6.21/arch/riscv/kernel/ |
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 …]
|
/linux-6.6.21/arch/powerpc/platforms/pseries/ |
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 …]
|
/linux-6.6.21/scripts/gdb/linux/ |
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
|
/linux-6.6.21/arch/riscv/include/asm/ |
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
|
/linux-6.6.21/lib/ |
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()
|
/linux-6.6.21/arch/x86/kernel/cpu/resctrl/ |
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 …]
|
D | ctrlmondata.c | 270 cpumask_var_t cpu_mask) in apply_config() argument 275 cpumask_set_cpu(cpumask_any(&dom->cpu_mask), cpu_mask); in apply_config() 292 if (!cpumask_test_cpu(smp_processor_id(), &d->cpu_mask)) in resctrl_arch_update_one() 311 cpumask_var_t cpu_mask; in resctrl_arch_update_domains() local 315 if (!zalloc_cpumask_var(&cpu_mask, GFP_KERNEL)) in resctrl_arch_update_domains() 327 if (!apply_config(hw_dom, cfg, idx, cpu_mask)) in resctrl_arch_update_domains() 341 if (cpumask_empty(cpu_mask)) in resctrl_arch_update_domains() 345 on_each_cpu_mask(cpu_mask, rdt_ctrl_update, &msr_param, 1); in resctrl_arch_update_domains() 348 free_cpumask_var(cpu_mask); in resctrl_arch_update_domains() 537 smp_call_function_any(&d->cpu_mask, mon_event_count, rr, 1); in mon_event_read()
|
D | core.c | 357 if (cpumask_test_cpu(cpu, &d->cpu_mask)) in get_domain_from_cpu() 518 cpumask_set_cpu(cpu, &d->cpu_mask); in domain_add_cpu() 530 cpumask_set_cpu(cpu, &d->cpu_mask); in domain_add_cpu() 566 cpumask_clear_cpu(cpu, &d->cpu_mask); in domain_remove_cpu() 567 if (cpumask_empty(&d->cpu_mask)) { in domain_remove_cpu() 614 cpumask_set_cpu(cpu, &rdtgroup_default.cpu_mask); in resctrl_online_cpu() 626 if (cpumask_test_and_clear_cpu(cpu, &cr->cpu_mask)) { in clear_childcpus() 641 if (cpumask_test_and_clear_cpu(cpu, &rdtgrp->cpu_mask)) { in resctrl_offline_cpu()
|
D | pseudo_lock.c | 224 for_each_cpu(cpu, &plr->d->cpu_mask) { in pseudo_lock_cstates_constrain() 300 plr->cpu = cpumask_first(&plr->d->cpu_mask); in pseudo_lock_region_init() 733 if (!cpumask_empty(&rdtgrp->cpu_mask)) { in rdtgroup_locksetup_enter() 858 &d_i->cpu_mask); in rdtgroup_pseudo_locked_in_hierarchy() 866 if (cpumask_intersects(&d->cpu_mask, cpu_with_psl)) in rdtgroup_pseudo_locked_in_hierarchy() 1198 cpu = cpumask_first(&plr->d->cpu_mask); in pseudo_lock_measure_cycles() 1528 if (!cpumask_subset(current->cpus_ptr, &plr->d->cpu_mask)) { in pseudo_lock_dev_mmap()
|
/linux-6.6.21/arch/sparc/mm/ |
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 …]
|
/linux-6.6.21/tools/power/x86/amd_pstate_tracer/ |
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)
|
/linux-6.6.21/tools/power/x86/intel_pstate_tracer/ |
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 …]
|
/linux-6.6.21/arch/x86/events/amd/ |
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()
|
/linux-6.6.21/arch/arm/mach-omap2/ |
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()
|
/linux-6.6.21/kernel/trace/ |
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()
|
/linux-6.6.21/drivers/irqchip/ |
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()
|
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()
|
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/ |
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()
|
/linux-6.6.21/arch/arm/mm/ |
D | proc-arm9tdmi.S | 71 .macro arm9tdmi_proc_info name:req, cpu_val:req, cpu_mask:req, cpu_name:req 75 .long \cpu_mask
|
D | proc-arm7tdmi.S | 77 .macro arm7tdmi_proc_info name:req, cpu_val:req, cpu_mask:req, cpu_name:req, \ 82 .long \cpu_mask
|
/linux-6.6.21/tools/perf/tests/ |
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()
|
/linux-6.6.21/drivers/soc/ti/ |
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()
|
/linux-6.6.21/arch/x86/hyperv/ |
D | hv_apic.c | 201 ipi_arg.cpu_mask = 0; in __send_ipi_mask() 217 __set_bit(vcpu, (unsigned long *)&ipi_arg.cpu_mask); in __send_ipi_mask() 221 ipi_arg.cpu_mask); in __send_ipi_mask()
|
/linux-6.6.21/io_uring/ |
D | io-wq.c | 123 cpumask_var_t cpu_mask; member 678 wq->cpu_mask); in io_wq_worker() 730 set_cpus_allowed_ptr(tsk, wq->cpu_mask); in io_init_new_worker() 1162 if (!alloc_cpumask_var(&wq->cpu_mask, GFP_KERNEL)) in io_wq_create() 1164 cpumask_copy(wq->cpu_mask, cpu_possible_mask); in io_wq_create() 1193 free_cpumask_var(wq->cpu_mask); in io_wq_create() 1261 free_cpumask_var(wq->cpu_mask); in io_wq_destroy() 1284 cpumask_set_cpu(od->cpu, worker->wq->cpu_mask); in io_wq_worker_affinity() 1286 cpumask_clear_cpu(od->cpu, worker->wq->cpu_mask); in io_wq_worker_affinity() 1324 cpumask_copy(tctx->io_wq->cpu_mask, mask); in io_wq_cpu_affinity() [all …]
|
/linux-6.6.21/arch/arm/mach-omap1/ |
D | clock_data.c | 692 u32 cpu_mask; variable 716 cpu_mask = 0; in omap1_clk_init() 718 cpu_mask |= CK_1710; in omap1_clk_init() 720 cpu_mask |= CK_16XX; in omap1_clk_init() 722 cpu_mask |= CK_1510; in omap1_clk_init() 724 cpu_mask |= CK_310; in omap1_clk_init() 791 if (!(c->cpu & cpu_mask)) in omap1_clk_init()
|