Home
last modified time | relevance | path

Searched refs:ctxnum (Results 1 – 9 of 9) sorted by relevance

/linux/drivers/misc/sgi-gru/
H A Dgrukdump.c37 void __user *ubuf, int ctxnum, int dsrcnt, in gru_dump_context_data() argument
43 gseg = grubase + ctxnum * GRU_GSEG_STRIDE; in gru_dump_context_data()
107 static int gru_dump_context(struct gru_state *gru, int ctxnum, in gru_dump_context() argument
120 cch = get_cch(grubase, ctxnum); in gru_dump_context()
140 gts = gru->gs_gts[ctxnum]; in gru_dump_context()
155 ret = gru_dump_context_data(grubase, cch, ubuf, ctxnum, in gru_dump_context()
165 hdr.ctxnum = ctxnum; in gru_dump_context()
181 int ctxnum, ret, cnt = 0; in gru_dump_chiplet_request() local
205 for (ctxnum = 0; ctxnum < GRU_NUM_CCH; ctxnum++) { in gru_dump_chiplet_request()
206 if (req.ctxnum == ctxnum || req.ctxnum < 0) { in gru_dump_chiplet_request()
[all …]
H A Dgruhandles.h88 static inline void *get_gseg_base_address(void *base, int ctxnum) in get_gseg_base_address() argument
90 return (void *)(base + GRU_GSEG0_BASE + GRU_GSEG_STRIDE * ctxnum); in get_gseg_base_address()
93 static inline void *get_gseg_base_address_cb(void *base, int ctxnum, int line) in get_gseg_base_address_cb() argument
95 return (void *)(get_gseg_base_address(base, ctxnum) + in get_gseg_base_address_cb()
99 static inline void *get_gseg_base_address_ds(void *base, int ctxnum, int line) in get_gseg_base_address_ds() argument
101 return (void *)(get_gseg_base_address(base, ctxnum) + GRU_DS_BASE + in get_gseg_base_address_ds()
105 static inline struct gru_tlb_fault_map *get_tfm(void *base, int ctxnum) in get_tfm() argument
108 ctxnum * GRU_HANDLE_STRIDE); in get_tfm()
111 static inline struct gru_tlb_global_handle *get_tgh(void *base, int ctxnum) in get_tgh() argument
114 ctxnum * GRU_HANDLE_STRIDE); in get_tgh()
[all …]
H A Dgrumain.c475 static void gru_load_context_data(void *save, void *grubase, int ctxnum, in gru_load_context_data() argument
483 gseg = grubase + ctxnum * GRU_GSEG_STRIDE; in gru_load_context_data()
511 static void gru_unload_context_data(void *save, void *grubase, int ctxnum, in gru_unload_context_data() argument
518 gseg = grubase + ctxnum * GRU_GSEG_STRIDE; in gru_unload_context_data()
542 int ctxnum = gts->ts_ctxnum; in gru_unload_context() local
546 cch = get_cch(gru->gs_gru_base_vaddr, ctxnum); in gru_unload_context()
558 ctxnum, gts->ts_cbr_map, in gru_unload_context()
578 int i, err, asid, ctxnum = gts->ts_ctxnum; in gru_load_context() local
580 cch = get_cch(gru->gs_gru_base_vaddr, ctxnum); in gru_load_context()
624 gru_load_context_data(gts->ts_gdata, gru->gs_gru_base_vaddr, ctxnum, in gru_load_context()
[all …]
H A Dgrutables.h519 #define for_each_gts_on_gru(gts, gru, ctxnum) \ argument
520 for ((ctxnum) = 0; (ctxnum) < GRU_NUM_CCH; (ctxnum)++) \
521 if (((gts) = (gru)->gs_gts[ctxnum]))
533 #define gseg_physical_address(gru, ctxnum) \ argument
534 ((gru)->gs_gru_base_paddr + ctxnum * GRU_GSEG_STRIDE)
535 #define gseg_virtual_address(gru, ctxnum) \ argument
536 ((gru)->gs_gru_base_vaddr + ctxnum * GRU_GSEG_STRIDE)
H A Dgrufault.c526 int cbrnum, ctxnum; in gru_intr() local
563 ctxnum = tfh->ctxnum; in gru_intr()
564 gts = gru->gs_gts[ctxnum]; in gru_intr()
746 int gid, ctxnum; in gru_unload_all_contexts() local
753 for (ctxnum = 0; ctxnum < GRU_NUM_CCH; ctxnum++) { in gru_unload_all_contexts()
754 gts = gru->gs_gts[ctxnum]; in gru_unload_all_contexts()
H A Dgrulib.h117 int ctxnum; member
133 unsigned char ctxnum; member
H A Dgrukservices.c145 int ctxnum, ncpus; in gru_load_kernel_context() local
176 ctxnum = kgts->ts_ctxnum; in gru_load_kernel_context()
177 bs->kernel_cb = get_gseg_base_address_cb(vaddr, ctxnum, 0); in gru_load_kernel_context()
178 bs->kernel_dsr = get_gseg_base_address_ds(vaddr, ctxnum, 0); in gru_load_kernel_context()
/linux/drivers/media/platform/ti/omap3isp/
H A Dispcsi2.c225 csi2->regs1, ISPCSI2_CTX_DAT_PING_ADDR(ctx->ctxnum)); in csi2_set_outaddr()
227 csi2->regs1, ISPCSI2_CTX_DAT_PONG_ADDR(ctx->ctxnum)); in csi2_set_outaddr()
248 struct isp_csi2_device *csi2, u8 ctxnum, u8 enable) in csi2_ctx_enable() argument
250 struct isp_csi2_ctx_cfg *ctx = &csi2->contexts[ctxnum]; in csi2_ctx_enable()
254 reg = isp_reg_readl(isp, csi2->regs1, ISPCSI2_CTX_CTRL1(ctxnum)); in csi2_ctx_enable()
270 isp_reg_writel(isp, reg, csi2->regs1, ISPCSI2_CTX_CTRL1(ctxnum)); in csi2_ctx_enable()
286 reg = isp_reg_readl(isp, csi2->regs1, ISPCSI2_CTX_CTRL1(ctx->ctxnum)); in csi2_ctx_config()
303 isp_reg_writel(isp, reg, csi2->regs1, ISPCSI2_CTX_CTRL1(ctx->ctxnum)); in csi2_ctx_config()
306 reg = isp_reg_readl(isp, csi2->regs1, ISPCSI2_CTX_CTRL2(ctx->ctxnum)); in csi2_ctx_config()
326 isp_reg_writel(isp, reg, csi2->regs1, ISPCSI2_CTX_CTRL2(ctx->ctxnum)); in csi2_ctx_config()
[all …]
H A Dispcsi2.h75 u8 ctxnum; /* context number 0 - 7 */ member