Lines Matching defs:state
41 struct pwm_state state;
43 pwm_get_state(pwm, &state);
45 return sysfs_emit(buf, "%llu\n", state.period);
54 struct pwm_state state;
63 pwm_get_state(pwm, &state);
64 state.period = val;
65 ret = pwm_apply_state(pwm, &state);
76 struct pwm_state state;
78 pwm_get_state(pwm, &state);
80 return sysfs_emit(buf, "%llu\n", state.duty_cycle);
89 struct pwm_state state;
98 pwm_get_state(pwm, &state);
99 state.duty_cycle = val;
100 ret = pwm_apply_state(pwm, &state);
111 struct pwm_state state;
113 pwm_get_state(pwm, &state);
115 return sysfs_emit(buf, "%d\n", state.enabled);
124 struct pwm_state state;
133 pwm_get_state(pwm, &state);
137 state.enabled = false;
140 state.enabled = true;
147 ret = pwm_apply_state(pwm, &state);
160 struct pwm_state state;
162 pwm_get_state(pwm, &state);
164 switch (state.polarity) {
184 struct pwm_state state;
195 pwm_get_state(pwm, &state);
196 state.polarity = polarity;
197 ret = pwm_apply_state(pwm, &state);
379 struct pwm_state *state)
395 pwm_get_state(pwm, state);
402 struct pwm_state *state)
404 int ret = pwm_apply_state(pwm, state);
420 struct pwm_state state;
423 export = pwm_class_get_state(parent, pwm, &state);
434 state.enabled = export->suspend.enabled;
435 ret = pwm_class_apply_state(export, pwm, &state);
451 struct pwm_state state;
454 export = pwm_class_get_state(parent, pwm, &state);
460 * state for resume time and do nothing else.
462 export->suspend = state;
463 if (!state.enabled) {
469 state.enabled = false;
470 ret = pwm_class_apply_state(export, pwm, &state);