• Home
  • Raw
  • Download

Lines Matching refs:ip

19 	struct rxe_mmap_info *ip = container_of(ref,  in rxe_mmap_release()  local
21 struct rxe_dev *rxe = to_rdev(ip->context->device); in rxe_mmap_release()
25 if (!list_empty(&ip->pending_mmaps)) in rxe_mmap_release()
26 list_del(&ip->pending_mmaps); in rxe_mmap_release()
30 vfree(ip->obj); /* buf */ in rxe_mmap_release()
31 kfree(ip); in rxe_mmap_release()
40 struct rxe_mmap_info *ip = vma->vm_private_data; in rxe_vma_open() local
42 kref_get(&ip->ref); in rxe_vma_open()
47 struct rxe_mmap_info *ip = vma->vm_private_data; in rxe_vma_close() local
49 kref_put(&ip->ref, rxe_mmap_release); in rxe_vma_close()
68 struct rxe_mmap_info *ip, *pp; in rxe_mmap() local
77 list_for_each_entry_safe(ip, pp, &rxe->pending_mmaps, pending_mmaps) { in rxe_mmap()
78 if (context != ip->context || (__u64)offset != ip->info.offset) in rxe_mmap()
82 if (size > ip->info.size) { in rxe_mmap()
97 list_del_init(&ip->pending_mmaps); in rxe_mmap()
100 ret = remap_vmalloc_range(vma, ip->obj, 0); in rxe_mmap()
107 vma->vm_private_data = ip; in rxe_mmap()
119 struct rxe_mmap_info *ip; in rxe_create_mmap_info() local
124 ip = kmalloc(sizeof(*ip), GFP_KERNEL); in rxe_create_mmap_info()
125 if (!ip) in rxe_create_mmap_info()
135 ip->info.offset = rxe->mmap_offset; in rxe_create_mmap_info()
140 INIT_LIST_HEAD(&ip->pending_mmaps); in rxe_create_mmap_info()
141 ip->info.size = size; in rxe_create_mmap_info()
142 ip->context = in rxe_create_mmap_info()
145 ip->obj = obj; in rxe_create_mmap_info()
146 kref_init(&ip->ref); in rxe_create_mmap_info()
148 return ip; in rxe_create_mmap_info()