Lines Matching refs:qe_pin
120 struct qe_pin {
135 * This function return qe_pin so that you could use it with the rest of
138 struct qe_pin *qe_pin_request(struct device_node *np, int index)
140 struct qe_pin *qe_pin;
151 qe_pin = kzalloc(sizeof(*qe_pin), GFP_KERNEL);
152 if (!qe_pin) {
197 qe_pin->controller = qe_gc;
198 qe_pin->num = err;
207 return qe_pin;
211 kfree(qe_pin);
219 * @qe_pin: pointer to the qe_pin structure
222 * This function frees the qe_pin structure and makes a pin available
225 void qe_pin_free(struct qe_pin *qe_pin)
227 struct qe_gpio_chip *qe_gc = qe_pin->controller;
229 const int pin = qe_pin->num;
235 kfree(qe_pin);
241 * @qe_pin: pointer to the qe_pin structure
247 void qe_pin_set_dedicated(struct qe_pin *qe_pin)
249 struct qe_gpio_chip *qe_gc = qe_pin->controller;
252 int pin = qe_pin->num;
282 * @qe_pin: pointer to the qe_pin structure
287 void qe_pin_set_gpio(struct qe_pin *qe_pin)
289 struct qe_gpio_chip *qe_gc = qe_pin->controller;
296 __par_io_config_pin(regs, qe_pin->num, QE_PIO_DIR_IN, 0, 0, 0);