Home
last modified time | relevance | path

Searched refs:gpio_bit (Results 1 – 3 of 3) sorted by relevance

/arch/mips/ar7/
Dplatform.c49 int gpio_bit; member
58 ret = gpio_request(pdata->gpio_bit, "vlynq"); in vlynq_on()
64 ret = ar7_gpio_disable(pdata->gpio_bit); in vlynq_on()
68 ret = ar7_gpio_enable(pdata->gpio_bit); in vlynq_on()
72 ret = gpio_direction_output(pdata->gpio_bit, 0); in vlynq_on()
78 gpio_set_value(pdata->gpio_bit, 1); in vlynq_on()
85 ar7_gpio_disable(pdata->gpio_bit); in vlynq_on()
88 gpio_free(pdata->gpio_bit); in vlynq_on()
97 ar7_gpio_disable(pdata->gpio_bit); in vlynq_off()
98 gpio_free(pdata->gpio_bit); in vlynq_off()
[all …]
/arch/blackfin/kernel/
Dbfin_gpio.c145 #define is_reserved(m, i, e) (map_entry(m, i) & gpio_bit(i))
146 #define reserve(m, i) (map_entry(m, i) |= gpio_bit(i))
147 #define unreserve(m, i) (map_entry(m, i) &= ~gpio_bit(i))
177 *port_fer[gpio_bank(gpio)] |= gpio_bit(gpio); in port_setup()
179 *port_fer[gpio_bank(gpio)] &= ~gpio_bit(gpio); in port_setup()
189 *port_fer[gpio_bank(gpio)] &= ~gpio_bit(gpio); in port_setup()
191 *port_fer[gpio_bank(gpio)] |= gpio_bit(gpio); in port_setup()
359 gpio_array[gpio_bank(gpio)]->name |= gpio_bit(gpio); \
361 gpio_array[gpio_bank(gpio)]->name &= ~gpio_bit(gpio); \
381 gpio_array[gpio_bank(gpio)]->name ## _set = gpio_bit(gpio); \ in SET_GPIO()
[all …]
/arch/blackfin/include/asm/
Dgpio.h11 #define gpio_bit(x) (1<<((x) & 0xF)) macro