| /arch/powerpc/mm/ |
| A D | drmem.c | 72 new_prop = clone_property(prop, prop->length); in drmem_update_dt_v1() 188 if (prop) { in drmem_update_dt() 192 if (prop) in drmem_update_dt() 215 *prop = p; in read_drconf_v1_cell() 249 *prop = p; in read_drconf_v2_cell() 304 if (prop) { in walk_drmem_lmbs_early() 309 if (prop) in walk_drmem_lmbs_early() 418 if (prop) in walk_drmem_lmbs() 455 p = prop; in init_drmem_v2_lmbs() 468 p = prop; in init_drmem_v2_lmbs() [all …]
|
| /arch/sparc/kernel/ |
| A D | prom_64.c | 115 if (!prop) in sun4u_path_component() 128 if (!prop) in sun4u_path_component() 130 if (prop) { in sun4u_path_component() 151 if (!prop) in sbus_path_component() 170 if (!prop) in pci_path_component() 195 if (!prop) in upa_path_component() 201 if (!prop) in upa_path_component() 218 if (!prop) in vdev_path_component() 234 if (!prop) in ebus_path_component() 253 if (!prop) in i2c_path_component() [all …]
|
| A D | prom_32.c | 76 struct property *prop; in sbus_path_component() local 79 if (!prop) in sbus_path_component() 82 regs = prop->value; in sbus_path_component() 98 if (!prop) in pci_path_component() 101 regs = prop->value; in pci_path_component() 123 if (!prop) in ebus_path_component() 126 regs = prop->value; in ebus_path_component() 147 if (!prop) { in ambapp_path_component() 150 regs = prop->value; in ambapp_path_component() 156 if (!prop) in ambapp_path_component() [all …]
|
| A 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/platforms/83xx/ |
| A D | usb_834x.c | 26 const void *prop, *dr_mode; in mpc834x_usb_cfg() local 42 prop = of_get_property(np, "phy_type", NULL); in mpc834x_usb_cfg() 44 if (prop && in mpc834x_usb_cfg() 45 (!strcmp(prop, "utmi") || !strcmp(prop, "utmi_wide"))) { in mpc834x_usb_cfg() 49 } else if (prop && !strcmp(prop, "serial")) { in mpc834x_usb_cfg() 57 } else if (prop && !strcmp(prop, "ulpi")) { in mpc834x_usb_cfg() 68 prop = of_get_property(np, "port0", NULL); in mpc834x_usb_cfg() 69 if (prop) { in mpc834x_usb_cfg() 74 prop = of_get_property(np, "port1", NULL); in mpc834x_usb_cfg() 75 if (prop) { in mpc834x_usb_cfg()
|
| A D | usb_831x.c | 26 const void *prop; in mpc831x_usb_cfg() local 36 prop = of_get_property(np, "phy_type", NULL); in mpc831x_usb_cfg() 58 if (prop && !strcmp(prop, "ulpi")) { in mpc831x_usb_cfg() 93 if (prop && (!strcmp(prop, "utmi_wide") || !strcmp(prop, "utmi"))) { in mpc831x_usb_cfg() 107 } else if (prop && !strcmp(prop, "ulpi")) { in mpc831x_usb_cfg()
|
| A D | mpc832x_rdb.c | 53 const void *prop; in of_fsl_spi_probe() local 64 prop = of_get_property(np, "reg", NULL); in of_fsl_spi_probe() 65 if (!prop) in of_fsl_spi_probe() 67 pdata.bus_num = *(u32 *)prop; in of_fsl_spi_probe() 69 prop = of_get_property(np, "cell-index", NULL); in of_fsl_spi_probe() 70 if (prop) in of_fsl_spi_probe() 71 i = *(u32 *)prop; in of_fsl_spi_probe() 73 prop = of_get_property(np, "mode", NULL); in of_fsl_spi_probe() 74 if (prop && !strcmp(prop, "cpu-qe")) in of_fsl_spi_probe()
|
| A D | usb_837x.c | 24 const void *prop; in mpc837x_usb_cfg() local 32 prop = of_get_property(np, "phy_type", NULL); in mpc837x_usb_cfg() 34 if (!prop || (strcmp(prop, "ulpi") && strcmp(prop, "serial"))) { in mpc837x_usb_cfg()
|
| /arch/powerpc/kernel/ |
| A 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()
|
| A D | btext.c | 164 const u32 *prop; in btext_initialize() local 167 if (prop == NULL) in btext_initialize() 169 if (prop == NULL) in btext_initialize() 171 width = *prop; in btext_initialize() 173 if (prop == NULL) in btext_initialize() 175 if (prop == NULL) in btext_initialize() 177 height = *prop; in btext_initialize() 183 depth = *prop; in btext_initialize() 188 if (prop && *prop != 0xffffffffu) in btext_initialize() 189 pitch = *prop; in btext_initialize() [all …]
|
| A D | dt_cpu_ftrs.c | 891 const __be32 *prop; in process_cpufeatures_node() local 902 if (!prop) { in process_cpufeatures_node() 909 if (!prop) { in process_cpufeatures_node() 916 if (prop) in process_cpufeatures_node() 922 if (prop) in process_cpufeatures_node() 928 if (prop) in process_cpufeatures_node() 933 if (prop) in process_cpufeatures_node() 938 if (prop) in process_cpufeatures_node() 1015 if (!prop) { in cpufeatures_deps_enable() 1081 if (!prop) in dt_cpu_ftrs_scan_callback() [all …]
|
| A D | prom.c | 318 const __be32 *prop; in check_cpu_feature_properties() local 322 if (prop && be32_to_cpup(prop) >= fp->min_value) { in check_cpu_feature_properties() 335 const __be32 *prop; in early_init_dt_scan_cpus() local 422 if (prop && (be32_to_cpup(prop) & 0xff000000) == 0x0f000000) { in early_init_dt_scan_cpus() 423 identify_cpu(0, be32_to_cpup(prop)); in early_init_dt_scan_cpus() 424 cpu_version = prop; in early_init_dt_scan_cpus() 648 const __be32 *prop; in early_reserve_mem_dt() local 657 if (!prop) in early_reserve_mem_dt() 757 const char *prop; in early_init_dt_scan_model() local 763 if (prop) in early_init_dt_scan_model() [all …]
|
| /arch/riscv/kernel/pi/ |
| A D | fdt_early.c | 12 fdt64_t *prop; in get_kaslr_seed() local 19 prop = fdt_getprop_w((void *)dtb_pa, node, "kaslr-seed", &len); in get_kaslr_seed() 20 if (!prop || len != sizeof(u64)) in get_kaslr_seed() 23 ret = fdt64_to_cpu(*prop); in get_kaslr_seed() 24 *prop = 0; in get_kaslr_seed() 139 const void *prop; in early_cpu_isa_ext_available() local 142 prop = fdt_getprop(fdt, node, "riscv,isa-extensions", &len); in early_cpu_isa_ext_available() 143 if (prop && fdt_stringlist_contains(prop, len, ext_name)) in early_cpu_isa_ext_available() 146 prop = fdt_getprop(fdt, node, "riscv,isa", &len); in early_cpu_isa_ext_available() 147 if (prop && isa_string_contains(prop, ext_name)) in early_cpu_isa_ext_available()
|
| /arch/sparc/prom/ |
| A 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() 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 156 int prom_getbool(phandle node, char *prop) in prom_getbool() argument 160 retval = prom_getproplen(node, prop); in prom_getbool() 207 char *prop; in __prom_nextprop() local 210 prop = prom_nodeops->no_nextprop(node, oprop); in __prom_nextprop() [all …]
|
| A 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 173 int prom_getbool(phandle node, const char *prop) in prom_getbool() argument 177 retval = prom_getproplen(node, prop); in prom_getbool() 193 len = prom_getproperty(node, prop, user_buf, ubuf_size); in prom_getstring() [all …]
|
| /arch/powerpc/platforms/pseries/ |
| A 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()
|
| A D | reconfig.c | 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 221 if (!prop) { in do_add_node() 223 prop = last; in do_add_node() 236 release_prop_list(prop); in do_add_node() 289 if (!prop) in do_add_property() [all …]
|
| A D | firmware.c | 157 const char *prop; in probe_fw_features() local 166 prop = of_get_flat_dt_prop(node, "ibm,hypertas-functions", in probe_fw_features() 168 if (prop) { in probe_fw_features() 170 fw_hypertas_feature_init(prop, len); in probe_fw_features() 177 prop = of_get_flat_dt_prop(node, "ibm,architecture-vec-5", in probe_fw_features() 179 if (prop) in probe_fw_features() 180 fw_vec5_feature_init(prop, len); in probe_fw_features()
|
| A D | dlpar.c | 45 kfree(prop->name); in dlpar_free_cc_property() 46 kfree(prop->value); in dlpar_free_cc_property() 47 kfree(prop); in dlpar_free_cc_property() 52 struct property *prop; in dlpar_parse_cc_property() local 56 prop = kzalloc(sizeof(*prop), GFP_KERNEL); in dlpar_parse_cc_property() 57 if (!prop) in dlpar_parse_cc_property() 62 if (!prop->name) { in dlpar_parse_cc_property() 69 prop->value = kmemdup(value, prop->length, GFP_KERNEL); in dlpar_parse_cc_property() 70 if (!prop->value) { in dlpar_parse_cc_property() 75 return prop; in dlpar_parse_cc_property() [all …]
|
| /arch/powerpc/include/asm/ |
| A 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/arm64/kernel/pi/ |
| A D | kaslr_early.c | 24 fdt64_t *prop; in get_kaslr_seed() local 31 prop = fdt_getprop_w(fdt, node, seed_str, &len); in get_kaslr_seed() 32 if (!prop || len != sizeof(u64)) in get_kaslr_seed() 35 ret = fdt64_to_cpu(*prop); in get_kaslr_seed() 36 *prop = 0; in get_kaslr_seed()
|
| /arch/powerpc/mm/nohash/ |
| A D | kaslr_booke.c | 78 fdt64_t *prop; in get_kaslr_seed() local 86 if (!prop || len != sizeof(u64)) in get_kaslr_seed() 89 ret = fdt64_to_cpu(*prop); in get_kaslr_seed() 90 *prop = 0; in get_kaslr_seed() 198 const __be32 *prop; in get_initrd_range() local 205 if (!prop) in get_initrd_range() 210 if (!prop) in get_initrd_range() 212 end = of_read_number(prop, len / 4); in get_initrd_range() 240 const int *prop; in get_cell_sizes() local 251 *addr_cells = fdt32_to_cpu(*prop); in get_cell_sizes() [all …]
|
| /arch/powerpc/platforms/44x/ |
| A D | soc.c | 80 const u32 *prop; in ppc4xx_l2c_probe() local 88 prop = of_get_property(np, "cache-size", NULL); in ppc4xx_l2c_probe() 89 if (prop == NULL) { in ppc4xx_l2c_probe() 94 l2_size = prop[0]; in ppc4xx_l2c_probe() 198 const u32 *prop; in ppc4xx_reset_system() local 202 prop = of_get_property(np, "reset-type", NULL); in ppc4xx_reset_system() 210 if ((prop) && ((prop[0] >= 1) && (prop[0] <= 3))) in ppc4xx_reset_system() 211 reset_type = prop[0] << 28; in ppc4xx_reset_system()
|
| /arch/arm/boot/compressed/ |
| A D | fdt_check_mem_start.c | 11 const void *prop; in get_prop() local 18 prop = fdt_getprop(fdt, offset, property, &len); in get_prop() 19 if (!prop || len < minlen) in get_prop() 22 return prop; in get_prop() 27 const fdt32_t *prop = get_prop(fdt, "/", name, sizeof(fdt32_t)); in get_cells() local 29 if (!prop) { in get_cells() 34 return fdt32_ld(prop); in get_cells()
|
| /arch/arm/kernel/ |
| A D | devtree.c | 209 const char *prop; in setup_machine_fdt() local 217 prop = of_get_flat_dt_prop(dt_root, "compatible", &size); in setup_machine_fdt() 219 early_print("'%s' ", prop); in setup_machine_fdt() 220 size -= strlen(prop) + 1; in setup_machine_fdt() 221 prop += strlen(prop) + 1; in setup_machine_fdt()
|