Lines Matching refs:descs
264 struct gpio_desc **descs; member
282 return gpiod_get_direction(fwd->descs[offset]); in gpio_fwd_get_direction()
289 return gpiod_direction_input(fwd->descs[offset]); in gpio_fwd_direction_input()
297 return gpiod_direction_output(fwd->descs[offset], value); in gpio_fwd_direction_output()
304 return chip->can_sleep ? gpiod_get_value_cansleep(fwd->descs[offset]) in gpio_fwd_get()
305 : gpiod_get_value(fwd->descs[offset]); in gpio_fwd_get()
311 struct gpio_desc **descs = fwd_tmp_descs(fwd); in gpio_fwd_get_multiple() local
318 descs[j++] = fwd->descs[i]; in gpio_fwd_get_multiple()
321 error = gpiod_get_array_value_cansleep(j, descs, NULL, values); in gpio_fwd_get_multiple()
323 error = gpiod_get_array_value(j, descs, NULL, values); in gpio_fwd_get_multiple()
358 bool is_active_low = gpiod_is_active_low(fwd->descs[offset]); in gpio_fwd_delay()
380 gpiod_set_value_cansleep(fwd->descs[offset], value); in gpio_fwd_set()
382 gpiod_set_value(fwd->descs[offset], value); in gpio_fwd_set()
391 struct gpio_desc **descs = fwd_tmp_descs(fwd); in gpio_fwd_set_multiple() local
397 descs[j++] = fwd->descs[i]; in gpio_fwd_set_multiple()
401 gpiod_set_array_value_cansleep(j, descs, NULL, values); in gpio_fwd_set_multiple()
403 gpiod_set_array_value(j, descs, NULL, values); in gpio_fwd_set_multiple()
428 return gpiod_set_config(fwd->descs[offset], config); in gpio_fwd_set_config()
435 return gpiod_to_irq(fwd->descs[offset]); in gpio_fwd_to_irq()
508 struct gpio_desc *descs[], in gpiochip_fwd_create() argument
531 struct gpio_chip *parent = gpiod_to_chip(descs[i]); in gpiochip_fwd_create()
534 desc_to_gpio(descs[i]), gpiod_to_irq(descs[i])); in gpiochip_fwd_create()
536 if (gpiod_cansleep(descs[i])) in gpiochip_fwd_create()
555 fwd->descs = descs; in gpiochip_fwd_create()
583 struct gpio_desc **descs; in gpio_aggregator_probe() local
592 descs = devm_kmalloc_array(dev, n, sizeof(*descs), GFP_KERNEL); in gpio_aggregator_probe()
593 if (!descs) in gpio_aggregator_probe()
597 descs[i] = devm_gpiod_get_index(dev, NULL, i, GPIOD_ASIS); in gpio_aggregator_probe()
598 if (IS_ERR(descs[i])) in gpio_aggregator_probe()
599 return PTR_ERR(descs[i]); in gpio_aggregator_probe()
603 fwd = gpiochip_fwd_create(dev, n, descs, features); in gpio_aggregator_probe()