Searched refs:tcbpwm (Results 1 – 1 of 1) sorted by relevance
56 struct atmel_tcb_pwm_device *tcbpwm = pwm_get_chip_data(pwm); in atmel_tcb_pwm_set_polarity() local58 tcbpwm->polarity = polarity; in atmel_tcb_pwm_set_polarity()67 struct atmel_tcb_pwm_device *tcbpwm; in atmel_tcb_pwm_request() local75 tcbpwm = devm_kzalloc(chip->dev, sizeof(*tcbpwm), GFP_KERNEL); in atmel_tcb_pwm_request()76 if (!tcbpwm) in atmel_tcb_pwm_request()81 devm_kfree(chip->dev, tcbpwm); in atmel_tcb_pwm_request()85 pwm_set_chip_data(pwm, tcbpwm); in atmel_tcb_pwm_request()86 tcbpwm->polarity = PWM_POLARITY_NORMAL; in atmel_tcb_pwm_request()87 tcbpwm->duty = 0; in atmel_tcb_pwm_request()88 tcbpwm->period = 0; in atmel_tcb_pwm_request()[all …]