Lines Matching refs:bank_pin_num

193 					  unsigned int *bank_pin_num,  in zynq_gpio_get_bank_pin()  argument
203 *bank_pin_num = pin_num - in zynq_gpio_get_bank_pin()
212 *bank_pin_num = 0; in zynq_gpio_get_bank_pin()
235 unsigned int bank_num, bank_pin_num; in zynq_gpio_get_value() local
241 zynq_gpio_get_bank_pin(gpio, &bank_num, &bank_pin_num, dev); in zynq_gpio_get_value()
246 return (data >> bank_pin_num) & 1; in zynq_gpio_get_value()
251 unsigned int reg_offset, bank_num, bank_pin_num; in zynq_gpio_set_value() local
257 zynq_gpio_get_bank_pin(gpio, &bank_num, &bank_pin_num, dev); in zynq_gpio_set_value()
259 if (bank_pin_num >= ZYNQ_GPIO_MID_PIN_NUM) { in zynq_gpio_set_value()
261 bank_pin_num -= ZYNQ_GPIO_MID_PIN_NUM; in zynq_gpio_set_value()
272 value = ~(1 << (bank_pin_num + ZYNQ_GPIO_MID_PIN_NUM)) & in zynq_gpio_set_value()
273 ((value << bank_pin_num) | ZYNQ_GPIO_UPPER_MASK); in zynq_gpio_set_value()
283 unsigned int bank_num, bank_pin_num; in zynq_gpio_direction_input() local
289 zynq_gpio_get_bank_pin(gpio, &bank_num, &bank_pin_num, dev); in zynq_gpio_direction_input()
292 if (bank_num == 0 && (bank_pin_num == 7 || bank_pin_num == 8)) in zynq_gpio_direction_input()
297 reg &= ~BIT(bank_pin_num); in zynq_gpio_direction_input()
307 unsigned int bank_num, bank_pin_num; in zynq_gpio_direction_output() local
313 zynq_gpio_get_bank_pin(gpio, &bank_num, &bank_pin_num, dev); in zynq_gpio_direction_output()
317 reg |= BIT(bank_pin_num); in zynq_gpio_direction_output()
322 reg |= BIT(bank_pin_num); in zynq_gpio_direction_output()
333 unsigned int bank_num, bank_pin_num; in zynq_gpio_get_function() local
339 zynq_gpio_get_bank_pin(offset, &bank_num, &bank_pin_num, dev); in zynq_gpio_get_function()
343 reg &= BIT(bank_pin_num); in zynq_gpio_get_function()