Lines Matching defs:index
356 * @index: per-chip index of the PWM to request
359 * Returns: A pointer to the PWM device at the given index of the given PWM
360 * chip. A negative error code is returned if the index is not valid for the
364 unsigned int index,
370 if (!chip || index >= chip->npwm)
374 pwm = &chip->pwms[index];
672 * Returns the PWM device parsed from the phandle and index specified in the
679 * lookup of the PWM index. This also means that the "pwm-names" property
693 int index = 0;
697 index = of_property_match_string(np, "pwm-names", con_id);
698 if (index < 0)
699 return ERR_PTR(index);
702 err = of_parse_phandle_with_args(np, "pwms", "#pwm-cells", index,
736 err = of_property_read_string_index(np, "pwm-names", index,
754 * Returns the PWM device parsed from the fwnode and index specified in the
762 * { <PWM device reference>, <PWM index>, <PWM period> [, <PWM flags>]}}
840 * a device tree, a PWM chip and a relative index is looked up via a table
880 * and a PWM device is requested using the PWM device per-chip index.
943 pwm = pwm_request_from_chip(chip, chosen->index, con_id ?: dev_id);