/drivers/regulator/ |
D | gpio-regulator.c | 141 int proplen, gpio, i; in of_get_gpio_regulator_config() local 181 proplen = of_property_count_u32_elems(np, "gpios-states"); in of_get_gpio_regulator_config() 183 if (proplen < 0) in of_get_gpio_regulator_config() 184 proplen = 0; in of_get_gpio_regulator_config() 186 if (proplen > 0 && proplen != config->nr_gpios) { in of_get_gpio_regulator_config() 188 proplen = 0; in of_get_gpio_regulator_config() 196 if (proplen > 0) { in of_get_gpio_regulator_config() 207 proplen = of_property_count_u32_elems(np, "states"); in of_get_gpio_regulator_config() 208 if (proplen < 0) { in of_get_gpio_regulator_config() 215 * (proplen / 2), in of_get_gpio_regulator_config() [all …]
|
/drivers/input/ |
D | matrix-keymap.c | 81 unsigned int proplen, i, size; in matrix_keypad_parse_of_keymap() local 90 prop = of_get_property(np, propname, &proplen); in matrix_keypad_parse_of_keymap() 97 if (proplen % sizeof(u32)) { in matrix_keypad_parse_of_keymap() 103 size = proplen / sizeof(u32); in matrix_keypad_parse_of_keymap()
|
/drivers/virt/ |
D | fsl_hypervisor.c | 361 if (param.proplen > FH_DTPROP_MAX_PROPLEN) { in ioctl_dtprop() 366 propval = kmalloc(param.proplen, GFP_KERNEL); in ioctl_dtprop() 373 if (copy_from_user(propval, upropval, param.proplen)) { in ioctl_dtprop() 382 param.proplen); in ioctl_dtprop() 388 ¶m.proplen); in ioctl_dtprop() 391 if (copy_to_user(upropval, propval, param.proplen) || in ioctl_dtprop() 392 put_user(param.proplen, &p->proplen)) { in ioctl_dtprop()
|
/drivers/pwm/ |
D | pwm-lp3943.c | 205 int i, err, proplen, count = 0; in lp3943_pwm_parse_dt() local 221 if (!of_get_property(node, name[i], &proplen)) in lp3943_pwm_parse_dt() 224 num_outputs = proplen / sizeof(u32); in lp3943_pwm_parse_dt()
|
/drivers/input/keyboard/ |
D | tegra-kbc.c | 508 int proplen; in tegra_kbc_parse_dt() local 524 if (!of_get_property(np, "nvidia,kbc-row-pins", &proplen)) { in tegra_kbc_parse_dt() 528 num_rows = proplen / sizeof(u32); in tegra_kbc_parse_dt() 530 if (!of_get_property(np, "nvidia,kbc-col-pins", &proplen)) { in tegra_kbc_parse_dt() 534 num_cols = proplen / sizeof(u32); in tegra_kbc_parse_dt() 548 if (!of_get_property(np, "linux,keymap", &proplen)) { in tegra_kbc_parse_dt()
|
D | pxa27x_keypad.c | 159 unsigned int proplen, size; in pxa27x_keypad_direct_key_parse_dt() local 189 prop = of_get_property(np, "marvell,direct-key-map", &proplen); in pxa27x_keypad_direct_key_parse_dt() 193 if (proplen % sizeof(u16)) in pxa27x_keypad_direct_key_parse_dt() 196 size = proplen / sizeof(u16); in pxa27x_keypad_direct_key_parse_dt() 216 unsigned int code, proplen; in pxa27x_keypad_rotary_parse_dt() local 240 prop = of_get_property(np, rotaryname[i], &proplen); in pxa27x_keypad_rotary_parse_dt()
|
D | tc3589x-keypad.c | 329 int proplen; in tc3589x_keypad_of_probe() local 350 if (!of_get_property(np, "linux,keymap", &proplen)) { in tc3589x_keypad_of_probe()
|
/drivers/ata/ |
D | pata_mpc52xx.c | 681 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()
|
/drivers/scsi/ |
D | mac53c94.c | 417 int proplen, rc = -ENODEV; in mac53c94_probe() local 456 clkprop = of_get_property(node, "clock-frequency", &proplen); in mac53c94_probe() 457 if (clkprop == NULL || proplen != sizeof(int)) { in mac53c94_probe()
|
/drivers/char/ipmi/ |
D | ipmi_si_intf.c | 2606 int proplen; in of_ipmi_probe() local 2623 regsize = of_get_property(np, "reg-size", &proplen); in of_ipmi_probe() 2624 if (regsize && proplen != 4) { in of_ipmi_probe() 2629 regspacing = of_get_property(np, "reg-spacing", &proplen); in of_ipmi_probe() 2630 if (regspacing && proplen != 4) { in of_ipmi_probe() 2635 regshift = of_get_property(np, "reg-shift", &proplen); in of_ipmi_probe() 2636 if (regshift && proplen != 4) { in of_ipmi_probe()
|
/drivers/input/touchscreen/ |
D | atmel_mxt_ts.c | 2927 int proplen, ret; in mxt_parse_dt() local 2936 if (of_find_property(np, "linux,gpio-keymap", &proplen)) { in mxt_parse_dt() 2937 pdata->t19_num_keys = proplen / sizeof(u32); in mxt_parse_dt()
|