Lines Matching defs:vdata
148 struct vma_data *vdata;
150 vdata = vma->vm_private_data;
151 atomic_inc(&vdata->refcnt);
163 struct vma_data *vdata;
167 vdata = vma->vm_private_data;
169 if (!atomic_dec_and_test(&vdata->refcnt))
172 last_index = (vdata->vm_end - vdata->vm_start) >> PAGE_SHIFT;
174 if (vdata->maddr[index] == 0)
180 my_page = vdata->maddr[index];
181 vdata->maddr[index] = 0;
189 if (vdata->flags & VMD_VMALLOCED)
190 vfree(vdata);
192 kfree(vdata);
206 struct vma_data *vdata = vma->vm_private_data;
208 maddr = (volatile unsigned long) vdata->maddr[index];
214 spin_lock(&vdata->lock);
215 if (vdata->maddr[index] == 0) {
216 vdata->count++;
217 vdata->maddr[index] = maddr;
220 maddr = vdata->maddr[index];
222 spin_unlock(&vdata->lock);
225 if (vdata->type == MSPEC_FETCHOP)
259 struct vma_data *vdata;
274 vdata = kmalloc(vdata_size, GFP_KERNEL);
276 vdata = vmalloc(vdata_size);
279 if (!vdata)
281 memset(vdata, 0, vdata_size);
283 vdata->vm_start = vma->vm_start;
284 vdata->vm_end = vma->vm_end;
285 vdata->flags = flags;
286 vdata->type = type;
287 spin_lock_init(&vdata->lock);
288 vdata->refcnt = ATOMIC_INIT(1);
289 vma->vm_private_data = vdata;
292 if (vdata->type == MSPEC_FETCHOP || vdata->type == MSPEC_UNCACHED)