Lines Matching refs:ndescs
4167 for (descs->ndescs = 0; descs->ndescs < count; ) { in gpiod_get_array()
4168 desc = gpiod_get_index(dev, con_id, descs->ndescs, flags); in gpiod_get_array()
4174 descs->desc[descs->ndescs] = desc; in gpiod_get_array()
4181 if (descs->ndescs == 0 && gpio_chip_hwgpio(desc) == 0) { in gpiod_get_array()
4196 struct_size(descs, desc, descs->ndescs + 1)); in gpiod_get_array()
4209 bitmap_set(array_info->get_mask, descs->ndescs, in gpiod_get_array()
4210 count - descs->ndescs); in gpiod_get_array()
4211 bitmap_set(array_info->set_mask, descs->ndescs, in gpiod_get_array()
4212 count - descs->ndescs); in gpiod_get_array()
4217 __clear_bit(descs->ndescs, array_info->get_mask); in gpiod_get_array()
4218 __clear_bit(descs->ndescs, array_info->set_mask); in gpiod_get_array()
4225 gpio_chip_hwgpio(desc) != descs->ndescs) { in gpiod_get_array()
4231 if (bitmap_full(array_info->get_mask, descs->ndescs)) { in gpiod_get_array()
4234 __clear_bit(descs->ndescs, in gpiod_get_array()
4236 __clear_bit(descs->ndescs, in gpiod_get_array()
4241 if (gpiochip_line_is_open_drain(gc, descs->ndescs) || in gpiod_get_array()
4242 gpiochip_line_is_open_source(gc, descs->ndescs)) in gpiod_get_array()
4243 __clear_bit(descs->ndescs, in gpiod_get_array()
4247 __set_bit(descs->ndescs, in gpiod_get_array()
4251 descs->ndescs++; in gpiod_get_array()
4308 for (i = 0; i < descs->ndescs; i++) in gpiod_put_array()