| /linux/drivers/gpu/drm/panthor/ |
| H A D | panthor_pwr.c | 55 static void panthor_pwr_irq_handler(struct panthor_device *ptdev, u32 status) in panthor_pwr_irq_handler() 74 static void panthor_pwr_write_command(struct panthor_device *ptdev, u32 command, u64 args) in panthor_pwr_write_command() 82 static bool reset_irq_raised(struct panthor_device *ptdev) in reset_irq_raised() 87 static bool reset_pending(struct panthor_device *ptdev) in reset_pending() 92 static int panthor_pwr_reset(struct panthor_device *ptdev, u32 reset_cmd) in panthor_pwr_reset() 168 static bool has_rtu(struct panthor_device *ptdev) in has_rtu() 173 static u8 get_domain_subdomain(struct panthor_device *ptdev, u32 domain) in get_domain_subdomain() 181 static int panthor_pwr_domain_wait_transition(struct panthor_device *ptdev, u32 domain, in panthor_pwr_domain_wait_transition() 199 static void panthor_pwr_debug_info_show(struct panthor_device *ptdev) in panthor_pwr_debug_info_show() 214 static int panthor_pwr_domain_transition(struct panthor_device *ptdev, u32 cmd, u32 domain, in panthor_pwr_domain_transition() [all …]
|
| H A D | panthor_device.c | 28 static int panthor_gpu_coherency_init(struct panthor_device *ptdev) in panthor_gpu_coherency_init() 46 static int panthor_clk_init(struct panthor_device *ptdev) in panthor_clk_init() 80 void panthor_device_unplug(struct panthor_device *ptdev) in panthor_device_unplug() 134 struct panthor_device *ptdev = container_of(ddev, struct panthor_device, base); in panthor_device_reset_cleanup() local 142 struct panthor_device *ptdev = container_of(work, struct panthor_device, reset.work); in panthor_device_reset_work() local 171 static bool panthor_device_is_initialized(struct panthor_device *ptdev) in panthor_device_is_initialized() 181 int panthor_device_init(struct panthor_device *ptdev) in panthor_device_init() 389 const char *panthor_exception_name(struct panthor_device *ptdev, u32 exception_code) in panthor_exception_name() 401 struct panthor_device *ptdev = vma->vm_private_data; in panthor_mmio_vm_fault() local 444 int panthor_device_mmap_io(struct panthor_device *ptdev, struct vm_area_struct *vma) in panthor_device_mmap_io() [all …]
|
| H A D | panthor_fw.c | 272 struct panthor_vm *panthor_fw_vm(struct panthor_device *ptdev) in panthor_fw_vm() 284 panthor_fw_get_glb_iface(struct panthor_device *ptdev) in panthor_fw_get_glb_iface() 297 panthor_fw_get_csg_iface(struct panthor_device *ptdev, u32 csg_slot) in panthor_fw_get_csg_iface() 314 panthor_fw_get_cs_iface(struct panthor_device *ptdev, u32 csg_slot, u32 cs_slot) in panthor_fw_get_cs_iface() 322 static bool panthor_fw_has_glb_state(struct panthor_device *ptdev) in panthor_fw_has_glb_state() 329 static bool panthor_fw_has_64bit_ep_req(struct panthor_device *ptdev) in panthor_fw_has_64bit_ep_req() 336 u64 panthor_fw_csg_endpoint_req_get(struct panthor_device *ptdev, in panthor_fw_csg_endpoint_req_get() 345 void panthor_fw_csg_endpoint_req_set(struct panthor_device *ptdev, in panthor_fw_csg_endpoint_req_set() 354 void panthor_fw_csg_endpoint_req_update(struct panthor_device *ptdev, in panthor_fw_csg_endpoint_req_update() 376 static u32 panthor_fw_conv_timeout(struct panthor_device *ptdev, u32 timeout_us) in panthor_fw_conv_timeout() [all …]
|
| H A D | panthor_gpu.c | 51 static void panthor_gpu_coherency_set(struct panthor_device *ptdev) in panthor_gpu_coherency_set() 57 static void panthor_gpu_l2_config_set(struct panthor_device *ptdev) in panthor_gpu_l2_config_set() 79 static void panthor_gpu_irq_handler(struct panthor_device *ptdev, u32 status) in panthor_gpu_irq_handler() 107 void panthor_gpu_unplug(struct panthor_device *ptdev) in panthor_gpu_unplug() 128 int panthor_gpu_init(struct panthor_device *ptdev) in panthor_gpu_init() 171 int panthor_gpu_block_power_off(struct panthor_device *ptdev, in panthor_gpu_block_power_off() 214 int panthor_gpu_block_power_on(struct panthor_device *ptdev, in panthor_gpu_block_power_on() 245 void panthor_gpu_l2_power_off(struct panthor_device *ptdev) in panthor_gpu_l2_power_off() 256 int panthor_gpu_l2_power_on(struct panthor_device *ptdev) in panthor_gpu_l2_power_on() 289 int panthor_gpu_flush_caches(struct panthor_device *ptdev, in panthor_gpu_flush_caches() [all …]
|
| H A D | panthor_hw.c | 56 static char *get_gpu_model_name(struct panthor_device *ptdev) in get_gpu_model_name() 112 static void panthor_gpu_info_init(struct panthor_device *ptdev) in panthor_gpu_info_init() 148 static void panthor_hw_info_init(struct panthor_device *ptdev) in panthor_hw_info_init() 177 static int panthor_hw_bind_device(struct panthor_device *ptdev) in panthor_hw_bind_device() 200 static int panthor_hw_gpu_id_init(struct panthor_device *ptdev) in panthor_hw_gpu_id_init() 209 int panthor_hw_init(struct panthor_device *ptdev) in panthor_hw_init()
|
| H A D | panthor_devfreq.c | 65 struct panthor_device *ptdev = dev_get_drvdata(dev); panthor_devfreq_target() local 91 struct panthor_device *ptdev = dev_get_drvdata(dev); panthor_devfreq_get_dev_status() local 125 panthor_devfreq_init(struct panthor_device * ptdev) panthor_devfreq_init() argument 246 panthor_devfreq_resume(struct panthor_device * ptdev) panthor_devfreq_resume() argument 258 panthor_devfreq_suspend(struct panthor_device * ptdev) panthor_devfreq_suspend() argument 268 panthor_devfreq_record_busy(struct panthor_device * ptdev) panthor_devfreq_record_busy() argument 284 panthor_devfreq_record_idle(struct panthor_device * ptdev) panthor_devfreq_record_idle() argument [all...] |
| H A D | panthor_hw.h | 36 static inline int panthor_hw_soft_reset(struct panthor_device *ptdev) in panthor_hw_soft_reset() 41 static inline int panthor_hw_l2_power_on(struct panthor_device *ptdev) in panthor_hw_l2_power_on() 46 static inline void panthor_hw_l2_power_off(struct panthor_device *ptdev) in panthor_hw_l2_power_off() 51 static inline bool panthor_hw_has_pwr_ctrl(struct panthor_device *ptdev) in panthor_hw_has_pwr_ctrl()
|
| H A D | panthor_sched.c | 154 struct panthor_device *ptdev; member 543 struct panthor_device *ptdev; member 870 struct panthor_device *ptdev = group->ptdev; in panthor_queue_get_syncwait_obj() local 952 struct panthor_device *ptdev = group->ptdev; in group_release() local 986 struct panthor_device *ptdev = group->ptdev; in group_bind_locked() local 1028 struct panthor_device *ptdev = group->ptdev; in group_unbind_locked() local 1059 struct panthor_device *ptdev = group->ptdev; in group_is_idle() local 1177 cs_slot_prog_locked(struct panthor_device *ptdev, u32 csg_id, u32 cs_id) in cs_slot_prog_locked() 1219 cs_slot_reset_locked(struct panthor_device *ptdev, u32 csg_id, u32 cs_id) in cs_slot_reset_locked() 1246 csg_slot_sync_priority_locked(struct panthor_device *ptdev, u32 csg_id) in csg_slot_sync_priority_locked() [all …]
|
| H A D | panthor_mmu.c | 250 struct panthor_device *ptdev; member 493 static int wait_ready(struct panthor_device *ptdev, u32 as_nr) in wait_ready() 513 static int write_cmd(struct panthor_device *ptdev, u32 as_nr, u32 cmd) in write_cmd() 525 static void lock_region(struct panthor_device *ptdev, u32 as_nr, in lock_region() 559 static int mmu_hw_do_operation_locked(struct panthor_device *ptdev, int as_nr, in mmu_hw_do_operation_locked() 613 struct panthor_device *ptdev = vm->ptdev; in mmu_hw_do_operation() local 623 static int panthor_mmu_as_enable(struct panthor_device *ptdev, u32 as_nr, in panthor_mmu_as_enable() 639 static int panthor_mmu_as_disable(struct panthor_device *ptdev, u32 as_nr) in panthor_mmu_as_disable() 654 static u32 panthor_mmu_fault_mask(struct panthor_device *ptdev, u32 value) in panthor_mmu_fault_mask() 660 static u32 panthor_mmu_as_fault_mask(struct panthor_device *ptdev, u32 as) in panthor_mmu_as_fault_mask() [all …]
|
| H A D | panthor_device.h | 71 struct panthor_device *ptdev; member 250 struct panthor_device *ptdev; member 286 static inline void panthor_device_schedule_reset(struct panthor_device *ptdev) in panthor_device_schedule_reset() 298 static inline bool panthor_device_reset_is_pending(struct panthor_device *ptdev) in panthor_device_reset_is_pending() 309 static inline int panthor_device_resume_and_get(struct panthor_device *ptdev) in panthor_device_resume_and_get() 477 static inline void gpu_write(struct panthor_device *ptdev, u32 reg, u32 data) in gpu_write() 482 static inline u32 gpu_read(struct panthor_device *ptdev, u32 reg) in gpu_read() 487 static inline u32 gpu_read_relaxed(struct panthor_device *ptdev, u32 reg) in gpu_read_relaxed() 492 static inline void gpu_write64(struct panthor_device *ptdev, u32 reg, u64 data) in gpu_write64() 498 static inline u64 gpu_read64(struct panthor_device *ptdev, u32 reg) in gpu_read64() [all …]
|
| H A D | panthor_drv.c | 499 struct panthor_device *ptdev = container_of(ctx->file->minor->dev, panthor_submit_ctx_update_job_sync_signal_fences() local 600 struct panthor_device *ptdev = container_of(ctx->file->minor->dev, panthor_submit_ctx_add_sync_deps_to_job() local 761 panthor_query_timestamp_info(struct panthor_device * ptdev,struct drm_panthor_timestamp_info * arg) panthor_query_timestamp_info() argument 814 struct panthor_device *ptdev = container_of(ddev, struct panthor_device, base); panthor_ioctl_dev_query() local 872 struct panthor_device *ptdev = container_of(ddev, struct panthor_device, base); panthor_ioctl_vm_create() local 1400 struct panthor_device *ptdev = container_of(ddev, struct panthor_device, base); panthor_open() local 1477 struct panthor_device *ptdev = pfile->ptdev; panthor_mmap() local 1504 panthor_gpu_show_fdinfo(struct panthor_device * ptdev,struct panthor_file * pfile,struct drm_printer * p) panthor_gpu_show_fdinfo() argument 1541 struct panthor_device *ptdev = container_of(dev, struct panthor_device, base); panthor_show_fdinfo() local 1568 struct panthor_device *ptdev = container_of(dev, struct panthor_device, base); panthor_gems_show() local 1628 struct panthor_device *ptdev; panthor_probe() local 1642 struct panthor_device *ptdev = platform_get_drvdata(pdev); panthor_remove() local 1651 struct panthor_device *ptdev = dev_get_drvdata(dev); profiling_show() local 1660 struct panthor_device *ptdev = dev_get_drvdata(dev); profiling_store() local [all...] |
| H A D | panthor_gem.c | 27 struct panthor_device *ptdev = container_of(bo->base.base.dev, in panthor_gem_debugfs_bo_add() local 40 struct panthor_device *ptdev = container_of(bo->base.base.dev, in panthor_gem_debugfs_bo_rm() local 122 panthor_kernel_bo_create(struct panthor_device *ptdev, struct panthor_vm *vm, in panthor_kernel_bo_create() 232 struct panthor_device *ptdev = container_of(ddev, struct panthor_device, base); in panthor_gem_create_object() local 434 void panthor_gem_debugfs_print_bos(struct panthor_device *ptdev, in panthor_gem_debugfs_print_bos()
|
| H A D | panthor_gpu.h | 31 #define panthor_gpu_power_on(ptdev, type, mask, timeout_us) \ argument 43 #define panthor_gpu_power_off(ptdev, type, mask, timeout_us) \ argument
|
| H A D | panthor_fw.h | 518 static inline void panthor_fw_suspend(struct panthor_device *ptdev) in panthor_fw_suspend() 523 static inline int panthor_fw_resume(struct panthor_device *ptdev) in panthor_fw_resume()
|