Lines Matching refs:state
41 static int lpi_gpio_read(struct lpi_pinctrl *state, unsigned int pin,
44 return ioread32(state->tlmm_base + LPI_TLMM_REG_OFFSET * pin + addr);
47 static int lpi_gpio_write(struct lpi_pinctrl *state, unsigned int pin,
50 iowrite32(val, state->tlmm_base + LPI_TLMM_REG_OFFSET * pin + addr);
113 * by reading the current state of the pin and setting it as the
149 struct lpi_pinctrl *state = dev_get_drvdata(pctldev->dev);
155 ctl_reg = lpi_gpio_read(state, pin, LPI_GPIO_CFG_REG);
284 struct lpi_pinctrl *state = gpiochip_get_data(chip);
289 return lpi_config_set(state->ctrl, pin, &config, 1);
295 struct lpi_pinctrl *state = gpiochip_get_data(chip);
300 return lpi_config_set(state->ctrl, pin, &config, 1);
305 struct lpi_pinctrl *state = gpiochip_get_data(chip);
307 return lpi_gpio_read(state, pin, LPI_GPIO_VALUE_REG) &
313 struct lpi_pinctrl *state = gpiochip_get_data(chip);
318 lpi_config_set(state->ctrl, pin, &config, 1);
335 struct lpi_pinctrl *state = gpiochip_get_data(chip);
350 pctldev = pctldev ? : state->ctrl;
352 ctl_reg = lpi_gpio_read(state, offset, LPI_GPIO_CFG_REG);