Home
last modified time | relevance | path

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

/drivers/regulator/
Dgpio-regulator.c141 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/
Dmatrix-keymap.c81 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/
Dfsl_hypervisor.c361 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 &param.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/
Dpwm-lp3943.c205 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/
Dtegra-kbc.c508 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()
Dpxa27x_keypad.c159 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()
Dtc3589x-keypad.c329 int proplen; in tc3589x_keypad_of_probe() local
350 if (!of_get_property(np, "linux,keymap", &proplen)) { in tc3589x_keypad_of_probe()
/drivers/ata/
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()
/drivers/scsi/
Dmac53c94.c417 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/
Dipmi_si_intf.c2606 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/
Datmel_mxt_ts.c2927 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()