Lines Matching defs:ip
48 struct qib_mmap_info *ip =
50 struct qib_ibdev *dev = to_idev(ip->context->device);
53 list_del(&ip->pending_mmaps);
56 vfree(ip->obj);
57 kfree(ip);
66 struct qib_mmap_info *ip = vma->vm_private_data;
68 kref_get(&ip->ref);
73 struct qib_mmap_info *ip = vma->vm_private_data;
75 kref_put(&ip->ref, qib_release_mmap_info);
94 struct qib_mmap_info *ip, *pp;
103 list_for_each_entry_safe(ip, pp, &dev->pending_mmaps,
106 if (context != ip->context || (__u64) offset != ip->offset)
109 if (size > ip->size)
112 list_del_init(&ip->pending_mmaps);
115 ret = remap_vmalloc_range(vma, ip->obj, 0);
119 vma->vm_private_data = ip;
135 struct qib_mmap_info *ip;
137 ip = kmalloc(sizeof *ip, GFP_KERNEL);
138 if (!ip)
146 ip->offset = dev->mmap_offset;
150 INIT_LIST_HEAD(&ip->pending_mmaps);
151 ip->size = size;
152 ip->context = context;
153 ip->obj = obj;
154 kref_init(&ip->ref);
157 return ip;
160 void qib_update_mmap_info(struct qib_ibdev *dev, struct qib_mmap_info *ip,
168 ip->offset = dev->mmap_offset;
172 ip->size = size;
173 ip->obj = obj;