Searched refs:GPIO_NUM (Results 1 – 3 of 3) sorted by relevance
246 #define MPP_REG_NUM(GPIO_NUM) (GPIO_NUM / 8) argument247 #define MPP_MASK(GPIO_NUM) (0xf << 4 * (GPIO_NUM - \ argument248 (MPP_REG_NUM(GPIO_NUM) * 8)));249 #define GPP_REG_NUM(GPIO_NUM) (GPIO_NUM / 32) argument250 #define GPP_MASK(GPIO_NUM) (1 << GPIO_NUM % 32) argument
39 u32 num = GPIO_NUM(pin); in sunxi_gpio_output()57 u32 num = GPIO_NUM(pin); in sunxi_gpio_input()175 u32 num = GPIO_NUM(offset); in sunxi_gpio_direction_output()186 u32 num = GPIO_NUM(offset); in sunxi_gpio_get_value()199 u32 num = GPIO_NUM(offset); in sunxi_gpio_set_value()
82 #define GPIO_NUM(pin) ((pin) & 0x1f) macro