Home
last modified time | relevance | path

Searched refs:cpu_to_node (Results 1 – 25 of 173) sorted by relevance

1234567

/openbmc/linux/include/linux/
H A Dtopology.h93 #ifndef cpu_to_node
94 static inline int cpu_to_node(int cpu) in cpu_to_node() function
120 return cpu_to_node(raw_smp_processor_id()); in numa_node_id()
177 return cpu_to_node(cpu); in cpu_to_mem()
245 return cpumask_of_node(cpu_to_node(cpu)); in cpu_cpu_mask()
/openbmc/linux/arch/s390/include/asm/
H A Dtopology.h74 #define cpu_to_node cpu_to_node macro
75 static inline int cpu_to_node(int cpu) in cpu_to_node() function
/openbmc/linux/drivers/watchdog/
H A Docteon-wdt-main.c134 int node = cpu_to_node(cpu); in octeon_wdt_poke_irq()
309 node = cpu_to_node(cpu); in octeon_wdt_cpu_to_irq()
333 node = cpu_to_node(cpu); in octeon_wdt_cpu_pre_down()
356 node = cpu_to_node(cpu); in octeon_wdt_cpu_online()
416 node = cpu_to_node(cpu); in octeon_wdt_ping()
473 node = cpu_to_node(cpu); in octeon_wdt_set_timeout()
/openbmc/linux/include/asm-generic/
H A Dtopology.h34 #ifndef cpu_to_node
35 #define cpu_to_node(cpu) ((void)(cpu),0) macro
/openbmc/linux/arch/loongarch/kernel/
H A Dcacheinfo.c50 (cpu_to_node(i) != cpu_to_node(cpu))) in cache_cpumap_setup()
/openbmc/linux/drivers/base/test/
H A Dtest_async_driver_probe.c113 nid = cpu_to_node(cpu); in test_async_probe_init()
147 nid = cpu_to_node(cpu); in test_async_probe_init()
175 nid = cpu_to_node(cpu); in test_async_probe_init()
/openbmc/linux/drivers/base/
H A Dcpu.c56 from_nid = cpu_to_node(cpuid); in cpu_subsys_online()
82 to_nid = cpu_to_node(cpuid); in cpu_subsys_online()
98 unregister_cpu_under_node(logical_cpu, cpu_to_node(logical_cpu)); in unregister_cpu()
395 cpu->node_id = cpu_to_node(num); in register_cpu()
413 register_cpu_under_node(num, cpu_to_node(num)); in register_cpu()
/openbmc/linux/arch/arm64/kernel/
H A Dsdei.c81 p = arch_alloc_vmap_stack(SDEI_STACK_SIZE, cpu_to_node(cpu)); in _init_sdei_stack()
137 s = scs_alloc(cpu_to_node(cpu)); in _init_sdei_scs()
/openbmc/linux/arch/powerpc/kernel/
H A Dsmp.c935 zalloc_cpumask_var_node(mask, GFP_KERNEL, cpu_to_node(cpu)); in update_mask_from_threadgroup()
1070 cpu_to_node(cpu)); in init_big_cores()
1107 GFP_KERNEL, cpu_to_node(cpu)); in smp_prepare_cpus()
1109 GFP_KERNEL, cpu_to_node(cpu)); in smp_prepare_cpus()
1111 GFP_KERNEL, cpu_to_node(cpu)); in smp_prepare_cpus()
1114 GFP_KERNEL, cpu_to_node(cpu)); in smp_prepare_cpus()
1569 map_cpu_to_node(cpu, cpu_to_node(cpu)); in add_cpu_to_masks()
1580 ret = alloc_cpumask_var_node(&mask, GFP_ATOMIC, cpu_to_node(cpu)); in add_cpu_to_masks()
/openbmc/linux/arch/mips/include/asm/mach-loongson64/
H A Dtopology.h7 #define cpu_to_node(cpu) (cpu_logical_map(cpu) >> 2) macro
/openbmc/linux/arch/sh/include/asm/
H A Dtopology.h7 #define cpu_to_node(cpu) ((void)(cpu),0) macro
/openbmc/linux/arch/mips/include/asm/sn/
H A Dagent.h29 REMOTE_HUB_ADDR(cpu_to_node(_cpuid), \
/openbmc/linux/arch/mips/include/asm/mach-ip27/
H A Dtopology.h16 #define cpu_to_node(cpu) (cputonasid(cpu)) macro
/openbmc/linux/block/
H A Dblk-mq-cpumap.c52 return cpu_to_node(i); in blk_mq_hw_queue_to_node()
/openbmc/linux/arch/powerpc/perf/
H A Dimc-pmu.c387 nid = cpu_to_node(cpu); in ppc_nest_imc_cpu_offline()
428 l_cpumask = cpumask_of_node(cpu_to_node(cpu)); in ppc_nest_imc_cpu_online()
467 node_id = cpu_to_node(event->cpu); in nest_imc_counters_release()
563 node_id = cpu_to_node(event->cpu); in nest_imc_event_init()
609 nid = cpu_to_node(cpu); in core_imc_mem_init()
923 int nid = cpu_to_node(cpu_id); in thread_imc_mem_alloc()
1207 int phys_id = cpu_to_node(cpu_id), rc = 0; in trace_imc_mem_alloc()
1557 nid = cpu_to_node(cpu); in init_nest_pmu_ref()
/openbmc/linux/drivers/platform/x86/
H A Dintel_scu_wdt.c38 ioapic_set_alloc_attr(&info, cpu_to_node(0), 1, 0); in tangier_probe()
/openbmc/linux/lib/
H A Dcpu_rmap.c195 cpumask_of_node(cpu_to_node(cpu))); in cpu_rmap_update()
209 cpumask_of_node(cpu_to_node(cpu)), 3)) in cpu_rmap_update()
/openbmc/linux/drivers/hv/
H A Dhyperv_vmbus.h446 cpumask_set_cpu(cpu, &hv_context.hv_numa_map[cpu_to_node(cpu)]); in hv_set_allocated_cpu()
453 cpumask_clear_cpu(cpu, &hv_context.hv_numa_map[cpu_to_node(cpu)]); in hv_clear_allocated_cpu()
/openbmc/linux/arch/sparc/include/asm/
H A Dtopology_64.h9 static inline int cpu_to_node(int cpu) in cpu_to_node() function
/openbmc/linux/include/trace/events/
H A Drseq.h25 __entry->node_id = cpu_to_node(__entry->cpu_id);
/openbmc/linux/arch/mips/mm/
H A Dinit.c522 return node_distance(cpu_to_node(from), cpu_to_node(to)); in pcpu_cpu_distance()
527 return cpu_to_node(cpu); in pcpu_cpu_to_node()
/openbmc/linux/arch/mips/sgi-ip27/
H A Dip27-irq.c79 nasid = cpu_to_node(cpu); in setup_hub_mask()
145 info->nasid = cpu_to_node(hd->cpu); in hub_domain_alloc()
/openbmc/linux/arch/riscv/kernel/
H A Dirq.c46 p = arch_alloc_vmap_stack(IRQ_STACK_SIZE, cpu_to_node(cpu)); in init_irq_stacks()
/openbmc/linux/crypto/
H A Dscompress.c86 mem = vmalloc_node(SCOMP_SCRATCH_SIZE, cpu_to_node(i)); in crypto_scomp_alloc_scratches()
90 mem = vmalloc_node(SCOMP_SCRATCH_SIZE, cpu_to_node(i)); in crypto_scomp_alloc_scratches()
/openbmc/linux/kernel/events/
H A Dring_buffer.c677 int node = (event->cpu == -1) ? -1 : cpu_to_node(event->cpu); in rb_alloc_aux()
803 node = (cpu == -1) ? cpu : cpu_to_node(cpu); in perf_mmap_alloc_page()
831 node = (cpu == -1) ? cpu : cpu_to_node(cpu); in rb_alloc()
926 node = (cpu == -1) ? cpu : cpu_to_node(cpu); in rb_alloc()

1234567