Lines Matching refs:new
171 struct vm_struct *new;
182 new = __get_vm_area(total, VM_IOREMAP, VMALLOC_START, VMALLOC_END);
183 if (!new)
185 va = (u32)new->addr;
204 flush_cache_vmap((unsigned long)new->addr,
205 (unsigned long)(new->addr + total));
206 return new->addr;
210 vunmap(new->addr);
260 * in iovmas mmap, and returns the new allocated iovma.
265 struct iovm_struct *new, *tmp;
312 new = kmem_cache_zalloc(iovm_area_cachep, GFP_KERNEL);
313 if (!new)
316 new->iommu = obj;
317 new->da_start = start;
318 new->da_end = start + bytes;
319 new->flags = flags;
325 list_add_tail(&new->list, &tmp->list);
327 list_add(&new->list, &obj->mmap);
330 __func__, new->da_start, start, new->da_end, bytes, flags);
332 return new;
446 static int map_iovm_area(struct iommu *obj, struct iovm_struct *new,
452 u32 da = new->da_start;
487 da = new->da_start;
574 struct iovm_struct *new;
578 new = alloc_iovm_area(obj, da, bytes, flags);
579 if (IS_ERR(new)) {
580 err = PTR_ERR(new);
583 new->va = va;
584 new->sgt = sgt;
586 if (map_iovm_area(obj, new, sgt, new->flags))
592 __func__, new->da_start, bytes, new->flags, va);
594 return new->da_start;
597 free_iovm_area(obj, new);