/linux-6.12.1/arch/riscv/kernel/ |
D | sbi.c | 23 static int (*__sbi_rfence)(int fid, const struct cpumask *cpu_mask, 28 static unsigned long __sbi_v01_cpumask_to_hartmask(const struct cpumask *cpu_mask) in __sbi_v01_cpumask_to_hartmask() argument 40 for_each_cpu(cpuid, cpu_mask) { in __sbi_v01_cpumask_to_hartmask() 114 static int __sbi_rfence_v01(int fid, const struct cpumask *cpu_mask, in __sbi_rfence_v01() argument 121 if (!cpu_mask || cpumask_empty(cpu_mask)) in __sbi_rfence_v01() 122 cpu_mask = cpu_online_mask; in __sbi_rfence_v01() 123 hart_mask = __sbi_v01_cpumask_to_hartmask(cpu_mask); in __sbi_rfence_v01() 166 static int __sbi_rfence_v01(int fid, const struct cpumask *cpu_mask, in __sbi_rfence_v01() argument 257 static int __sbi_rfence_v02(int fid, const struct cpumask *cpu_mask, in __sbi_rfence_v02() argument 264 if (!cpu_mask || cpumask_empty(cpu_mask)) in __sbi_rfence_v02() [all …]
|
/linux-6.12.1/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.12.1/scripts/gdb/linux/ |
D | cpus.py | 52 cpu_mask = {} variable 56 global cpu_mask 57 cpu_mask = {} 64 global cpu_mask 66 if mask_name in cpu_mask: 67 mask = cpu_mask[mask_name] 71 cpu_mask[mask_name] = mask
|
/linux-6.12.1/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.12.1/arch/riscv/include/asm/ |
D | sbi.h | 330 int sbi_remote_fence_i(const struct cpumask *cpu_mask); 332 int sbi_remote_sfence_vma_asid(const struct cpumask *cpu_mask, 336 int sbi_remote_hfence_gvma(const struct cpumask *cpu_mask, 339 int sbi_remote_hfence_gvma_vmid(const struct cpumask *cpu_mask, 343 int sbi_remote_hfence_vvma(const struct cpumask *cpu_mask, 346 int sbi_remote_hfence_vvma_asid(const struct cpumask *cpu_mask, 402 static inline int sbi_remote_fence_i(const struct cpumask *cpu_mask) { return -1; } in sbi_remote_fence_i() argument
|
/linux-6.12.1/tools/power/x86/amd_pstate_tracer/ |
D | amd_pstate_trace.py | 155 …, freq_ghz, mperf, aperf, tsc, common_comm, load, duration_ms, sample_num, elapsed_time, cpu_mask): argument 160 if cpu_mask[cpu_int] == 0: 185 def read_trace_data(file_name, cpu_mask): argument 234 …f, freq_ghz, mperf, aperf, tsc, common_comm, load, duration_ms, sample_num, elapsed_time, cpu_mask) 239 ipt.split_csv(current_max_cpu, cpu_mask) 263 cpu_mask = zeros((MAX_CPUS,), dtype=int) variable 297 cpu_mask[int(p)] = 1 300 cpu_mask[i] = 1 330 read_trace_data(file_name, cpu_mask)
|
/linux-6.12.1/arch/x86/kernel/cpu/resctrl/ |
D | rdtgroup.c | 319 mask = &rdtgrp->plr->d->hdr.cpu_mask; in rdtgroup_cpus_show() 326 cpumask_pr_args(&rdtgrp->cpu_mask)); in rdtgroup_cpus_show() 365 update_closid_rmid(const struct cpumask *cpu_mask, struct rdtgroup *r) in update_closid_rmid() argument 367 on_each_cpu_mask(cpu_mask, update_cpu_closid_rmid, r, 1); in update_closid_rmid() 377 cpumask_andnot(tmpmask, newmask, &prgrp->cpu_mask); in cpus_mon_write() 384 cpumask_andnot(tmpmask, &rdtgrp->cpu_mask, newmask); in cpus_mon_write() 387 cpumask_or(&prgrp->cpu_mask, &prgrp->cpu_mask, tmpmask); in cpus_mon_write() 395 cpumask_andnot(tmpmask, newmask, &rdtgrp->cpu_mask); in cpus_mon_write() 401 cpumask_andnot(&crgrp->cpu_mask, &crgrp->cpu_mask, in cpus_mon_write() 408 cpumask_copy(&rdtgrp->cpu_mask, newmask); in cpus_mon_write() [all …]
|
D | core.c | 370 if (cpumask_test_cpu(cpu, &d->hdr.cpu_mask)) in get_ctrl_domain_from_cpu() 385 if (cpumask_test_cpu(cpu, &d->hdr.cpu_mask)) in get_mon_domain_from_cpu() 552 cpumask_set_cpu(cpu, &d->hdr.cpu_mask); in domain_add_cpu_ctrl() 565 cpumask_set_cpu(cpu, &d->hdr.cpu_mask); in domain_add_cpu_ctrl() 607 cpumask_set_cpu(cpu, &d->hdr.cpu_mask); in domain_add_cpu_mon() 624 cpumask_set_cpu(cpu, &d->hdr.cpu_mask); in domain_add_cpu_mon() 679 cpumask_clear_cpu(cpu, &d->hdr.cpu_mask); in domain_remove_cpu_ctrl() 680 if (cpumask_empty(&d->hdr.cpu_mask)) { in domain_remove_cpu_ctrl() 725 cpumask_clear_cpu(cpu, &d->hdr.cpu_mask); in domain_remove_cpu_mon() 726 if (cpumask_empty(&d->hdr.cpu_mask)) { in domain_remove_cpu_mon()
|
D | monitor.c | 276 int cpu = cpumask_any(&d->hdr.cpu_mask); in resctrl_arch_reset_rmid() 321 int cpu = cpumask_any(&d->hdr.cpu_mask); in resctrl_arch_rmid_read() 611 if (!cpumask_test_cpu(cpu, &rr->d->hdr.cpu_mask)) in __mon_event_count() 883 d->cqm_work_cpu = cpumask_any_housekeeping(&d->hdr.cpu_mask, in cqm_handle_limbo() 907 cpu = cpumask_any_housekeeping(&dom->hdr.cpu_mask, exclude_cpu); in cqm_setup_limbo_handler() 950 d->mbm_work_cpu = cpumask_any_housekeeping(&d->hdr.cpu_mask, in mbm_handle_overflow() 979 cpu = cpumask_any_housekeeping(&dom->hdr.cpu_mask, exclude_cpu); in mbm_setup_overflow_handler()
|
/linux-6.12.1/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.12.1/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.12.1/kernel/trace/ |
D | preemptirq_delay_test.c | 120 struct cpumask cpu_mask; in preemptirq_delay_run() local 123 cpumask_clear(&cpu_mask); in preemptirq_delay_run() 124 cpumask_set_cpu(cpu_affinity, &cpu_mask); in preemptirq_delay_run() 125 if (set_cpus_allowed_ptr(current, &cpu_mask)) in preemptirq_delay_run()
|
/linux-6.12.1/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.12.1/tools/testing/selftests/ring-buffer/ |
D | map_test.c | 140 cpu_set_t cpu_mask; in FIXTURE_SETUP() local 168 CPU_ZERO(&cpu_mask); in FIXTURE_SETUP() 169 CPU_SET(cpu, &cpu_mask); in FIXTURE_SETUP() 170 ASSERT_EQ(sched_setaffinity(0, sizeof(cpu_mask), &cpu_mask), 0); in FIXTURE_SETUP()
|
/linux-6.12.1/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.12.1/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.12.1/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.12.1/arch/powerpc/mm/nohash/ |
D | tlb.c | 236 struct cpumask *cpu_mask; in __flush_tlb_page() local 250 cpu_mask = mm_cpumask(mm); in __flush_tlb_page() 269 smp_call_function_many(cpu_mask, in __flush_tlb_page()
|
/linux-6.12.1/arch/arm/mm/ |
D | proc-arm9tdmi.S | 83 .macro arm9tdmi_proc_info name:req, cpu_val:req, cpu_mask:req, cpu_name:req 87 .long \cpu_mask
|
D | proc-arm7tdmi.S | 89 .macro arm7tdmi_proc_info name:req, cpu_val:req, cpu_mask:req, cpu_name:req, \ 94 .long \cpu_mask
|
/linux-6.12.1/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.12.1/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.12.1/io_uring/ |
D | io-wq.c | 125 cpumask_var_t cpu_mask; member 684 wq->cpu_mask); in io_wq_worker() 736 set_cpus_allowed_ptr(tsk, wq->cpu_mask); in io_init_new_worker() 1169 if (!alloc_cpumask_var(&wq->cpu_mask, GFP_KERNEL)) in io_wq_create() 1171 cpuset_cpus_allowed(data->task, wq->cpu_mask); in io_wq_create() 1200 free_cpumask_var(wq->cpu_mask); in io_wq_create() 1268 free_cpumask_var(wq->cpu_mask); in io_wq_destroy() 1291 cpumask_set_cpu(od->cpu, worker->wq->cpu_mask); in io_wq_worker_affinity() 1293 cpumask_clear_cpu(od->cpu, worker->wq->cpu_mask); in io_wq_worker_affinity() 1339 cpumask_copy(tctx->io_wq->cpu_mask, mask); in io_wq_cpu_affinity() [all …]
|
/linux-6.12.1/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()
|