/linux-6.6.21/drivers/irqchip/ |
D | irq-ompic.c | 165 if (resource_size(&res) < (num_possible_cpus() * OMPIC_CPUBYTES)) { in ompic_of_init() 168 (num_possible_cpus() * OMPIC_CPUBYTES)); in ompic_of_init()
|
/linux-6.6.21/drivers/clocksource/ |
D | ingenic-timer.c | 289 tcu = kzalloc(struct_size(tcu, timers, num_possible_cpus()), in ingenic_tcu_init() 299 num_possible_cpus() + 1); in ingenic_tcu_init() 305 soc_info->num_channels - num_possible_cpus() + 1) { in ingenic_tcu_init() 316 for (cpu = 0; cpu < num_possible_cpus(); cpu++) { in ingenic_tcu_init()
|
/linux-6.6.21/arch/ia64/mm/ |
D | contig.c | 83 size_t size = PERCPU_PAGE_SIZE * num_possible_cpus(); in alloc_per_cpu_data() 108 ai = pcpu_alloc_alloc_info(1, num_possible_cpus()); in setup_per_cpu_areas()
|
D | tlb.c | 205 need_ptcg_sem = num_possible_cpus() > nptcg; in setup_ptcg_sem() 224 need_ptcg_sem = (num_possible_cpus() > nptcg); in setup_ptcg_sem() 241 need_ptcg_sem = (num_possible_cpus() > nptcg); in setup_ptcg_sem()
|
/linux-6.6.21/drivers/nvdimm/ |
D | region.c | 25 && nd_region->num_lanes < num_possible_cpus() in nd_region_probe() 29 num_possible_cpus()); in nd_region_probe()
|
/linux-6.6.21/drivers/cpufreq/ |
D | armada-8k-cpufreq.c | 104 int opps_index, nb_cpus = num_possible_cpus(); in armada_8k_cpufreq_free_table() 145 nb_cpus = num_possible_cpus(); in armada_8k_cpufreq_init()
|
/linux-6.6.21/arch/x86/kernel/ |
D | i8253.c | 60 if (num_possible_cpus() > 1 || is_hpet_enabled() || in init_pit_clocksource()
|
D | kvmclock.c | 209 if (HVC_BOOT_ARRAY_SIZE >= num_possible_cpus()) in kvmclock_init_mem() 212 ncpus = num_possible_cpus() - HVC_BOOT_ARRAY_SIZE; in kvmclock_init_mem()
|
D | kvm.c | 480 (num_possible_cpus() != 1)); in pv_tlb_flush_supported() 486 (num_possible_cpus() != 1)); in pv_ipi_supported() 495 (num_possible_cpus() != 1)); in pv_sched_yield_supported() 1088 if (num_possible_cpus() == 1) { in kvm_spinlock_init()
|
/linux-6.6.21/arch/mips/kernel/ |
D | i8253.c | 32 if (num_possible_cpus() > 1 || /* PIT does not scale! */ in init_pit_clocksource()
|
/linux-6.6.21/arch/sparc/kernel/ |
D | cpumap.c | 138 for (i = 0; i < num_possible_cpus(); i++) { in enumerate_cpuinfo_nodes() 233 for (last_cpu = (num_possible_cpus() - 1); last_cpu >= 0; last_cpu--) { in build_cpuinfo_tree() 381 for (i = 0; i < num_possible_cpus(); i++) { in simple_map_to_cpu()
|
/linux-6.6.21/drivers/ufs/core/ |
D | ufs-mcq.c | 38 num_possible_cpus()); in rw_queue_count_set() 54 num_possible_cpus()); in read_queue_count_set() 70 num_possible_cpus()); in poll_queue_count_set() 175 rw_queues = num_possible_cpus(); in ufshcd_mcq_config_nr_queues() 190 num_possible_cpus()); in ufshcd_mcq_config_nr_queues()
|
/linux-6.6.21/arch/microblaze/include/asm/ |
D | fixmap.h | 50 FIX_KMAP_END = FIX_KMAP_BEGIN + (KM_MAX_IDX * num_possible_cpus()) - 1,
|
/linux-6.6.21/arch/csky/mm/ |
D | context.c | 31 BUG_ON(((1 << CONFIG_CPU_ASID_BITS) - 1) <= num_possible_cpus()); in asids_init()
|
/linux-6.6.21/kernel/bpf/ |
D | percpu_freelist.c | 105 n = nr_elems / num_possible_cpus(); in pcpu_freelist_populate() 106 m = nr_elems % num_possible_cpus(); in pcpu_freelist_populate()
|
/linux-6.6.21/samples/trace_events/ |
D | trace-events-sample.h | 302 __bitmask( cpus, num_possible_cpus() ) 314 __assign_bitmask(cpus, cpumask_bits(mask), num_possible_cpus());
|
/linux-6.6.21/drivers/thermal/ |
D | thermal_trace.h | 120 __bitmask(cpumask, num_possible_cpus()) 128 num_possible_cpus());
|
/linux-6.6.21/lib/ |
D | bucket_locks.c | 23 unsigned int nr_pcpus = num_possible_cpus(); in __alloc_bucket_spinlocks()
|
/linux-6.6.21/drivers/platform/x86/intel/speed_select_if/ |
D | isst_if_common.c | 316 cpu >= nr_cpu_ids || cpu >= num_possible_cpus()) in _isst_if_get_pci_dev() 388 cpu >= nr_cpu_ids || cpu >= num_possible_cpus()) in isst_if_get_pci_dev() 446 isst_cpu_info = kcalloc(num_possible_cpus(), in isst_if_cpu_info_init() 487 cpu_map->logical_cpu >= num_possible_cpus()) in isst_if_proc_phyid_req()
|
/linux-6.6.21/arch/arm64/mm/ |
D | context.c | 387 WARN_ON(num_available_asids - 1 <= num_possible_cpus()); in asids_update_limit() 396 max_pinned_asids = num_available_asids - num_possible_cpus() - 2; in asids_update_limit()
|
/linux-6.6.21/arch/s390/pci/ |
D | pci_irq.c | 424 zpci_sbv = airq_iv_create(num_possible_cpus(), 0, NULL); in zpci_directed_irq_init() 429 iib.diib.nr_cpus = num_possible_cpus(); in zpci_directed_irq_init() 433 zpci_ibv = kcalloc(num_possible_cpus(), sizeof(*zpci_ibv), in zpci_directed_irq_init()
|
/linux-6.6.21/arch/riscv/kvm/ |
D | vmid.c | 39 if ((1UL << vmid_bits) < num_possible_cpus()) in kvm_riscv_gstage_vmid_detect()
|
/linux-6.6.21/drivers/hwtracing/stm/ |
D | ftrace.c | 68 stm_ftrace.data.nr_chans = roundup_pow_of_two(num_possible_cpus()); in stm_ftrace_init()
|
/linux-6.6.21/drivers/hv/ |
D | hv_common.c | 338 hv_vp_index = kmalloc_array(num_possible_cpus(), sizeof(*hv_vp_index), in hv_common_init() 345 for (i = 0; i < num_possible_cpus(); i++) in hv_common_init()
|
/linux-6.6.21/arch/s390/hypfs/ |
D | hypfs_diag0c.c | 38 cpu_vec = kmalloc_array(num_possible_cpus(), sizeof(*cpu_vec), in diag0c_store()
|