Lines Matching refs:index
2 u32 scx200_gpio_configure(unsigned index, u32 set, u32 clear);
11 #define __SCx200_GPIO_BANK unsigned bank = index>>5
14 #define __SCx200_GPIO_INDEX index &= 31
20 static inline int scx200_gpio_get(unsigned index) { in scx200_gpio_get() argument
25 return (inl(ioaddr) & (1<<index)) ? 1 : 0; in scx200_gpio_get()
32 static inline int scx200_gpio_current(unsigned index) { in scx200_gpio_current() argument
36 return (scx200_gpio_shadow[bank] & (1<<index)) ? 1 : 0; in scx200_gpio_current()
41 static inline void scx200_gpio_set_high(unsigned index) { in scx200_gpio_set_high() argument
46 set_bit(index, shadow); /* __set_bit()? */ in scx200_gpio_set_high()
52 static inline void scx200_gpio_set_low(unsigned index) { in scx200_gpio_set_low() argument
57 clear_bit(index, shadow); /* __clear_bit()? */ in scx200_gpio_set_low()
63 static inline void scx200_gpio_set(unsigned index, int state) { in scx200_gpio_set() argument
69 set_bit(index, shadow); in scx200_gpio_set()
71 clear_bit(index, shadow); in scx200_gpio_set()
76 static inline void scx200_gpio_change(unsigned index) { in scx200_gpio_change() argument
81 change_bit(index, shadow); in scx200_gpio_change()