Home
last modified time | relevance | path

Searched refs:pwm_index (Results 1 – 2 of 2) sorted by relevance

/openbmc/qemu/tests/qtest/
H A Dnpcm7xx_pwm-test.c212 static int pwm_index(const PWM *pwm) in pwm_index() function
245 sprintf(name, "freq[%d]", pwm_index); in pwm_get_freq()
256 sprintf(name, "duty[%d]", pwm_index); in pwm_get_duty()
403 pwm_write(qts, td, PPR, value << ppr_base[pwm_index(td->pwm)]); in pwm_write_ppr()
413 pwm_write(qts, td, CSR, value << csr_base[pwm_index(td->pwm)]); in pwm_write_csr()
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()
[all …]
/openbmc/linux/drivers/hwmon/
H A Dmax31760.c240 unsigned int pwm_index; in max31760_write() local
292 pwm_index = find_closest(val, max31760_pwm_freq, in max31760_write()
297 FIELD_PREP(CR1_DRV, pwm_index)); in max31760_write()