Searched refs:nid (Results 1 – 3 of 3) sorted by relevance
/kernel/dma/ |
D | contiguous.c | 134 int nid; in dma_pernuma_cma_reserve() local 139 for_each_online_node(nid) { in dma_pernuma_cma_reserve() 142 struct cma **cma = &dma_contiguous_pernuma_area[nid]; in dma_pernuma_cma_reserve() 144 snprintf(name, sizeof(name), "pernuma%d", nid); in dma_pernuma_cma_reserve() 146 0, false, name, cma, nid); in dma_pernuma_cma_reserve() 149 ret, nid); in dma_pernuma_cma_reserve() 154 (unsigned long long)pernuma_size_bytes / SZ_1M, nid); in dma_pernuma_cma_reserve() 308 int nid = dev_to_node(dev); in dma_alloc_contiguous() local 320 if (nid != NUMA_NO_NODE && !(gfp & (GFP_DMA | GFP_DMA32))) { in dma_alloc_contiguous() 321 struct cma *cma = dma_contiguous_pernuma_area[nid]; in dma_alloc_contiguous()
|
/kernel/sched/ |
D | fair.c | 1276 static inline int task_faults_idx(enum numa_faults_stats s, int nid, int priv) in task_faults_idx() argument 1278 return NR_NUMA_HINT_FAULT_TYPES * (s * nr_node_ids + nid) + priv; in task_faults_idx() 1281 static inline unsigned long task_faults(struct task_struct *p, int nid) in task_faults() argument 1286 return p->numa_faults[task_faults_idx(NUMA_MEM, nid, 0)] + in task_faults() 1287 p->numa_faults[task_faults_idx(NUMA_MEM, nid, 1)]; in task_faults() 1290 static inline unsigned long group_faults(struct task_struct *p, int nid) in group_faults() argument 1297 return ng->faults[task_faults_idx(NUMA_MEM, nid, 0)] + in group_faults() 1298 ng->faults[task_faults_idx(NUMA_MEM, nid, 1)]; in group_faults() 1301 static inline unsigned long group_faults_cpu(struct numa_group *group, int nid) in group_faults_cpu() argument 1303 return group->faults[task_faults_idx(NUMA_CPU, nid, 0)] + in group_faults_cpu() [all …]
|
D | core.c | 3563 int nid = cpu_to_node(cpu); in select_fallback_rq() local 3577 if (nid != -1) { in select_fallback_rq() 3578 nodemask = cpumask_of_node(nid); in select_fallback_rq() 9333 void sched_setnuma(struct task_struct *p, int nid) in sched_setnuma() argument 9348 p->numa_preferred_nid = nid; in sched_setnuma()
|