Lines Matching refs:bit_offset
52 u32 bit_offset; in xgene_gpio_get() local
55 bit_offset = GPIO_BIT_OFFSET(offset); in xgene_gpio_get()
56 return !!(ioread32(chip->base + bank_offset) & BIT(bit_offset)); in xgene_gpio_get()
63 u32 setval, bit_offset; in __xgene_gpio_set() local
66 bit_offset = GPIO_BIT_OFFSET(offset) + XGENE_GPIOS_PER_BANK; in __xgene_gpio_set()
70 setval |= BIT(bit_offset); in __xgene_gpio_set()
72 setval &= ~BIT(bit_offset); in __xgene_gpio_set()
89 unsigned long bank_offset, bit_offset; in xgene_gpio_get_direction() local
92 bit_offset = GPIO_BIT_OFFSET(offset); in xgene_gpio_get_direction()
94 return !!(ioread32(chip->base + bank_offset) & BIT(bit_offset)); in xgene_gpio_get_direction()
101 u32 dirval, bit_offset; in xgene_gpio_dir_in() local
104 bit_offset = GPIO_BIT_OFFSET(offset); in xgene_gpio_dir_in()
109 dirval |= BIT(bit_offset); in xgene_gpio_dir_in()
122 u32 dirval, bit_offset; in xgene_gpio_dir_out() local
125 bit_offset = GPIO_BIT_OFFSET(offset); in xgene_gpio_dir_out()
130 dirval &= ~BIT(bit_offset); in xgene_gpio_dir_out()