Home
last modified time | relevance | path

Searched refs:gts (Results 1 – 5 of 5) sorted by relevance

/linux-4.19.296/drivers/misc/sgi-gru/
Dgrumain.c200 struct gru_thread_state *gts) in reserve_gru_resources() argument
203 gts->ts_cbr_map = in reserve_gru_resources()
204 gru_reserve_cb_resources(gru, gts->ts_cbr_au_count, in reserve_gru_resources()
205 gts->ts_cbr_idx); in reserve_gru_resources()
206 gts->ts_dsr_map = in reserve_gru_resources()
207 gru_reserve_ds_resources(gru, gts->ts_dsr_au_count, NULL); in reserve_gru_resources()
211 struct gru_thread_state *gts) in free_gru_resources() argument
214 gru->gs_cbr_map |= gts->ts_cbr_map; in free_gru_resources()
215 gru->gs_dsr_map |= gts->ts_dsr_map; in free_gru_resources()
238 struct gru_thread_state *gts) in gru_load_mm_tracker() argument
[all …]
Dgrufault.c83 struct gru_thread_state *gts = NULL; in gru_find_lock_gts() local
88 gts = gru_find_thread_state(vma, TSID(vaddr, vma)); in gru_find_lock_gts()
89 if (gts) in gru_find_lock_gts()
90 mutex_lock(&gts->ts_ctxlock); in gru_find_lock_gts()
93 return gts; in gru_find_lock_gts()
100 struct gru_thread_state *gts = ERR_PTR(-EINVAL); in gru_alloc_locked_gts() local
107 gts = gru_alloc_thread_state(vma, TSID(vaddr, vma)); in gru_alloc_locked_gts()
108 if (IS_ERR(gts)) in gru_alloc_locked_gts()
110 mutex_lock(&gts->ts_ctxlock); in gru_alloc_locked_gts()
112 return gts; in gru_alloc_locked_gts()
[all …]
Dgrutables.h400 #define UGRUADDR(gts) ((gts)->ts_vma->vm_start + \ argument
401 (gts)->ts_tsid * GRU_GSEG_PAGESIZE)
508 #define thread_cbr_number(gts, n) ((gts)->ts_cbr_idx[(n) / GRU_CBR_AU_SIZE] \ argument
533 #define for_each_gts_on_gru(gts, gru, ctxnum) \ argument
535 if (((gts) = (gru)->gs_gts[ctxnum]))
608 static inline int is_kernel_context(struct gru_thread_state *gts) in is_kernel_context() argument
610 return !gts->ts_mm; in is_kernel_context()
636 extern struct gru_state *gru_assign_gru_context(struct gru_thread_state *gts);
637 extern void gru_load_context(struct gru_thread_state *gts);
638 extern void gru_steal_context(struct gru_thread_state *gts);
[all …]
Dgrukdump.c127 struct gru_thread_state *gts; in gru_dump_context() local
153 gts = gru->gs_gts[ctxnum]; in gru_dump_context()
154 if (gts && gts->ts_vma) { in gru_dump_context()
155 hdr.pid = gts->ts_tgid_owner; in gru_dump_context()
156 hdr.vaddr = gts->ts_vma->vm_start; in gru_dump_context()
Dgrufile.c76 struct gru_thread_state *gts; in gru_vma_close() local
87 gts = in gru_vma_close()
89 list_del(&gts->ts_next); in gru_vma_close()
90 mutex_lock(&gts->ts_ctxlock); in gru_vma_close()
91 if (gts->ts_gru) in gru_vma_close()
92 gru_unload_context(gts, 0); in gru_vma_close()
93 mutex_unlock(&gts->ts_ctxlock); in gru_vma_close()
94 gts_drop(gts); in gru_vma_close()