Searched refs:gpwm (Results 1 – 1 of 1) sorted by relevance
58 static u64 pwm_gpio_toggle(struct pwm_gpio *gpwm, bool level) in pwm_gpio_toggle() argument60 const struct pwm_state *state = &gpwm->state; in pwm_gpio_toggle()63 gpwm->level = level; in pwm_gpio_toggle()64 gpiod_set_value(gpwm->gpio, gpwm->level ^ invert); in pwm_gpio_toggle()67 gpwm->running = false; in pwm_gpio_toggle()71 gpwm->running = true; in pwm_gpio_toggle()77 struct pwm_gpio *gpwm = container_of(gpio_timer, struct pwm_gpio, in pwm_gpio_timer() local82 guard(spinlock_irqsave)(&gpwm->lock); in pwm_gpio_timer()85 if (!gpwm->level && gpwm->changing) { in pwm_gpio_timer()86 gpwm->changing = false; in pwm_gpio_timer()[all …]