Home
last modified time | relevance | path

Searched refs:gpio_sub_n (Results 1 – 2 of 2) sorted by relevance

/arch/blackfin/kernel/
Dbfin_gpio.c311 pmux &= ~(0x3 << (2 * gpio_sub_n(ident))); in portmux_setup()
312 pmux |= (function & 0x3) << (2 * gpio_sub_n(ident)); in portmux_setup()
321 return (pmux >> (2 * gpio_sub_n(ident)) & 0x3); in get_portmux()
332 u8 offset = pmux_offset[gpio_bank(ident)][gpio_sub_n(ident)]; in portmux_group_check()
361 u8 offset = pmux_offset[gpio_bank(ident)][gpio_sub_n(ident)]; in portmux_setup()
489 ret = 0x01 & (gpio_array[gpio_bank(gpio)]->name >> gpio_sub_n(gpio)); \
725 return (0x01 & (gpio_array[gpio_bank(gpio)]->dir_clear >> gpio_sub_n(gpio))); in get_gpio_dir()
1192 return (1 & (gpio_array[gpio_bank(gpio)]->data >> gpio_sub_n(gpio)));
/arch/blackfin/include/asm/
Dgpio.h12 #define gpio_sub_n(x) ((x) & 0xF) macro