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()
211 uint32_t moder = gpio_readl(GPIO_A, MODER); in test_idr_reset_value()
212 uint32_t odr = gpio_readl(GPIO_A, ODR); in test_idr_reset_value()
213 uint32_t otyper = gpio_readl(GPIO_A, OTYPER); in test_idr_reset_value()
214 uint32_t pupdr = gpio_readl(GPIO_A, PUPDR); in test_idr_reset_value()
215 uint32_t idr = gpio_readl(GPIO_A, IDR); in test_idr_reset_value()
226 moder = gpio_readl(GPIO_B, MODER); in test_idr_reset_value()
227 odr = gpio_readl(GPIO_B, ODR); in test_idr_reset_value()
228 otyper = gpio_readl(GPIO_B, OTYPER); in test_idr_reset_value()
229 pupdr = gpio_readl(GPIO_B, PUPDR); in test_idr_reset_value()
230 idr = gpio_readl(GPIO_B, IDR); in test_idr_reset_value()
241 moder = gpio_readl(GPIO_C, MODER); in test_idr_reset_value()
242 odr = gpio_readl(GPIO_C, ODR); in test_idr_reset_value()
243 otyper = gpio_readl(GPIO_C, OTYPER); in test_idr_reset_value()
244 pupdr = gpio_readl(GPIO_C, PUPDR); in test_idr_reset_value()
245 idr = gpio_readl(GPIO_C, IDR); in test_idr_reset_value()
255 moder = gpio_readl(GPIO_H, MODER); in test_idr_reset_value()
256 odr = gpio_readl(GPIO_H, ODR); in test_idr_reset_value()
257 otyper = gpio_readl(GPIO_H, OTYPER); in test_idr_reset_value()
258 pupdr = gpio_readl(GPIO_H, PUPDR); in test_idr_reset_value()
259 idr = gpio_readl(GPIO_H, IDR); in test_idr_reset_value()
287 g_assert_cmphex(gpio_readl(gpio, IDR), ==, reset(gpio, IDR)); in test_gpio_output_mode()
292 g_assert_cmphex(gpio_readl(gpio, IDR), ==, reset(gpio, IDR) | (1 << pin)); in test_gpio_output_mode()
297 g_assert_cmphex(gpio_readl(gpio, IDR), ==, reset(gpio, IDR) & ~(1 << pin)); in test_gpio_output_mode()
303 g_assert_cmphex(gpio_readl(gpio, IDR), ==, reset(gpio, IDR)); in test_gpio_output_mode()
323 g_assert_cmphex(gpio_readl(gpio, IDR), ==, reset(gpio, IDR) | (1 << pin)); in test_gpio_input_mode()
328 g_assert_cmphex(gpio_readl(gpio, IDR), ==, reset(gpio, IDR) & ~(1 << pin)); in test_gpio_input_mode()
334 g_assert_cmphex(gpio_readl(gpio, IDR), ==, reset(gpio, IDR)); in test_gpio_input_mode()
352 g_assert_cmphex(gpio_readl(gpio, IDR), ==, reset(gpio, IDR) | (1 << pin)); in test_pull_up_pull_down()
357 g_assert_cmphex(gpio_readl(gpio, IDR), ==, reset(gpio, IDR) & ~(1 << pin)); in test_pull_up_pull_down()
363 g_assert_cmphex(gpio_readl(gpio, IDR), ==, reset(gpio, IDR)); in test_pull_up_pull_down()
384 g_assert_cmphex(gpio_readl(gpio, IDR), ==, reset(gpio, IDR) & ~(1 << pin)); in test_push_pull()
392 g_assert_cmphex(gpio_readl(gpio2, IDR), ==, reset(gpio2, IDR) | (1 << pin)); in test_push_pull()
397 g_assert_cmphex(gpio_readl(gpio, IDR), ==, reset(gpio, IDR) & ~(1 << pin)); in test_push_pull()
402 g_assert_cmphex(gpio_readl(gpio2, IDR), ==, reset(gpio2, IDR) | (1 << pin)); in test_push_pull()
432 g_assert_cmphex(gpio_readl(gpio, IDR), ==, reset(gpio, IDR) & ~(1 << pin)); in test_open_drain()
441 g_assert_cmphex(gpio_readl(gpio2, IDR), ==, in test_open_drain()
447 g_assert_cmphex(gpio_readl(gpio, IDR), ==, reset(gpio, IDR) & ~(1 << pin)); in test_open_drain()
453 g_assert_cmphex(gpio_readl(gpio2, IDR), ==, in test_open_drain()
461 g_assert_cmphex(gpio_readl(gpio2, IDR), ==, reset(gpio2, IDR)); in test_open_drain()
466 g_assert_cmphex(gpio_readl(gpio, IDR), ==, reset(gpio, IDR)); in test_open_drain()
480 g_assert_cmphex(gpio_readl(gpio, ODR), ==, reset(gpio, ODR) | (1 << pin)); in test_bsrr_brr()
483 g_assert_cmphex(gpio_readl(gpio, ODR), ==, reset(gpio, ODR)); in test_bsrr_brr()
486 g_assert_cmphex(gpio_readl(gpio, ODR), ==, reset(gpio, ODR) | (1 << pin)); in test_bsrr_brr()
489 g_assert_cmphex(gpio_readl(gpio, ODR), ==, reset(gpio, ODR)); in test_bsrr_brr()
493 g_assert_cmphex(gpio_readl(gpio, ODR), ==, reset(gpio, ODR) | (1 << pin)); in test_bsrr_brr()
496 g_assert_cmphex(gpio_readl(gpio, ODR), ==, reset(gpio, ODR)); in test_bsrr_brr()