/arch/powerpc/mm/ |
D | drmem.c | 40 static struct property *clone_property(struct property *prop, u32 prop_sz) in clone_property() argument 48 new_prop->name = kstrdup(prop->name, GFP_KERNEL); in clone_property() 65 struct property *prop) in drmem_update_dt_v1() argument 72 new_prop = clone_property(prop, prop->length); in drmem_update_dt_v1() 104 struct property *prop) in drmem_update_dt_v2() argument 130 new_prop = clone_property(prop, prop_sz); in drmem_update_dt_v2() 175 struct property *prop; in drmem_update_dt() local 187 prop = of_find_property(memory, "ibm,dynamic-memory", NULL); in drmem_update_dt() 188 if (prop) { in drmem_update_dt() 189 rc = drmem_update_dt_v1(memory, prop); in drmem_update_dt() [all …]
|
/arch/powerpc/platforms/83xx/ |
D | usb.c | 29 const void *prop, *dr_mode; in mpc834x_usb_cfg() local 45 prop = of_get_property(np, "phy_type", NULL); in mpc834x_usb_cfg() 47 if (prop && (!strcmp(prop, "utmi") || in mpc834x_usb_cfg() 48 !strcmp(prop, "utmi_wide"))) { in mpc834x_usb_cfg() 52 } else if (prop && !strcmp(prop, "serial")) { in mpc834x_usb_cfg() 60 } else if (prop && !strcmp(prop, "ulpi")) { in mpc834x_usb_cfg() 71 prop = of_get_property(np, "port0", NULL); in mpc834x_usb_cfg() 72 if (prop) { in mpc834x_usb_cfg() 78 prop = of_get_property(np, "port1", NULL); in mpc834x_usb_cfg() 79 if (prop) { in mpc834x_usb_cfg() [all …]
|
D | mpc832x_rdb.c | 50 const void *prop; in of_fsl_spi_probe() local 61 prop = of_get_property(np, "reg", NULL); in of_fsl_spi_probe() 62 if (!prop) in of_fsl_spi_probe() 64 pdata.bus_num = *(u32 *)prop; in of_fsl_spi_probe() 66 prop = of_get_property(np, "cell-index", NULL); in of_fsl_spi_probe() 67 if (prop) in of_fsl_spi_probe() 68 i = *(u32 *)prop; in of_fsl_spi_probe() 70 prop = of_get_property(np, "mode", NULL); in of_fsl_spi_probe() 71 if (prop && !strcmp(prop, "cpu-qe")) in of_fsl_spi_probe()
|
/arch/sparc/kernel/ |
D | prom_64.c | 112 struct property *prop; in sun4u_path_component() local 114 prop = of_find_property(dp, "reg", NULL); in sun4u_path_component() 115 if (!prop) in sun4u_path_component() 118 regs = prop->value; in sun4u_path_component() 127 prop = of_find_property(dp, "upa-portid", NULL); in sun4u_path_component() 128 if (!prop) in sun4u_path_component() 129 prop = of_find_property(dp, "portid", NULL); in sun4u_path_component() 130 if (prop) { in sun4u_path_component() 138 *(u32 *)prop->value, in sun4u_path_component() 148 struct property *prop; in sbus_path_component() local [all …]
|
D | prom_32.c | 78 struct property *prop; in sbus_path_component() local 80 prop = of_find_property(dp, "reg", NULL); in sbus_path_component() 81 if (!prop) in sbus_path_component() 84 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() 122 struct property *prop; in ebus_path_component() local 124 prop = of_find_property(dp, "reg", NULL); in ebus_path_component() [all …]
|
D | prom_common.c | 36 struct property *prop; in of_getintprop_default() local 39 prop = of_find_property(np, name, &len); in of_getintprop_default() 40 if (!prop || len != 4) in of_getintprop_default() 43 return *(int *) prop->value; in of_getintprop_default() 67 struct property *prop = *prevp; in of_set_property() local 69 if (!strcasecmp(prop->name, name)) { in of_set_property() 70 void *old_val = prop->value; in of_set_property() 77 prop->value = new_val; in of_set_property() 78 prop->length = len; in of_set_property() 80 if (OF_IS_DYNAMIC(prop)) in of_set_property() [all …]
|
/arch/powerpc/kernel/ |
D | prom_parse.c | 16 const __be32 *prop; in of_parse_dma_window() local 22 prop = of_get_property(dn, "ibm,#dma-address-cells", NULL); in of_parse_dma_window() 23 if (!prop) in of_parse_dma_window() 24 prop = of_get_property(dn, "#address-cells", NULL); in of_parse_dma_window() 26 cells = prop ? of_read_number(prop, 1) : of_n_addr_cells(dn); in of_parse_dma_window() 31 prop = of_get_property(dn, "ibm,#dma-size-cells", NULL); in of_parse_dma_window() 32 cells = prop ? of_read_number(prop, 1) : of_n_size_cells(dn); in of_parse_dma_window()
|
D | btext.c | 168 const u32 *prop; in btext_initialize() local 170 prop = of_get_property(np, "linux,bootx-width", NULL); in btext_initialize() 171 if (prop == NULL) in btext_initialize() 172 prop = of_get_property(np, "width", NULL); in btext_initialize() 173 if (prop == NULL) in btext_initialize() 175 width = *prop; in btext_initialize() 176 prop = of_get_property(np, "linux,bootx-height", NULL); in btext_initialize() 177 if (prop == NULL) in btext_initialize() 178 prop = of_get_property(np, "height", NULL); in btext_initialize() 179 if (prop == NULL) in btext_initialize() [all …]
|
D | dt_cpu_ftrs.c | 871 const __be32 *prop; in process_cpufeatures_node() local 881 prop = of_get_flat_dt_prop(node, "isa", &len); in process_cpufeatures_node() 882 if (!prop) { in process_cpufeatures_node() 886 f->isa = be32_to_cpup(prop); in process_cpufeatures_node() 888 prop = of_get_flat_dt_prop(node, "usable-privilege", &len); in process_cpufeatures_node() 889 if (!prop) { in process_cpufeatures_node() 893 f->usable_privilege = be32_to_cpup(prop); in process_cpufeatures_node() 895 prop = of_get_flat_dt_prop(node, "hv-support", &len); in process_cpufeatures_node() 896 if (prop) in process_cpufeatures_node() 897 f->hv_support = be32_to_cpup(prop); in process_cpufeatures_node() [all …]
|
/arch/sparc/prom/ |
D | tree_32.c | 90 int prom_getproplen(phandle node, const char *prop) in prom_getproplen() argument 95 if((!node) || (!prop)) in prom_getproplen() 99 ret = prom_nodeops->no_proplen(node, prop); in prom_getproplen() 110 int prom_getproperty(phandle node, const char *prop, char *buffer, int bufsize) in prom_getproperty() argument 115 plen = prom_getproplen(node, prop); in prom_getproperty() 120 ret = prom_nodeops->no_getprop(node, prop, buffer); in prom_getproperty() 130 int prom_getint(phandle node, char *prop) in prom_getint() argument 134 if(prom_getproperty(node, prop, (char *) &intprop, sizeof(int)) != -1) in prom_getint() 156 int prom_getbool(phandle node, char *prop) in prom_getbool() argument 160 retval = prom_getproplen(node, prop); in prom_getbool() [all …]
|
D | tree_64.c | 93 int prom_getproplen(phandle node, const char *prop) in prom_getproplen() argument 97 if (!node || !prop) in prom_getproplen() 104 args[4] = (unsigned long) prop; in prom_getproplen() 117 int prom_getproperty(phandle node, const char *prop, in prom_getproperty() argument 123 plen = prom_getproplen(node, prop); in prom_getproperty() 131 args[4] = (unsigned long) prop; in prom_getproperty() 145 int prom_getint(phandle node, const char *prop) in prom_getint() argument 149 if (prom_getproperty(node, prop, (char *) &intprop, sizeof(int)) != -1) in prom_getint() 173 int prom_getbool(phandle node, const char *prop) in prom_getbool() argument 177 retval = prom_getproplen(node, prop); in prom_getbool() [all …]
|
/arch/powerpc/include/asm/ |
D | parport.h | 19 const u32 *prop; in parport_pc_find_nonpci_ports() local 26 prop = of_get_property(np, "reg", &propsize); in parport_pc_find_nonpci_ports() 27 if (!prop || propsize > 6*sizeof(u32)) in parport_pc_find_nonpci_ports() 29 io1 = prop[1]; io2 = prop[2]; in parport_pc_find_nonpci_ports()
|
/arch/powerpc/platforms/pseries/ |
D | of_helpers.c | 45 int of_read_drc_info_cell(struct property **prop, const __be32 **curval, in of_read_drc_info_cell() argument 56 p = of_prop_next_string(*prop, p); in of_read_drc_info_cell() 62 p = of_prop_next_string(*prop, p); in of_read_drc_info_cell() 71 p2 = of_prop_next_u32(*prop, p2, &data->drc_name_suffix_start); in of_read_drc_info_cell() 76 p2 = of_prop_next_u32(*prop, p2, &data->num_sequential_elems); in of_read_drc_info_cell() 81 p2 = of_prop_next_u32(*prop, p2, &data->sequential_inc); in of_read_drc_info_cell() 86 p2 = of_prop_next_u32(*prop, p2, &data->drc_power_domain); in of_read_drc_info_cell()
|
D | reconfig.c | 90 static void release_prop_list(const struct property *prop) in release_prop_list() argument 93 for (; prop; prop = next) { in release_prop_list() 94 next = prop->next; in release_prop_list() 95 kfree(prop->name); in release_prop_list() 96 kfree(prop->value); in release_prop_list() 97 kfree(prop); in release_prop_list() 198 struct property *prop = NULL; in do_add_node() local 218 struct property *last = prop; in do_add_node() 220 prop = new_property(name, length, value, last); in do_add_node() 221 if (!prop) { in do_add_node() [all …]
|
D | dlpar.c | 42 void dlpar_free_cc_property(struct property *prop) in dlpar_free_cc_property() argument 44 kfree(prop->name); in dlpar_free_cc_property() 45 kfree(prop->value); in dlpar_free_cc_property() 46 kfree(prop); in dlpar_free_cc_property() 51 struct property *prop; in dlpar_parse_cc_property() local 55 prop = kzalloc(sizeof(*prop), GFP_KERNEL); in dlpar_parse_cc_property() 56 if (!prop) in dlpar_parse_cc_property() 60 prop->name = kstrdup(name, GFP_KERNEL); in dlpar_parse_cc_property() 61 if (!prop->name) { in dlpar_parse_cc_property() 62 dlpar_free_cc_property(prop); in dlpar_parse_cc_property() [all …]
|
D | firmware.c | 154 const char *prop; in probe_fw_features() local 163 prop = of_get_flat_dt_prop(node, "ibm,hypertas-functions", in probe_fw_features() 165 if (prop) { in probe_fw_features() 167 fw_hypertas_feature_init(prop, len); in probe_fw_features() 174 prop = of_get_flat_dt_prop(node, "ibm,architecture-vec-5", in probe_fw_features() 176 if (prop) in probe_fw_features() 177 fw_vec5_feature_init(prop, len); in probe_fw_features()
|
D | hotplug-memory.c | 35 const __be32 *prop; in pseries_memory_block_size() local 39 prop = of_get_property(np, "ibm,lmb-size", &len); in pseries_memory_block_size() 40 if (prop && len >= size_cells * sizeof(__be32)) in pseries_memory_block_size() 41 memblock_size = of_read_number(prop, size_cells); in pseries_memory_block_size() 73 static void dlpar_free_property(struct property *prop) in dlpar_free_property() argument 75 kfree(prop->name); in dlpar_free_property() 76 kfree(prop->value); in dlpar_free_property() 77 kfree(prop); in dlpar_free_property() 80 static struct property *dlpar_clone_property(struct property *prop, in dlpar_clone_property() argument 89 new_prop->name = kstrdup(prop->name, GFP_KERNEL); in dlpar_clone_property() [all …]
|
/arch/powerpc/mm/nohash/ |
D | kaslr_booke.c | 80 fdt64_t *prop; in get_kaslr_seed() local 87 prop = fdt_getprop_w(fdt, node, "kaslr-seed", &len); in get_kaslr_seed() 88 if (!prop || len != sizeof(u64)) in get_kaslr_seed() 91 ret = fdt64_to_cpu(*prop); in get_kaslr_seed() 92 *prop = 0; in get_kaslr_seed() 200 const __be32 *prop; in get_initrd_range() local 206 prop = fdt_getprop(fdt, node, "linux,initrd-start", &len); in get_initrd_range() 207 if (!prop) in get_initrd_range() 209 start = of_read_number(prop, len / 4); in get_initrd_range() 211 prop = fdt_getprop(fdt, node, "linux,initrd-end", &len); in get_initrd_range() [all …]
|
/arch/arm/boot/compressed/ |
D | fdt_check_mem_start.c | 10 const void *prop; in get_prop() local 17 prop = fdt_getprop(fdt, offset, property, &len); in get_prop() 18 if (!prop || len < minlen) in get_prop() 21 return prop; in get_prop() 26 const fdt32_t *prop = get_prop(fdt, "/", name, sizeof(fdt32_t)); in get_cells() local 28 if (!prop) { in get_cells() 33 return fdt32_ld(prop); in get_cells()
|
/arch/powerpc/platforms/4xx/ |
D | soc.c | 79 const u32 *prop; in ppc4xx_l2c_probe() local 87 prop = of_get_property(np, "cache-size", NULL); in ppc4xx_l2c_probe() 88 if (prop == NULL) { in ppc4xx_l2c_probe() 93 l2_size = prop[0]; in ppc4xx_l2c_probe() 197 const u32 *prop; in ppc4xx_reset_system() local 201 prop = of_get_property(np, "reset-type", NULL); in ppc4xx_reset_system() 209 if ((prop) && ((prop[0] >= 1) && (prop[0] <= 3))) in ppc4xx_reset_system() 210 reset_type = prop[0] << 28; in ppc4xx_reset_system()
|
/arch/powerpc/platforms/cell/ |
D | cbe_regs.c | 217 } __attribute__((packed)) *prop; in cbe_fill_regs_map() local 221 prop = of_get_property(cpu, "pervasive", NULL); in cbe_fill_regs_map() 222 if (prop != NULL) in cbe_fill_regs_map() 223 map->pmd_regs = ioremap(prop->address, prop->len); in cbe_fill_regs_map() 225 prop = of_get_property(cpu, "iic", NULL); in cbe_fill_regs_map() 226 if (prop != NULL) in cbe_fill_regs_map() 227 map->iic_regs = ioremap(prop->address, prop->len); in cbe_fill_regs_map() 229 prop = of_get_property(cpu, "mic-tm", NULL); in cbe_fill_regs_map() 230 if (prop != NULL) in cbe_fill_regs_map() 231 map->mic_tm_regs = ioremap(prop->address, prop->len); in cbe_fill_regs_map()
|
D | spu_manage.c | 37 const unsigned int *prop; in find_spu_unit_number() local 41 prop = of_get_property(spe, "physical-id", &proplen); in find_spu_unit_number() 43 return (u64)*prop; in find_spu_unit_number() 46 prop = of_get_property(spe, "unit-id", &proplen); in find_spu_unit_number() 48 return (u64)*prop; in find_spu_unit_number() 51 prop = of_get_property(spe, "reg", &proplen); in find_spu_unit_number() 53 return (u64)*prop; in find_spu_unit_number() 109 } __attribute__((packed)) *prop; in spu_map_prop_old() local 112 prop = of_get_property(n, name, &proplen); in spu_map_prop_old() 113 if (prop == NULL || proplen != sizeof (struct address_prop)) in spu_map_prop_old() [all …]
|
/arch/arm64/kernel/ |
D | idreg-override.c | 194 const u8 *prop; in get_bootargs_cmdline() local 206 prop = fdt_getprop(fdt, node, "bootargs", NULL); in get_bootargs_cmdline() 207 if (!prop) in get_bootargs_cmdline() 210 return strlen(prop) ? prop : NULL; in get_bootargs_cmdline() 215 const u8 *prop = get_bootargs_cmdline(); in parse_cmdline() local 219 !prop) { in parse_cmdline() 223 if (!IS_ENABLED(CONFIG_CMDLINE_FORCE) && prop) in parse_cmdline() 224 __parse_cmdline(prop, true); in parse_cmdline()
|
/arch/powerpc/sysdev/ |
D | fsl_soc.c | 57 const __be32 *prop = of_get_property(soc, "#address-cells", &size); in get_immrbase() local 59 if (prop && size == 4) in get_immrbase() 60 naddr = be32_to_cpup(prop); in get_immrbase() 64 prop = of_get_property(soc, "ranges", &size); in get_immrbase() 65 if (prop) in get_immrbase() 66 immrbase = of_translate_address(soc, prop + naddr); in get_immrbase()
|
/arch/riscv/kernel/ |
D | time.c | 21 u32 prop; in time_init() local 24 if (!cpu || of_property_read_u32(cpu, "timebase-frequency", &prop)) in time_init() 27 riscv_timebase = prop; in time_init()
|