Lines Matching defs:ranges
480 size = device_property_count_u32(dev, "gpio-reserved-ranges");
491 u32 *ranges;
498 ranges = kmalloc_array(size, sizeof(*ranges), GFP_KERNEL);
499 if (!ranges)
502 ret = device_property_read_u32_array(dev, "gpio-reserved-ranges",
503 ranges, size);
505 kfree(ranges);
510 u32 count = ranges[--size];
511 u32 start = ranges[--size];
519 kfree(ranges);
554 * Device Tree platforms are supposed to use "gpio-ranges"
558 if (device_property_present(&gc->gpiodev->dev, "gpio-ranges"))
1961 * bind pinctrl and gpio drivers via the "gpio-ranges" property.
1973 chip_err(gc, "failed to allocate pin ranges\n");
2019 * bind pinctrl and gpio drivers via the "gpio-ranges" property.
2031 chip_err(gc, "failed to allocate pin ranges\n");