Lines Matching refs:index
3 u32 scx200_gpio_configure(int index, u32 set, u32 clear);
4 void scx200_gpio_dump(unsigned index);
13 #define __SCx200_GPIO_BANK unsigned bank = index>>5
16 #define __SCx200_GPIO_INDEX index &= 31
22 static inline int scx200_gpio_get(int index) { in scx200_gpio_get() argument
27 return (inl(ioaddr) & (1<<index)) ? 1 : 0; in scx200_gpio_get()
34 static inline int scx200_gpio_current(int index) { in scx200_gpio_current() argument
38 return (scx200_gpio_shadow[bank] & (1<<index)) ? 1 : 0; in scx200_gpio_current()
43 static inline void scx200_gpio_set_high(int index) { in scx200_gpio_set_high() argument
48 set_bit(index, shadow); in scx200_gpio_set_high()
54 static inline void scx200_gpio_set_low(int index) { in scx200_gpio_set_low() argument
59 clear_bit(index, shadow); in scx200_gpio_set_low()
65 static inline void scx200_gpio_set(int index, int state) { in scx200_gpio_set() argument
71 set_bit(index, shadow); in scx200_gpio_set()
73 clear_bit(index, shadow); in scx200_gpio_set()
78 static inline void scx200_gpio_change(int index) { in scx200_gpio_change() argument
83 change_bit(index, shadow); in scx200_gpio_change()