Lines Matching refs:gpio_id
281 unsigned int gpio_id = get_gpio_id(gpio); in test_gpio_output_mode() local
288 g_assert_false(get_irq(gpio_id * NUM_GPIO_PINS + pin)); in test_gpio_output_mode()
293 g_assert_true(get_irq(gpio_id * NUM_GPIO_PINS + pin)); in test_gpio_output_mode()
298 g_assert_false(get_irq(gpio_id * NUM_GPIO_PINS + pin)); in test_gpio_output_mode()
304 g_assert_false(get_irq(gpio_id * NUM_GPIO_PINS + pin)); in test_gpio_output_mode()
316 unsigned int gpio_id = get_gpio_id(gpio); in test_gpio_input_mode() local
324 g_assert_true(get_irq(gpio_id * NUM_GPIO_PINS + pin)); in test_gpio_input_mode()
329 g_assert_false(get_irq(gpio_id * NUM_GPIO_PINS + pin)); in test_gpio_input_mode()
345 unsigned int gpio_id = get_gpio_id(gpio); in test_pull_up_pull_down() local
353 g_assert_true(get_irq(gpio_id * NUM_GPIO_PINS + pin)); in test_pull_up_pull_down()
358 g_assert_false(get_irq(gpio_id * NUM_GPIO_PINS + pin)); in test_pull_up_pull_down()
507 unsigned int gpio_id; in test_clock_enable() local
510 gpio_id = get_gpio_id(gpio); in test_clock_enable()
512 gpio_id + 'a'); in test_clock_enable()
515 writel(RCC_AHB2ENR, readl(RCC_AHB2ENR) | (0x1 << gpio_id)); in test_clock_enable()