Lines Matching +full:asi +full:- +full:format

1 // SPDX-License-Identifier: GPL-2.0-or-later
6 * Copyright (C) 1996-2005 Paul Mackerras.
25 #include <asm/asi.h>
53 * format and how it is constructed.
77 regs = rprop->value; in sun4v_path_component()
78 if (!of_node_is_root(dp->parent)) { in sun4v_path_component()
81 (unsigned int) (regs->phys_addr >> 32UL), in sun4v_path_component()
82 (unsigned int) (regs->phys_addr & 0xffffffffUL)); in sun4v_path_component()
86 type = regs->phys_addr >> 60UL; in sun4v_path_component()
87 high_bits = (regs->phys_addr >> 32UL) & 0x0fffffffUL; in sun4v_path_component()
88 low_bits = (regs->phys_addr & 0xffffffffUL); in sun4v_path_component()
118 regs = prop->value; in sun4u_path_component()
119 if (!of_node_is_root(dp->parent)) { in sun4u_path_component()
122 (unsigned int) (regs->phys_addr >> 32UL), in sun4u_path_component()
123 (unsigned int) (regs->phys_addr & 0xffffffffUL)); in sun4u_path_component()
127 prop = of_find_property(dp, "upa-portid", NULL); in sun4u_path_component()
138 *(u32 *)prop->value, in sun4u_path_component()
139 (unsigned int) (regs->phys_addr & mask)); in sun4u_path_component()
154 regs = prop->value; in sbus_path_component()
157 regs->which_io, in sbus_path_component()
158 regs->phys_addr); in sbus_path_component()
173 regs = prop->value; in pci_path_component()
174 devfn = (regs->phys_hi >> 8) & 0xff; in pci_path_component()
198 regs = prop->value; in upa_path_component()
200 prop = of_find_property(dp, "upa-portid", NULL); in upa_path_component()
206 *(u32 *) prop->value, in upa_path_component()
207 (unsigned int) (regs->phys_addr & 0xffffffffUL)); in upa_path_component()
221 regs = prop->value; in vdev_path_component()
237 regs = prop->value; in ebus_path_component()
241 (unsigned int) (regs->phys_addr >> 32UL), in ebus_path_component()
242 (unsigned int) (regs->phys_addr & 0xffffffffUL)); in ebus_path_component()
256 regs = prop->value; in i2c_path_component()
258 /* This actually isn't right... should look at the #address-cells in i2c_path_component()
276 regs = prop->value; in usb_path_component()
278 if (prop->length == sizeof(u32) || regs[1] == 1) { in usb_path_component()
298 regs = prop->value; in ieee1394_path_component()
311 struct device_node *parent = dp->parent; in __build_path_component()
344 if (of_node_is_type(parent, "virtual-devices")) { in __build_path_component()
378 return (tlb_type == spitfire ? "upa-portid" : "portid"); in get_mid_prop()
388 * property. On everything else we look for a 'upa-portid', in arch_find_n_match_cpu_physical_id()
400 regs = prop->value; in arch_find_n_match_cpu_physical_id()
403 this_cpu_id = of_getintprop_default(cpun, mid_prop, -1); in arch_find_n_match_cpu_physical_id()
407 this_cpu_id = of_getintprop_default(cpun, mid_prop, -1); in arch_find_n_match_cpu_physical_id()
441 int cpuid = of_getintprop_default(dp, mid_prop, -1); in of_iterate_over_cpus()
447 cpuid = of_getintprop_default(dp, this_mid_prop, -1); in of_iterate_over_cpus()
505 int portid = -1; in fill_in_one_cpu()
511 while (limit--) { in fill_in_one_cpu()
512 portid_parent = portid_parent->parent; in fill_in_one_cpu()
516 "portid", -1); in fill_in_one_cpu()
533 of_getintprop_default(dp, "clock-frequency", 0); in fill_in_one_cpu()
537 of_getintprop_default(dp, "l1-dcache-size", in fill_in_one_cpu()
540 of_getintprop_default(dp, "l1-dcache-line-size", in fill_in_one_cpu()
543 of_getintprop_default(dp, "l1-icache-size", in fill_in_one_cpu()
546 of_getintprop_default(dp, "l1-icache-line-size", in fill_in_one_cpu()
549 of_getintprop_default(dp, "l2-cache-size", 0); in fill_in_one_cpu()
551 of_getintprop_default(dp, "l2-cache-line-size", 0); in fill_in_one_cpu()
556 "l2-cache-size", in fill_in_one_cpu()
560 "l2-cache-line-size", 64); in fill_in_one_cpu()
567 of_getintprop_default(dp, "dcache-size", 16 * 1024); in fill_in_one_cpu()
569 of_getintprop_default(dp, "dcache-line-size", 32); in fill_in_one_cpu()
572 of_getintprop_default(dp, "icache-size", 16 * 1024); in fill_in_one_cpu()
574 of_getintprop_default(dp, "icache-line-size", 32); in fill_in_one_cpu()
577 of_getintprop_default(dp, "ecache-size", in fill_in_one_cpu()
580 of_getintprop_default(dp, "ecache-line-size", 64); in fill_in_one_cpu()
583 cpu_data(cpuid).proc_id = -1; in fill_in_one_cpu()