Lines Matching refs:vdata
310 *vdata, int tsid) in gru_find_current_gts_nolock()
314 list_for_each_entry(gts, &vdata->vd_head, ts_next) in gru_find_current_gts_nolock()
374 struct gru_vma_data *vdata = NULL; in gru_alloc_vma_data() local
376 vdata = kmalloc(sizeof(*vdata), GFP_KERNEL); in gru_alloc_vma_data()
377 if (!vdata) in gru_alloc_vma_data()
381 INIT_LIST_HEAD(&vdata->vd_head); in gru_alloc_vma_data()
382 spin_lock_init(&vdata->vd_lock); in gru_alloc_vma_data()
383 gru_dbg(grudev, "alloc vdata %p\n", vdata); in gru_alloc_vma_data()
384 return vdata; in gru_alloc_vma_data()
393 struct gru_vma_data *vdata = vma->vm_private_data; in gru_find_thread_state() local
396 spin_lock(&vdata->vd_lock); in gru_find_thread_state()
397 gts = gru_find_current_gts_nolock(vdata, tsid); in gru_find_thread_state()
398 spin_unlock(&vdata->vd_lock); in gru_find_thread_state()
410 struct gru_vma_data *vdata = vma->vm_private_data; in gru_alloc_thread_state() local
413 gts = gru_alloc_gts(vma, vdata->vd_cbr_au_count, in gru_alloc_thread_state()
414 vdata->vd_dsr_au_count, in gru_alloc_thread_state()
415 vdata->vd_tlb_preload_count, in gru_alloc_thread_state()
416 vdata->vd_user_options, tsid); in gru_alloc_thread_state()
420 spin_lock(&vdata->vd_lock); in gru_alloc_thread_state()
421 ngts = gru_find_current_gts_nolock(vdata, tsid); in gru_alloc_thread_state()
427 list_add(>s->ts_next, &vdata->vd_head); in gru_alloc_thread_state()
429 spin_unlock(&vdata->vd_lock); in gru_alloc_thread_state()