Home
last modified time | relevance | path

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

/drivers/misc/sgi-gru/
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 …]
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 …]
Dgrumain.c479 static void gru_load_context_data(void *save, void *grubase, int ctxnum, in gru_load_context_data() argument
487 gseg = grubase + ctxnum * GRU_GSEG_STRIDE; in gru_load_context_data()
515 static void gru_unload_context_data(void *save, void *grubase, int ctxnum, in gru_unload_context_data() argument
522 gseg = grubase + ctxnum * GRU_GSEG_STRIDE; in gru_unload_context_data()
546 int ctxnum = gts->ts_ctxnum; in gru_unload_context() local
550 cch = get_cch(gru->gs_gru_base_vaddr, ctxnum); in gru_unload_context()
562 ctxnum, gts->ts_cbr_map, in gru_unload_context()
582 int i, err, asid, ctxnum = gts->ts_ctxnum; in gru_load_context() local
584 cch = get_cch(gru->gs_gru_base_vaddr, ctxnum); in gru_load_context()
628 gru_load_context_data(gts->ts_gdata, gru->gs_gru_base_vaddr, ctxnum, in gru_load_context()
[all …]
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)
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()
Dgrulib.h117 int ctxnum; member
133 unsigned char ctxnum; member
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()
/drivers/media/platform/ti/omap3isp/
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 …]
Dispcsi2.h75 u8 ctxnum; /* context number 0 - 7 */ member
/drivers/staging/media/omap4iss/
Diss_csi2.c258 iss_reg_write(csi2->iss, csi2->regs1, CSI2_CTX_PING_ADDR(ctx->ctxnum), in csi2_set_outaddr()
260 iss_reg_write(csi2->iss, csi2->regs1, CSI2_CTX_PONG_ADDR(ctx->ctxnum), in csi2_set_outaddr()
281 static void csi2_ctx_enable(struct iss_csi2_device *csi2, u8 ctxnum, u8 enable) in csi2_ctx_enable() argument
283 struct iss_csi2_ctx_cfg *ctx = &csi2->contexts[ctxnum]; in csi2_ctx_enable()
286 reg = iss_reg_read(csi2->iss, csi2->regs1, CSI2_CTX_CTRL1(ctxnum)); in csi2_ctx_enable()
304 iss_reg_write(csi2->iss, csi2->regs1, CSI2_CTX_CTRL1(ctxnum), reg); in csi2_ctx_enable()
330 iss_reg_write(csi2->iss, csi2->regs1, CSI2_CTX_CTRL1(ctx->ctxnum), reg); in csi2_ctx_config()
342 iss_reg_write(csi2->iss, csi2->regs1, CSI2_CTX_CTRL2(ctx->ctxnum), reg); in csi2_ctx_config()
345 iss_reg_write(csi2->iss, csi2->regs1, CSI2_CTX_CTRL3(ctx->ctxnum), in csi2_ctx_config()
349 iss_reg_update(csi2->iss, csi2->regs1, CSI2_CTX_DAT_OFST(ctx->ctxnum), in csi2_ctx_config()
[all …]
Diss_csi2.h74 u8 ctxnum; /* context number 0 - 7 */ member