/arch/powerpc/sysdev/ |
D | mv64x60_dev.c | 97 const unsigned int *prop; in mv64x60_mpsc_device_setup() local 136 prop = of_get_property(np, "cell-index", NULL); in mv64x60_mpsc_device_setup() 137 if (!prop) in mv64x60_mpsc_device_setup() 139 port_number = *(int *)prop; in mv64x60_mpsc_device_setup() 146 prop = of_get_property(np, "max_idle", NULL); in mv64x60_mpsc_device_setup() 147 if (prop) in mv64x60_mpsc_device_setup() 148 pdata.max_idle = *prop; in mv64x60_mpsc_device_setup() 150 prop = of_get_property(brg, "current-speed", NULL); in mv64x60_mpsc_device_setup() 151 if (prop) in mv64x60_mpsc_device_setup() 152 pdata.default_baud = *prop; in mv64x60_mpsc_device_setup() [all …]
|
D | fsl_soc.c | 59 const u32 *prop = of_get_property(soc, "#address-cells", &size); in get_immrbase() local 61 if (prop && size == 4) in get_immrbase() 62 naddr = *prop; in get_immrbase() 66 prop = of_get_property(soc, "ranges", &size); in get_immrbase() 67 if (prop) in get_immrbase() 68 immrbase = of_translate_address(soc, prop + naddr); in get_immrbase() 83 const u32 *prop; in fsl_get_sys_freq() local 93 prop = of_get_property(soc, "clock-frequency", &size); in fsl_get_sys_freq() 94 if (!prop || size != sizeof(*prop) || *prop == 0) in fsl_get_sys_freq() 95 prop = of_get_property(soc, "bus-frequency", &size); in fsl_get_sys_freq() [all …]
|
D | msi_bitmap.c | 196 struct property prop; in test_of_node() local 219 memset(&prop, 0, sizeof(prop)); in test_of_node() 220 prop.name = prop_name; in test_of_node() 221 prop.value = &prop_data; in test_of_node() 222 prop.length = sizeof(prop_data); in test_of_node() 224 of_node.properties = ∝ in test_of_node()
|
/arch/powerpc/platforms/83xx/ |
D | usb.c | 32 const void *prop, *dr_mode; in mpc834x_usb_cfg() local 48 prop = of_get_property(np, "phy_type", NULL); in mpc834x_usb_cfg() 49 if (prop && (!strcmp(prop, "utmi") || in mpc834x_usb_cfg() 50 !strcmp(prop, "utmi_wide"))) { in mpc834x_usb_cfg() 54 } else if (prop && !strcmp(prop, "serial")) { in mpc834x_usb_cfg() 62 } else if (prop && !strcmp(prop, "ulpi")) { in mpc834x_usb_cfg() 74 prop = of_get_property(np, "port0", NULL); in mpc834x_usb_cfg() 75 if (prop) { in mpc834x_usb_cfg() 81 prop = of_get_property(np, "port1", NULL); in mpc834x_usb_cfg() 82 if (prop) { in mpc834x_usb_cfg() [all …]
|
/arch/powerpc/boot/dtc-src/ |
D | checks.c | 52 struct node *node, struct property *prop); 117 struct property *prop; in check_nodes_props() local 124 for_each_property(node, prop) { in check_nodes_props() 125 TRACE(c, "%s\t'%s'", node->fullpath, prop->name); in check_nodes_props() 126 c->prop_fn(c, dt, node, prop); in check_nodes_props() 182 struct property *prop; in check_is_string() local 185 prop = get_property(node, propname); in check_is_string() 186 if (!prop) in check_is_string() 189 if (!data_is_one_string(prop->val)) in check_is_string() 199 struct property *prop; in check_is_cell() local [all …]
|
D | treesource.c | 192 static void write_propval(FILE *f, struct property *prop) in write_propval() argument 194 int len = prop->val.len; in write_propval() 195 const char *p = prop->val.val; in write_propval() 196 struct marker *m = prop->val.markers; in write_propval() 214 if ((m->offset > 0) && (prop->val.val[m->offset - 1] != '\0')) in write_propval() 223 write_propval_string(f, prop->val); in write_propval() 225 write_propval_cells(f, prop->val); in write_propval() 227 write_propval_bytes(f, prop->val); in write_propval() 235 struct property *prop; in write_tree_source_node() local 246 for_each_property(tree, prop) { in write_tree_source_node() [all …]
|
D | livetree.c | 100 void add_property(struct node *node, struct property *prop) in add_property() argument 104 prop->next = NULL; in add_property() 110 *p = prop; in add_property() 196 struct property *prop; in get_property() local 198 for_each_property(node, prop) in get_property() 199 if (streq(prop->name, propname)) in get_property() 200 return prop; in get_property() 205 cell_t propval_cell(struct property *prop) in propval_cell() argument 207 assert(prop->val.len == sizeof(cell_t)); in propval_cell() 208 return fdt32_to_cpu(*((cell_t *)prop->val.val)); in propval_cell()
|
/arch/sparc/kernel/ |
D | prom_64.c | 117 struct property *prop; in sun4u_path_component() local 119 prop = of_find_property(dp, "reg", NULL); in sun4u_path_component() 120 if (!prop) in sun4u_path_component() 123 regs = prop->value; in sun4u_path_component() 132 prop = of_find_property(dp, "upa-portid", NULL); in sun4u_path_component() 133 if (!prop) in sun4u_path_component() 134 prop = of_find_property(dp, "portid", NULL); in sun4u_path_component() 135 if (prop) { in sun4u_path_component() 143 *(u32 *)prop->value, in sun4u_path_component() 152 struct property *prop; in sbus_path_component() local [all …]
|
D | prom_32.c | 79 struct property *prop; in sbus_path_component() local 81 prop = of_find_property(dp, "reg", NULL); in sbus_path_component() 82 if (!prop) in sbus_path_component() 85 regs = prop->value; in sbus_path_component() 96 struct property *prop; in pci_path_component() local 99 prop = of_find_property(dp, "reg", NULL); in pci_path_component() 100 if (!prop) in pci_path_component() 103 regs = prop->value; in pci_path_component() 121 struct property *prop; in ebus_path_component() local 123 prop = of_find_property(dp, "reg", NULL); in ebus_path_component() [all …]
|
D | prom_common.c | 51 struct property *prop; in of_getintprop_default() local 54 prop = of_find_property(np, name, &len); in of_getintprop_default() 55 if (!prop || len != 4) in of_getintprop_default() 58 return *(int *) prop->value; in of_getintprop_default() 82 struct property *prop = *prevp; in of_set_property() local 84 if (!strcasecmp(prop->name, name)) { in of_set_property() 85 void *old_val = prop->value; in of_set_property() 94 prop->value = new_val; in of_set_property() 95 prop->length = len; in of_set_property() 97 if (OF_IS_DYNAMIC(prop)) in of_set_property() [all …]
|
/arch/powerpc/include/asm/ |
D | parport.h | 18 const u32 *prop; in parport_pc_find_nonpci_ports() local 25 prop = of_get_property(np, "reg", &propsize); in parport_pc_find_nonpci_ports() 26 if (!prop || propsize > 6*sizeof(u32)) in parport_pc_find_nonpci_ports() 28 io1 = prop[1]; io2 = prop[2]; in parport_pc_find_nonpci_ports() 29 prop = of_get_property(np, "interrupts", NULL); in parport_pc_find_nonpci_ports() 30 if (!prop) in parport_pc_find_nonpci_ports() 32 if (parport_pc_probe_port(io1, io2, prop[0], autodma, NULL) != NULL) in parport_pc_find_nonpci_ports()
|
/arch/sparc/prom/ |
D | tree_64.c | 73 inline int prom_getproplen(int node, const char *prop) in prom_getproplen() argument 75 if((!node) || (!prop)) return -1; in prom_getproplen() 79 node, prop); in prom_getproplen() 87 inline int prom_getproperty(int node, const char *prop, in prom_getproperty() argument 92 plen = prom_getproplen(node, prop); in prom_getproperty() 101 node, prop, buffer, P1275_SIZE(plen)); in prom_getproperty() 109 inline int prom_getint(int node, const char *prop) in prom_getint() argument 113 if(prom_getproperty(node, prop, (char *) &intprop, sizeof(int)) != -1) in prom_getint() 136 int prom_getbool(int node, const char *prop) in prom_getbool() argument 140 retval = prom_getproplen(node, prop); in prom_getbool() [all …]
|
D | tree_32.c | 89 int prom_getproplen(int node, const char *prop) in prom_getproplen() argument 94 if((!node) || (!prop)) in prom_getproplen() 98 ret = prom_nodeops->no_proplen(node, prop); in prom_getproplen() 109 int prom_getproperty(int node, const char *prop, char *buffer, int bufsize) in prom_getproperty() argument 114 plen = prom_getproplen(node, prop); in prom_getproperty() 119 ret = prom_nodeops->no_getprop(node, prop, buffer); in prom_getproperty() 129 int prom_getint(int node, char *prop) in prom_getint() argument 133 if(prom_getproperty(node, prop, (char *) &intprop, sizeof(int)) != -1) in prom_getint() 155 int prom_getbool(int node, char *prop) in prom_getbool() argument 159 retval = prom_getproplen(node, prop); in prom_getbool() [all …]
|
/arch/powerpc/kernel/ |
D | btext.c | 161 const u32 *prop; in btext_initialize() local 163 prop = of_get_property(np, "linux,bootx-width", NULL); in btext_initialize() 164 if (prop == NULL) in btext_initialize() 165 prop = of_get_property(np, "width", NULL); in btext_initialize() 166 if (prop == NULL) in btext_initialize() 168 width = *prop; in btext_initialize() 169 prop = of_get_property(np, "linux,bootx-height", NULL); in btext_initialize() 170 if (prop == NULL) in btext_initialize() 171 prop = of_get_property(np, "height", NULL); in btext_initialize() 172 if (prop == NULL) in btext_initialize() [all …]
|
D | machine_kexec.c | 170 struct property *prop; in export_crashk_values() local 174 prop = of_find_property(node, "linux,crashkernel-base", NULL); in export_crashk_values() 175 if (prop) in export_crashk_values() 176 prom_remove_property(node, prop); in export_crashk_values() 178 prop = of_find_property(node, "linux,crashkernel-size", NULL); in export_crashk_values() 179 if (prop) in export_crashk_values() 180 prom_remove_property(node, prop); in export_crashk_values() 192 struct property *prop; in kexec_setup() local 199 prop = of_find_property(node, kernel_end_prop.name, NULL); in kexec_setup() 200 if (prop) in kexec_setup() [all …]
|
D | prom.c | 655 const u32 *prop; in check_cpu_feature_properties() local 658 prop = of_get_flat_dt_prop(node, fp->name, NULL); in check_cpu_feature_properties() 659 if (prop && *prop >= fp->min_value) { in check_cpu_feature_properties() 672 const u32 *prop; in early_init_dt_scan_cpus() local 745 prop = of_get_flat_dt_prop(node, "cpu-version", NULL); in early_init_dt_scan_cpus() 746 if (prop && (*prop & 0xff000000) == 0x0f000000) in early_init_dt_scan_cpus() 747 identify_cpu(0, *prop); in early_init_dt_scan_cpus() 770 u32 *prop; in early_init_dt_check_for_initrd() local 774 prop = of_get_flat_dt_prop(node, "linux,initrd-start", &l); in early_init_dt_check_for_initrd() 775 if (prop) { in early_init_dt_check_for_initrd() [all …]
|
D | machine_kexec_64.c | 309 struct property *prop; in export_htab_values() local 320 prop = of_find_property(node, htab_base_prop.name, NULL); in export_htab_values() 321 if (prop) in export_htab_values() 322 prom_remove_property(node, prop); in export_htab_values() 323 prop = of_find_property(node, htab_size_prop.name, NULL); in export_htab_values() 324 if (prop) in export_htab_values() 325 prom_remove_property(node, prop); in export_htab_values()
|
/arch/powerpc/boot/libfdt/ |
D | fdt_sw.c | 193 struct fdt_property *prop; in fdt_property() local 202 prop = _fdt_grab_space(fdt, sizeof(*prop) + FDT_TAGALIGN(len)); in fdt_property() 203 if (! prop) in fdt_property() 206 prop->tag = cpu_to_fdt32(FDT_PROP); in fdt_property() 207 prop->nameoff = cpu_to_fdt32(nameoff); in fdt_property() 208 prop->len = cpu_to_fdt32(len); in fdt_property() 209 memcpy(prop->data, val, len); in fdt_property() 239 struct fdt_property *prop = in fdt_finish() local 240 fdt_offset_ptr_w(fdt, offset, sizeof(*prop)); in fdt_finish() 243 if (! prop) in fdt_finish() [all …]
|
D | fdt_ro.c | 186 const struct fdt_property *prop; in fdt_get_property() local 212 prop = fdt_offset_ptr(fdt, offset, sizeof(*prop)); in fdt_get_property() 213 if (! prop) in fdt_get_property() 215 namestroff = fdt32_to_cpu(prop->nameoff); in fdt_get_property() 218 int len = fdt32_to_cpu(prop->len); in fdt_get_property() 219 prop = fdt_offset_ptr(fdt, offset, in fdt_get_property() 220 sizeof(*prop)+len); in fdt_get_property() 221 if (! prop) in fdt_get_property() 227 return prop; in fdt_get_property() 247 const struct fdt_property *prop; in fdt_getprop() local [all …]
|
D | fdt_rw.c | 206 int len, struct fdt_property **prop) in _fdt_resize_property() argument 211 *prop = fdt_get_property_w(fdt, nodeoffset, name, &oldlen); in _fdt_resize_property() 212 if (! (*prop)) in _fdt_resize_property() 215 if ((err = _fdt_splice_struct(fdt, (*prop)->data, FDT_TAGALIGN(oldlen), in _fdt_resize_property() 219 (*prop)->len = cpu_to_fdt32(len); in _fdt_resize_property() 224 int len, struct fdt_property **prop) in _fdt_add_property() argument 238 *prop = _fdt_offset_ptr_w(fdt, nextoffset); in _fdt_add_property() 239 proplen = sizeof(**prop) + FDT_TAGALIGN(len); in _fdt_add_property() 241 err = _fdt_splice_struct(fdt, *prop, 0, proplen); in _fdt_add_property() 245 (*prop)->tag = cpu_to_fdt32(FDT_PROP); in _fdt_add_property() [all …]
|
D | fdt_wip.c | 85 struct fdt_property *prop; in fdt_nop_property() local 88 prop = fdt_get_property_w(fdt, nodeoffset, name, &len); in fdt_nop_property() 89 if (! prop) in fdt_nop_property() 92 _fdt_nop_region(prop, len + sizeof(*prop)); in fdt_nop_property()
|
/arch/powerpc/sysdev/qe_lib/ |
D | qe.c | 71 const u32 *prop; in get_qe_base() local 83 prop = of_get_property(qe, "reg", &size); in get_qe_base() 84 if (prop && size >= sizeof(*prop)) in get_qe_base() 85 qebase = of_translate_address(qe, prop); in get_qe_base() 165 const u32 *prop; in qe_get_brg_clk() local 177 prop = of_get_property(qe, "brg-frequency", &size); in qe_get_brg_clk() 178 if (prop && size == sizeof(*prop)) in qe_get_brg_clk() 179 brg_clk = *prop; in qe_get_brg_clk() 508 struct property *prop; in qe_get_firmware_info() local 557 prop = of_find_property(fw, "extended-modes", NULL); in qe_get_firmware_info() [all …]
|
/arch/powerpc/platforms/pseries/ |
D | reconfig.c | 191 static void release_prop_list(const struct property *prop) in release_prop_list() argument 194 for (; prop; prop = next) { in release_prop_list() 195 next = prop->next; in release_prop_list() 196 kfree(prop->name); in release_prop_list() 197 kfree(prop->value); in release_prop_list() 198 kfree(prop); in release_prop_list() 300 struct property *prop = NULL; in do_add_node() local 320 struct property *last = prop; in do_add_node() 322 prop = new_property(name, length, value, last); in do_add_node() 323 if (!prop) { in do_add_node() [all …]
|
/arch/powerpc/platforms/cell/ |
D | cbe_regs.c | 215 } __attribute__((packed)) *prop; in cbe_fill_regs_map() local 219 prop = of_get_property(cpu, "pervasive", NULL); in cbe_fill_regs_map() 220 if (prop != NULL) in cbe_fill_regs_map() 221 map->pmd_regs = ioremap(prop->address, prop->len); in cbe_fill_regs_map() 223 prop = of_get_property(cpu, "iic", NULL); in cbe_fill_regs_map() 224 if (prop != NULL) in cbe_fill_regs_map() 225 map->iic_regs = ioremap(prop->address, prop->len); in cbe_fill_regs_map() 227 prop = of_get_property(cpu, "mic-tm", NULL); in cbe_fill_regs_map() 228 if (prop != NULL) in cbe_fill_regs_map() 229 map->mic_tm_regs = ioremap(prop->address, prop->len); in cbe_fill_regs_map()
|
D | spu_manage.c | 50 const unsigned int *prop; in find_spu_unit_number() local 54 prop = of_get_property(spe, "physical-id", &proplen); in find_spu_unit_number() 56 return (u64)*prop; in find_spu_unit_number() 59 prop = of_get_property(spe, "unit-id", &proplen); in find_spu_unit_number() 61 return (u64)*prop; in find_spu_unit_number() 64 prop = of_get_property(spe, "reg", &proplen); in find_spu_unit_number() 66 return (u64)*prop; in find_spu_unit_number() 119 } __attribute__((packed)) *prop; in spu_map_prop_old() local 122 prop = of_get_property(n, name, &proplen); in spu_map_prop_old() 123 if (prop == NULL || proplen != sizeof (struct address_prop)) in spu_map_prop_old() [all …]
|