• Home
  • Raw
  • Download

Lines Matching refs:vdata

144 	struct vma_data *vdata;  in mspec_open()  local
146 vdata = vma->vm_private_data; in mspec_open()
147 atomic_inc(&vdata->refcnt); in mspec_open()
159 struct vma_data *vdata; in mspec_close() local
163 vdata = vma->vm_private_data; in mspec_close()
165 if (!atomic_dec_and_test(&vdata->refcnt)) in mspec_close()
168 last_index = (vdata->vm_end - vdata->vm_start) >> PAGE_SHIFT; in mspec_close()
170 if (vdata->maddr[index] == 0) in mspec_close()
176 my_page = vdata->maddr[index]; in mspec_close()
177 vdata->maddr[index] = 0; in mspec_close()
185 kvfree(vdata); in mspec_close()
199 struct vma_data *vdata = vma->vm_private_data; in mspec_fault() local
201 maddr = (volatile unsigned long) vdata->maddr[index]; in mspec_fault()
207 spin_lock(&vdata->lock); in mspec_fault()
208 if (vdata->maddr[index] == 0) { in mspec_fault()
209 vdata->count++; in mspec_fault()
210 vdata->maddr[index] = maddr; in mspec_fault()
213 maddr = vdata->maddr[index]; in mspec_fault()
215 spin_unlock(&vdata->lock); in mspec_fault()
218 if (vdata->type == MSPEC_FETCHOP) in mspec_fault()
252 struct vma_data *vdata; in mspec_mmap() local
267 vdata = kzalloc(vdata_size, GFP_KERNEL); in mspec_mmap()
269 vdata = vzalloc(vdata_size); in mspec_mmap()
270 if (!vdata) in mspec_mmap()
273 vdata->vm_start = vma->vm_start; in mspec_mmap()
274 vdata->vm_end = vma->vm_end; in mspec_mmap()
275 vdata->type = type; in mspec_mmap()
276 spin_lock_init(&vdata->lock); in mspec_mmap()
277 atomic_set(&vdata->refcnt, 1); in mspec_mmap()
278 vma->vm_private_data = vdata; in mspec_mmap()
281 if (vdata->type == MSPEC_FETCHOP || vdata->type == MSPEC_UNCACHED) in mspec_mmap()