Lines Matching refs:period

83 				.period = wf->period_length_ns,  in pwm_wf2state()
90 .period = wf->period_length_ns, in pwm_wf2state()
105 .period_length_ns = state->period, in pwm_state2wf()
111 .period_length_ns = state->period, in pwm_state2wf()
112 .duty_length_ns = state->period - state->duty_cycle, in pwm_state2wf()
467 s2.duty_cycle = s1.period - s1.duty_cycle; in pwm_apply_debug()
468 s2.period = s1.period; in pwm_apply_debug()
475 state->duty_cycle < state->period) in pwm_apply_debug()
480 last->period > s2.period && in pwm_apply_debug()
481 last->period <= state->period) in pwm_apply_debug()
484 state->period, s2.period, last->period); in pwm_apply_debug()
490 if (state->enabled && s2.enabled && state->period < s2.period && s2.duty_cycle) in pwm_apply_debug()
493 state->period, s2.period); in pwm_apply_debug()
497 last->period == s2.period && in pwm_apply_debug()
502 state->duty_cycle, state->period, in pwm_apply_debug()
503 s2.duty_cycle, s2.period, in pwm_apply_debug()
504 last->duty_cycle, last->period); in pwm_apply_debug()
509 state->duty_cycle, state->period, in pwm_apply_debug()
510 s2.duty_cycle, s2.period); in pwm_apply_debug()
534 (s1.enabled && s1.period != last->period) || in pwm_apply_debug()
538 s1.enabled, s1.polarity, s1.duty_cycle, s1.period, in pwm_apply_debug()
540 last->period); in pwm_apply_debug()
554 if (!state->period) in pwm_state_valid()
557 if (state->duty_cycle > state->period) in pwm_state_valid()
597 if (state->period == pwm->state.period && in __pwm_apply()
807 if (!state.period) { in pwm_adjust_config()
809 state.period = pargs.period; in pwm_adjust_config()
819 if (pargs.period != state.period) { in pwm_adjust_config()
820 u64 dutycycle = (u64)state.duty_cycle * pargs.period; in pwm_adjust_config()
822 do_div(dutycycle, state.period); in pwm_adjust_config()
824 state.period = pargs.period; in pwm_adjust_config()
832 state.duty_cycle = state.period - state.duty_cycle; in pwm_adjust_config()
993 pwm->args.period = args->args[1]; in of_pwm_xlate_with_flags()
1013 pwm->args.period = args->args[0]; in of_pwm_single_xlate()
1056 return sysfs_emit(buf, "%llu\n", state.period); in period_show()
1076 state.period = val; in period_store()
1223 return sysfs_emit(buf, "%u %u\n", result.period, result.duty_cycle); in capture_show()
1226 static DEVICE_ATTR_RW(period);
1808 pwm->args.period = args.args[1]; in acpi_pwm_get()
1936 pwm->args.period = chosen->period; in pwm_get()
2220 seq_printf(s, " period: %llu ns", state.period); in pwm_dbg_show()