Lines Matching refs:ngpio
107 for_each_set_bit(bit, mask, gc->ngpio) { in gpio_mockup_get_multiple()
139 for_each_set_bit(bit, mask, gc->ngpio) in gpio_mockup_set_multiple()
358 for (i = 0; i < gc->ngpio; i++) { in gpio_mockup_debugfs_setup()
382 for (i = 0; i < gc->ngpio; i++) { in gpio_mockup_dispose_mappings()
396 u16 ngpio; in gpio_mockup_probe() local
404 rv = device_property_read_u16(dev, "nr-gpios", &ngpio); in gpio_mockup_probe()
420 gc->ngpio = ngpio; in gpio_mockup_probe()
435 chip->lines = devm_kcalloc(dev, gc->ngpio, in gpio_mockup_probe()
440 for (i = 0; i < gc->ngpio; i++) in gpio_mockup_probe()
444 gc->ngpio); in gpio_mockup_probe()
524 u16 ngpio; in gpio_mockup_register_chip() local
536 ngpio = base < 0 ? gpio_mockup_range_ngpio(idx) in gpio_mockup_register_chip()
538 properties[prop++] = PROPERTY_ENTRY_U16("nr-gpios", ngpio); in gpio_mockup_register_chip()
541 line_names = gpio_mockup_make_line_names(chip_label, ngpio); in gpio_mockup_register_chip()
546 "gpio-line-names", line_names, ngpio); in gpio_mockup_register_chip()
558 kfree_strarray(line_names, ngpio); in gpio_mockup_register_chip()