Lines Matching refs:pin
78 unsigned pin; member
188 .pin = (p), \
806 int pin = grp->pins[i]; in chv_pinmux_set_mux() local
815 if (grp->overrides[j].pin == pin) { in chv_pinmux_set_mux()
822 reg = chv_padreg(pctrl, pin, CHV_PADCTRL0); in chv_pinmux_set_mux()
832 reg = chv_padreg(pctrl, pin, CHV_PADCTRL1); in chv_pinmux_set_mux()
839 pin, altfunc->mode, altfunc->invert_oe ? "" : "not "); in chv_pinmux_set_mux()
958 static int chv_config_get(struct pinctrl_dev *pctldev, unsigned pin, in chv_config_get() argument
969 ctrl0 = readl(chv_padreg(pctrl, pin, CHV_PADCTRL0)); in chv_config_get()
970 ctrl1 = readl(chv_padreg(pctrl, pin, CHV_PADCTRL1)); in chv_config_get()
1038 static int chv_config_set_pull(struct chv_pinctrl *pctrl, unsigned pin, in chv_config_set_pull() argument
1041 void __iomem *reg = chv_padreg(pctrl, pin, CHV_PADCTRL0); in chv_config_set_pull()
1104 static int chv_config_set(struct pinctrl_dev *pctldev, unsigned pin, in chv_config_set() argument
1112 if (chv_pad_locked(pctrl, pin)) in chv_config_set()
1123 ret = chv_config_set_pull(pctrl, pin, param, arg); in chv_config_set()
1132 dev_dbg(pctrl->dev, "pin %d set config %d arg %u\n", pin, in chv_config_set()
1161 int pin = chv_gpio_offset_to_pin(pctrl, offset); in chv_gpio_get() local
1166 ctrl0 = readl(chv_padreg(pctrl, pin, CHV_PADCTRL0)); in chv_gpio_get()
1180 unsigned pin = chv_gpio_offset_to_pin(pctrl, offset); in chv_gpio_set() local
1187 reg = chv_padreg(pctrl, pin, CHV_PADCTRL0); in chv_gpio_set()
1203 unsigned pin = chv_gpio_offset_to_pin(pctrl, offset); in chv_gpio_get_direction() local
1208 ctrl0 = readl(chv_padreg(pctrl, pin, CHV_PADCTRL0)); in chv_gpio_get_direction()
1244 int pin = chv_gpio_offset_to_pin(pctrl, irqd_to_hwirq(d)); in chv_gpio_irq_ack() local
1249 intr_line = readl(chv_padreg(pctrl, pin, CHV_PADCTRL0)); in chv_gpio_irq_ack()
1261 int pin = chv_gpio_offset_to_pin(pctrl, irqd_to_hwirq(d)); in chv_gpio_irq_mask_unmask() local
1267 intr_line = readl(chv_padreg(pctrl, pin, CHV_PADCTRL0)); in chv_gpio_irq_mask_unmask()
1307 int pin = chv_gpio_offset_to_pin(pctrl, offset); in chv_gpio_irq_startup() local
1313 intsel = readl(chv_padreg(pctrl, pin, CHV_PADCTRL0)); in chv_gpio_irq_startup()
1317 value = readl(chv_padreg(pctrl, pin, CHV_PADCTRL1)); in chv_gpio_irq_startup()
1339 int pin = chv_gpio_offset_to_pin(pctrl, offset); in chv_gpio_irq_type() local
1358 if (!chv_pad_locked(pctrl, pin)) { in chv_gpio_irq_type()
1359 void __iomem *reg = chv_padreg(pctrl, pin, CHV_PADCTRL1); in chv_gpio_irq_type()
1381 value = readl(chv_padreg(pctrl, pin, CHV_PADCTRL0)); in chv_gpio_irq_type()