Searched refs:duty_cycle (Results 1 - 4 of 4) sorted by relevance
/device/soc/rockchip/common/sdk_linux/include/linux/ |
H A D | pwm.h | 54 * @duty_cycle: PWM duty cycle (in nanoseconds) 60 u64 duty_cycle; member 131 pwm->state.duty_cycle = duty; in pwm_set_duty_cycle() 141 return state.duty_cycle; in pwm_get_duty_cycle() 167 * Once the function returns, you can adjust the ->enabled and ->duty_cycle 170 * ->duty_cycle is initially set to zero to avoid cases where the current 171 * ->duty_cycle value exceed the pwm_args->period one, which would trigger 172 * an error if the user calls pwm_apply_state() without adjusting ->duty_cycle 187 state->duty_cycle = 0; in pwm_init_state() 198 * For example if you want to get the duty_cycle expresse 230 pwm_set_relative_duty_cycle(struct pwm_state *state, unsigned int duty_cycle, unsigned int scale) pwm_set_relative_duty_cycle() argument 303 unsigned int duty_cycle; global() member [all...] |
/device/soc/rockchip/common/sdk_linux/drivers/video/backlight/ |
H A D | pwm_bl.c | 87 state.duty_cycle = 0;
in pwm_backlight_power_off() 98 u64 duty_cycle;
in compute_duty_cycle() local 103 duty_cycle = pb->levels[brightness];
in compute_duty_cycle() 105 duty_cycle = brightness;
in compute_duty_cycle() 108 duty_cycle *= state.period - lth;
in compute_duty_cycle() 109 do_div(duty_cycle, pb->scale);
in compute_duty_cycle() 111 return duty_cycle + lth;
in compute_duty_cycle() 126 state.duty_cycle = compute_duty_cycle(pb, brightness);
in pwm_backlight_update_status()
|
/device/soc/rockchip/common/sdk_linux/drivers/pwm/ |
H A D | sysfs.c | 75 return sprintf(buf, "%llu\n", state.duty_cycle); in duty_cycle_show() 93 state.duty_cycle = val; in duty_cycle_store() 236 return sprintf(buf, "%u %u\n", result.period, result.duty_cycle); in capture_show() 240 static DEVICE_ATTR_RW(duty_cycle);
|
H A D | pwm-rockchip.c | 94 state->duty_cycle = DIV_ROUND_CLOSEST_ULL(tmp, pc->clk_rate);
in rockchip_pwm_get_state() 124 div = (u64)pc->clk_rate * state->duty_cycle;
in rockchip_pwm_config()
|
Completed in 4 milliseconds