Lines Matching refs:vdata
297 *vdata, int tsid) in gru_find_current_gts_nolock()
301 list_for_each_entry(gts, &vdata->vd_head, ts_next) in gru_find_current_gts_nolock()
361 struct gru_vma_data *vdata = NULL; in gru_alloc_vma_data() local
363 vdata = kmalloc(sizeof(*vdata), GFP_KERNEL); in gru_alloc_vma_data()
364 if (!vdata) in gru_alloc_vma_data()
368 INIT_LIST_HEAD(&vdata->vd_head); in gru_alloc_vma_data()
369 spin_lock_init(&vdata->vd_lock); in gru_alloc_vma_data()
370 gru_dbg(grudev, "alloc vdata %p\n", vdata); in gru_alloc_vma_data()
371 return vdata; in gru_alloc_vma_data()
380 struct gru_vma_data *vdata = vma->vm_private_data; in gru_find_thread_state() local
383 spin_lock(&vdata->vd_lock); in gru_find_thread_state()
384 gts = gru_find_current_gts_nolock(vdata, tsid); in gru_find_thread_state()
385 spin_unlock(&vdata->vd_lock); in gru_find_thread_state()
397 struct gru_vma_data *vdata = vma->vm_private_data; in gru_alloc_thread_state() local
400 gts = gru_alloc_gts(vma, vdata->vd_cbr_au_count, in gru_alloc_thread_state()
401 vdata->vd_dsr_au_count, in gru_alloc_thread_state()
402 vdata->vd_tlb_preload_count, in gru_alloc_thread_state()
403 vdata->vd_user_options, tsid); in gru_alloc_thread_state()
407 spin_lock(&vdata->vd_lock); in gru_alloc_thread_state()
408 ngts = gru_find_current_gts_nolock(vdata, tsid); in gru_alloc_thread_state()
414 list_add(>s->ts_next, &vdata->vd_head); in gru_alloc_thread_state()
416 spin_unlock(&vdata->vd_lock); in gru_alloc_thread_state()