/openbmc/linux/include/linux/ |
H A D | topology.h | 93 #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 D | topology.h | 74 #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 D | octeon-wdt-main.c | 134 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 D | topology.h | 34 #ifndef cpu_to_node 35 #define cpu_to_node(cpu) ((void)(cpu),0) macro
|
/openbmc/linux/arch/loongarch/kernel/ |
H A D | cacheinfo.c | 50 (cpu_to_node(i) != cpu_to_node(cpu))) in cache_cpumap_setup()
|
/openbmc/linux/drivers/base/test/ |
H A D | test_async_driver_probe.c | 113 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 D | cpu.c | 56 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 D | sdei.c | 81 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 D | smp.c | 935 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 D | topology.h | 7 #define cpu_to_node(cpu) (cpu_logical_map(cpu) >> 2) macro
|
/openbmc/linux/arch/sh/include/asm/ |
H A D | topology.h | 7 #define cpu_to_node(cpu) ((void)(cpu),0) macro
|
/openbmc/linux/arch/mips/include/asm/sn/ |
H A D | agent.h | 29 REMOTE_HUB_ADDR(cpu_to_node(_cpuid), \
|
/openbmc/linux/arch/mips/include/asm/mach-ip27/ |
H A D | topology.h | 16 #define cpu_to_node(cpu) (cputonasid(cpu)) macro
|
/openbmc/linux/block/ |
H A D | blk-mq-cpumap.c | 52 return cpu_to_node(i); in blk_mq_hw_queue_to_node()
|
/openbmc/linux/arch/powerpc/perf/ |
H A D | imc-pmu.c | 387 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 D | intel_scu_wdt.c | 38 ioapic_set_alloc_attr(&info, cpu_to_node(0), 1, 0); in tangier_probe()
|
/openbmc/linux/lib/ |
H A D | cpu_rmap.c | 195 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 D | hyperv_vmbus.h | 446 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 D | topology_64.h | 9 static inline int cpu_to_node(int cpu) in cpu_to_node() function
|
/openbmc/linux/include/trace/events/ |
H A D | rseq.h | 25 __entry->node_id = cpu_to_node(__entry->cpu_id);
|
/openbmc/linux/arch/mips/mm/ |
H A D | init.c | 522 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 D | ip27-irq.c | 79 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 D | irq.c | 46 p = arch_alloc_vmap_stack(IRQ_STACK_SIZE, cpu_to_node(cpu)); in init_irq_stacks()
|
/openbmc/linux/crypto/ |
H A D | scompress.c | 86 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 D | ring_buffer.c | 677 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()
|