Lines Matching refs:ndescs
4328 for (descs->ndescs = 0; descs->ndescs < count; descs->ndescs++) { in gpiod_get_array()
4329 desc = gpiod_get_index(dev, con_id, descs->ndescs, flags); in gpiod_get_array()
4335 descs->desc[descs->ndescs] = desc; in gpiod_get_array()
4342 if (descs->ndescs == 0 && gpio_chip_hwgpio(desc) == 0) { in gpiod_get_array()
4367 bitmap_set(array_info->get_mask, descs->ndescs, in gpiod_get_array()
4368 count - descs->ndescs); in gpiod_get_array()
4369 bitmap_set(array_info->set_mask, descs->ndescs, in gpiod_get_array()
4370 count - descs->ndescs); in gpiod_get_array()
4380 __clear_bit(descs->ndescs, array_info->get_mask); in gpiod_get_array()
4381 __clear_bit(descs->ndescs, array_info->set_mask); in gpiod_get_array()
4387 else if (gpio_chip_hwgpio(desc) != descs->ndescs) { in gpiod_get_array()
4393 if (bitmap_full(array_info->get_mask, descs->ndescs)) { in gpiod_get_array()
4396 __clear_bit(descs->ndescs, in gpiod_get_array()
4398 __clear_bit(descs->ndescs, in gpiod_get_array()
4403 if (gpiochip_line_is_open_drain(gc, descs->ndescs) || in gpiod_get_array()
4404 gpiochip_line_is_open_source(gc, descs->ndescs)) in gpiod_get_array()
4405 __clear_bit(descs->ndescs, in gpiod_get_array()
4409 __set_bit(descs->ndescs, in gpiod_get_array()
4468 for (i = 0; i < descs->ndescs; i++) in gpiod_put_array()