Lines Matching refs:pwm_index
212 static int pwm_index(const PWM *pwm) in pwm_index() function
239 static uint64_t pwm_get_freq(QTestState *qts, int module_index, int pwm_index) in pwm_get_freq() argument
245 sprintf(name, "freq[%d]", pwm_index); in pwm_get_freq()
250 static uint64_t pwm_get_duty(QTestState *qts, int module_index, int pwm_index) in pwm_get_duty() argument
256 sprintf(name, "duty[%d]", pwm_index); in pwm_get_duty()
398 return extract32(pwm_read(qts, td, PPR), ppr_base[pwm_index(td->pwm)], 8); in pwm_read_ppr()
403 pwm_write(qts, td, PPR, value << ppr_base[pwm_index(td->pwm)]); in pwm_write_ppr()
408 return extract32(pwm_read(qts, td, CSR), csr_base[pwm_index(td->pwm)], 3); in pwm_read_csr()
413 pwm_write(qts, td, CSR, value << csr_base[pwm_index(td->pwm)]); in pwm_write_csr()
418 return extract32(pwm_read(qts, td, PCR), pcr_base[pwm_index(td->pwm)], 4); in pwm_read_pcr()
423 pwm_write(qts, td, PCR, value << pcr_base[pwm_index(td->pwm)]); in pwm_write_pcr()
449 pwm_index(td->pwm); in mft_compute_index()
560 int pwm = pwm_index(td->pwm); in test_init()
574 int pwm = pwm_index(td->pwm); in test_oneshot()
605 int pwm = pwm_index(td->pwm); in test_toggle()
674 pwm_index(td->pwm), name); in pwm_add_test()