Searched refs:gts (Results 1 – 8 of 8) sorted by relevance
/drivers/misc/sgi-gru/ |
D | grumain.c | 200 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 …]
|
D | grufault.c | 83 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(>s->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(>s->ts_ctxlock); in gru_alloc_locked_gts() 112 return gts; in gru_alloc_locked_gts() [all …]
|
D | grutables.h | 399 #define UGRUADDR(gts) ((gts)->ts_vma->vm_start + \ argument 400 (gts)->ts_tsid * GRU_GSEG_PAGESIZE) 507 #define thread_cbr_number(gts, n) ((gts)->ts_cbr_idx[(n) / GRU_CBR_AU_SIZE] \ argument 532 #define for_each_gts_on_gru(gts, gru, ctxnum) \ argument 534 if (((gts) = (gru)->gs_gts[ctxnum])) 607 static inline int is_kernel_context(struct gru_thread_state *gts) in is_kernel_context() argument 609 return !gts->ts_mm; in is_kernel_context() 635 extern struct gru_state *gru_assign_gru_context(struct gru_thread_state *gts); 636 extern void gru_load_context(struct gru_thread_state *gts); 637 extern void gru_steal_context(struct gru_thread_state *gts); [all …]
|
D | grukdump.c | 126 struct gru_thread_state *gts; in gru_dump_context() local 149 gts = gru->gs_gts[ctxnum]; in gru_dump_context() 150 if (gts && gts->ts_vma) { in gru_dump_context() 151 hdr.pid = gts->ts_tgid_owner; in gru_dump_context() 152 hdr.vaddr = gts->ts_vma->vm_start; in gru_dump_context()
|
D | grufile.c | 71 struct gru_thread_state *gts; in gru_vma_close() local 82 gts = in gru_vma_close() 84 list_del(>s->ts_next); in gru_vma_close() 85 mutex_lock(>s->ts_ctxlock); in gru_vma_close() 86 if (gts->ts_gru) in gru_vma_close() 87 gru_unload_context(gts, 0); in gru_vma_close() 88 mutex_unlock(>s->ts_ctxlock); in gru_vma_close() 89 gts_drop(gts); in gru_vma_close()
|
/drivers/infiniband/hw/cxgb4/ |
D | t4.h | 331 void __iomem *gts; member 472 void __iomem *gts; member 495 writel(val, cq->gts); in t4_arm_cq() 500 writel(val, cq->gts); in t4_arm_cq() 527 writel(val, cq->gts); in t4_hwcq_consume()
|
D | cq.c | 158 cq->gts = rdev->lldi.gts_reg; in create_cq()
|
D | qp.c | 214 wq->gts = rdev->lldi.gts_reg; in create_qp()
|