Lines Matching refs:gpio_readl

94 static uint32_t gpio_readl(unsigned int gpio, unsigned int offset)  in gpio_readl()  function
108 gpio_writel(gpio, reg, (gpio_readl(gpio, reg) & mask) | value << pin); in gpio_set_bit()
116 gpio_writel(gpio, reg, (gpio_readl(gpio, reg) & mask) | value << offset); in gpio_set_2bits()
219 uint32_t moder = gpio_readl(GPIO_A, MODER); in test_idr_reset_value()
220 uint32_t odr = gpio_readl(GPIO_A, ODR); in test_idr_reset_value()
221 uint32_t otyper = gpio_readl(GPIO_A, OTYPER); in test_idr_reset_value()
222 uint32_t pupdr = gpio_readl(GPIO_A, PUPDR); in test_idr_reset_value()
223 uint32_t idr = gpio_readl(GPIO_A, IDR); in test_idr_reset_value()
234 moder = gpio_readl(GPIO_B, MODER); in test_idr_reset_value()
235 odr = gpio_readl(GPIO_B, ODR); in test_idr_reset_value()
236 otyper = gpio_readl(GPIO_B, OTYPER); in test_idr_reset_value()
237 pupdr = gpio_readl(GPIO_B, PUPDR); in test_idr_reset_value()
238 idr = gpio_readl(GPIO_B, IDR); in test_idr_reset_value()
249 moder = gpio_readl(GPIO_C, MODER); in test_idr_reset_value()
250 odr = gpio_readl(GPIO_C, ODR); in test_idr_reset_value()
251 otyper = gpio_readl(GPIO_C, OTYPER); in test_idr_reset_value()
252 pupdr = gpio_readl(GPIO_C, PUPDR); in test_idr_reset_value()
253 idr = gpio_readl(GPIO_C, IDR); in test_idr_reset_value()
263 moder = gpio_readl(GPIO_H, MODER); in test_idr_reset_value()
264 odr = gpio_readl(GPIO_H, ODR); in test_idr_reset_value()
265 otyper = gpio_readl(GPIO_H, OTYPER); in test_idr_reset_value()
266 pupdr = gpio_readl(GPIO_H, PUPDR); in test_idr_reset_value()
267 idr = gpio_readl(GPIO_H, IDR); in test_idr_reset_value()
295 g_assert_cmphex(gpio_readl(gpio, IDR), ==, reset(gpio, IDR)); in test_gpio_output_mode()
300 g_assert_cmphex(gpio_readl(gpio, IDR), ==, reset(gpio, IDR) | (1 << pin)); in test_gpio_output_mode()
305 g_assert_cmphex(gpio_readl(gpio, IDR), ==, reset(gpio, IDR) & ~(1 << pin)); in test_gpio_output_mode()
311 g_assert_cmphex(gpio_readl(gpio, IDR), ==, reset(gpio, IDR)); in test_gpio_output_mode()
331 g_assert_cmphex(gpio_readl(gpio, IDR), ==, reset(gpio, IDR) | (1 << pin)); in test_gpio_input_mode()
336 g_assert_cmphex(gpio_readl(gpio, IDR), ==, reset(gpio, IDR) & ~(1 << pin)); in test_gpio_input_mode()
342 g_assert_cmphex(gpio_readl(gpio, IDR), ==, reset(gpio, IDR)); in test_gpio_input_mode()
360 g_assert_cmphex(gpio_readl(gpio, IDR), ==, reset(gpio, IDR) | (1 << pin)); in test_pull_up_pull_down()
365 g_assert_cmphex(gpio_readl(gpio, IDR), ==, reset(gpio, IDR) & ~(1 << pin)); in test_pull_up_pull_down()
371 g_assert_cmphex(gpio_readl(gpio, IDR), ==, reset(gpio, IDR)); in test_pull_up_pull_down()
392 g_assert_cmphex(gpio_readl(gpio, IDR), ==, reset(gpio, IDR) & ~(1 << pin)); in test_push_pull()
400 g_assert_cmphex(gpio_readl(gpio2, IDR), ==, reset(gpio2, IDR) | (1 << pin)); in test_push_pull()
405 g_assert_cmphex(gpio_readl(gpio, IDR), ==, reset(gpio, IDR) & ~(1 << pin)); in test_push_pull()
410 g_assert_cmphex(gpio_readl(gpio2, IDR), ==, reset(gpio2, IDR) | (1 << pin)); in test_push_pull()
440 g_assert_cmphex(gpio_readl(gpio, IDR), ==, reset(gpio, IDR) & ~(1 << pin)); in test_open_drain()
449 g_assert_cmphex(gpio_readl(gpio2, IDR), ==, in test_open_drain()
455 g_assert_cmphex(gpio_readl(gpio, IDR), ==, reset(gpio, IDR) & ~(1 << pin)); in test_open_drain()
461 g_assert_cmphex(gpio_readl(gpio2, IDR), ==, in test_open_drain()
469 g_assert_cmphex(gpio_readl(gpio2, IDR), ==, reset(gpio2, IDR)); in test_open_drain()
474 g_assert_cmphex(gpio_readl(gpio, IDR), ==, reset(gpio, IDR)); in test_open_drain()
488 g_assert_cmphex(gpio_readl(gpio, ODR), ==, reset(gpio, ODR) | (1 << pin)); in test_bsrr_brr()
491 g_assert_cmphex(gpio_readl(gpio, ODR), ==, reset(gpio, ODR)); in test_bsrr_brr()
494 g_assert_cmphex(gpio_readl(gpio, ODR), ==, reset(gpio, ODR) | (1 << pin)); in test_bsrr_brr()
497 g_assert_cmphex(gpio_readl(gpio, ODR), ==, reset(gpio, ODR)); in test_bsrr_brr()
501 g_assert_cmphex(gpio_readl(gpio, ODR), ==, reset(gpio, ODR) | (1 << pin)); in test_bsrr_brr()
504 g_assert_cmphex(gpio_readl(gpio, ODR), ==, reset(gpio, ODR)); in test_bsrr_brr()