Lines Matching refs:info

31 	struct rbtx4939_flash_info *info;  in rbtx4939_flash_remove()  local
33 info = platform_get_drvdata(dev); in rbtx4939_flash_remove()
34 if (!info) in rbtx4939_flash_remove()
37 if (info->mtd) { in rbtx4939_flash_remove()
38 mtd_device_unregister(info->mtd); in rbtx4939_flash_remove()
39 map_destroy(info->mtd); in rbtx4939_flash_remove()
50 struct rbtx4939_flash_info *info; in rbtx4939_flash_probe() local
63 info = devm_kzalloc(&dev->dev, sizeof(struct rbtx4939_flash_info), in rbtx4939_flash_probe()
65 if (!info) in rbtx4939_flash_probe()
68 platform_set_drvdata(dev, info); in rbtx4939_flash_probe()
77 info->map.name = dev_name(&dev->dev); in rbtx4939_flash_probe()
78 info->map.phys = res->start; in rbtx4939_flash_probe()
79 info->map.size = size; in rbtx4939_flash_probe()
80 info->map.bankwidth = pdata->width; in rbtx4939_flash_probe()
82 info->map.virt = devm_ioremap(&dev->dev, info->map.phys, size); in rbtx4939_flash_probe()
83 if (!info->map.virt) in rbtx4939_flash_probe()
87 (*pdata->map_init)(&info->map); in rbtx4939_flash_probe()
89 simple_map_init(&info->map); in rbtx4939_flash_probe()
92 for (; !info->mtd && *probe_type; probe_type++) in rbtx4939_flash_probe()
93 info->mtd = do_map_probe(*probe_type, &info->map); in rbtx4939_flash_probe()
94 if (!info->mtd) { in rbtx4939_flash_probe()
99 info->mtd->owner = THIS_MODULE; in rbtx4939_flash_probe()
100 err = mtd_device_parse_register(info->mtd, NULL, NULL, pdata->parts, in rbtx4939_flash_probe()
115 struct rbtx4939_flash_info *info = platform_get_drvdata(dev); in rbtx4939_flash_shutdown() local
117 if (mtd_suspend(info->mtd) == 0) in rbtx4939_flash_shutdown()
118 mtd_resume(info->mtd); in rbtx4939_flash_shutdown()