/linux/include/linux/ |
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() 224 return cpumask_of_node(cpu_to_node(cpu)); in cpu_cpu_mask()
|
/linux/arch/s390/include/asm/ |
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
|
/linux/drivers/watchdog/ |
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()
|
/linux/include/asm-generic/ |
A D | topology.h | 34 #ifndef cpu_to_node 35 #define cpu_to_node(cpu) ((void)(cpu),0) macro
|
/linux/arch/arm64/kernel/ |
A D | irq.c | 47 scs_alloc(cpu_to_node(cpu)); in init_irq_scs() 57 p = arch_alloc_vmap_stack(IRQ_STACK_SIZE, cpu_to_node(cpu)); in init_irq_stacks()
|
A D | sdei.c | 78 p = arch_alloc_vmap_stack(SDEI_STACK_SIZE, cpu_to_node(cpu)); in _init_sdei_stack() 134 s = scs_alloc(cpu_to_node(cpu)); in _init_sdei_scs()
|
/linux/drivers/base/test/ |
A D | test_async_driver_probe.c | 113 nid = cpu_to_node(cpu); in test_async_probe_init() 148 nid = cpu_to_node(cpu); in test_async_probe_init() 177 nid = cpu_to_node(cpu); in test_async_probe_init()
|
/linux/drivers/base/ |
A D | cpu.c | 54 from_nid = cpu_to_node(cpuid); in cpu_subsys_online() 63 to_nid = cpu_to_node(cpuid); in cpu_subsys_online() 79 unregister_cpu_under_node(logical_cpu, cpu_to_node(logical_cpu)); in unregister_cpu() 363 cpu->node_id = cpu_to_node(num); in register_cpu() 384 register_cpu_under_node(num, cpu_to_node(num)); in register_cpu()
|
/linux/arch/powerpc/kernel/ |
A D | smp.c | 904 zalloc_cpumask_var_node(mask, GFP_KERNEL, cpu_to_node(cpu)); in update_mask_from_threadgroup() 1039 cpu_to_node(cpu)); in init_big_cores() 1076 GFP_KERNEL, cpu_to_node(cpu)); in smp_prepare_cpus() 1078 GFP_KERNEL, cpu_to_node(cpu)); in smp_prepare_cpus() 1080 GFP_KERNEL, cpu_to_node(cpu)); in smp_prepare_cpus() 1083 GFP_KERNEL, cpu_to_node(cpu)); in smp_prepare_cpus() 1526 map_cpu_to_node(cpu, cpu_to_node(cpu)); in add_cpu_to_masks() 1537 ret = alloc_cpumask_var_node(&mask, GFP_ATOMIC, cpu_to_node(cpu)); in add_cpu_to_masks()
|
/linux/arch/powerpc/perf/ |
A D | imc-pmu.c | 373 nid = cpu_to_node(cpu); in ppc_nest_imc_cpu_offline() 414 l_cpumask = cpumask_of_node(cpu_to_node(cpu)); in ppc_nest_imc_cpu_online() 453 node_id = cpu_to_node(event->cpu); in nest_imc_counters_release() 549 node_id = cpu_to_node(event->cpu); in nest_imc_event_init() 596 nid = cpu_to_node(cpu); in core_imc_mem_init() 913 int nid = cpu_to_node(cpu_id); in thread_imc_mem_alloc() 1197 int phys_id = cpu_to_node(cpu_id), rc = 0; in trace_imc_mem_alloc() 1544 nid = cpu_to_node(cpu); in init_nest_pmu_ref()
|
/linux/lib/ |
A D | cpu_rmap.c | 183 cpumask_of_node(cpu_to_node(cpu))); in cpu_rmap_update() 197 cpumask_of_node(cpu_to_node(cpu)), 3)) in cpu_rmap_update()
|
/linux/arch/mips/include/asm/mach-loongson64/ |
A D | topology.h | 7 #define cpu_to_node(cpu) (cpu_logical_map(cpu) >> 2) macro
|
/linux/arch/sh/include/asm/ |
A D | topology.h | 7 #define cpu_to_node(cpu) ((void)(cpu),0) macro
|
/linux/arch/mips/include/asm/sn/ |
A D | agent.h | 29 REMOTE_HUB_ADDR(cpu_to_node(_cpuid), \
|
/linux/arch/mips/include/asm/mach-ip27/ |
A D | topology.h | 16 #define cpu_to_node(cpu) (cputonasid(cpu)) macro
|
/linux/drivers/hv/ |
A D | hyperv_vmbus.h | 432 cpumask_set_cpu(cpu, &hv_context.hv_numa_map[cpu_to_node(cpu)]); in hv_set_alloced_cpu() 439 cpumask_clear_cpu(cpu, &hv_context.hv_numa_map[cpu_to_node(cpu)]); in hv_clear_alloced_cpu()
|
/linux/include/trace/events/ |
A D | sched.h | 597 __entry->src_nid = cpu_to_node(src_cpu); 599 __entry->dst_nid = cpu_to_node(dst_cpu); 633 __entry->src_nid = cpu_to_node(src_cpu); 638 __entry->dst_nid = dst_cpu >= 0 ? cpu_to_node(dst_cpu) : -1;
|
/linux/arch/mips/mm/ |
A D | init.c | 519 return node_distance(cpu_to_node(from), cpu_to_node(to)); in pcpu_cpu_distance() 527 cpu_to_node(cpu)); in pcpu_fc_alloc()
|
/linux/arch/mips/sgi-ip27/ |
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()
|
/linux/drivers/platform/x86/ |
A D | intel_scu_wdt.c | 38 ioapic_set_alloc_attr(&info, cpu_to_node(0), 1, 0); in tangier_probe()
|
/linux/arch/sparc/include/asm/ |
A D | topology_64.h | 9 static inline int cpu_to_node(int cpu) in cpu_to_node() function
|
/linux/crypto/ |
A D | scompress.c | 93 mem = vmalloc_node(SCOMP_SCRATCH_SIZE, cpu_to_node(i)); in crypto_scomp_alloc_scratches() 97 mem = vmalloc_node(SCOMP_SCRATCH_SIZE, cpu_to_node(i)); in crypto_scomp_alloc_scratches()
|
/linux/kernel/events/ |
A D | ring_buffer.c | 671 int node = (event->cpu == -1) ? -1 : cpu_to_node(event->cpu); in rb_alloc_aux() 789 node = (cpu == -1) ? cpu : cpu_to_node(cpu); in perf_mmap_alloc_page() 817 node = (cpu == -1) ? cpu : cpu_to_node(cpu); in rb_alloc() 917 node = (cpu == -1) ? cpu : cpu_to_node(cpu); in rb_alloc()
|
/linux/block/ |
A D | blk-mq-cpumap.c | 92 return cpu_to_node(i); in blk_mq_hw_queue_to_node()
|
/linux/kernel/sched/ |
A D | topology.c | 921 GFP_KERNEL, cpu_to_node(cpu)); in build_group_from_child_sched_domain() 1670 return sched_domains_numa_masks[sched_domains_curr_level][cpu_to_node(cpu)]; in sd_numa_mask() 1967 int node = cpu_to_node(cpu); in sched_domains_numa_masks_set() 2004 int i, j = cpu_to_node(cpu); in sched_numa_find_closest() 2047 GFP_KERNEL, cpu_to_node(j)); in __sdt_alloc() 2054 GFP_KERNEL, cpu_to_node(j)); in __sdt_alloc() 2061 GFP_KERNEL, cpu_to_node(j)); in __sdt_alloc() 2070 GFP_KERNEL, cpu_to_node(j)); in __sdt_alloc()
|