Lines Matching refs:ndescs
4234 for (descs->ndescs = 0; descs->ndescs < count; ) { in gpiod_get_array()
4235 desc = gpiod_get_index(dev, con_id, descs->ndescs, flags); in gpiod_get_array()
4241 descs->desc[descs->ndescs] = desc; in gpiod_get_array()
4248 if (descs->ndescs == 0 && gpio_chip_hwgpio(desc) == 0) { in gpiod_get_array()
4263 struct_size(descs, desc, descs->ndescs + 1)); in gpiod_get_array()
4276 bitmap_set(array_info->get_mask, descs->ndescs, in gpiod_get_array()
4277 count - descs->ndescs); in gpiod_get_array()
4278 bitmap_set(array_info->set_mask, descs->ndescs, in gpiod_get_array()
4279 count - descs->ndescs); in gpiod_get_array()
4284 __clear_bit(descs->ndescs, array_info->get_mask); in gpiod_get_array()
4285 __clear_bit(descs->ndescs, array_info->set_mask); in gpiod_get_array()
4292 gpio_chip_hwgpio(desc) != descs->ndescs) { in gpiod_get_array()
4298 if (bitmap_full(array_info->get_mask, descs->ndescs)) { in gpiod_get_array()
4301 __clear_bit(descs->ndescs, in gpiod_get_array()
4303 __clear_bit(descs->ndescs, in gpiod_get_array()
4308 if (gpiochip_line_is_open_drain(gc, descs->ndescs) || in gpiod_get_array()
4309 gpiochip_line_is_open_source(gc, descs->ndescs)) in gpiod_get_array()
4310 __clear_bit(descs->ndescs, in gpiod_get_array()
4314 __set_bit(descs->ndescs, in gpiod_get_array()
4318 descs->ndescs++; in gpiod_get_array()
4375 for (i = 0; i < descs->ndescs; i++) in gpiod_put_array()