Searched refs:bank_offset (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/drivers/gpio/
H A Dgpio-xgene.c58 unsigned long bank_offset; xgene_gpio_get() local
61 bank_offset = GPIO_DATA_OFFSET + GPIO_BANK_OFFSET(offset); xgene_gpio_get()
63 return !!(ioread32(chip->base + bank_offset) & BIT(bit_offset)); xgene_gpio_get()
69 unsigned long bank_offset; __xgene_gpio_set() local
72 bank_offset = GPIO_SET_DR_OFFSET + GPIO_BANK_OFFSET(offset); __xgene_gpio_set()
75 setval = ioread32(chip->base + bank_offset); __xgene_gpio_set()
80 iowrite32(setval, chip->base + bank_offset); __xgene_gpio_set()
96 unsigned long flags, bank_offset; xgene_gpio_dir_in() local
99 bank_offset = GPIO_SET_DR_OFFSET + GPIO_BANK_OFFSET(offset); xgene_gpio_dir_in()
104 dirval = ioread32(chip->base + bank_offset); xgene_gpio_dir_in()
106 iowrite32(dirval, chip->base + bank_offset); xgene_gpio_dir_in()
117 unsigned long flags, bank_offset; xgene_gpio_dir_out() local
120 bank_offset = GPIO_SET_DR_OFFSET + GPIO_BANK_OFFSET(offset); xgene_gpio_dir_out()
125 dirval = ioread32(chip->base + bank_offset); xgene_gpio_dir_out()
127 iowrite32(dirval, chip->base + bank_offset); xgene_gpio_dir_out()
139 unsigned long bank_offset; xgene_gpio_suspend() local
143 bank_offset = GPIO_SET_DR_OFFSET + bank * GPIO_BANK_STRIDE; xgene_gpio_suspend()
144 gpio->set_dr_val[bank] = ioread32(gpio->base + bank_offset); xgene_gpio_suspend()
152 unsigned long bank_offset; xgene_gpio_resume() local
156 bank_offset = GPIO_SET_DR_OFFSET + bank * GPIO_BANK_STRIDE; xgene_gpio_resume()
157 iowrite32(gpio->set_dr_val[bank], gpio->base + bank_offset); xgene_gpio_resume()
H A Dgpio-zynq.c473 unsigned int bank_offset = zynq_gpio_bank_offset[bank_num]; zynq_gpio_handle_bank_irq() local
483 gpio_irq = irq_find_mapping(irqdomain, offset + bank_offset); zynq_gpio_handle_bank_irq()

Completed in 137 milliseconds