Lines Matching refs:maps
53 struct map_info *maps; member
372 info->maps[i].name = mtd_name; in physmap_flash_of_init()
373 info->maps[i].swap = swap; in physmap_flash_of_init()
374 info->maps[i].bankwidth = bankwidth; in physmap_flash_of_init()
375 info->maps[i].device_node = dp; in physmap_flash_of_init()
377 err = of_flash_probe_bt1_rom(dev, dp, &info->maps[i]); in physmap_flash_of_init()
381 err = of_flash_probe_gemini(dev, dp, &info->maps[i]); in physmap_flash_of_init()
385 err = of_flash_probe_ixp4xx(dev, dp, &info->maps[i]); in physmap_flash_of_init()
389 err = of_flash_probe_versatile(dev, dp, &info->maps[i]); in physmap_flash_of_init()
402 info->maps[i].phys = NO_XIP; in physmap_flash_of_init()
447 info->maps[i].bankwidth = physmap_data->width; in physmap_flash_pdata_init()
448 info->maps[i].pfow_base = physmap_data->pfow_base; in physmap_flash_pdata_init()
449 info->maps[i].set_vpp = physmap_set_vpp; in physmap_flash_pdata_init()
474 info->maps = devm_kzalloc(&dev->dev, in physmap_flash_probe()
475 sizeof(*info->maps) * info->nmaps, in physmap_flash_probe()
477 if (!info->maps) in physmap_flash_probe()
516 info->maps[i].virt = devm_ioremap_resource(&dev->dev, res); in physmap_flash_probe()
517 if (IS_ERR(info->maps[i].virt)) { in physmap_flash_probe()
518 err = PTR_ERR(info->maps[i].virt); in physmap_flash_probe()
525 if (!info->maps[i].name) in physmap_flash_probe()
526 info->maps[i].name = dev_name(&dev->dev); in physmap_flash_probe()
528 if (!info->maps[i].phys) in physmap_flash_probe()
529 info->maps[i].phys = res->start; in physmap_flash_probe()
532 info->maps[i].size = BIT(info->win_order + in physmap_flash_probe()
536 info->maps[i].map_priv_1 = (unsigned long)dev; in physmap_flash_probe()
539 err = physmap_addr_gpios_map_init(&info->maps[i]); in physmap_flash_probe()
550 if (!info->maps[i].read) in physmap_flash_probe()
551 simple_map_init(&info->maps[i]); in physmap_flash_probe()
553 simple_map_init(&info->maps[i]); in physmap_flash_probe()
558 &info->maps[i]); in physmap_flash_probe()
564 &info->maps[i]); in physmap_flash_probe()