Searched refs:gts (Results 1 – 7 of 7) sorted by relevance
/kernel/linux/linux-5.10/drivers/misc/sgi-gru/ |
D | grumain.c | 187 struct gru_thread_state *gts) in reserve_gru_resources() argument 190 gts->ts_cbr_map = in reserve_gru_resources() 191 gru_reserve_cb_resources(gru, gts->ts_cbr_au_count, in reserve_gru_resources() 192 gts->ts_cbr_idx); in reserve_gru_resources() 193 gts->ts_dsr_map = in reserve_gru_resources() 194 gru_reserve_ds_resources(gru, gts->ts_dsr_au_count, NULL); in reserve_gru_resources() 198 struct gru_thread_state *gts) in free_gru_resources() argument 201 gru->gs_cbr_map |= gts->ts_cbr_map; in free_gru_resources() 202 gru->gs_dsr_map |= gts->ts_dsr_map; in free_gru_resources() 225 struct gru_thread_state *gts) in gru_load_mm_tracker() argument [all …]
|
D | grufault.c | 70 struct gru_thread_state *gts = NULL; in gru_find_lock_gts() local 75 gts = gru_find_thread_state(vma, TSID(vaddr, vma)); in gru_find_lock_gts() 76 if (gts) in gru_find_lock_gts() 77 mutex_lock(>s->ts_ctxlock); in gru_find_lock_gts() 80 return gts; in gru_find_lock_gts() 87 struct gru_thread_state *gts = ERR_PTR(-EINVAL); in gru_alloc_locked_gts() local 94 gts = gru_alloc_thread_state(vma, TSID(vaddr, vma)); in gru_alloc_locked_gts() 95 if (IS_ERR(gts)) in gru_alloc_locked_gts() 97 mutex_lock(>s->ts_ctxlock); in gru_alloc_locked_gts() 99 return gts; in gru_alloc_locked_gts() [all …]
|
D | grutables.h | 385 #define UGRUADDR(gts) ((gts)->ts_vma->vm_start + \ argument 386 (gts)->ts_tsid * GRU_GSEG_PAGESIZE) 493 #define thread_cbr_number(gts, n) ((gts)->ts_cbr_idx[(n) / GRU_CBR_AU_SIZE] \ argument 518 #define for_each_gts_on_gru(gts, gru, ctxnum) \ argument 520 if (((gts) = (gru)->gs_gts[ctxnum])) 593 static inline int is_kernel_context(struct gru_thread_state *gts) in is_kernel_context() argument 595 return !gts->ts_mm; in is_kernel_context() 621 extern struct gru_state *gru_assign_gru_context(struct gru_thread_state *gts); 622 extern void gru_load_context(struct gru_thread_state *gts); 623 extern void gru_steal_context(struct gru_thread_state *gts); [all …]
|
D | grukdump.c | 114 struct gru_thread_state *gts; in gru_dump_context() local 140 gts = gru->gs_gts[ctxnum]; in gru_dump_context() 141 if (gts && gts->ts_vma) { in gru_dump_context() 142 hdr.pid = gts->ts_tgid_owner; in gru_dump_context() 143 hdr.vaddr = gts->ts_vma->vm_start; in gru_dump_context()
|
D | grufile.c | 64 struct gru_thread_state *gts; in gru_vma_close() local 75 gts = in gru_vma_close() 77 list_del(>s->ts_next); in gru_vma_close() 78 mutex_lock(>s->ts_ctxlock); in gru_vma_close() 79 if (gts->ts_gru) in gru_vma_close() 80 gru_unload_context(gts, 0); in gru_vma_close() 81 mutex_unlock(>s->ts_ctxlock); in gru_vma_close() 82 gts_drop(gts); in gru_vma_close()
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/cxgb4/ |
D | t4.h | 696 void __iomem *gts; member 724 writel(val | INGRESSQID_V(cq->cqid), cq->gts); in write_gts()
|
D | cq.c | 160 cq->gts = rdev->lldi.gts_reg; in create_cq()
|