Lines Matching refs:num_lines
304 unsigned int num_lines = chip->gc.ngpio; in gpio_sim_setup_sysfs() local
311 num_lines + 1, GFP_KERNEL); in gpio_sim_setup_sysfs()
315 for (i = 0; i < num_lines; i++) { in gpio_sim_setup_sysfs()
367 u32 num_lines; in gpio_sim_add_bank() local
370 ret = fwnode_property_read_u32(swnode, "ngpios", &num_lines); in gpio_sim_add_bank()
386 chip->direction_map = devm_bitmap_alloc(dev, num_lines, GFP_KERNEL); in gpio_sim_add_bank()
391 bitmap_fill(chip->direction_map, num_lines); in gpio_sim_add_bank()
393 chip->value_map = devm_bitmap_zalloc(dev, num_lines, GFP_KERNEL); in gpio_sim_add_bank()
397 chip->pull_map = devm_bitmap_zalloc(dev, num_lines, GFP_KERNEL); in gpio_sim_add_bank()
401 chip->irq_sim = devm_irq_domain_create_sim(dev, NULL, num_lines); in gpio_sim_add_bank()
413 gc->ngpio = num_lines; in gpio_sim_add_bank()
559 unsigned int num_lines; member
828 properties[prop_idx++] = PROPERTY_ENTRY_U32("ngpios", bank->num_lines); in gpio_sim_make_bank_swnode()
1084 ret = sprintf(page, "%u\n", bank->num_lines); in gpio_sim_bank_config_num_lines_show()
1096 unsigned int num_lines; in gpio_sim_bank_config_num_lines_store() local
1099 ret = kstrtouint(page, 0, &num_lines); in gpio_sim_bank_config_num_lines_store()
1103 if (num_lines == 0) in gpio_sim_bank_config_num_lines_store()
1113 bank->num_lines = num_lines; in gpio_sim_bank_config_num_lines_store()
1119 CONFIGFS_ATTR(gpio_sim_bank_config_, num_lines);
1477 bank->num_lines = 1; in gpio_sim_device_config_make_bank_group()