Lines Matching refs:block

174 static int debugbus_read(struct msm_gpu *gpu, u32 block, u32 offset,
178 A6XX_DBGC_CFG_DBGBUS_SEL_D_PING_BLK_SEL(block);
201 static int cx_debugbus_read(void __iomem *cxdbg, u32 block, u32 offset,
205 A6XX_CX_DBGC_CFG_DBGBUS_SEL_A_PING_BLK_SEL(block);
302 const struct a6xx_debugbus_block *block,
308 obj->data = state_kcalloc(a6xx_state, block->count, sizeof(u64));
312 obj->handle = block;
314 for (ptr = obj->data, i = 0; i < block->count; i++)
315 ptr += debugbus_read(gpu, block->id, i, ptr);
320 const struct a6xx_debugbus_block *block,
326 obj->data = state_kcalloc(a6xx_state, block->count, sizeof(u64));
330 obj->handle = block;
332 for (ptr = obj->data, i = 0; i < block->count; i++)
333 ptr += cx_debugbus_read(cxdbg, block->id, i, ptr);
835 /* Read a shader / debug block from the HLSQ aperture with the crashdumper */
838 const struct a6xx_shader_block *block,
844 size_t datasize = block->size * A6XX_NUM_SHADER_BANKS * sizeof(u32);
852 (block->type << 8) | i);
855 block->size, out);
857 out += block->size * sizeof(u32);
865 obj->handle = block;
872 const struct gen7_shader_block *block,
879 size_t datasize = block->size * block->num_sps * block->num_usptps * sizeof(u32);
889 for (i = 0; i < block->num_sps; i++) {
890 for (j = 0; j < block->num_usptps; j++) {
892 A7XX_SP_READ_SEL_LOCATION(block->location) |
893 A7XX_SP_READ_SEL_PIPE(block->pipeid) |
894 A7XX_SP_READ_SEL_STATETYPE(block->statetype) |
899 block->size, out);
901 out += block->size * sizeof(u32);
910 obj->handle = block;
1008 /* Read a block of registers using the crashdumper */
1089 /* Read a block of registers via AHB */
1155 /* Read a block of GMU registers */
1417 /* Read a block of data from an indexed register pair */
1728 const struct a6xx_shader_block *block = obj->handle;
1734 print_name(p, " - type: ", block->name);
1738 drm_printf(p, " size: %d\n", block->size);
1743 print_ascii85(p, block->size << 2,
1744 obj->data + (block->size * i));
1751 const struct gen7_shader_block *block = obj->handle;
1758 print_name(p, " - type: ", a7xx_statetype_names[block->statetype]);
1759 print_name(p, " - pipe: ", a7xx_pipe_names[block->pipeid]);
1761 for (i = 0; i < block->num_sps; i++) {
1764 for (j = 0; j < block->num_usptps; j++) {
1766 drm_printf(p, " size: %d\n", block->size);
1771 print_ascii85(p, block->size << 2, data);
1773 data += block->size;
1870 static void a6xx_show_debugbus_block(const struct a6xx_debugbus_block *block,
1873 if (block) {
1874 print_name(p, " - debugbus-block: ", block->name);
1880 drm_printf(p, " count: %d\n", block->count << 1);
1882 print_ascii85(p, block->count << 3, data);
1900 drm_puts(p, " - debugbus-block: A6XX_DBGBUS_VBIF\n");