Lines Matching defs:descs

252 	struct gpio_desc **descs;
258 unsigned long tmp[]; /* values and descs for multiple ops */
270 return gpiod_get_direction(fwd->descs[offset]);
277 return gpiod_direction_input(fwd->descs[offset]);
285 return gpiod_direction_output(fwd->descs[offset], value);
292 return chip->can_sleep ? gpiod_get_value_cansleep(fwd->descs[offset])
293 : gpiod_get_value(fwd->descs[offset]);
299 struct gpio_desc **descs = fwd_tmp_descs(fwd);
306 descs[j++] = fwd->descs[i];
309 error = gpiod_get_array_value_cansleep(j, descs, NULL, values);
311 error = gpiod_get_array_value(j, descs, NULL, values);
346 bool is_active_low = gpiod_is_active_low(fwd->descs[offset]);
368 gpiod_set_value_cansleep(fwd->descs[offset], value);
370 gpiod_set_value(fwd->descs[offset], value);
379 struct gpio_desc **descs = fwd_tmp_descs(fwd);
385 descs[j++] = fwd->descs[i];
389 gpiod_set_array_value_cansleep(j, descs, NULL, values);
391 gpiod_set_array_value(j, descs, NULL, values);
416 return gpiod_set_config(fwd->descs[offset], config);
423 return gpiod_to_irq(fwd->descs[offset]);
483 * @descs: Array containing the GPIO descriptors to forward to.
496 struct gpio_desc *descs[],
519 struct gpio_chip *parent = gpiod_to_chip(descs[i]);
522 desc_to_gpio(descs[i]), gpiod_to_irq(descs[i]));
524 if (gpiod_cansleep(descs[i]))
543 fwd->descs = descs;
571 struct gpio_desc **descs;
580 descs = devm_kmalloc_array(dev, n, sizeof(*descs), GFP_KERNEL);
581 if (!descs)
585 descs[i] = devm_gpiod_get_index(dev, NULL, i, GPIOD_ASIS);
586 if (IS_ERR(descs[i]))
587 return PTR_ERR(descs[i]);
591 fwd = gpiochip_fwd_create(dev, n, descs, features);