Loading drivers/media/platform/msm/vidc/msm_vidc_common.c +0 −35 Original line number Diff line number Diff line Loading @@ -4586,22 +4586,6 @@ int msm_comm_kill_session(struct msm_vidc_inst *inst) return rc; } static inline int power_on_for_smem(struct msm_vidc_inst *inst) { struct hfi_device *hdev = NULL; int rc = 0; if (!inst || !inst->core || !inst->core->device) { dprintk(VIDC_ERR, "%s: invalid inst handle\n", __func__); return -EINVAL; } hdev = inst->core->device; rc = call_hfi_op(hdev, resume, hdev->hfi_device_data); if (rc) dprintk(VIDC_ERR, "%s: failed to power on fw\n", __func__); return rc; } struct msm_smem *msm_comm_smem_alloc(struct msm_vidc_inst *inst, size_t size, u32 align, u32 flags, enum hal_buffer buffer_type, int map_kernel) Loading @@ -4612,14 +4596,8 @@ struct msm_smem *msm_comm_smem_alloc(struct msm_vidc_inst *inst, dprintk(VIDC_ERR, "%s: invalid inst: %p\n", __func__, inst); return NULL; } mutex_lock(&inst->core->lock); if (power_on_for_smem(inst)) goto err_power_on; m = msm_smem_alloc(inst->mem_client, size, align, flags, buffer_type, map_kernel); err_power_on: mutex_unlock(&inst->core->lock); return m; } Loading @@ -4630,14 +4608,7 @@ void msm_comm_smem_free(struct msm_vidc_inst *inst, struct msm_smem *mem) "%s: invalid params: %p %p\n", __func__, inst, mem); return; } mutex_lock(&inst->core->lock); if (inst->state != MSM_VIDC_CORE_INVALID) { if (power_on_for_smem(inst)) goto err_power_on; } msm_smem_free(inst->mem_client, mem); err_power_on: mutex_unlock(&inst->core->lock); } int msm_comm_smem_cache_operations(struct msm_vidc_inst *inst, Loading Loading @@ -4667,14 +4638,8 @@ struct msm_smem *msm_comm_smem_user_to_kernel(struct msm_vidc_inst *inst, return NULL; } mutex_lock(&inst->core->lock); if (power_on_for_smem(inst)) goto err_power_on; m = msm_smem_user_to_kernel(inst->mem_client, fd, offset, buffer_type); err_power_on: mutex_unlock(&inst->core->lock); return m; } Loading drivers/media/platform/msm/vidc/venus_hfi.c +0 −26 Original line number Diff line number Diff line Loading @@ -579,8 +579,6 @@ static int __smem_alloc(struct venus_hfi_device *dev, void *mem, return -EINVAL; } __power_on(dev); vmem = (struct vidc_mem_addr *)mem; dprintk(VIDC_INFO, "start to alloc size: %d, flags: %d\n", size, flags); Loading Loading @@ -616,9 +614,6 @@ static void __smem_free(struct venus_hfi_device *dev, struct msm_smem *mem) return; } if (__power_on(dev)) dprintk(VIDC_ERR, "%s: Power on failed\n", __func__); msm_smem_free(dev->hal_client, mem); } Loading Loading @@ -1596,26 +1591,6 @@ err_vote_buses: return rc; } static int venus_hfi_resume(void *dev) { int rc = 0; struct venus_hfi_device *device = dev; if (!device) { dprintk(VIDC_ERR, "Invalid params: %p\n", device); return -EINVAL; } mutex_lock(&device->lock); rc = __power_on(device); if (rc) dprintk(VIDC_ERR, "%s: Failed to enable power\n", __func__); mutex_unlock(&device->lock); return rc; } static int __scale_clocks(struct venus_hfi_device *device, int load, int codecs_enabled) { Loading Loading @@ -4658,7 +4633,6 @@ static void venus_init_hfi_callbacks(struct hfi_device *hdev) hdev->unload_fw = venus_hfi_unload_fw; hdev->get_fw_info = venus_hfi_get_fw_info; hdev->get_core_capabilities = venus_hfi_get_core_capabilities; hdev->resume = venus_hfi_resume; hdev->suspend = venus_hfi_suspend; hdev->get_core_clock_rate = venus_hfi_get_core_clock_rate; hdev->get_default_properties = venus_hfi_get_default_properties; Loading drivers/media/platform/msm/vidc/vidc_hfi_api.h +0 −1 Original line number Diff line number Diff line Loading @@ -1443,7 +1443,6 @@ struct hfi_device { int (*get_fw_info)(void *dev, enum fw_info info); int (*session_clean)(void *sess); int (*get_core_capabilities)(void *dev); int (*resume)(void *dev); int (*suspend)(void *dev); unsigned long (*get_core_clock_rate)(void *dev); enum hal_default_properties (*get_default_properties)(void *dev); Loading Loading
drivers/media/platform/msm/vidc/msm_vidc_common.c +0 −35 Original line number Diff line number Diff line Loading @@ -4586,22 +4586,6 @@ int msm_comm_kill_session(struct msm_vidc_inst *inst) return rc; } static inline int power_on_for_smem(struct msm_vidc_inst *inst) { struct hfi_device *hdev = NULL; int rc = 0; if (!inst || !inst->core || !inst->core->device) { dprintk(VIDC_ERR, "%s: invalid inst handle\n", __func__); return -EINVAL; } hdev = inst->core->device; rc = call_hfi_op(hdev, resume, hdev->hfi_device_data); if (rc) dprintk(VIDC_ERR, "%s: failed to power on fw\n", __func__); return rc; } struct msm_smem *msm_comm_smem_alloc(struct msm_vidc_inst *inst, size_t size, u32 align, u32 flags, enum hal_buffer buffer_type, int map_kernel) Loading @@ -4612,14 +4596,8 @@ struct msm_smem *msm_comm_smem_alloc(struct msm_vidc_inst *inst, dprintk(VIDC_ERR, "%s: invalid inst: %p\n", __func__, inst); return NULL; } mutex_lock(&inst->core->lock); if (power_on_for_smem(inst)) goto err_power_on; m = msm_smem_alloc(inst->mem_client, size, align, flags, buffer_type, map_kernel); err_power_on: mutex_unlock(&inst->core->lock); return m; } Loading @@ -4630,14 +4608,7 @@ void msm_comm_smem_free(struct msm_vidc_inst *inst, struct msm_smem *mem) "%s: invalid params: %p %p\n", __func__, inst, mem); return; } mutex_lock(&inst->core->lock); if (inst->state != MSM_VIDC_CORE_INVALID) { if (power_on_for_smem(inst)) goto err_power_on; } msm_smem_free(inst->mem_client, mem); err_power_on: mutex_unlock(&inst->core->lock); } int msm_comm_smem_cache_operations(struct msm_vidc_inst *inst, Loading Loading @@ -4667,14 +4638,8 @@ struct msm_smem *msm_comm_smem_user_to_kernel(struct msm_vidc_inst *inst, return NULL; } mutex_lock(&inst->core->lock); if (power_on_for_smem(inst)) goto err_power_on; m = msm_smem_user_to_kernel(inst->mem_client, fd, offset, buffer_type); err_power_on: mutex_unlock(&inst->core->lock); return m; } Loading
drivers/media/platform/msm/vidc/venus_hfi.c +0 −26 Original line number Diff line number Diff line Loading @@ -579,8 +579,6 @@ static int __smem_alloc(struct venus_hfi_device *dev, void *mem, return -EINVAL; } __power_on(dev); vmem = (struct vidc_mem_addr *)mem; dprintk(VIDC_INFO, "start to alloc size: %d, flags: %d\n", size, flags); Loading Loading @@ -616,9 +614,6 @@ static void __smem_free(struct venus_hfi_device *dev, struct msm_smem *mem) return; } if (__power_on(dev)) dprintk(VIDC_ERR, "%s: Power on failed\n", __func__); msm_smem_free(dev->hal_client, mem); } Loading Loading @@ -1596,26 +1591,6 @@ err_vote_buses: return rc; } static int venus_hfi_resume(void *dev) { int rc = 0; struct venus_hfi_device *device = dev; if (!device) { dprintk(VIDC_ERR, "Invalid params: %p\n", device); return -EINVAL; } mutex_lock(&device->lock); rc = __power_on(device); if (rc) dprintk(VIDC_ERR, "%s: Failed to enable power\n", __func__); mutex_unlock(&device->lock); return rc; } static int __scale_clocks(struct venus_hfi_device *device, int load, int codecs_enabled) { Loading Loading @@ -4658,7 +4633,6 @@ static void venus_init_hfi_callbacks(struct hfi_device *hdev) hdev->unload_fw = venus_hfi_unload_fw; hdev->get_fw_info = venus_hfi_get_fw_info; hdev->get_core_capabilities = venus_hfi_get_core_capabilities; hdev->resume = venus_hfi_resume; hdev->suspend = venus_hfi_suspend; hdev->get_core_clock_rate = venus_hfi_get_core_clock_rate; hdev->get_default_properties = venus_hfi_get_default_properties; Loading
drivers/media/platform/msm/vidc/vidc_hfi_api.h +0 −1 Original line number Diff line number Diff line Loading @@ -1443,7 +1443,6 @@ struct hfi_device { int (*get_fw_info)(void *dev, enum fw_info info); int (*session_clean)(void *sess); int (*get_core_capabilities)(void *dev); int (*resume)(void *dev); int (*suspend)(void *dev); unsigned long (*get_core_clock_rate)(void *dev); enum hal_default_properties (*get_default_properties)(void *dev); Loading