| /linux/drivers/gpu/drm/msm/adreno/ |
| H A D | a8xx_gpu.c | 79 val = gpu_read(gpu, offset); in a8xx_read_pipe_slice() 130 if (gpu_read(gpu, REG_A8XX_RBBM_STATUS) & in _a8xx_check_idle() 134 return !(gpu_read(gpu, REG_A8XX_RBBM_INT_0_STATUS) & in _a8xx_check_idle() 148 gpu_read(gpu, REG_A8XX_RBBM_STATUS), in a8xx_idle() 149 gpu_read(gpu, REG_A8XX_RBBM_INT_0_STATUS), in a8xx_idle() 150 gpu_read(gpu, REG_A6XX_CP_RB_RPTR), in a8xx_idle() 151 gpu_read(gpu, REG_A6XX_CP_RB_WPTR)); in a8xx_idle() 524 gpu_read(gpu, REG_A6XX_GBIF_HALT); in hw_init() 527 gpu_read(gpu, REG_A8XX_RBBM_GBIF_HALT); in hw_init() 732 DRM_DEV_INFO(&gpu->pdev->dev, "status: %08x\n", gpu_read(gpu, REG_A8XX_RBBM_STATUS)); in a8xx_dump() [all …]
|
| H A D | a5xx_gpu.c | 1023 gpu_read(gpu, REG_A5XX_CP_SCRATCH_REG(i))); in a5xx_recover() 1030 gpu_read(gpu, REG_A5XX_RBBM_SW_RESET_CMD); in a5xx_recover() 1070 if (gpu_read(gpu, REG_A5XX_RBBM_STATUS) & ~A5XX_RBBM_STATUS_HI_BUSY) in _a5xx_check_idle() 1077 return !(gpu_read(gpu, REG_A5XX_RBBM_INT_0_STATUS) & in _a5xx_check_idle() 1098 gpu_read(gpu, REG_A5XX_RBBM_STATUS), in a5xx_idle() 1099 gpu_read(gpu, REG_A5XX_RBBM_INT_0_STATUS), in a5xx_idle() 1100 gpu_read(gpu, REG_A5XX_CP_RB_RPTR), in a5xx_idle() 1101 gpu_read(gpu, REG_A5XX_CP_RB_WPTR)); in a5xx_idle() 1114 gpu_read(gpu, REG_A5XX_CP_SCRATCH_REG(4)), in a5xx_fault_handler() 1115 gpu_read(gpu, REG_A5XX_CP_SCRATCH_REG(5)), in a5xx_fault_handler() [all …]
|
| H A D | a2xx_gpu.c | 277 gpu_read(gpu, REG_AXXX_CP_SCRATCH_REG0 + i)); in a2xx_recover() 285 gpu_read(gpu, REG_A2XX_RBBM_SOFT_RESET); in a2xx_recover() 309 if (spin_until(!(gpu_read(gpu, REG_A2XX_RBBM_STATUS) & in a2xx_idle() 324 mstatus = gpu_read(gpu, REG_A2XX_MASTER_INT_SIGNAL); in a2xx_irq() 327 status = gpu_read(gpu, REG_A2XX_MH_INTERRUPT_STATUS); in a2xx_irq() 331 gpu_read(gpu, REG_A2XX_MH_MMU_PAGE_FAULT)); in a2xx_irq() 337 status = gpu_read(gpu, REG_AXXX_CP_INT_STATUS); in a2xx_irq() 347 status = gpu_read(gpu, REG_A2XX_RBBM_INT_STATUS); in a2xx_irq() 454 gpu_read(gpu, REG_A2XX_RBBM_STATUS)); in a2xx_dump() 467 state->rbbm_status = gpu_read(gpu, REG_A2XX_RBBM_STATUS); in a2xx_gpu_state_get() [all …]
|
| H A D | a6xx_gpu.c | 120 if (gpu_read(gpu, REG_A6XX_RBBM_STATUS) & in _a6xx_check_idle() 124 return !(gpu_read(gpu, REG_A6XX_RBBM_INT_0_STATUS) & in _a6xx_check_idle() 137 gpu_read(gpu, REG_A6XX_RBBM_STATUS), in a6xx_idle() 138 gpu_read(gpu, REG_A6XX_RBBM_INT_0_STATUS), in a6xx_idle() 139 gpu_read(gpu, REG_A6XX_CP_RB_RPTR), in a6xx_idle() 140 gpu_read(gpu, REG_A6XX_CP_RB_WPTR)); in a6xx_idle() 687 val = gpu_read(gpu, REG_A6XX_RBBM_CLOCK_CNTL); in a6xx_set_hwcg() 894 *dest++ = gpu_read(gpu, reglist->regs[i]); in a7xx_patch_pwrup_reglist() 903 *dest++ = gpu_read(gpu, reglist->regs[i]); in a7xx_patch_pwrup_reglist() 931 *dest++ = gpu_read(gpu, dyn_pwrup_reglist->regs[i].offset); in a7xx_patch_pwrup_reglist() [all …]
|
| H A D | a4xx_gpu.c | 277 val = gpu_read(gpu, REG_A4XX_RBBM_CLOCK_DELAY_HLSQ); in a4xx_hw_init() 358 gpu_read(gpu, REG_AXXX_CP_SCRATCH_REG0 + i)); in a4xx_recover() 366 gpu_read(gpu, REG_A4XX_RBBM_SW_RESET_CMD); in a4xx_recover() 392 if (spin_until(!(gpu_read(gpu, REG_A4XX_RBBM_STATUS) & in a4xx_idle() 406 status = gpu_read(gpu, REG_A4XX_RBBM_INT_0_STATUS); in a4xx_irq() 410 uint32_t reg = gpu_read(gpu, REG_A4XX_CP_PROTECT_STATUS); in a4xx_irq() 560 state->rbbm_status = gpu_read(gpu, REG_A4XX_RBBM_STATUS); in a4xx_gpu_state_get() 568 gpu_read(gpu, REG_A4XX_RBBM_STATUS)); in a4xx_dump() 586 reg = gpu_read(gpu, REG_A4XX_RBBM_POWER_STATUS); in a4xx_pm_resume() 626 ring->memptrs->rptr = gpu_read(gpu, REG_A4XX_CP_RB_RPTR); in a4xx_get_rptr()
|
| H A D | a3xx_gpu.c | 374 gpu_read(gpu, REG_AXXX_CP_SCRATCH_REG0 + i)); in a3xx_recover() 382 gpu_read(gpu, REG_A3XX_RBBM_SW_RESET_CMD); in a3xx_recover() 408 if (spin_until(!(gpu_read(gpu, REG_A3XX_RBBM_STATUS) & in a3xx_idle() 423 status = gpu_read(gpu, REG_A3XX_RBBM_INT_0_STATUS); in a3xx_irq() 477 gpu_read(gpu, REG_A3XX_RBBM_STATUS)); in a3xx_dump() 490 state->rbbm_status = gpu_read(gpu, REG_A3XX_RBBM_STATUS); in a3xx_gpu_state_get() 507 ring->memptrs->rptr = gpu_read(gpu, REG_AXXX_CP_RB_RPTR); in a3xx_get_rptr()
|
| H A D | a6xx_gpu_state.c | 195 data[0] = gpu_read(gpu, REG_A6XX_DBGC_CFG_DBGBUS_TRACE_BUF2); in debugbus_read() 196 data[1] = gpu_read(gpu, REG_A6XX_DBGC_CFG_DBGBUS_TRACE_BUF1); in debugbus_read() 245 data[i] = gpu_read(gpu, REG_A6XX_VBIF_TEST_BUS_OUT); in vbif_debugbus_read() 275 clk = gpu_read(gpu, REG_A6XX_VBIF_CLKON); in a6xx_get_vbif_debugbus_block() 1149 obj->data[index++] = gpu_read(gpu, in a6xx_get_ahb_gpu_registers() 1174 obj->data[index++] = gpu_read(gpu, regs[i] + j); in a7xx_get_ahb_gpu_registers() 1446 return gpu_read(gpu, REG_A6XX_CP_ROQ_THRESHOLDS_2) >> 14; in a6xx_get_cp_roq_size() 1458 return 4 * (gpu_read(gpu, REG_A6XX_CP_SQE_UCODE_DBG_DATA) >> 20); in a7xx_get_cp_roq_size() 1484 obj->data[i] = gpu_read(gpu, indexed->data); in a6xx_get_indexed_regs() 1506 val = gpu_read(gpu, REG_A6XX_CP_CHICKEN_DBG); in a6xx_get_indexed_registers() [all …]
|
| H A D | a5xx_gpu.h | 146 if ((gpu_read(gpu, reg) & mask) == value) in spin_usecs()
|
| H A D | a5xx_preempt.c | 194 status = gpu_read(gpu, REG_A5XX_CP_CONTEXT_SWITCH_CNTL); in a5xx_preempt_irq()
|
| H A D | a6xx_preempt.c | 174 status = gpu_read(gpu, REG_A6XX_CP_CONTEXT_SWITCH_CNTL); in a6xx_preempt_irq()
|
| /linux/drivers/gpu/drm/etnaviv/ |
| H A D | etnaviv_gpu.c | 218 specs[0] = gpu_read(gpu, VIVS_HI_CHIP_SPECS); in etnaviv_hw_specs() 219 specs[1] = gpu_read(gpu, VIVS_HI_CHIP_SPECS_2); in etnaviv_hw_specs() 220 specs[2] = gpu_read(gpu, VIVS_HI_CHIP_SPECS_3); in etnaviv_hw_specs() 221 specs[3] = gpu_read(gpu, VIVS_HI_CHIP_SPECS_4); in etnaviv_hw_specs() 365 chipIdentity = gpu_read(gpu, VIVS_HI_CHIP_IDENTITY); in etnaviv_hw_identify() 373 u32 chipDate = gpu_read(gpu, VIVS_HI_CHIP_DATE); in etnaviv_hw_identify() 375 gpu->identity.model = gpu_read(gpu, VIVS_HI_CHIP_MODEL); in etnaviv_hw_identify() 376 gpu->identity.revision = gpu_read(gpu, VIVS_HI_CHIP_REV); in etnaviv_hw_identify() 377 gpu->identity.customer_id = gpu_read(gpu, VIVS_HI_CHIP_CUSTOMER_ID); in etnaviv_hw_identify() 384 gpu->identity.product_id = gpu_read(gpu, VIVS_HI_CHIP_PRODUCT_ID); in etnaviv_hw_identify() [all …]
|
| H A D | etnaviv_sched.c | 54 dma_addr = gpu_read(gpu, VIVS_FE_DMA_ADDRESS); in etnaviv_sched_timedout_job() 62 primid = gpu_read(gpu, VIVS_MC_PROFILE_FE_READ); in etnaviv_sched_timedout_job()
|
| H A D | etnaviv_iommu_v2.c | 172 if (gpu_read(gpu, VIVS_MMUv2_CONTROL) & VIVS_MMUv2_CONTROL_ENABLE) in etnaviv_iommuv2_restore_nonsec() 196 if (gpu_read(gpu, VIVS_MMUv2_SEC_CONTROL) & VIVS_MMUv2_SEC_CONTROL_ENABLE) in etnaviv_iommuv2_restore_sec()
|
| H A D | etnaviv_gpu.h | 175 static inline u32 gpu_read(struct etnaviv_gpu *gpu, u32 reg) in gpu_read() function
|
| H A D | etnaviv_dump.c | 94 reg->value = cpu_to_le32(gpu_read(gpu, read_addr)); in etnaviv_core_dump_registers()
|
| /linux/drivers/gpu/drm/panthor/ |
| H A D | panthor_device.h | 415 if (!gpu_read(ptdev, __reg_prefix ## _INT_STAT)) \ 429 u32 status = gpu_read(ptdev, __reg_prefix ## _INT_RAWSTAT) & pirq->mask; \ 482 static inline u32 gpu_read(struct panthor_device *ptdev, u32 reg) in gpu_read() function 500 return (gpu_read(ptdev, reg) | ((u64)gpu_read(ptdev, reg + 4) << 32)); in gpu_read64() 513 hi1 = gpu_read(ptdev, reg + 4); in gpu_read64_counter() 514 lo = gpu_read(ptdev, reg); in gpu_read64_counter() 515 hi2 = gpu_read(ptdev, reg + 4); in gpu_read64_counter() 521 read_poll_timeout(gpu_read, val, cond, delay_us, timeout_us, false, \ 526 read_poll_timeout_atomic(gpu_read, val, cond, delay_us, timeout_us, \
|
| H A D | panthor_pwr.c | 84 return gpu_read(ptdev, PWR_INT_RAWSTAT) & PWR_IRQ_RESET_COMPLETED; in reset_irq_raised()
|
| H A D | panthor_mmu.c | 1706 fault_status = gpu_read(ptdev, AS_FAULTSTATUS(as)); in panthor_mmu_irq_handler()
|
| /linux/drivers/gpu/drm/msm/ |
| H A D | msm_gpu.h | 601 static inline u32 gpu_read(struct msm_gpu *gpu, u32 reg) in gpu_read() function
|
| H A D | msm_gpu.c | 687 current_cntrs[i] = gpu_read(gpu, gpu->perfcntrs[i].sample_reg); in update_hw_cntrs()
|