Home
last modified time | relevance | path

Searched refs:mdev (Results 1 - 25 of 44) sorted by relevance

12

/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/mali/common/
H A Dmali_pm_metrics.c20 mali_osk_errcode_t mali_pm_metrics_init(struct mali_device *mdev) in mali_pm_metrics_init() argument
24 MALI_DEBUG_ASSERT(mdev != NULL); in mali_pm_metrics_init()
26 mdev->mali_metrics.time_period_start = ktime_get(); in mali_pm_metrics_init()
27 mdev->mali_metrics.time_period_start_gp = mdev->mali_metrics.time_period_start; in mali_pm_metrics_init()
28 mdev->mali_metrics.time_period_start_pp = mdev->mali_metrics.time_period_start; in mali_pm_metrics_init()
30 mdev->mali_metrics.time_busy = 0; in mali_pm_metrics_init()
31 mdev->mali_metrics.time_idle = 0; in mali_pm_metrics_init()
32 mdev in mali_pm_metrics_init()
53 mali_pm_metrics_term(struct mali_device *mdev) mali_pm_metrics_term() argument
59 mali_pm_record_job_status(struct mali_device *mdev) mali_pm_record_job_status() argument
80 struct mali_device *mdev = dev_get_drvdata(&mali_platform_device->dev); mali_pm_record_gpu_idle() local
130 struct mali_device *mdev = dev_get_drvdata(&mali_platform_device->dev); mali_pm_record_gpu_active() local
175 mali_pm_get_dvfs_utilisation_calc(struct mali_device *mdev, ktime_t now) mali_pm_get_dvfs_utilisation_calc() argument
191 mali_pm_reset_dvfs_utilisation_unlocked(struct mali_device *mdev, ktime_t now) mali_pm_reset_dvfs_utilisation_unlocked() argument
210 mali_pm_reset_dvfs_utilisation(struct mali_device *mdev) mali_pm_reset_dvfs_utilisation() argument
217 mali_pm_get_dvfs_utilisation(struct mali_device *mdev, unsigned long *total_out, unsigned long *busy_out) mali_pm_get_dvfs_utilisation() argument
246 struct mali_device *mdev = dev_get_drvdata(&mali_platform_device->dev); mali_pm_metrics_spin_lock() local
252 struct mali_device *mdev = dev_get_drvdata(&mali_platform_device->dev); mali_pm_metrics_spin_unlock() local
[all...]
H A Dmali_pm_metrics.h47 mali_osk_errcode_t mali_pm_metrics_init(struct mali_device *mdev);
52 void mali_pm_metrics_term(struct mali_device *mdev);
64 void mali_pm_reset_dvfs_utilisation(struct mali_device *mdev);
66 void mali_pm_get_dvfs_utilisation(struct mali_device *mdev, unsigned long *total_out, unsigned long *busy_out);
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/mali/common/
H A Dmali_pm_metrics.c18 _mali_osk_errcode_t mali_pm_metrics_init(struct mali_device *mdev) in mali_pm_metrics_init() argument
22 MALI_DEBUG_ASSERT(mdev != NULL); in mali_pm_metrics_init()
24 mdev->mali_metrics.time_period_start = ktime_get(); in mali_pm_metrics_init()
25 mdev->mali_metrics.time_period_start_gp = mdev->mali_metrics.time_period_start; in mali_pm_metrics_init()
26 mdev->mali_metrics.time_period_start_pp = mdev->mali_metrics.time_period_start; in mali_pm_metrics_init()
28 mdev->mali_metrics.time_busy = 0; in mali_pm_metrics_init()
29 mdev->mali_metrics.time_idle = 0; in mali_pm_metrics_init()
30 mdev in mali_pm_metrics_init()
51 mali_pm_metrics_term(struct mali_device *mdev) mali_pm_metrics_term() argument
57 mali_pm_record_job_status(struct mali_device *mdev) mali_pm_record_job_status() argument
78 struct mali_device *mdev = dev_get_drvdata(&mali_platform_device->dev); mali_pm_record_gpu_idle() local
128 struct mali_device *mdev = dev_get_drvdata(&mali_platform_device->dev); mali_pm_record_gpu_active() local
174 mali_pm_get_dvfs_utilisation_calc(struct mali_device *mdev, ktime_t now) mali_pm_get_dvfs_utilisation_calc() argument
190 mali_pm_reset_dvfs_utilisation_unlocked(struct mali_device *mdev, ktime_t now) mali_pm_reset_dvfs_utilisation_unlocked() argument
209 mali_pm_reset_dvfs_utilisation(struct mali_device *mdev) mali_pm_reset_dvfs_utilisation() argument
216 mali_pm_get_dvfs_utilisation(struct mali_device *mdev, unsigned long *total_out, unsigned long *busy_out) mali_pm_get_dvfs_utilisation() argument
247 struct mali_device *mdev = dev_get_drvdata(&mali_platform_device->dev); mali_pm_metrics_spin_lock() local
253 struct mali_device *mdev = dev_get_drvdata(&mali_platform_device->dev); mali_pm_metrics_spin_unlock() local
[all...]
H A Dmali_pm_metrics.h46 _mali_osk_errcode_t mali_pm_metrics_init(struct mali_device *mdev);
51 void mali_pm_metrics_term(struct mali_device *mdev);
63 void mali_pm_reset_dvfs_utilisation(struct mali_device *mdev);
65 void mali_pm_get_dvfs_utilisation(struct mali_device *mdev, unsigned long *total_out, unsigned long *busy_out);
/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/mali/linux/
H A Dmali_devfreq.c53 struct mali_device *mdev = dev_get_drvdata(dev); in mali_devfreq_target() local
56 unsigned long old_freq = mdev->current_freq; in mali_devfreq_target()
77 mali_pm_reset_dvfs_utilisation(mdev); in mali_devfreq_target()
79 if (mdev->current_voltage == voltage) { in mali_devfreq_target()
82 err = regulator_set_voltage(mdev->regulator, voltage, INT_MAX); in mali_devfreq_target()
87 mdev->current_voltage = voltage; in mali_devfreq_target()
93 if (mdev->regulator && mdev->current_voltage != voltage && old_freq < freq) { in mali_devfreq_target()
94 err = regulator_set_voltage(mdev->regulator, voltage, INT_MAX); in mali_devfreq_target()
102 err = clk_set_rate(mdev in mali_devfreq_target()
132 struct mali_device *mdev = dev_get_drvdata(dev); mali_devfreq_cur_freq() local
142 struct mali_device *mdev = dev_get_drvdata(dev); mali_devfreq_status() local
169 mali_devfreq_init_freq_table(struct mali_device *mdev, struct devfreq_dev_profile *dp) mali_devfreq_init_freq_table() argument
213 mali_devfreq_term_freq_table(struct mali_device *mdev) mali_devfreq_term_freq_table() argument
223 struct mali_device *mdev = dev_get_drvdata(dev); mali_devfreq_exit() local
228 mali_devfreq_init(struct mali_device *mdev) mali_devfreq_init() argument
333 mali_devfreq_term(struct mali_device *mdev) mali_devfreq_term() argument
[all...]
H A Dmali_kernel_linux.c508 void mali_device_free(struct mali_device *mdev) in mali_device_free() argument
510 kfree(mdev); in mali_device_free()
518 struct mali_device *mdev; in mali_probe() local
552 mdev = mali_device_alloc(); in mali_probe()
553 if (!mdev) { in mali_probe()
558 mdev->dev = &pdev->dev; in mali_probe()
559 dev_set_drvdata(mdev->dev, mdev); in mali_probe()
563 mdev->regulator = regulator_get_optional(mdev in mali_probe()
658 struct mali_device *mdev = dev_get_drvdata(&pdev->dev); mali_remove() local
719 struct mali_device *mdev = dev_get_drvdata(dev); mali_driver_suspend_scheduler() local
740 struct mali_device *mdev = dev_get_drvdata(dev); mali_driver_resume_scheduler() local
770 struct mali_device *mdev = dev_get_drvdata(dev); mali_driver_runtime_suspend() local
796 struct mali_device *mdev = dev_get_drvdata(dev); mali_driver_runtime_resume() local
[all...]
H A Dmali_devfreq.h14 int mali_devfreq_init(struct mali_device *mdev);
16 void mali_devfreq_term(struct mali_device *mdev);
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/mali/linux/
H A Dmali_devfreq.c53 struct mali_device *mdev = dev_get_drvdata(dev); in mali_devfreq_target() local
56 unsigned long old_freq = mdev->current_freq; in mali_devfreq_target()
76 mali_pm_reset_dvfs_utilisation(mdev); in mali_devfreq_target()
78 if (mdev->current_voltage == voltage) in mali_devfreq_target()
80 err = regulator_set_voltage(mdev->regulator, voltage, INT_MAX); in mali_devfreq_target()
85 mdev->current_voltage = voltage; in mali_devfreq_target()
91 if (mdev->regulator && mdev->current_voltage != voltage && in mali_devfreq_target()
93 err = regulator_set_voltage(mdev->regulator, voltage, INT_MAX); in mali_devfreq_target()
101 err = clk_set_rate(mdev in mali_devfreq_target()
132 struct mali_device *mdev = dev_get_drvdata(dev); mali_devfreq_cur_freq() local
143 struct mali_device *mdev = dev_get_drvdata(dev); mali_devfreq_status() local
171 mali_devfreq_init_freq_table(struct mali_device *mdev, struct devfreq_dev_profile *dp) mali_devfreq_init_freq_table() argument
214 mali_devfreq_term_freq_table(struct mali_device *mdev) mali_devfreq_term_freq_table() argument
224 struct mali_device *mdev = dev_get_drvdata(dev); mali_devfreq_exit() local
229 mali_devfreq_init(struct mali_device *mdev) mali_devfreq_init() argument
336 mali_devfreq_term(struct mali_device *mdev) mali_devfreq_term() argument
[all...]
H A Dmali_kernel_linux.c505 void mali_device_free(struct mali_device *mdev) in mali_device_free() argument
507 kfree(mdev); in mali_device_free()
515 struct mali_device *mdev; in mali_probe() local
552 mdev = mali_device_alloc(); in mali_probe()
553 if (!mdev) { in mali_probe()
558 mdev->dev = &pdev->dev; in mali_probe()
559 dev_set_drvdata(mdev->dev, mdev); in mali_probe()
564 mdev->regulator = regulator_get_optional(mdev in mali_probe()
660 struct mali_device *mdev = dev_get_drvdata(&pdev->dev); mali_remove() local
723 struct mali_device *mdev = dev_get_drvdata(dev); mali_driver_suspend_scheduler() local
747 struct mali_device *mdev = dev_get_drvdata(dev); mali_driver_resume_scheduler() local
780 struct mali_device *mdev = dev_get_drvdata(dev); mali_driver_runtime_suspend() local
809 struct mali_device *mdev = dev_get_drvdata(dev); mali_driver_runtime_resume() local
[all...]
H A Dmali_devfreq.h13 int mali_devfreq_init(struct mali_device *mdev);
15 void mali_devfreq_term(struct mali_device *mdev);
/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/mali/platform/rk/
H A Drk.c100 struct mali_device *mdev = dev_get_drvdata(dev); in utilisation_show() local
107 mali_pm_reset_dvfs_utilisation(mdev); in utilisation_show()
109 mali_pm_get_dvfs_utilisation(mdev, &total_time, &busy_time); in utilisation_show()
353 struct mali_device *mdev = dev_get_drvdata(dev); in rk_platform_enable_clk_gpu() local
355 if (mdev->clock) { in rk_platform_enable_clk_gpu()
356 ret = clk_enable(mdev->clock); in rk_platform_enable_clk_gpu()
365 struct mali_device *mdev = dev_get_drvdata(dev); in rk_platform_disable_clk_gpu() local
367 if (mdev->clock) { in rk_platform_disable_clk_gpu()
368 clk_disable(mdev->clock); in rk_platform_disable_clk_gpu()
377 struct mali_device *mdev in rk_platform_enable_gpu_regulator() local
389 struct mali_device *mdev = dev_get_drvdata(dev); rk_platform_disable_gpu_regulator() local
[all...]
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/mali/platform/rk/
H A Drk.c104 struct mali_device *mdev = dev_get_drvdata(dev); in utilisation_show() local
111 mali_pm_reset_dvfs_utilisation(mdev); in utilisation_show()
113 mali_pm_get_dvfs_utilisation(mdev, &total_time, &busy_time); in utilisation_show()
377 struct mali_device *mdev = dev_get_drvdata(dev); in rk_platform_enable_clk_gpu() local
379 if (mdev->clock) in rk_platform_enable_clk_gpu()
380 ret = clk_enable(mdev->clock); in rk_platform_enable_clk_gpu()
388 struct mali_device *mdev = dev_get_drvdata(dev); in rk_platform_disable_clk_gpu() local
390 if (mdev->clock) in rk_platform_disable_clk_gpu()
391 clk_disable(mdev->clock); in rk_platform_disable_clk_gpu()
399 struct mali_device *mdev in rk_platform_enable_gpu_regulator() local
410 struct mali_device *mdev = dev_get_drvdata(dev); rk_platform_disable_gpu_regulator() local
[all...]
/device/soc/rockchip/common/vendor/drivers/gpu/drm/bridge/synopsys/
H A Ddw-hdmi-hdcp.c660 hdcp->mdev.minor = MISC_DYNAMIC_MINOR; in dw_hdmi_hdcp_probe()
661 hdcp->mdev.name = "hdmi_hdcp1x"; in dw_hdmi_hdcp_probe()
662 hdcp->mdev.mode = DEV_MOD; in dw_hdmi_hdcp_probe()
664 if (misc_register(&hdcp->mdev)) { in dw_hdmi_hdcp_probe()
669 ret = device_create_file(hdcp->mdev.this_device, &dev_attr_enable); in dw_hdmi_hdcp_probe()
676 ret = device_create_file(hdcp->mdev.this_device, &dev_attr_trytimes); in dw_hdmi_hdcp_probe()
683 ret = device_create_file(hdcp->mdev.this_device, &dev_attr_status); in dw_hdmi_hdcp_probe()
700 device_remove_file(hdcp->mdev.this_device, &dev_attr_trytimes); in dw_hdmi_hdcp_probe()
702 device_remove_file(hdcp->mdev.this_device, &dev_attr_enable); in dw_hdmi_hdcp_probe()
704 misc_deregister(&hdcp->mdev); in dw_hdmi_hdcp_probe()
[all...]
H A Ddw-hdmi-hdcp.h41 struct miscdevice mdev; member
/device/soc/rockchip/rk3588/kernel/drivers/gpu/drm/bridge/synopsys/
H A Ddw-hdmi-hdcp.c675 hdcp->mdev.minor = MISC_DYNAMIC_MINOR; in dw_hdmi_hdcp_probe()
676 hdcp->mdev.name = "hdmi_hdcp1x"; in dw_hdmi_hdcp_probe()
677 hdcp->mdev.mode = 0666; in dw_hdmi_hdcp_probe()
679 if (misc_register(&hdcp->mdev)) { in dw_hdmi_hdcp_probe()
684 ret = device_create_file(hdcp->mdev.this_device, &dev_attr_enable); in dw_hdmi_hdcp_probe()
691 ret = device_create_file(hdcp->mdev.this_device, &dev_attr_trytimes); in dw_hdmi_hdcp_probe()
698 ret = device_create_file(hdcp->mdev.this_device, &dev_attr_status); in dw_hdmi_hdcp_probe()
715 device_remove_file(hdcp->mdev.this_device, &dev_attr_trytimes); in dw_hdmi_hdcp_probe()
717 device_remove_file(hdcp->mdev.this_device, &dev_attr_enable); in dw_hdmi_hdcp_probe()
719 misc_deregister(&hdcp->mdev); in dw_hdmi_hdcp_probe()
[all...]
H A Ddw-hdmi-hdcp.h41 struct miscdevice mdev; member
/device/soc/rockchip/common/vendor/drivers/media/platform/rockchip/isp/
H A Dcsi.c22 struct media_device *mdev = entity->graph_obj.mdev; in get_remote_mipi_sensor() local
26 mutex_lock(&mdev->graph_mutex); in get_remote_mipi_sensor()
27 ret = media_graph_walk_init(&graph, mdev); in get_remote_mipi_sensor()
29 mutex_unlock(&mdev->graph_mutex); in get_remote_mipi_sensor()
40 mutex_unlock(&mdev->graph_mutex); in get_remote_mipi_sensor()
/device/soc/rockchip/rk3588/kernel/drivers/media/platform/rockchip/isp/
H A Dcsi.c23 struct media_device *mdev = entity->graph_obj.mdev; in get_remote_mipi_sensor() local
27 mutex_lock(&mdev->graph_mutex); in get_remote_mipi_sensor()
28 ret = media_graph_walk_init(&graph, mdev); in get_remote_mipi_sensor()
30 mutex_unlock(&mdev->graph_mutex); in get_remote_mipi_sensor()
40 mutex_unlock(&mdev->graph_mutex); in get_remote_mipi_sensor()
/device/soc/rockchip/common/sdk_linux/drivers/gpu/drm/bridge/synopsys/
H A Ddw-hdmi-hdcp.h41 struct miscdevice mdev; member
/device/soc/rockchip/rk3588/kernel/include/linux/
H A Ddw-hdmi-hdcp.h41 struct miscdevice mdev; member
/device/soc/rockchip/common/sdk_linux/drivers/media/usb/uvc/
H A Duvc_driver.c2094 media_device_cleanup(&dev->mdev); in uvc_delete()
2158 if (media_devnode_is_registered(dev->mdev.devnode)) { in uvc_unregister_video()
2159 media_device_unregister(&dev->mdev); in uvc_unregister_video()
2385 dev->mdev.dev = &intf->dev; in uvc_probe()
2386 strscpy(dev->mdev.model, dev->name, sizeof(dev->mdev.model)); in uvc_probe()
2388 strscpy(dev->mdev.serial, udev->serial, sizeof(dev->mdev.serial)); in uvc_probe()
2390 usb_make_path(udev, dev->mdev.bus_info, sizeof(dev->mdev in uvc_probe()
[all...]
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/umplock/
H A Dumplock_driver.c553 struct device *mdev; in umplock_device_initialize() local
554 mdev = device_create(umplock_device.umplock_class, NULL, umplock_dev, NULL, umplock_dev_name); in umplock_device_initialize()
555 if (!IS_ERR(mdev)) { in umplock_device_initialize()
559 err = PTR_ERR(mdev); in umplock_device_initialize()
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/device/
H A Dmali_kbase_device.c327 return misc_register(&kbdev->mdev); in kbase_device_misc_register()
332 misc_deregister(&kbdev->mdev); in kbase_device_misc_deregister()
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/device/
H A Dmali_kbase_device.c441 return misc_register(&kbdev->mdev); in kbase_device_misc_register()
446 misc_deregister(&kbdev->mdev); in kbase_device_misc_deregister()
/device/soc/rockchip/common/vendor/drivers/gpu/arm/midgard/
H A Dmali_kbase_core_linux.c1045 if (tmp->mdev.minor == minor || minor == -1) { in kbase_find_device()
4048 misc_deregister(&kbdev->mdev); in kbase_platform_device_remove()
4379 kbdev->mdev.minor = MISC_DYNAMIC_MINOR; in kbase_platform_device_probe()
4380 kbdev->mdev.name = kbdev->devname; in kbase_platform_device_probe()
4381 kbdev->mdev.fops = &kbase_fops; in kbase_platform_device_probe()
4382 kbdev->mdev.parent = get_device(kbdev->dev); in kbase_platform_device_probe()
4405 err = misc_register(&kbdev->mdev); in kbase_platform_device_probe()
4432 dev_info(kbdev->dev, "Probed as %s\n", dev_name(kbdev->mdev.this_device)); in kbase_platform_device_probe()

Completed in 23 milliseconds

12