Home
last modified time | relevance | path

Searched refs:bank_offset (Results 1 – 4 of 4) sorted by relevance

/linux/drivers/gpio/
H A Dgpio-xgene.c40 unsigned long bank_offset; in xgene_gpio_get() local
43 bank_offset = GPIO_DATA_OFFSET + GPIO_BANK_OFFSET(offset); in xgene_gpio_get()
45 return !!(ioread32(chip->base + bank_offset) & BIT(bit_offset)); in xgene_gpio_get()
51 unsigned long bank_offset; in __xgene_gpio_set() local
54 bank_offset = GPIO_SET_DR_OFFSET + GPIO_BANK_OFFSET(offset); in __xgene_gpio_set()
57 setval = ioread32(chip->base + bank_offset); in __xgene_gpio_set()
62 iowrite32(setval, chip->base + bank_offset); in __xgene_gpio_set()
80 unsigned long bank_offset, bit_offset; in xgene_gpio_get_direction() local
82 bank_offset = GPIO_SET_DR_OFFSET + GPIO_BANK_OFFSET(offset); in xgene_gpio_get_direction()
85 if (ioread32(chip->base + bank_offset) & BIT(bit_offset)) in xgene_gpio_get_direction()
[all …]
H A Dgpio-mpsse.c315 int bank_offset = offset & 7; in gpio_mpsse_direction_output() local
322 priv->gpio_dir[bank] |= BIT(bank_offset); in gpio_mpsse_direction_output()
333 int bank_offset = offset & 7; in gpio_mpsse_direction_input() local
340 priv->gpio_dir[bank] &= ~BIT(bank_offset); in gpio_mpsse_direction_input()
350 int bank_offset = offset & 7; in gpio_mpsse_get_direction() local
355 if (priv->gpio_dir[bank] & BIT(bank_offset)) in gpio_mpsse_get_direction()
/linux/drivers/pinctrl/sunxi/
H A Dpinctrl-sunxi.c891 unsigned short bank_offset = bank - pctl->desc->pin_base / in sunxi_pmx_request() local
893 struct sunxi_pinctrl_regulator *s_reg = &pctl->regulators[bank_offset]; in sunxi_pmx_request()
898 if (WARN_ON_ONCE(bank_offset >= ARRAY_SIZE(pctl->regulators))) in sunxi_pmx_request()
937 unsigned short bank_offset = bank - pctl->desc->pin_base / in sunxi_pmx_free() local
939 struct sunxi_pinctrl_regulator *s_reg = &pctl->regulators[bank_offset]; in sunxi_pmx_free()
/linux/drivers/net/wireless/microchip/wilc1000/
H A Dwlan.c1696 int bank_offset = get_bank_offset_from_bank_index(i); in wilc_load_mac_from_nv() local
1702 WILC_NVMEM_BANK_BASE + bank_offset, in wilc_load_mac_from_nv()
1709 WILC_NVMEM_BANK_BASE + bank_offset + 4, in wilc_load_mac_from_nv()