Lines Matching refs:ndescs
4388 for (descs->ndescs = 0; descs->ndescs < count; descs->ndescs++) { in gpiod_get_array()
4389 desc = gpiod_get_index(dev, con_id, descs->ndescs, flags); in gpiod_get_array()
4395 descs->desc[descs->ndescs] = desc; in gpiod_get_array()
4402 if (descs->ndescs == 0 && gpio_chip_hwgpio(desc) == 0) { in gpiod_get_array()
4427 bitmap_set(array_info->get_mask, descs->ndescs, in gpiod_get_array()
4428 count - descs->ndescs); in gpiod_get_array()
4429 bitmap_set(array_info->set_mask, descs->ndescs, in gpiod_get_array()
4430 count - descs->ndescs); in gpiod_get_array()
4440 __clear_bit(descs->ndescs, array_info->get_mask); in gpiod_get_array()
4441 __clear_bit(descs->ndescs, array_info->set_mask); in gpiod_get_array()
4447 else if (gpio_chip_hwgpio(desc) != descs->ndescs) { in gpiod_get_array()
4453 if (bitmap_full(array_info->get_mask, descs->ndescs)) { in gpiod_get_array()
4456 __clear_bit(descs->ndescs, in gpiod_get_array()
4458 __clear_bit(descs->ndescs, in gpiod_get_array()
4463 if (gpiochip_line_is_open_drain(gc, descs->ndescs) || in gpiod_get_array()
4464 gpiochip_line_is_open_source(gc, descs->ndescs)) in gpiod_get_array()
4465 __clear_bit(descs->ndescs, in gpiod_get_array()
4469 __set_bit(descs->ndescs, in gpiod_get_array()
4528 for (i = 0; i < descs->ndescs; i++) in gpiod_put_array()