Lines Matching refs:module
114 const PWMModule *module; member
202 static int pwm_module_index(const PWMModule *module) in pwm_module_index() argument
204 ptrdiff_t diff = module - pwm_module_list; in pwm_module_index()
365 return qtest_readl(qts, td->module->base_addr + offset); in pwm_read()
371 qtest_writel(qts, td->module->base_addr + offset, value); in pwm_write()
448 int index = pwm_module_index(td->module) * ARRAY_SIZE(pwm_list) + in mft_compute_index()
559 int module = pwm_module_index(td->module); in test_init() local
562 g_assert_cmpuint(pwm_get_freq(qts, module, pwm), ==, 0); in test_init()
563 g_assert_cmpuint(pwm_get_duty(qts, module, pwm), ==, 0); in test_init()
573 int module = pwm_module_index(td->module); in test_oneshot() local
591 g_assert_cmpuint(pwm_get_freq(qts, module, pwm), ==, 0); in test_oneshot()
592 g_assert_cmpuint(pwm_get_duty(qts, module, pwm), ==, 0); in test_oneshot()
604 int module = pwm_module_index(td->module); in test_toggle() local
638 g_assert_cmpuint(pwm_get_duty(qts, module, pwm), in test_toggle()
642 g_assert_cmpuint(pwm_get_freq(qts, module, pwm), in test_toggle()
653 g_assert_cmpuint(pwm_get_duty(qts, module, pwm), in test_toggle()
657 g_assert_cmpuint(pwm_get_freq(qts, module, pwm), in test_toggle()
673 "npcm7xx_pwm/module[%d]/pwm[%d]/%s", pwm_module_index(td->module), in pwm_add_test()
701 td->module = &pwm_module_list[i]; in main()