Lines Matching refs:index
388 * @pwm: global PWM device index
426 * @index: per-chip index of the PWM to request
429 * Returns: A pointer to the PWM device at the given index of the given PWM
430 * chip. A negative error code is returned if the index is not valid for the
434 unsigned int index,
440 if (!chip || index >= chip->npwm)
444 pwm = &chip->pwms[index];
791 * Returns the PWM device parsed from the phandle and index specified in the
798 * lookup of the PWM index. This also means that the "pwm-names" property
812 int index = 0;
816 index = of_property_match_string(np, "pwm-names", con_id);
817 if (index < 0)
818 return ERR_PTR(index);
821 err = of_parse_phandle_with_args(np, "pwms", "#pwm-cells", index,
855 err = of_property_read_string_index(np, "pwm-names", index,
896 * Returns the PWM device parsed from the fwnode and index specified in the
904 * { <PWM device reference>, <PWM index>, <PWM period> [, <PWM flags>]}}
989 * a device tree, a PWM chip and a relative index is looked up via a table
1028 * and a PWM device is requested using the PWM device per-chip index.
1091 pwm = pwm_request_from_chip(chip, chosen->index, con_id ?: dev_id);