Lines Matching defs:qe_pin
141 struct qe_pin {
156 * This function return qe_pin so that you could use it with the rest of
159 struct qe_pin *qe_pin_request(struct device_node *np, int index)
161 struct qe_pin *qe_pin;
167 qe_pin = kzalloc(sizeof(*qe_pin), GFP_KERNEL);
168 if (!qe_pin) {
194 qe_pin->controller = qe_gc;
195 qe_pin->num = err;
204 return qe_pin;
206 kfree(qe_pin);
214 * @qe_pin: pointer to the qe_pin structure
217 * This function frees the qe_pin structure and makes a pin available
220 void qe_pin_free(struct qe_pin *qe_pin)
222 struct qe_gpio_chip *qe_gc = qe_pin->controller;
224 const int pin = qe_pin->num;
230 kfree(qe_pin);
236 * @qe_pin: pointer to the qe_pin structure
242 void qe_pin_set_dedicated(struct qe_pin *qe_pin)
244 struct qe_gpio_chip *qe_gc = qe_pin->controller;
247 int pin = qe_pin->num;
281 * @qe_pin: pointer to the qe_pin structure
286 void qe_pin_set_gpio(struct qe_pin *qe_pin)
288 struct qe_gpio_chip *qe_gc = qe_pin->controller;
295 __par_io_config_pin(regs, qe_pin->num, QE_PIO_DIR_IN, 0, 0, 0);