Lines Matching defs:count
375 int count;
377 count = fwnode_property_string_array_count(fwnode, "gpio-line-names");
378 if (count < 0)
381 if (count > gdev->ngpio) {
383 count, gdev->ngpio);
384 count = gdev->ngpio;
387 names = kcalloc(count, sizeof(*names), GFP_KERNEL);
392 names, count);
399 for (i = 0; i < count; i++)
2229 * function will not increase reference count of the GPIO chip module. This
3009 int count = 0;
3053 count++;
3063 if (count != 0)
3784 unsigned int count = 0;
3793 count++;
3795 if (!count)
3798 return count;
3857 int count = -ENOENT;
3860 count = of_gpio_get_count(dev, con_id);
3862 count = acpi_gpio_count(dev, con_id);
3864 if (count < 0)
3865 count = platform_gpio_count(dev, con_id);
3867 return count;
4234 int count, bitmap_size;
4236 count = gpiod_count(dev, con_id);
4237 if (count < 0)
4238 return ERR_PTR(count);
4240 descs = kzalloc(struct_size(descs, desc, count), GFP_KERNEL);
4244 for (descs->ndescs = 0; descs->ndescs < count; ) {
4261 bitmap_size = BITS_TO_LONGS(gc->ngpio > count ?
4262 gc->ngpio : count);
4264 array = kzalloc(struct_size(descs, desc, count) +
4277 array_info = (void *)(descs->desc + count);
4284 array_info->size = count;
4287 count - descs->ndescs);
4289 count - descs->ndescs);