/arch/powerpc/mm/ |
D | drmem.c | 37 static struct property *clone_property(struct property *prop, u32 prop_sz) in clone_property() argument 45 new_prop->name = kstrdup(prop->name, GFP_KERNEL); in clone_property() 62 struct property *prop) in drmem_update_dt_v1() argument 69 new_prop = clone_property(prop, prop->length); in drmem_update_dt_v1() 101 struct property *prop) in drmem_update_dt_v2() argument 127 new_prop = clone_property(prop, prop_sz); in drmem_update_dt_v2() 172 struct property *prop; in drmem_update_dt() local 179 prop = of_find_property(memory, "ibm,dynamic-memory", NULL); in drmem_update_dt() 180 if (prop) { in drmem_update_dt() 181 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 | 51 const void *prop; in of_fsl_spi_probe() local 62 prop = of_get_property(np, "reg", NULL); in of_fsl_spi_probe() 63 if (!prop) in of_fsl_spi_probe() 65 pdata.bus_num = *(u32 *)prop; in of_fsl_spi_probe() 67 prop = of_get_property(np, "cell-index", NULL); in of_fsl_spi_probe() 68 if (prop) in of_fsl_spi_probe() 69 i = *(u32 *)prop; in of_fsl_spi_probe() 71 prop = of_get_property(np, "mode", NULL); in of_fsl_spi_probe() 72 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 | ima_kexec.c | 31 static int do_get_kexec_buffer(const void *prop, int len, unsigned long *addr, in do_get_kexec_buffer() argument 43 *addr = of_read_number(prop, addr_cells); in do_get_kexec_buffer() 44 *size = of_read_number(prop + 4 * addr_cells, size_cells); in do_get_kexec_buffer() 61 const void *prop; in ima_get_kexec_buffer() local 63 prop = of_get_property(of_chosen, "linux,ima-kexec-buffer", &len); in ima_get_kexec_buffer() 64 if (!prop) in ima_get_kexec_buffer() 67 ret = do_get_kexec_buffer(prop, len, &tmp_addr, &tmp_size); in ima_get_kexec_buffer() 85 struct property *prop; in ima_free_kexec_buffer() local 87 prop = of_find_property(of_chosen, "linux,ima-kexec-buffer", NULL); in ima_free_kexec_buffer() 88 if (!prop) in ima_free_kexec_buffer() [all …]
|
D | btext.c | 177 const u32 *prop; in btext_initialize() local 179 prop = of_get_property(np, "linux,bootx-width", NULL); in btext_initialize() 180 if (prop == NULL) in btext_initialize() 181 prop = of_get_property(np, "width", NULL); in btext_initialize() 182 if (prop == NULL) in btext_initialize() 184 width = *prop; in btext_initialize() 185 prop = of_get_property(np, "linux,bootx-height", NULL); in btext_initialize() 186 if (prop == NULL) in btext_initialize() 187 prop = of_get_property(np, "height", NULL); in btext_initialize() 188 if (prop == NULL) in btext_initialize() [all …]
|
D | dt_cpu_ftrs.c | 844 const __be32 *prop; in process_cpufeatures_node() local 854 prop = of_get_flat_dt_prop(node, "isa", &len); in process_cpufeatures_node() 855 if (!prop) { in process_cpufeatures_node() 859 f->isa = be32_to_cpup(prop); in process_cpufeatures_node() 861 prop = of_get_flat_dt_prop(node, "usable-privilege", &len); in process_cpufeatures_node() 862 if (!prop) { in process_cpufeatures_node() 866 f->usable_privilege = be32_to_cpup(prop); in process_cpufeatures_node() 868 prop = of_get_flat_dt_prop(node, "hv-support", &len); in process_cpufeatures_node() 869 if (prop) in process_cpufeatures_node() 870 f->hv_support = be32_to_cpup(prop); in process_cpufeatures_node() [all …]
|
D | machine_kexec_file_64.c | 138 const void *prop; in setup_new_fdt() local 162 prop = fdt_getprop(fdt, chosen_node, "linux,initrd-start", NULL); in setup_new_fdt() 163 if (prop) { in setup_new_fdt() 166 tmp_start = fdt64_to_cpu(*((const fdt64_t *) prop)); in setup_new_fdt() 168 prop = fdt_getprop(fdt, chosen_node, "linux,initrd-end", NULL); in setup_new_fdt() 169 if (!prop) { in setup_new_fdt() 173 tmp_end = fdt64_to_cpu(*((const fdt64_t *) prop)); in setup_new_fdt()
|
/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() 68 p2 = of_prop_next_u32(*prop, p2, &data->drc_index_start); in of_read_drc_info_cell() 73 p2 = of_prop_next_u32(*prop, p2, &data->drc_name_suffix_start); in of_read_drc_info_cell() 78 p2 = of_prop_next_u32(*prop, p2, &data->num_sequential_elems); in of_read_drc_info_cell() 83 p2 = of_prop_next_u32(*prop, p2, &data->sequential_inc); in of_read_drc_info_cell() 88 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 | firmware.c | 144 const char *prop; in probe_fw_features() local 153 prop = of_get_flat_dt_prop(node, "ibm,hypertas-functions", in probe_fw_features() 155 if (prop) { in probe_fw_features() 157 fw_hypertas_feature_init(prop, len); in probe_fw_features() 164 prop = of_get_flat_dt_prop(node, "ibm,architecture-vec-5", in probe_fw_features() 166 if (prop) in probe_fw_features() 167 fw_vec5_feature_init(prop, len); in probe_fw_features()
|
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 …]
|
/arch/arm64/kernel/ |
D | kaslr.c | 28 fdt64_t *prop; in get_kaslr_seed() local 35 prop = fdt_getprop_w(fdt, node, "kaslr-seed", &len); in get_kaslr_seed() 36 if (!prop || len != sizeof(u64)) in get_kaslr_seed() 39 ret = fdt64_to_cpu(*prop); in get_kaslr_seed() 40 *prop = 0; in get_kaslr_seed() 50 const u8 *prop; in kaslr_get_cmdline() local 56 prop = fdt_getprop(fdt, node, "bootargs", NULL); in kaslr_get_cmdline() 57 if (!prop) in kaslr_get_cmdline() 59 return prop; in kaslr_get_cmdline()
|
/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/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/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/riscv/kernel/ |
D | time.c | 20 u32 prop; in time_init() local 23 if (!cpu || of_property_read_u32(cpu, "timebase-frequency", &prop)) in time_init() 26 riscv_timebase = prop; in time_init()
|
/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/arm/kernel/ |
D | devtree.c | 230 const char *prop; in setup_machine_fdt() local 238 prop = of_get_flat_dt_prop(dt_root, "compatible", &size); in setup_machine_fdt() 240 early_print("'%s' ", prop); in setup_machine_fdt() 241 size -= strlen(prop) + 1; in setup_machine_fdt() 242 prop += strlen(prop) + 1; in setup_machine_fdt()
|