/arch/powerpc/sysdev/ |
D | mv64x60_dev.c | 94 const unsigned int *prop; in mv64x60_mpsc_device_setup() local 133 prop = of_get_property(np, "cell-index", NULL); in mv64x60_mpsc_device_setup() 134 if (!prop) in mv64x60_mpsc_device_setup() 136 port_number = *(int *)prop; in mv64x60_mpsc_device_setup() 143 prop = of_get_property(np, "max_idle", NULL); in mv64x60_mpsc_device_setup() 144 if (prop) in mv64x60_mpsc_device_setup() 145 pdata.max_idle = *prop; in mv64x60_mpsc_device_setup() 147 prop = of_get_property(brg, "current-speed", NULL); in mv64x60_mpsc_device_setup() 148 if (prop) in mv64x60_mpsc_device_setup() 149 pdata.default_baud = *prop; in mv64x60_mpsc_device_setup() [all …]
|
D | fsl_soc.c | 61 const u32 *prop = of_get_property(soc, "#address-cells", &size); in get_immrbase() local 63 if (prop && size == 4) in get_immrbase() 64 naddr = *prop; in get_immrbase() 68 prop = of_get_property(soc, "ranges", &size); in get_immrbase() 69 if (prop) in get_immrbase() 70 immrbase = of_translate_address(soc, prop + naddr); in get_immrbase() 85 const u32 *prop; in fsl_get_sys_freq() local 95 prop = of_get_property(soc, "clock-frequency", &size); in fsl_get_sys_freq() 96 if (!prop || size != sizeof(*prop) || *prop == 0) in fsl_get_sys_freq() 97 prop = of_get_property(soc, "bus-frequency", &size); in fsl_get_sys_freq() [all …]
|
D | ppc4xx_soc.c | 82 const u32 *prop; in ppc4xx_l2c_probe() local 90 prop = of_get_property(np, "cache-size", NULL); in ppc4xx_l2c_probe() 91 if (prop == NULL) { in ppc4xx_l2c_probe() 96 l2_size = prop[0]; in ppc4xx_l2c_probe() 201 const u32 *prop; in ppc4xx_reset_system() local 205 prop = of_get_property(np, "reset-type", NULL); in ppc4xx_reset_system() 213 if ((prop) && ((prop[0] >= 1) && (prop[0] <= 3))) in ppc4xx_reset_system() 214 reset_type = prop[0] << 28; in ppc4xx_reset_system()
|
D | scom.c | 56 const u32 *prop; in scom_map_device() local 65 prop = of_get_property(parent, "#scom-cells", NULL); in scom_map_device() 66 cells = prop ? *prop : 1; in scom_map_device() 68 prop = of_get_property(dev, "scom-reg", &size); in scom_map_device() 69 if (!prop) in scom_map_device() 76 reg = of_read_number(&prop[index * cells * 2], cells); in scom_map_device() 77 cnt = of_read_number(&prop[index * cells * 2 + cells], cells); in scom_map_device()
|
D | msi_bitmap.c | 198 struct property prop; in test_of_node() local 221 memset(&prop, 0, sizeof(prop)); in test_of_node() 222 prop.name = prop_name; in test_of_node() 223 prop.value = &prop_data; in test_of_node() 224 prop.length = sizeof(prop_data); in test_of_node() 226 of_node.properties = ∝ in test_of_node()
|
/arch/powerpc/platforms/83xx/ |
D | usb.c | 33 const void *prop, *dr_mode; in mpc834x_usb_cfg() local 49 prop = of_get_property(np, "phy_type", NULL); in mpc834x_usb_cfg() 51 if (prop && (!strcmp(prop, "utmi") || in mpc834x_usb_cfg() 52 !strcmp(prop, "utmi_wide"))) { in mpc834x_usb_cfg() 56 } else if (prop && !strcmp(prop, "serial")) { in mpc834x_usb_cfg() 64 } else if (prop && !strcmp(prop, "ulpi")) { in mpc834x_usb_cfg() 75 prop = of_get_property(np, "port0", NULL); in mpc834x_usb_cfg() 76 if (prop) { in mpc834x_usb_cfg() 82 prop = of_get_property(np, "port1", NULL); in mpc834x_usb_cfg() 83 if (prop) { in mpc834x_usb_cfg() [all …]
|
D | mpc832x_rdb.c | 55 const void *prop; in of_fsl_spi_probe() local 66 prop = of_get_property(np, "reg", NULL); in of_fsl_spi_probe() 67 if (!prop) in of_fsl_spi_probe() 69 pdata.bus_num = *(u32 *)prop; in of_fsl_spi_probe() 71 prop = of_get_property(np, "cell-index", NULL); in of_fsl_spi_probe() 72 if (prop) in of_fsl_spi_probe() 73 i = *(u32 *)prop; in of_fsl_spi_probe() 75 prop = of_get_property(np, "mode", NULL); in of_fsl_spi_probe() 76 if (prop && !strcmp(prop, "cpu-qe")) in of_fsl_spi_probe()
|
/arch/powerpc/kernel/ |
D | prom_parse.c | 15 const unsigned char *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 ? *(u32 *)prop : 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 ? *(u32 *)prop : of_n_size_cells(dn); in of_parse_dma_window()
|
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 | 209 struct property *prop; in export_crashk_values() local 213 prop = of_find_property(node, "linux,crashkernel-base", NULL); in export_crashk_values() 214 if (prop) in export_crashk_values() 215 prom_remove_property(node, prop); in export_crashk_values() 217 prop = of_find_property(node, "linux,crashkernel-size", NULL); in export_crashk_values() 218 if (prop) in export_crashk_values() 219 prom_remove_property(node, prop); in export_crashk_values() 231 struct property *prop; in kexec_setup() local 238 prop = of_find_property(node, kernel_end_prop.name, NULL); in kexec_setup() 239 if (prop) in kexec_setup() [all …]
|
/arch/microblaze/kernel/ |
D | prom_parse.c | 16 const unsigned char *prop; in of_parse_dma_window() local 23 prop = of_get_property(dn, "ibm,#dma-address-cells", NULL); in of_parse_dma_window() 24 if (!prop) in of_parse_dma_window() 25 prop = of_get_property(dn, "#address-cells", NULL); in of_parse_dma_window() 27 cells = prop ? *(u32 *)prop : of_n_addr_cells(dn); in of_parse_dma_window() 32 prop = of_get_property(dn, "ibm,#dma-size-cells", NULL); in of_parse_dma_window() 33 cells = prop ? *(u32 *)prop : of_n_size_cells(dn); in of_parse_dma_window()
|
D | heartbeat.c | 48 int *prop; in setup_heartbeat() local 67 prop = (int *) of_get_property(gpio, "xlnx,is-bidir", NULL); in setup_heartbeat() 68 if (prop) in setup_heartbeat()
|
/arch/sparc/kernel/ |
D | prom_64.c | 116 struct property *prop; in sun4u_path_component() local 118 prop = of_find_property(dp, "reg", NULL); in sun4u_path_component() 119 if (!prop) in sun4u_path_component() 122 regs = prop->value; in sun4u_path_component() 131 prop = of_find_property(dp, "upa-portid", NULL); in sun4u_path_component() 132 if (!prop) in sun4u_path_component() 133 prop = of_find_property(dp, "portid", NULL); in sun4u_path_component() 134 if (prop) { in sun4u_path_component() 142 *(u32 *)prop->value, in sun4u_path_component() 151 struct property *prop; in sbus_path_component() local [all …]
|
D | prom_32.c | 80 struct property *prop; in sbus_path_component() local 82 prop = of_find_property(dp, "reg", NULL); in sbus_path_component() 83 if (!prop) in sbus_path_component() 86 regs = prop->value; in sbus_path_component() 97 struct property *prop; in pci_path_component() local 100 prop = of_find_property(dp, "reg", NULL); in pci_path_component() 101 if (!prop) in pci_path_component() 104 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 | 41 struct property *prop; in of_getintprop_default() local 44 prop = of_find_property(np, name, &len); in of_getintprop_default() 45 if (!prop || len != 4) in of_getintprop_default() 48 return *(int *) prop->value; in of_getintprop_default() 71 struct property *prop = *prevp; in of_set_property() local 73 if (!strcasecmp(prop->name, name)) { in of_set_property() 74 void *old_val = prop->value; in of_set_property() 81 prop->value = new_val; in of_set_property() 82 prop->length = len; in of_set_property() 84 if (OF_IS_DYNAMIC(prop)) in of_set_property() [all …]
|
/arch/powerpc/sysdev/qe_lib/ |
D | qe.c | 74 const u32 *prop; in get_qe_base() local 86 prop = of_get_property(qe, "reg", &size); in get_qe_base() 87 if (prop && size >= sizeof(*prop)) in get_qe_base() 88 qebase = of_translate_address(qe, prop); in get_qe_base() 171 const u32 *prop; in qe_get_brg_clk() local 183 prop = of_get_property(qe, "brg-frequency", &size); in qe_get_brg_clk() 184 if (prop && size == sizeof(*prop)) in qe_get_brg_clk() 185 brg_clk = *prop; in qe_get_brg_clk() 538 struct property *prop; in qe_get_firmware_info() local 587 prop = of_find_property(fw, "extended-modes", NULL); in qe_get_firmware_info() [all …]
|
/arch/powerpc/include/asm/ |
D | parport.h | 18 const u32 *prop; in parport_pc_find_nonpci_ports() local 27 prop = of_get_property(np, "reg", &propsize); in parport_pc_find_nonpci_ports() 28 if (!prop || propsize > 6*sizeof(u32)) in parport_pc_find_nonpci_ports() 30 io1 = prop[1]; io2 = prop[2]; in parport_pc_find_nonpci_ports()
|
/arch/sparc/prom/ |
D | tree_32.c | 89 int prom_getproplen(phandle 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(phandle 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(phandle 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(phandle node, char *prop) in prom_getbool() argument 159 retval = prom_getproplen(node, prop); in prom_getbool() [all …]
|
D | tree_64.c | 92 inline int prom_getproplen(phandle node, const char *prop) in prom_getproplen() argument 96 if (!node || !prop) in prom_getproplen() 103 args[4] = (unsigned long) prop; in prom_getproplen() 116 inline int prom_getproperty(phandle node, const char *prop, in prom_getproperty() argument 122 plen = prom_getproplen(node, prop); in prom_getproperty() 130 args[4] = (unsigned long) prop; in prom_getproperty() 144 inline int prom_getint(phandle node, const char *prop) in prom_getint() argument 148 if (prom_getproperty(node, prop, (char *) &intprop, sizeof(int)) != -1) in prom_getint() 172 int prom_getbool(phandle node, const char *prop) in prom_getbool() argument 176 retval = prom_getproplen(node, prop); in prom_getbool() [all …]
|
/arch/powerpc/platforms/pseries/ |
D | dlpar.c | 36 void dlpar_free_cc_property(struct property *prop) in dlpar_free_cc_property() argument 38 kfree(prop->name); in dlpar_free_cc_property() 39 kfree(prop->value); in dlpar_free_cc_property() 40 kfree(prop); in dlpar_free_cc_property() 45 struct property *prop; in dlpar_parse_cc_property() local 49 prop = kzalloc(sizeof(*prop), GFP_KERNEL); in dlpar_parse_cc_property() 50 if (!prop) in dlpar_parse_cc_property() 54 prop->name = kstrdup(name, GFP_KERNEL); in dlpar_parse_cc_property() 56 prop->length = ccwa->prop_length; in dlpar_parse_cc_property() 58 prop->value = kmemdup(value, prop->length, GFP_KERNEL); in dlpar_parse_cc_property() [all …]
|
D | reconfig.c | 196 static void release_prop_list(const struct property *prop) in release_prop_list() argument 199 for (; prop; prop = next) { in release_prop_list() 200 next = prop->next; in release_prop_list() 201 kfree(prop->name); in release_prop_list() 202 kfree(prop->value); in release_prop_list() 203 kfree(prop); in release_prop_list() 305 struct property *prop = NULL; in do_add_node() local 325 struct property *last = prop; in do_add_node() 327 prop = new_property(name, length, value, last); in do_add_node() 328 if (!prop) { in do_add_node() [all …]
|
/arch/arm/kernel/ |
D | devtree.c | 99 const char *prop; in setup_machine_fdt() local 105 prop = of_get_flat_dt_prop(dt_root, "compatible", &size); in setup_machine_fdt() 107 early_print("'%s' ", prop); in setup_machine_fdt() 108 size -= strlen(prop) + 1; in setup_machine_fdt() 109 prop += strlen(prop) + 1; in setup_machine_fdt()
|
/arch/powerpc/platforms/cell/ |
D | cbe_regs.c | 216 } __attribute__((packed)) *prop; in cbe_fill_regs_map() local 220 prop = of_get_property(cpu, "pervasive", NULL); in cbe_fill_regs_map() 221 if (prop != NULL) in cbe_fill_regs_map() 222 map->pmd_regs = ioremap(prop->address, prop->len); in cbe_fill_regs_map() 224 prop = of_get_property(cpu, "iic", NULL); in cbe_fill_regs_map() 225 if (prop != NULL) in cbe_fill_regs_map() 226 map->iic_regs = ioremap(prop->address, prop->len); in cbe_fill_regs_map() 228 prop = of_get_property(cpu, "mic-tm", NULL); in cbe_fill_regs_map() 229 if (prop != NULL) in cbe_fill_regs_map() 230 map->mic_tm_regs = ioremap(prop->address, prop->len); in cbe_fill_regs_map()
|
D | spu_manage.c | 49 const unsigned int *prop; in find_spu_unit_number() local 53 prop = of_get_property(spe, "physical-id", &proplen); in find_spu_unit_number() 55 return (u64)*prop; in find_spu_unit_number() 58 prop = of_get_property(spe, "unit-id", &proplen); in find_spu_unit_number() 60 return (u64)*prop; in find_spu_unit_number() 63 prop = of_get_property(spe, "reg", &proplen); in find_spu_unit_number() 65 return (u64)*prop; in find_spu_unit_number() 118 } __attribute__((packed)) *prop; in spu_map_prop_old() local 121 prop = of_get_property(n, name, &proplen); in spu_map_prop_old() 122 if (prop == NULL || proplen != sizeof (struct address_prop)) in spu_map_prop_old() [all …]
|
/arch/arm/mach-prima2/ |
D | rstc.c | 45 const unsigned int *prop = of_get_property(dev->of_node, "reset-bit", NULL); in sirfsoc_reset_device() local 48 if (!prop) in sirfsoc_reset_device() 51 reset_bit = be32_to_cpup(prop); in sirfsoc_reset_device()
|