Lines Matching refs:attr

28 sysfs_gt_attribute_w_func(struct kobject *kobj, struct attribute *attr,  in sysfs_gt_attribute_w_func()  argument
45 gt = intel_gt_sysfs_get_drvdata(kobj, attr->name); in sysfs_gt_attribute_w_func()
53 sysfs_gt_attribute_r_func(struct kobject *kobj, struct attribute *attr, in sysfs_gt_attribute_r_func() argument
83 gt = intel_gt_sysfs_get_drvdata(kobj, attr->name); in sysfs_gt_attribute_r_func()
100 struct attribute *attr, char *buff) \
102 u32 val = sysfs_gt_attribute_r_##_attr_type##_func(kobj, attr, \
108 struct kobj_attribute *attr, char *buff) \
110 return _name ##_show_common(kobj, &attr->attr, buff); \
113 struct device_attribute *attr, char *buff) \
115 return _name##_show_common(&dev->kobj, &attr->attr, buff); \
120 struct attribute *attr, \
130 ret = sysfs_gt_attribute_w_func(kobj, attr, _func, val); \
135 struct kobj_attribute *attr, const char *buff, \
138 return _name##_store_common(kobj, &attr->attr, buff, count); \
141 struct device_attribute *attr, \
144 return _name##_store_common(&dev->kobj, &attr->attr, buff, count); \
180 struct kobj_attribute *attr, in rc6_enable_show() argument
183 struct intel_gt *gt = intel_gt_sysfs_get_drvdata(kobj, attr->attr.name); in rc6_enable_show()
189 struct device_attribute *attr, in rc6_enable_dev_show() argument
192 struct intel_gt *gt = intel_gt_sysfs_get_drvdata(&dev->kobj, attr->attr.name); in rc6_enable_dev_show()
229 &attr_rc6_enable.attr,
230 &attr_rc6_residency_ms.attr,
235 &attr_rc6p_residency_ms.attr,
236 &attr_rc6pp_residency_ms.attr,
241 &attr_media_rc6_residency_ms.attr,
246 &dev_attr_rc6_enable.attr,
247 &dev_attr_rc6_residency_ms.attr,
252 &dev_attr_rc6p_residency_ms.attr,
253 &dev_attr_rc6pp_residency_ms.attr,
258 &dev_attr_media_rc6_residency_ms.attr,
413 &p##attr_##s##_act_freq_mhz.attr, \
414 &p##attr_##s##_cur_freq_mhz.attr, \
415 &p##attr_##s##_boost_freq_mhz.attr, \
416 &p##attr_##s##_max_freq_mhz.attr, \
417 &p##attr_##s##_min_freq_mhz.attr, \
418 &p##attr_##s##_RP0_freq_mhz.attr, \
419 &p##attr_##s##_RP1_freq_mhz.attr, \
420 &p##attr_##s##_RPn_freq_mhz.attr, \
431 struct kobj_attribute *attr, in punit_req_freq_mhz_show() argument
434 struct intel_gt *gt = intel_gt_sysfs_get_drvdata(kobj, attr->attr.name); in punit_req_freq_mhz_show()
441 struct kobj_attribute *attr, in slpc_ignore_eff_freq_show() argument
444 struct intel_gt *gt = intel_gt_sysfs_get_drvdata(kobj, attr->attr.name); in slpc_ignore_eff_freq_show()
451 struct kobj_attribute *attr, in slpc_ignore_eff_freq_store() argument
454 struct intel_gt *gt = intel_gt_sysfs_get_drvdata(kobj, attr->attr.name); in slpc_ignore_eff_freq_store()
468 struct attribute attr; member
469 ssize_t (*show)(struct kobject *kobj, struct kobj_attribute *attr,
476 struct kobj_attribute *attr, in throttle_reason_bool_show() argument
479 struct intel_gt *gt = intel_gt_sysfs_get_drvdata(kobj, attr->attr.name); in throttle_reason_bool_show()
481 (struct intel_gt_bool_throttle_attr *) attr; in throttle_reason_bool_show()
489 .attr = { .name = __stringify(sysfs_func__), .mode = 0444 }, \
507 &attr_throttle_reason_status.attr,
508 &attr_throttle_reason_pl1.attr,
509 &attr_throttle_reason_pl2.attr,
510 &attr_throttle_reason_pl4.attr,
511 &attr_throttle_reason_thermal.attr,
512 &attr_throttle_reason_prochot.attr,
513 &attr_throttle_reason_ratl.attr,
514 &attr_throttle_reason_vr_thermalert.attr,
515 &attr_throttle_reason_vr_tdc.attr,
559 struct kobj_attribute *attr, in freq_factor_scale_show() argument
572 struct kobj_attribute *attr, in media_freq_factor_show() argument
575 struct intel_gt *gt = intel_gt_sysfs_get_drvdata(kobj, attr->attr.name); in media_freq_factor_show()
594 struct kobj_attribute *attr, in media_freq_factor_store() argument
597 struct intel_gt *gt = intel_gt_sysfs_get_drvdata(kobj, attr->attr.name); in media_freq_factor_store()
623 struct kobj_attribute *attr, in media_RP0_freq_mhz_show() argument
626 struct intel_gt *gt = intel_gt_sysfs_get_drvdata(kobj, attr->attr.name); in media_RP0_freq_mhz_show()
644 struct kobj_attribute *attr, in media_RPn_freq_mhz_show() argument
647 struct intel_gt *gt = intel_gt_sysfs_get_drvdata(kobj, attr->attr.name); in media_RPn_freq_mhz_show()
673 &attr_media_freq_factor.attr,
674 &attr_media_freq_factor_scale.attr,
675 &attr_media_RP0_freq_mhz.attr,
676 &attr_media_RPn_freq_mhz.attr,
681 rps_up_threshold_pct_show(struct kobject *kobj, struct kobj_attribute *attr, in rps_up_threshold_pct_show() argument
684 struct intel_gt *gt = intel_gt_sysfs_get_drvdata(kobj, attr->attr.name); in rps_up_threshold_pct_show()
691 rps_up_threshold_pct_store(struct kobject *kobj, struct kobj_attribute *attr, in rps_up_threshold_pct_store() argument
694 struct intel_gt *gt = intel_gt_sysfs_get_drvdata(kobj, attr->attr.name); in rps_up_threshold_pct_store()
715 rps_down_threshold_pct_show(struct kobject *kobj, struct kobj_attribute *attr, in rps_down_threshold_pct_show() argument
718 struct intel_gt *gt = intel_gt_sysfs_get_drvdata(kobj, attr->attr.name); in rps_down_threshold_pct_show()
725 rps_down_threshold_pct_store(struct kobject *kobj, struct kobj_attribute *attr, in rps_down_threshold_pct_store() argument
728 struct intel_gt *gt = intel_gt_sysfs_get_drvdata(kobj, attr->attr.name); in rps_down_threshold_pct_store()
749 &rps_up_threshold_pct.attr,
750 &rps_down_threshold_pct.attr,
755 default_min_freq_mhz_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in default_min_freq_mhz_show() argument
766 default_max_freq_mhz_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in default_max_freq_mhz_show() argument
778 struct kobj_attribute *attr, in default_rps_up_threshold_pct_show() argument
791 struct kobj_attribute *attr, in default_rps_down_threshold_pct_show() argument
803 &default_min_freq_mhz.attr,
804 &default_max_freq_mhz.attr,
805 &default_rps_up_threshold_pct.attr,
806 &default_rps_down_threshold_pct.attr,
821 vlv_attr = &attr_rps_vlv_rpe_freq_mhz.attr; in intel_sysfs_rps_init()
824 vlv_attr = &dev_attr_gt_vlv_rpe_freq_mhz.attr; in intel_sysfs_rps_init()
857 ret = sysfs_create_file(kobj, &attr_punit_req_freq_mhz.attr); in intel_gt_sysfs_pm_init()
862 ret = sysfs_create_file(kobj, &attr_slpc_ignore_eff_freq.attr); in intel_gt_sysfs_pm_init()