Home
last modified time | relevance | path

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

/linux-6.6.21/include/linux/
Dnodemask.h263 #define first_node(src) __first_node(&(src)) macro
387 for ((node) = first_node(mask); \
444 #define first_online_node first_node(node_states[N_ONLINE])
445 #define first_memory_node first_node(node_states[N_MEMORY])
516 bit = first_node(*maskp); in node_random()
Dmmzone.h1712 nid = first_node(*nodes); in movable_only_nodes()
/linux-6.6.21/drivers/gpu/drm/etnaviv/
Detnaviv_drv.c590 struct device_node *first_node = NULL; in etnaviv_pdev_probe() local
600 if (!first_node) in etnaviv_pdev_probe()
601 first_node = core_node; in etnaviv_pdev_probe()
637 if (first_node) in etnaviv_pdev_probe()
638 of_dma_configure(&pdev->dev, first_node, true); in etnaviv_pdev_probe()
/linux-6.6.21/tools/testing/selftests/mm/
Dksm_tests.c492 int first_node; in check_ksm_numa_merge() local
511 first_node = get_first_mem_node(); in check_ksm_numa_merge()
512 numa1_map_ptr = numa_alloc_onnode(page_size, first_node); in check_ksm_numa_merge()
513 numa2_map_ptr = numa_alloc_onnode(page_size, get_next_mem_node(first_node)); in check_ksm_numa_merge()
/linux-6.6.21/tools/perf/ui/gtk/
Dhists.c510 bool first_node, first_col; in perf_gtk__show_hierarchy() local
543 first_node = true; in perf_gtk__show_hierarchy()
545 if (!first_node) in perf_gtk__show_hierarchy()
547 first_node = false; in perf_gtk__show_hierarchy()
/linux-6.6.21/fs/jffs2/
Dnodelist.c510 this = c->blocks[i].first_node; in jffs2_free_raw_node_refs()
520 c->blocks[i].first_node = c->blocks[i].last_node = NULL; in jffs2_free_raw_node_refs()
612 if (!jeb->first_node) { in jffs2_link_node_ref()
613 jeb->first_node = ref; in jffs2_link_node_ref()
Derase.c293 block = ref = jeb->first_node; in jffs2_free_jeb_node_refs()
308 jeb->first_node = jeb->last_node = NULL; in jffs2_free_jeb_node_refs()
Dscan.c313 && (!jeb->first_node || !ref_next(jeb->first_node)) ) in jffs2_scan_classify_jeb()
694 c->cleanmarker_size && !jeb->dirty_size && !ref_next(jeb->first_node)) { in jffs2_scan_eraseblock()
880 } else if (jeb->first_node) { in jffs2_scan_eraseblock()
Ddebug.c316 struct jffs2_raw_node_ref *ref2 = jeb->first_node; in __jffs2_dbg_acct_paranoia_check_nolock()
408 if (!jeb->first_node) { in __jffs2_dbg_dump_node_refs_nolock()
414 for (ref = jeb->first_node; ; ref = ref_next(ref)) { in __jffs2_dbg_dump_node_refs_nolock()
Dnodemgmt.c470 !jeb->first_node->next_in_ino) { in jffs2_do_reserve_space()
478 jffs2_mark_node_obsolete(c, jeb->first_node); in jffs2_do_reserve_space()
Dwbuf.c150 if (jeb->first_node) { in jffs2_block_refile()
298 for (next = raw = jeb->first_node; next; raw = next) { in jffs2_wbuf_recover()
550 if (first_raw == jeb->first_node) { in jffs2_wbuf_recover()
Dnodelist.h290 struct jffs2_raw_node_ref *first_node; member
Dsummary.c629 } else if (jeb->first_node) { in jffs2_sum_scan_sumnode()
Dgc.c100 ret->gc_node = ret->first_node; in jffs2_find_gc_block()
/linux-6.6.21/tools/perf/ui/stdio/
Dhist.c635 bool first_node, first_col; in hists__fprintf_hierarchy_headers() local
659 first_node = true; in hists__fprintf_hierarchy_headers()
661 if (!first_node) in hists__fprintf_hierarchy_headers()
663 first_node = false; in hists__fprintf_hierarchy_headers()
/linux-6.6.21/kernel/bpf/
Dbpf_lru_list.c148 struct bpf_lru_node *node, *tmp_node, *first_node; in __bpf_lru_list_rotate_active() local
151 first_node = list_first_entry(active, struct bpf_lru_node, list); in __bpf_lru_list_rotate_active()
158 if (++i == lru->nr_scans || node == first_node) in __bpf_lru_list_rotate_active()
/linux-6.6.21/mm/
Dmempolicy.c216 node_set(first_node(*nodes), pol->nodes); in mpol_new_preferred()
1889 nd = first_node(policy->nodes); in policy_node()
1937 return first_node(policy->nodes); in mempolicy_slab_node()
1990 nid = first_node(nodemask); in offset_il_node()
2236 hpage_node = first_node(pol->nodes); in vma_alloc_folio()
2611 polnid = first_node(pol->nodes); in mpol_misplaced()
3105 node_set(first_node(nodes), new->nodes); in mpol_parse_str()
/linux-6.6.21/arch/x86/kernel/cpu/
Dhygon.c48 return first_node(node_online_map); /* Shouldn't happen */ in nearby_node()
Damd.c380 return first_node(node_online_map); /* Shouldn't happen */ in nearby_node()
/linux-6.6.21/drivers/block/
Dpktcdvd.c1126 struct pkt_rb_node *node, *first_node; in pkt_handle_queue() local
1140 first_node = pkt_rbtree_find(pd, pd->current_sector); in pkt_handle_queue()
1141 if (!first_node) { in pkt_handle_queue()
1144 first_node = rb_entry(n, struct pkt_rb_node, rb_node); in pkt_handle_queue()
1146 node = first_node; in pkt_handle_queue()
1164 if (node == first_node) in pkt_handle_queue()
/linux-6.6.21/tools/perf/ui/browsers/
Dhists.c1693 bool first_node, first_col; in hists_browser__scnprintf_hierarchy_headers() local
1699 first_node = true; in hists_browser__scnprintf_hierarchy_headers()
1715 first_node = false; in hists_browser__scnprintf_hierarchy_headers()
1718 if (!first_node) { in hists_browser__scnprintf_hierarchy_headers()
1725 first_node = true; in hists_browser__scnprintf_hierarchy_headers()
1727 if (!first_node) { in hists_browser__scnprintf_hierarchy_headers()
1732 first_node = false; in hists_browser__scnprintf_hierarchy_headers()
/linux-6.6.21/arch/loongarch/kernel/
Dsmp.c457 rr_node = first_node(node_online_map); in smp_prepare_boot_cpu()
/linux-6.6.21/arch/x86/mm/
Dnuma.c624 rr = first_node(node_online_map); in numa_init_array()
/linux-6.6.21/arch/sparc/kernel/
Dhead_32.S379 or %g0, %g0, %o0 ! next_node(0) = first_node
/linux-6.6.21/drivers/clk/
Dclk.c3289 bool first_node = true; in clk_dump_show() local
3297 if (!first_node) in clk_dump_show()
3299 first_node = false; in clk_dump_show()