Lines Matching refs:rm
102 struct mem_region rm; member
111 DBG("%s:%d: map.rm.size = %llxh\n", func, line, m->rm.size); in _debug_dump_map()
129 return (phys_addr < map.rm.size || phys_addr >= map.total) in ps3_mm_phys_to_lpar()
232 r->offset = r->base - map.rm.size; in ps3_mm_get_repository_highmem()
284 if (result || r->base < map.rm.size) { in ps3_mm_region_create()
291 r->offset = r->base - map.rm.size; in ps3_mm_region_create()
320 map.total = map.rm.size; in ps3_mm_region_destroy()
339 if (lpar_addr >= map.rm.size) in dma_sb_lpar_to_bus()
987 if (r->offset < map.rm.size) { in dma_sb_region_create_linear()
989 virt_addr = map.rm.base + r->offset; in dma_sb_region_create_linear()
990 len = map.rm.size - r->offset; in dma_sb_region_create_linear()
999 if (r->offset + r->len > map.rm.size) { in dma_sb_region_create_linear()
1001 virt_addr = map.rm.size; in dma_sb_region_create_linear()
1003 if (r->offset >= map.rm.size) in dma_sb_region_create_linear()
1004 virt_addr += r->offset - map.rm.size; in dma_sb_region_create_linear()
1006 len -= map.rm.size - r->offset; in dma_sb_region_create_linear()
1029 if (r->offset < map.rm.size) { in dma_sb_region_free_linear()
1031 lpar_addr = map.rm.base + r->offset; in dma_sb_region_free_linear()
1032 len = map.rm.size - r->offset; in dma_sb_region_free_linear()
1040 if (r->offset + r->len > map.rm.size) { in dma_sb_region_free_linear()
1044 if (r->offset >= map.rm.size) in dma_sb_region_free_linear()
1045 lpar_addr += r->offset - map.rm.size; in dma_sb_region_free_linear()
1047 len -= map.rm.size - r->offset; in dma_sb_region_free_linear()
1130 if (r->offset >= map.rm.size) in ps3_dma_region_init()
1206 result = ps3_repository_read_mm_info(&map.rm.base, &map.rm.size, in ps3_mm_init()
1212 map.rm.offset = map.rm.base; in ps3_mm_init()
1217 BUG_ON(map.rm.base); in ps3_mm_init()
1218 BUG_ON(!map.rm.size); in ps3_mm_init()
1223 result = ps3_mm_region_create(&map.r1, map.total - map.rm.size); in ps3_mm_init()
1230 map.total = map.rm.size + map.r1.size; in ps3_mm_init()
1236 __func__, __LINE__, map.rm.size, in ps3_mm_init()
1237 map.total - map.rm.size); in ps3_mm_init()
1238 memblock_add(map.rm.size, map.total - map.rm.size); in ps3_mm_init()