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()
1171 int pin = chv_gpio_offset_to_pin(pctrl, offset); in chv_gpio_get() local
1174 ctrl0 = readl(chv_padreg(pctrl, pin, CHV_PADCTRL0)); in chv_gpio_get()
1187 unsigned pin = chv_gpio_offset_to_pin(pctrl, offset); in chv_gpio_set() local
1194 reg = chv_padreg(pctrl, pin, CHV_PADCTRL0); in chv_gpio_set()
1210 unsigned pin = chv_gpio_offset_to_pin(pctrl, offset); in chv_gpio_get_direction() local
1213 ctrl0 = readl(chv_padreg(pctrl, pin, CHV_PADCTRL0)); in chv_gpio_get_direction()
1248 int pin = chv_gpio_offset_to_pin(pctrl, irqd_to_hwirq(d)); in chv_gpio_irq_ack() local
1253 intr_line = readl(chv_padreg(pctrl, pin, CHV_PADCTRL0)); in chv_gpio_irq_ack()
1265 int pin = chv_gpio_offset_to_pin(pctrl, irqd_to_hwirq(d)); in chv_gpio_irq_mask_unmask() local
1271 intr_line = readl(chv_padreg(pctrl, pin, CHV_PADCTRL0)); in chv_gpio_irq_mask_unmask()
1311 int pin = chv_gpio_offset_to_pin(pctrl, offset); in chv_gpio_irq_startup() local
1316 intsel = readl(chv_padreg(pctrl, pin, CHV_PADCTRL0)); in chv_gpio_irq_startup()
1320 value = readl(chv_padreg(pctrl, pin, CHV_PADCTRL1)); in chv_gpio_irq_startup()
1343 int pin = chv_gpio_offset_to_pin(pctrl, offset); in chv_gpio_irq_type() local
1362 if (!chv_pad_locked(pctrl, pin)) { in chv_gpio_irq_type()
1363 void __iomem *reg = chv_padreg(pctrl, pin, CHV_PADCTRL1); in chv_gpio_irq_type()
1385 value = readl(chv_padreg(pctrl, pin, CHV_PADCTRL0)); in chv_gpio_irq_type()