Lines Matching refs:cxdbg

201 static int cx_debugbus_read(void __iomem *cxdbg, u32 block, u32 offset,  in cx_debugbus_read()  argument
207 cxdbg_write(cxdbg, REG_A6XX_CX_DBGC_CFG_DBGBUS_SEL_A, reg); in cx_debugbus_read()
208 cxdbg_write(cxdbg, REG_A6XX_CX_DBGC_CFG_DBGBUS_SEL_B, reg); in cx_debugbus_read()
209 cxdbg_write(cxdbg, REG_A6XX_CX_DBGC_CFG_DBGBUS_SEL_C, reg); in cx_debugbus_read()
210 cxdbg_write(cxdbg, REG_A6XX_CX_DBGC_CFG_DBGBUS_SEL_D, reg); in cx_debugbus_read()
215 data[0] = cxdbg_read(cxdbg, REG_A6XX_CX_DBGC_CFG_DBGBUS_TRACE_BUF2); in cx_debugbus_read()
216 data[1] = cxdbg_read(cxdbg, REG_A6XX_CX_DBGC_CFG_DBGBUS_TRACE_BUF1); in cx_debugbus_read()
318 static void a6xx_get_cx_debugbus_block(void __iomem *cxdbg, in a6xx_get_cx_debugbus_block() argument
333 ptr += cx_debugbus_read(cxdbg, block->id, i, ptr); in a6xx_get_cx_debugbus_block()
435 void __iomem *cxdbg = NULL; in a6xx_get_debugbus() local
465 cxdbg = ioremap(res->start, resource_size(res)); in a6xx_get_debugbus()
467 if (cxdbg) { in a6xx_get_debugbus()
468 cxdbg_write(cxdbg, REG_A6XX_CX_DBGC_CFG_DBGBUS_CNTLT, in a6xx_get_debugbus()
471 cxdbg_write(cxdbg, REG_A6XX_CX_DBGC_CFG_DBGBUS_CNTLM, in a6xx_get_debugbus()
474 cxdbg_write(cxdbg, REG_A6XX_CX_DBGC_CFG_DBGBUS_IVTL_0, 0); in a6xx_get_debugbus()
475 cxdbg_write(cxdbg, REG_A6XX_CX_DBGC_CFG_DBGBUS_IVTL_1, 0); in a6xx_get_debugbus()
476 cxdbg_write(cxdbg, REG_A6XX_CX_DBGC_CFG_DBGBUS_IVTL_2, 0); in a6xx_get_debugbus()
477 cxdbg_write(cxdbg, REG_A6XX_CX_DBGC_CFG_DBGBUS_IVTL_3, 0); in a6xx_get_debugbus()
479 cxdbg_write(cxdbg, REG_A6XX_CX_DBGC_CFG_DBGBUS_BYTEL_0, in a6xx_get_debugbus()
481 cxdbg_write(cxdbg, REG_A6XX_CX_DBGC_CFG_DBGBUS_BYTEL_1, in a6xx_get_debugbus()
484 cxdbg_write(cxdbg, REG_A6XX_CX_DBGC_CFG_DBGBUS_MASKL_0, 0); in a6xx_get_debugbus()
485 cxdbg_write(cxdbg, REG_A6XX_CX_DBGC_CFG_DBGBUS_MASKL_1, 0); in a6xx_get_debugbus()
486 cxdbg_write(cxdbg, REG_A6XX_CX_DBGC_CFG_DBGBUS_MASKL_2, 0); in a6xx_get_debugbus()
487 cxdbg_write(cxdbg, REG_A6XX_CX_DBGC_CFG_DBGBUS_MASKL_3, 0); in a6xx_get_debugbus()
507 if (cxdbg) { in a6xx_get_debugbus()
529 a6xx_get_cx_debugbus_block(cxdbg, in a6xx_get_debugbus()
538 iounmap(cxdbg); in a6xx_get_debugbus()