Lines Matching defs:map
69 if (mem->map) {
71 kfree(mem->map[i]);
73 kfree(mem->map);
81 struct rxe_map **map = mem->map;
85 mem->map = kmalloc_array(num_map, sizeof(*map), GFP_KERNEL);
86 if (!mem->map)
90 mem->map[i] = kmalloc(sizeof(**map), GFP_KERNEL);
91 if (!mem->map[i])
108 kfree(mem->map[i]);
110 kfree(mem->map);
130 struct rxe_map **map;
162 map = mem->map;
164 buf = map[0]->buf;
168 map++;
169 buf = map[0]->buf;
251 length = mem->map[map_index]->buf[buf_index].size;
261 length = mem->map[map_index]->buf[buf_index].size;
282 if (!mem->map) {
295 if (offset + length > mem->map[m]->buf[n].size) {
301 addr = (void *)(uintptr_t)mem->map[m]->buf[n].addr + offset;
317 struct rxe_map **map;
345 WARN_ON_ONCE(!mem->map);
355 map = mem->map + m;
356 buf = map[0]->buf + i;
385 map++;
386 buf = map[0]->buf;