Lines Matching refs:gpio2
375 uint32_t gpio2 = GPIO_BASE_ADDR + (GPIO_H - gpio); in test_push_pull() local
388 gpio_set_irq(gpio2, pin, 0); in test_push_pull()
389 gpio_set_bit(gpio2, ODR, pin, 1); in test_push_pull()
390 gpio_set_2bits(gpio2, MODER, pin, MODER_OUTPUT); in test_push_pull()
391 g_assert_cmphex(get_disconnected_pins(gpio2), ==, 0xFFFF); in test_push_pull()
392 g_assert_cmphex(gpio_readl(gpio2, IDR), ==, reset(gpio2, IDR) | (1 << pin)); in test_push_pull()
400 gpio_set_irq(gpio2, pin, 0); in test_push_pull()
401 g_assert_cmphex(get_disconnected_pins(gpio2), ==, 0xFFFF); in test_push_pull()
402 g_assert_cmphex(gpio_readl(gpio2, IDR), ==, reset(gpio2, IDR) | (1 << pin)); in test_push_pull()
406 gpio_writel(gpio2, ODR, reset(gpio2, ODR)); in test_push_pull()
407 gpio_writel(gpio2, MODER, reset(gpio2, MODER)); in test_push_pull()
422 uint32_t gpio2 = GPIO_BASE_ADDR + (GPIO_H - gpio); in test_open_drain() local
436 gpio_set_irq(gpio2, pin, 0); in test_open_drain()
437 gpio_set_bit(gpio2, ODR, pin, 1); in test_open_drain()
438 gpio_set_bit(gpio2, OTYPER, pin, OTYPER_OPEN_DRAIN); in test_open_drain()
439 gpio_set_2bits(gpio2, MODER, pin, MODER_OUTPUT); in test_open_drain()
440 g_assert_cmphex(get_disconnected_pins(gpio2), ==, 0xFFFF & ~(1 << pin)); in test_open_drain()
441 g_assert_cmphex(gpio_readl(gpio2, IDR), ==, in test_open_drain()
442 reset(gpio2, IDR) & ~(1 << pin)); in test_open_drain()
452 g_assert_cmphex(get_disconnected_pins(gpio2), ==, 0xFFFF & ~(1 << pin)); in test_open_drain()
453 g_assert_cmphex(gpio_readl(gpio2, IDR), ==, in test_open_drain()
454 reset(gpio2, IDR) & ~(1 << pin)); in test_open_drain()
457 disconnect_all_pins(gpio2); in test_open_drain()
458 gpio_writel(gpio2, OTYPER, reset(gpio2, OTYPER)); in test_open_drain()
459 gpio_writel(gpio2, ODR, reset(gpio2, ODR)); in test_open_drain()
460 gpio_writel(gpio2, MODER, reset(gpio2, MODER)); in test_open_drain()
461 g_assert_cmphex(gpio_readl(gpio2, IDR), ==, reset(gpio2, IDR)); in test_open_drain()