Lines Matching full:gpio2
383 uint32_t gpio2 = GPIO_BASE_ADDR + (GPIO_H - gpio); in test_push_pull() local
396 gpio_set_irq(gpio2, pin, 0); in test_push_pull()
397 gpio_set_bit(gpio2, ODR, pin, 1); in test_push_pull()
398 gpio_set_2bits(gpio2, MODER, pin, MODER_OUTPUT); in test_push_pull()
399 g_assert_cmphex(get_disconnected_pins(gpio2), ==, 0xFFFF); in test_push_pull()
400 g_assert_cmphex(gpio_readl(gpio2, IDR), ==, reset(gpio2, IDR) | (1 << pin)); in test_push_pull()
408 gpio_set_irq(gpio2, pin, 0); in test_push_pull()
409 g_assert_cmphex(get_disconnected_pins(gpio2), ==, 0xFFFF); in test_push_pull()
410 g_assert_cmphex(gpio_readl(gpio2, IDR), ==, reset(gpio2, IDR) | (1 << pin)); in test_push_pull()
414 gpio_writel(gpio2, ODR, reset(gpio2, ODR)); in test_push_pull()
415 gpio_writel(gpio2, MODER, reset(gpio2, MODER)); in test_push_pull()
430 uint32_t gpio2 = GPIO_BASE_ADDR + (GPIO_H - gpio); in test_open_drain() local
444 gpio_set_irq(gpio2, pin, 0); in test_open_drain()
445 gpio_set_bit(gpio2, ODR, pin, 1); in test_open_drain()
446 gpio_set_bit(gpio2, OTYPER, pin, OTYPER_OPEN_DRAIN); in test_open_drain()
447 gpio_set_2bits(gpio2, MODER, pin, MODER_OUTPUT); in test_open_drain()
448 g_assert_cmphex(get_disconnected_pins(gpio2), ==, 0xFFFF & ~(1 << pin)); in test_open_drain()
449 g_assert_cmphex(gpio_readl(gpio2, IDR), ==, in test_open_drain()
450 reset(gpio2, IDR) & ~(1 << pin)); in test_open_drain()
460 g_assert_cmphex(get_disconnected_pins(gpio2), ==, 0xFFFF & ~(1 << pin)); in test_open_drain()
461 g_assert_cmphex(gpio_readl(gpio2, IDR), ==, in test_open_drain()
462 reset(gpio2, IDR) & ~(1 << pin)); in test_open_drain()
465 disconnect_all_pins(gpio2); in test_open_drain()
466 gpio_writel(gpio2, OTYPER, reset(gpio2, OTYPER)); in test_open_drain()
467 gpio_writel(gpio2, ODR, reset(gpio2, ODR)); in test_open_drain()
468 gpio_writel(gpio2, MODER, reset(gpio2, MODER)); in test_open_drain()
469 g_assert_cmphex(gpio_readl(gpio2, IDR), ==, reset(gpio2, IDR)); in test_open_drain()