Lines Matching defs:qe_pin
139 struct qe_pin {
154 * This function return qe_pin so that you could use it with the rest of
157 struct qe_pin *qe_pin_request(struct device *dev, int index)
159 struct qe_pin *qe_pin;
165 qe_pin = kzalloc(sizeof(*qe_pin), GFP_KERNEL);
166 if (!qe_pin) {
192 qe_pin->controller = gpiochip_get_data(gc);
198 qe_pin->num = gpio_num - gc->base;
205 return qe_pin;
207 kfree(qe_pin);
215 * @qe_pin: pointer to the qe_pin structure
218 * This function frees the qe_pin structure and makes a pin available
221 void qe_pin_free(struct qe_pin *qe_pin)
223 kfree(qe_pin);
229 * @qe_pin: pointer to the qe_pin structure
235 void qe_pin_set_dedicated(struct qe_pin *qe_pin)
237 struct qe_gpio_chip *qe_gc = qe_pin->controller;
240 int pin = qe_pin->num;
274 * @qe_pin: pointer to the qe_pin structure
279 void qe_pin_set_gpio(struct qe_pin *qe_pin)
281 struct qe_gpio_chip *qe_gc = qe_pin->controller;
288 __par_io_config_pin(regs, qe_pin->num, QE_PIO_DIR_IN, 0, 0, 0);