Home
last modified time | relevance | path

Searched refs:proplen (Results 1 – 24 of 24) sorted by relevance

/linux/scripts/dtc/libfdt/
A Dfdt_wip.c19 int proplen; in fdt_setprop_inplace_namelen_partial() local
22 &proplen); in fdt_setprop_inplace_namelen_partial()
24 return proplen; in fdt_setprop_inplace_namelen_partial()
26 if ((unsigned)proplen < (len + idx)) in fdt_setprop_inplace_namelen_partial()
37 int proplen; in fdt_setprop_inplace() local
39 propval = fdt_getprop(fdt, nodeoffset, name, &proplen); in fdt_setprop_inplace()
41 return proplen; in fdt_setprop_inplace()
43 if (proplen != len) in fdt_setprop_inplace()
A Dfdt_rw.c205 int proplen; in fdt_add_property_() local
219 proplen = sizeof(**prop) + FDT_TAGALIGN(len); in fdt_add_property_()
221 err = fdt_splice_struct_(fdt, *prop, 0, proplen); in fdt_add_property_()
321 int len, proplen; in fdt_delprop() local
329 proplen = sizeof(*prop) + FDT_TAGALIGN(len); in fdt_delprop()
330 return fdt_splice_struct_(fdt, prop, proplen, 0); in fdt_delprop()
A Dfdt_ro.c656 const void *propval, int proplen) in fdt_node_offset_by_prop_value() argument
673 if (val && (len == proplen) in fdt_node_offset_by_prop_value()
A Dlibfdt.h1009 const void *propval, int proplen);
/linux/arch/powerpc/platforms/cell/
A Dspu_manage.c38 int proplen; in find_spu_unit_number() local
41 prop = of_get_property(spe, "physical-id", &proplen); in find_spu_unit_number()
42 if (proplen == 4) in find_spu_unit_number()
46 prop = of_get_property(spe, "unit-id", &proplen); in find_spu_unit_number()
47 if (proplen == 4) in find_spu_unit_number()
51 prop = of_get_property(spe, "reg", &proplen); in find_spu_unit_number()
52 if (proplen == 4) in find_spu_unit_number()
110 int proplen; 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()
/linux/arch/powerpc/kernel/
A Dpci_of_scan.c125 int proplen; in of_pci_parse_addrs() local
128 addrs = of_get_property(node, "assigned-addresses", &proplen); in of_pci_parse_addrs()
129 if (!addrs || !proplen) { in of_pci_parse_addrs()
130 addrs = of_get_property(node, "reg", &proplen); in of_pci_parse_addrs()
131 if (!addrs || !proplen) in of_pci_parse_addrs()
136 pr_debug(" parse addresses (%d bytes) @ %p\n", proplen, addrs); in of_pci_parse_addrs()
137 for (; proplen >= 20; proplen -= 20, addrs += 5) { in of_pci_parse_addrs()
A Drtas.c631 int proplen, count, i; in rtas_indicator_present() local
637 indicators = of_get_property(rtas.dev, "rtas-indicators", &proplen); in rtas_indicator_present()
641 count = proplen / sizeof(struct indicator_elem); in rtas_indicator_present()
/linux/arch/powerpc/platforms/chrp/
A Dnvram.c71 unsigned int proplen; in chrp_nvram_init() local
77 nbytes_p = of_get_property(nvram, "#bytes", &proplen); in chrp_nvram_init()
78 if (nbytes_p == NULL || proplen != sizeof(unsigned int)) { in chrp_nvram_init()
/linux/drivers/char/ipmi/
A Dipmi_si_platform.c233 int proplen; in of_ipmi_probe() local
253 regsize = of_get_property(np, "reg-size", &proplen); in of_ipmi_probe()
254 if (regsize && proplen != 4) { in of_ipmi_probe()
259 regspacing = of_get_property(np, "reg-spacing", &proplen); in of_ipmi_probe()
260 if (regspacing && proplen != 4) { in of_ipmi_probe()
265 regshift = of_get_property(np, "reg-shift", &proplen); in of_ipmi_probe()
266 if (regshift && proplen != 4) { in of_ipmi_probe()
/linux/drivers/virt/
A Dfsl_hypervisor.c358 if (param.proplen > FH_DTPROP_MAX_PROPLEN) { in ioctl_dtprop()
363 propval = kmalloc(param.proplen, GFP_KERNEL); in ioctl_dtprop()
370 if (copy_from_user(propval, upropval, param.proplen)) { in ioctl_dtprop()
379 param.proplen); in ioctl_dtprop()
385 &param.proplen); in ioctl_dtprop()
388 if (copy_to_user(upropval, propval, param.proplen) || in ioctl_dtprop()
389 put_user(param.proplen, &p->proplen)) { in ioctl_dtprop()
/linux/arch/powerpc/platforms/512x/
A Dmpc512x_lpbfifo.c378 int proplen; in get_cs_ranges() local
402 proplen = of_property_count_u32_elems(lb_node, "ranges"); in get_cs_ranges()
403 if (proplen <= 0 || proplen % 4 != 0) in get_cs_ranges()
406 lpbfifo.cs_n = proplen / 4; in get_cs_ranges()
413 (u32 *)lpbfifo.cs_ranges, proplen) != 0) { in get_cs_ranges()
/linux/drivers/regulator/
A Dgpio-regulator.c135 int proplen, i; in of_get_gpio_regulator_config() local
190 proplen = of_property_count_u32_elems(np, "states"); in of_get_gpio_regulator_config()
191 if (proplen < 0) { in of_get_gpio_regulator_config()
197 proplen / 2, in of_get_gpio_regulator_config()
203 for (i = 0; i < proplen / 2; i++) { in of_get_gpio_regulator_config()
/linux/arch/powerpc/platforms/pseries/
A Dnvram.c216 unsigned int proplen; in pSeries_nvram_init() local
222 nbytes_p = of_get_property(nvram, "#bytes", &proplen); in pSeries_nvram_init()
223 if (nbytes_p == NULL || proplen != sizeof(unsigned int)) { in pSeries_nvram_init()
/linux/arch/powerpc/boot/
A Dops.h50 const char *propval, int proplen);
148 const char *propval, int proplen) in find_node_by_prop_value() argument
152 propval, proplen); in find_node_by_prop_value()
/linux/drivers/pwm/
A Dpwm-lp3943.c202 int i, err, proplen, count = 0; in lp3943_pwm_parse_dt() local
218 if (!of_get_property(node, name[i], &proplen)) in lp3943_pwm_parse_dt()
221 num_outputs = proplen / sizeof(u32); in lp3943_pwm_parse_dt()
/linux/drivers/input/keyboard/
A Dpxa27x_keypad.c156 unsigned int proplen, size; in pxa27x_keypad_direct_key_parse_dt() local
186 prop = of_get_property(np, "marvell,direct-key-map", &proplen); in pxa27x_keypad_direct_key_parse_dt()
190 if (proplen % sizeof(u16)) in pxa27x_keypad_direct_key_parse_dt()
193 size = proplen / sizeof(u16); in pxa27x_keypad_direct_key_parse_dt()
213 unsigned int code, proplen; in pxa27x_keypad_rotary_parse_dt() local
237 prop = of_get_property(np, rotaryname[i], &proplen); in pxa27x_keypad_rotary_parse_dt()
A Dtegra-kbc.c498 int proplen; in tegra_kbc_parse_dt() local
514 if (!of_get_property(np, "nvidia,kbc-row-pins", &proplen)) { in tegra_kbc_parse_dt()
518 num_rows = proplen / sizeof(u32); in tegra_kbc_parse_dt()
520 if (!of_get_property(np, "nvidia,kbc-col-pins", &proplen)) { in tegra_kbc_parse_dt()
524 num_cols = proplen / sizeof(u32); in tegra_kbc_parse_dt()
538 if (!of_get_property(np, "linux,keymap", &proplen)) { in tegra_kbc_parse_dt()
A Dtc3589x-keypad.c328 int proplen; in tc3589x_keypad_of_probe() local
349 if (!of_get_property(np, "linux,keymap", &proplen)) { in tc3589x_keypad_of_probe()
/linux/drivers/opp/
A Dti-opp-supply.c80 int proplen, i; in _store_optimized_voltages() local
108 proplen = prop->length / sizeof(int); in _store_optimized_voltages()
109 data->num_vdd_table = proplen / 2; in _store_optimized_voltages()
/linux/drivers/ata/
A Dpata_mpc52xx.c681 int proplen; in mpc52xx_ata_probe() local
725 prop = of_get_property(op->dev.of_node, "mwdma-mode", &proplen); in mpc52xx_ata_probe()
726 if ((prop) && (proplen >= 4)) in mpc52xx_ata_probe()
728 prop = of_get_property(op->dev.of_node, "udma-mode", &proplen); in mpc52xx_ata_probe()
729 if ((prop) && (proplen >= 4)) in mpc52xx_ata_probe()
/linux/arch/sparc/kernel/
A Dpci.c211 int proplen; in pci_parse_of_addrs() local
213 addrs = of_get_property(node, "assigned-addresses", &proplen); in pci_parse_of_addrs()
218 proplen, addrs); in pci_parse_of_addrs()
220 for (; proplen >= 20; proplen -= 20, addrs += 5, op_res++) { in pci_parse_of_addrs()
/linux/include/uapi/linux/
A Dfsl_hypervisor.h181 __u32 proplen; member
/linux/drivers/scsi/
A Dmac53c94.c415 int proplen, rc = -ENODEV; in mac53c94_probe() local
453 clkprop = of_get_property(node, "clock-frequency", &proplen); in mac53c94_probe()
454 if (clkprop == NULL || proplen != sizeof(int)) { in mac53c94_probe()
/linux/scripts/dtc/
A Dflattree.c667 uint32_t proplen, stroff; in flat_read_property() local
671 proplen = flat_read_word(dtbuf); in flat_read_property()
676 if ((flags & FTF_VARALIGN) && (proplen >= 8)) in flat_read_property()
679 val = flat_read_data(dtbuf, proplen); in flat_read_property()

Completed in 61 milliseconds