Lines Matching refs:rsrc
40 struct resource rsrc; member
48 struct resource rsrc; member
95 if (map->rsrc.parent) in ck804xrom_cleanup()
96 release_resource(&map->rsrc); in ck804xrom_cleanup()
103 if (window->rsrc.parent) in ck804xrom_cleanup()
104 release_resource(&window->rsrc); in ck804xrom_cleanup()
175 window->rsrc.name = MOD_NAME; in ck804xrom_init_one()
176 window->rsrc.start = window->phys; in ck804xrom_init_one()
177 window->rsrc.end = window->phys + window->size - 1; in ck804xrom_init_one()
178 window->rsrc.flags = IORESOURCE_MEM | IORESOURCE_BUSY; in ck804xrom_init_one()
179 if (request_resource(&iomem_resource, &window->rsrc)) { in ck804xrom_init_one()
180 window->rsrc.parent = NULL; in ck804xrom_init_one()
183 __func__, &window->rsrc); in ck804xrom_init_one()
267 if (window->rsrc.parent) { in ck804xrom_init_one()
273 map->rsrc.name = map->map_name; in ck804xrom_init_one()
274 map->rsrc.start = map->map.phys; in ck804xrom_init_one()
275 map->rsrc.end = map->map.phys + map->mtd->size - 1; in ck804xrom_init_one()
276 map->rsrc.flags = IORESOURCE_MEM | IORESOURCE_BUSY; in ck804xrom_init_one()
277 if (request_resource(&window->rsrc, &map->rsrc)) { in ck804xrom_init_one()
280 map->rsrc.parent = NULL; in ck804xrom_init_one()