Lines Matching +full:risc +full:- +full:v
1 // SPDX-License-Identifier: GPL-2.0-only
12 * Returns the hart ID of the given device tree node, or -ENODEV if the node
13 * isn't an enabled and valid RISC-V hart node.
22 return -ENODEV; in riscv_of_processor_hartid()
27 return -ENODEV; in riscv_of_processor_hartid()
32 return -ENODEV; in riscv_of_processor_hartid()
37 return -ENODEV; in riscv_of_processor_hartid()
39 if (isa[0] != 'r' || isa[1] != 'v') { in riscv_of_processor_hartid()
41 return -ENODEV; in riscv_of_processor_hartid()
51 * RISC-V core (HART) node and extract the cpuid from it.
55 for (; node; node = node->parent) { in riscv_of_parent_hartid()
60 return -1; in riscv_of_parent_hartid()
89 *pos = cpumask_next(*pos - 1, cpu_online_mask); in c_start()
95 static void *c_next(struct seq_file *m, void *v, loff_t *pos) in c_next() argument
101 static void c_stop(struct seq_file *m, void *v) in c_stop() argument
105 static int c_show(struct seq_file *m, void *v) in c_show() argument
107 unsigned long cpu_id = (unsigned long)v - 1; in c_show()
115 if (!of_property_read_string(node, "mmu-type", &mmu)) in c_show()