Lines Matching full:bit_offset
41 u32 bit_offset; in xgene_gpio_get() local
44 bit_offset = GPIO_BIT_OFFSET(offset); in xgene_gpio_get()
45 return !!(ioread32(chip->base + bank_offset) & BIT(bit_offset)); in xgene_gpio_get()
52 u32 setval, bit_offset; in __xgene_gpio_set() local
55 bit_offset = GPIO_BIT_OFFSET(offset) + XGENE_GPIOS_PER_BANK; in __xgene_gpio_set()
59 setval |= BIT(bit_offset); in __xgene_gpio_set()
61 setval &= ~BIT(bit_offset); in __xgene_gpio_set()
78 unsigned long bank_offset, bit_offset; in xgene_gpio_get_direction() local
81 bit_offset = GPIO_BIT_OFFSET(offset); in xgene_gpio_get_direction()
83 if (ioread32(chip->base + bank_offset) & BIT(bit_offset)) in xgene_gpio_get_direction()
93 u32 dirval, bit_offset; in xgene_gpio_dir_in() local
96 bit_offset = GPIO_BIT_OFFSET(offset); in xgene_gpio_dir_in()
101 dirval |= BIT(bit_offset); in xgene_gpio_dir_in()
114 u32 dirval, bit_offset; in xgene_gpio_dir_out() local
117 bit_offset = GPIO_BIT_OFFSET(offset); in xgene_gpio_dir_out()
122 dirval &= ~BIT(bit_offset); in xgene_gpio_dir_out()