Lines Matching refs:vdata
90 struct vma_data *vdata;
92 vdata = vma->vm_private_data;
93 refcount_inc(&vdata->refcnt);
105 struct vma_data *vdata;
109 vdata = vma->vm_private_data;
111 if (!refcount_dec_and_test(&vdata->refcnt))
114 last_index = (vdata->vm_end - vdata->vm_start) >> PAGE_SHIFT;
116 if (vdata->maddr[index] == 0)
122 my_page = vdata->maddr[index];
123 vdata->maddr[index] = 0;
128 kvfree(vdata);
142 struct vma_data *vdata = vmf->vma->vm_private_data;
144 maddr = (volatile unsigned long) vdata->maddr[index];
150 spin_lock(&vdata->lock);
151 if (vdata->maddr[index] == 0) {
152 vdata->count++;
153 vdata->maddr[index] = maddr;
156 maddr = vdata->maddr[index];
158 spin_unlock(&vdata->lock);
184 struct vma_data *vdata;
198 vdata = kvzalloc(vdata_size, GFP_KERNEL);
199 if (!vdata)
202 vdata->vm_start = vma->vm_start;
203 vdata->vm_end = vma->vm_end;
204 vdata->type = type;
205 spin_lock_init(&vdata->lock);
206 refcount_set(&vdata->refcnt, 1);
207 vma->vm_private_data = vdata;
210 if (vdata->type == MSPEC_UNCACHED)