Home
last modified time | relevance | path

Searched refs:pargs (Results 1 – 3 of 3) sorted by relevance

/drivers/clk/
A Dclk-pwm.c101 struct pwm_args pargs; in clk_pwm_probe() local
113 pwm_get_args(pwm, &pargs); in clk_pwm_probe()
114 if (!pargs.period) { in clk_pwm_probe()
120 clk_pwm->fixed_rate = div64_u64(NSEC_PER_SEC, pargs.period); in clk_pwm_probe()
127 if (pargs.period != NSEC_PER_SEC / clk_pwm->fixed_rate && in clk_pwm_probe()
128 pargs.period != DIV_ROUND_UP(NSEC_PER_SEC, clk_pwm->fixed_rate)) { in clk_pwm_probe()
/drivers/input/misc/
A Dmax77693-haptic.c246 struct pwm_args pargs; in max77693_haptic_play_effect() local
258 pwm_get_args(haptic->pwm_dev, &pargs); in max77693_haptic_play_effect()
259 period_mag_multi = (u64)pargs.period * haptic->magnitude; in max77693_haptic_play_effect()
/drivers/pwm/
A Dcore.c848 struct pwm_args pargs; in pwm_adjust_config() local
850 pwm_get_args(pwm, &pargs); in pwm_adjust_config()
863 state.period = pargs.period; in pwm_adjust_config()
864 state.polarity = pargs.polarity; in pwm_adjust_config()
873 if (pargs.period != state.period) { in pwm_adjust_config()
874 u64 dutycycle = (u64)state.duty_cycle * pargs.period; in pwm_adjust_config()
878 state.period = pargs.period; in pwm_adjust_config()
884 if (pargs.polarity != state.polarity) { in pwm_adjust_config()
885 state.polarity = pargs.polarity; in pwm_adjust_config()

Completed in 11 milliseconds