Lines Matching refs:hwpwm
331 dev_set_name(&export->child, "pwm%u", pwm->hwpwm); in pwm_export_child()
340 pwm_prop[0] = kasprintf(GFP_KERNEL, "EXPORT=pwm%u", pwm->hwpwm); in pwm_export_child()
365 pwm_prop[0] = kasprintf(GFP_KERNEL, "UNEXPORT=pwm%u", pwm->hwpwm); in pwm_unexport_child()
384 unsigned int hwpwm; in export_store() local
387 ret = kstrtouint(buf, 0, &hwpwm); in export_store()
391 if (hwpwm >= chip->npwm) in export_store()
394 pwm = pwm_request_from_chip(chip, hwpwm, "sysfs"); in export_store()
411 unsigned int hwpwm; in unexport_store() local
414 ret = kstrtouint(buf, 0, &hwpwm); in unexport_store()
418 if (hwpwm >= chip->npwm) in unexport_store()
421 ret = pwm_unexport_child(parent, &chip->pwms[hwpwm]); in unexport_store()