Lines Matching refs:bit_offset
59 u32 bit_offset; in xgene_gpio_get() local
62 bit_offset = GPIO_BIT_OFFSET(offset); in xgene_gpio_get()
63 return !!(ioread32(chip->base + bank_offset) & BIT(bit_offset)); in xgene_gpio_get()
70 u32 setval, bit_offset; in __xgene_gpio_set() local
73 bit_offset = GPIO_BIT_OFFSET(offset) + XGENE_GPIOS_PER_BANK; in __xgene_gpio_set()
77 setval |= BIT(bit_offset); in __xgene_gpio_set()
79 setval &= ~BIT(bit_offset); in __xgene_gpio_set()
97 u32 dirval, bit_offset; in xgene_gpio_dir_in() local
100 bit_offset = GPIO_BIT_OFFSET(offset); in xgene_gpio_dir_in()
105 dirval |= BIT(bit_offset); in xgene_gpio_dir_in()
118 u32 dirval, bit_offset; in xgene_gpio_dir_out() local
121 bit_offset = GPIO_BIT_OFFSET(offset); in xgene_gpio_dir_out()
126 dirval &= ~BIT(bit_offset); in xgene_gpio_dir_out()