Lines Matching refs:kdev

41 static inline struct drm_i915_private *kdev_minor_to_i915(struct device *kdev)  in kdev_minor_to_i915()  argument
43 struct drm_minor *minor = dev_get_drvdata(kdev); in kdev_minor_to_i915()
60 static ssize_t rc6_enable_show(struct device *kdev, in rc6_enable_show() argument
63 struct drm_i915_private *dev_priv = kdev_minor_to_i915(kdev); in rc6_enable_show()
77 static ssize_t rc6_residency_ms_show(struct device *kdev, in rc6_residency_ms_show() argument
80 struct drm_i915_private *dev_priv = kdev_minor_to_i915(kdev); in rc6_residency_ms_show()
85 static ssize_t rc6p_residency_ms_show(struct device *kdev, in rc6p_residency_ms_show() argument
88 struct drm_i915_private *dev_priv = kdev_minor_to_i915(kdev); in rc6p_residency_ms_show()
93 static ssize_t rc6pp_residency_ms_show(struct device *kdev, in rc6pp_residency_ms_show() argument
96 struct drm_i915_private *dev_priv = kdev_minor_to_i915(kdev); in rc6pp_residency_ms_show()
101 static ssize_t media_rc6_residency_ms_show(struct device *kdev, in media_rc6_residency_ms_show() argument
104 struct drm_i915_private *dev_priv = kdev_minor_to_i915(kdev); in media_rc6_residency_ms_show()
167 struct device *kdev = kobj_to_dev(kobj); in i915_l3_read() local
168 struct drm_i915_private *i915 = kdev_minor_to_i915(kdev); in i915_l3_read()
195 struct device *kdev = kobj_to_dev(kobj); in i915_l3_write() local
196 struct drm_i915_private *i915 = kdev_minor_to_i915(kdev); in i915_l3_write()
259 static ssize_t gt_act_freq_mhz_show(struct device *kdev, in gt_act_freq_mhz_show() argument
262 struct drm_i915_private *i915 = kdev_minor_to_i915(kdev); in gt_act_freq_mhz_show()
268 static ssize_t gt_cur_freq_mhz_show(struct device *kdev, in gt_cur_freq_mhz_show() argument
271 struct drm_i915_private *i915 = kdev_minor_to_i915(kdev); in gt_cur_freq_mhz_show()
277 static ssize_t gt_boost_freq_mhz_show(struct device *kdev, struct device_attribute *attr, char *buf) in gt_boost_freq_mhz_show() argument
279 struct drm_i915_private *i915 = kdev_minor_to_i915(kdev); in gt_boost_freq_mhz_show()
285 static ssize_t gt_boost_freq_mhz_store(struct device *kdev, in gt_boost_freq_mhz_store() argument
289 struct drm_i915_private *dev_priv = kdev_minor_to_i915(kdev); in gt_boost_freq_mhz_store()
316 static ssize_t vlv_rpe_freq_mhz_show(struct device *kdev, in vlv_rpe_freq_mhz_show() argument
319 struct drm_i915_private *dev_priv = kdev_minor_to_i915(kdev); in vlv_rpe_freq_mhz_show()
325 static ssize_t gt_max_freq_mhz_show(struct device *kdev, struct device_attribute *attr, char *buf) in gt_max_freq_mhz_show() argument
327 struct drm_i915_private *dev_priv = kdev_minor_to_i915(kdev); in gt_max_freq_mhz_show()
334 static ssize_t gt_max_freq_mhz_store(struct device *kdev, in gt_max_freq_mhz_store() argument
338 struct drm_i915_private *dev_priv = kdev_minor_to_i915(kdev); in gt_max_freq_mhz_store()
353 static ssize_t gt_min_freq_mhz_show(struct device *kdev, struct device_attribute *attr, char *buf) in gt_min_freq_mhz_show() argument
355 struct drm_i915_private *i915 = kdev_minor_to_i915(kdev); in gt_min_freq_mhz_show()
362 static ssize_t gt_min_freq_mhz_store(struct device *kdev, in gt_min_freq_mhz_store() argument
366 struct drm_i915_private *i915 = kdev_minor_to_i915(kdev); in gt_min_freq_mhz_store()
388 static ssize_t gt_rp_mhz_show(struct device *kdev, struct device_attribute *attr, char *buf);
394 static ssize_t gt_rp_mhz_show(struct device *kdev, struct device_attribute *attr, char *buf) in gt_rp_mhz_show() argument
396 struct drm_i915_private *dev_priv = kdev_minor_to_i915(kdev); in gt_rp_mhz_show()
444 struct device *kdev = kobj_to_dev(kobj); in error_state_read() local
445 struct drm_i915_private *i915 = kdev_minor_to_i915(kdev); in error_state_read()
470 struct device *kdev = kobj_to_dev(kobj); in error_state_write() local
471 struct drm_i915_private *dev_priv = kdev_minor_to_i915(kdev); in error_state_write()
487 static void i915_setup_error_capture(struct device *kdev) in i915_setup_error_capture() argument
489 if (sysfs_create_bin_file(&kdev->kobj, &error_state_attr)) in i915_setup_error_capture()
493 static void i915_teardown_error_capture(struct device *kdev) in i915_teardown_error_capture() argument
495 sysfs_remove_bin_file(&kdev->kobj, &error_state_attr); in i915_teardown_error_capture()
498 static void i915_setup_error_capture(struct device *kdev) {} in i915_setup_error_capture() argument
499 static void i915_teardown_error_capture(struct device *kdev) {} in i915_teardown_error_capture() argument
504 struct device *kdev = dev_priv->drm.primary->kdev; in i915_setup_sysfs() local
509 ret = sysfs_merge_group(&kdev->kobj, in i915_setup_sysfs()
516 ret = sysfs_merge_group(&kdev->kobj, in i915_setup_sysfs()
523 ret = sysfs_merge_group(&kdev->kobj, in i915_setup_sysfs()
531 ret = device_create_bin_file(kdev, &dpf_attrs); in i915_setup_sysfs()
537 ret = device_create_bin_file(kdev, in i915_setup_sysfs()
547 ret = sysfs_create_files(&kdev->kobj, vlv_attrs); in i915_setup_sysfs()
549 ret = sysfs_create_files(&kdev->kobj, gen6_attrs); in i915_setup_sysfs()
553 i915_setup_error_capture(kdev); in i915_setup_sysfs()
560 struct device *kdev = dev_priv->drm.primary->kdev; in i915_teardown_sysfs() local
562 i915_teardown_error_capture(kdev); in i915_teardown_sysfs()
565 sysfs_remove_files(&kdev->kobj, vlv_attrs); in i915_teardown_sysfs()
567 sysfs_remove_files(&kdev->kobj, gen6_attrs); in i915_teardown_sysfs()
568 device_remove_bin_file(kdev, &dpf_attrs_1); in i915_teardown_sysfs()
569 device_remove_bin_file(kdev, &dpf_attrs); in i915_teardown_sysfs()
571 sysfs_unmerge_group(&kdev->kobj, &rc6_attr_group); in i915_teardown_sysfs()
572 sysfs_unmerge_group(&kdev->kobj, &rc6p_attr_group); in i915_teardown_sysfs()