Searched refs:GPIO_REG (Results 1 - 2 of 2) sorted by relevance
/freebsd-11.0-release/sys/mips/rt305x/ |
H A D | rt305x_gpio.h | 75 #define GPIO_REG(g, n) \ macro 82 bus_read_4(r->gpio_mem_res, GPIO_REG(g, n)) 84 bus_write_4(r->gpio_mem_res, GPIO_REG(g, n), v) 96 bus_write_4(r->gpio_mem_res, GPIO_REG(g, n), \ 97 bus_read_4(r->gpio_mem_res, GPIO_REG(g, n)) & ~GPIO_MASK(g)) 99 bus_write_4(r->gpio_mem_res, GPIO_REG(g, n), \ 100 bus_read_4(r->gpio_mem_res, GPIO_REG(g, n)) | GPIO_MASK(g)) 103 ((bus_read_4(r->gpio_mem_res, GPIO_REG(g, n)) >> \
|
/freebsd-11.0-release/sys/mips/mediatek/ |
H A D | mtk_gpio_v2.c | 112 #define GPIO_REG(_sc, _reg) ((_reg) + (_sc)->bank_id * 0x4) macro 113 #define GPIO_PIOINT(_sc) GPIO_REG((_sc), 0x0090) 114 #define GPIO_PIOEDGE(_sc) GPIO_REG((_sc), 0x00A0) 115 #define GPIO_PIORENA(_sc) GPIO_REG((_sc), 0x0050) 116 #define GPIO_PIOFENA(_sc) GPIO_REG((_sc), 0x0060) 117 #define GPIO_PIODATA(_sc) GPIO_REG((_sc), 0x0020) 118 #define GPIO_PIODIR(_sc) GPIO_REG((_sc), 0x0000) 119 #define GPIO_PIOPOL(_sc) GPIO_REG((_sc), 0x0010) 120 #define GPIO_PIOSET(_sc) GPIO_REG((_sc), 0x0030) 121 #define GPIO_PIORESET(_sc) GPIO_REG((_s [all...] |
Completed in 104 milliseconds