/Linux-v4.19/drivers/cpufreq/ |
D | cpufreq_governor_attr_set.c | 35 struct gov_attr_set *attr_set = to_gov_attr_set(kobj); in governor_store() local 39 mutex_lock(&attr_set->update_lock); in governor_store() 40 ret = attr_set->usage_count ? gattr->store(attr_set, buf, count) : -EBUSY; in governor_store() 41 mutex_unlock(&attr_set->update_lock); in governor_store() 51 void gov_attr_set_init(struct gov_attr_set *attr_set, struct list_head *list_node) in gov_attr_set_init() argument 53 INIT_LIST_HEAD(&attr_set->policy_list); in gov_attr_set_init() 54 mutex_init(&attr_set->update_lock); in gov_attr_set_init() 55 attr_set->usage_count = 1; in gov_attr_set_init() 56 list_add(list_node, &attr_set->policy_list); in gov_attr_set_init() 60 void gov_attr_set_get(struct gov_attr_set *attr_set, struct list_head *list_node) in gov_attr_set_get() argument [all …]
|
D | cpufreq_governor.h | 42 struct gov_attr_set attr_set; member 51 static inline struct dbs_data *to_dbs_data(struct gov_attr_set *attr_set) in to_dbs_data() argument 53 return container_of(attr_set, struct dbs_data, attr_set); in to_dbs_data() 58 (struct gov_attr_set *attr_set, char *buf) \ 60 struct dbs_data *dbs_data = to_dbs_data(attr_set); \ 67 (struct gov_attr_set *attr_set, char *buf) \ 69 struct dbs_data *dbs_data = to_dbs_data(attr_set); \ 182 ssize_t store_sampling_rate(struct gov_attr_set *attr_set, const char *buf,
|
D | cpufreq_conservative.c | 148 static ssize_t store_sampling_down_factor(struct gov_attr_set *attr_set, in store_sampling_down_factor() argument 151 struct dbs_data *dbs_data = to_dbs_data(attr_set); in store_sampling_down_factor() 163 static ssize_t store_up_threshold(struct gov_attr_set *attr_set, in store_up_threshold() argument 166 struct dbs_data *dbs_data = to_dbs_data(attr_set); in store_up_threshold() 179 static ssize_t store_down_threshold(struct gov_attr_set *attr_set, in store_down_threshold() argument 182 struct dbs_data *dbs_data = to_dbs_data(attr_set); in store_down_threshold() 197 static ssize_t store_ignore_nice_load(struct gov_attr_set *attr_set, in store_ignore_nice_load() argument 200 struct dbs_data *dbs_data = to_dbs_data(attr_set); in store_ignore_nice_load() 222 static ssize_t store_freq_step(struct gov_attr_set *attr_set, const char *buf, in store_freq_step() argument 225 struct dbs_data *dbs_data = to_dbs_data(attr_set); in store_freq_step()
|
D | cpufreq_ondemand.c | 206 static ssize_t store_io_is_busy(struct gov_attr_set *attr_set, const char *buf, in store_io_is_busy() argument 209 struct dbs_data *dbs_data = to_dbs_data(attr_set); in store_io_is_busy() 224 static ssize_t store_up_threshold(struct gov_attr_set *attr_set, in store_up_threshold() argument 227 struct dbs_data *dbs_data = to_dbs_data(attr_set); in store_up_threshold() 241 static ssize_t store_sampling_down_factor(struct gov_attr_set *attr_set, in store_sampling_down_factor() argument 244 struct dbs_data *dbs_data = to_dbs_data(attr_set); in store_sampling_down_factor() 256 list_for_each_entry(policy_dbs, &attr_set->policy_list, list) { in store_sampling_down_factor() 269 static ssize_t store_ignore_nice_load(struct gov_attr_set *attr_set, in store_ignore_nice_load() argument 272 struct dbs_data *dbs_data = to_dbs_data(attr_set); in store_ignore_nice_load() 294 static ssize_t store_powersave_bias(struct gov_attr_set *attr_set, in store_powersave_bias() argument [all …]
|
D | cpufreq_governor.c | 47 ssize_t store_sampling_rate(struct gov_attr_set *attr_set, const char *buf, in store_sampling_rate() argument 50 struct dbs_data *dbs_data = to_dbs_data(attr_set); in store_sampling_rate() 65 list_for_each_entry(policy_dbs, &attr_set->policy_list, list) { in store_sampling_rate() 102 list_for_each_entry(policy_dbs, &dbs_data->attr_set.policy_list, list) { in gov_update_cpu_data() 421 gov_attr_set_get(&dbs_data->attr_set, &policy_dbs->list); in cpufreq_dbs_governor_init() 431 gov_attr_set_init(&dbs_data->attr_set, &policy_dbs->list); in cpufreq_dbs_governor_init() 453 ret = kobject_init_and_add(&dbs_data->attr_set.kobj, &gov->kobj_type, in cpufreq_dbs_governor_init() 488 count = gov_attr_set_put(&dbs_data->attr_set, &policy_dbs->list); in cpufreq_dbs_governor_exit()
|
/Linux-v4.19/drivers/gpu/drm/nouveau/ |
D | nouveau_hwmon.c | 75 therm->attr_set(therm, NVKM_THERM_ATTR_THRS_FAN_BOOST, in nouveau_hwmon_set_temp1_auto_point1_temp() 108 therm->attr_set(therm, NVKM_THERM_ATTR_THRS_FAN_BOOST_HYST, in nouveau_hwmon_set_temp1_auto_point1_temp_hyst() 162 ret = therm->attr_set(therm, NVKM_THERM_ATTR_FAN_MIN_DUTY, value); in nouveau_hwmon_set_pwm1_min() 185 ret = therm->attr_set(therm, NVKM_THERM_ATTR_FAN_MAX_DUTY, value); in nouveau_hwmon_set_pwm1_max() 573 if (!therm || !therm->attr_set) in nouveau_temp_write() 578 return therm->attr_set(therm, NVKM_THERM_ATTR_THRS_DOWN_CLK, in nouveau_temp_write() 581 return therm->attr_set(therm, NVKM_THERM_ATTR_THRS_DOWN_CLK_HYST, in nouveau_temp_write() 584 return therm->attr_set(therm, NVKM_THERM_ATTR_THRS_CRITICAL, in nouveau_temp_write() 587 return therm->attr_set(therm, NVKM_THERM_ATTR_THRS_CRITICAL_HYST, in nouveau_temp_write() 590 return therm->attr_set(therm, NVKM_THERM_ATTR_THRS_SHUTDOWN, in nouveau_temp_write() [all …]
|
/Linux-v4.19/kernel/sched/ |
D | cpufreq_schedutil.c | 19 struct gov_attr_set attr_set; member 560 static inline struct sugov_tunables *to_sugov_tunables(struct gov_attr_set *attr_set) in to_sugov_tunables() argument 562 return container_of(attr_set, struct sugov_tunables, attr_set); in to_sugov_tunables() 565 static ssize_t rate_limit_us_show(struct gov_attr_set *attr_set, char *buf) in rate_limit_us_show() argument 567 struct sugov_tunables *tunables = to_sugov_tunables(attr_set); in rate_limit_us_show() 573 rate_limit_us_store(struct gov_attr_set *attr_set, const char *buf, size_t count) in rate_limit_us_store() argument 575 struct sugov_tunables *tunables = to_sugov_tunables(attr_set); in rate_limit_us_store() 584 list_for_each_entry(sg_policy, &attr_set->policy_list, tunables_hook) in rate_limit_us_store() 692 gov_attr_set_init(&tunables->attr_set, &sg_policy->tunables_hook); in sugov_tunables_alloc() 739 gov_attr_set_get(&global_tunables->attr_set, &sg_policy->tunables_hook); in sugov_init() [all …]
|
/Linux-v4.19/include/linux/ |
D | cpufreq.h | 562 void gov_attr_set_init(struct gov_attr_set *attr_set, struct list_head *list_node); 563 void gov_attr_set_get(struct gov_attr_set *attr_set, struct list_head *list_node); 564 unsigned int gov_attr_set_put(struct gov_attr_set *attr_set, struct list_head *list_node); 569 ssize_t (*show)(struct gov_attr_set *attr_set, char *buf); 570 ssize_t (*store)(struct gov_attr_set *attr_set, const char *buf,
|
/Linux-v4.19/drivers/gpu/drm/nouveau/include/nvkm/subdev/ |
D | therm.h | 97 int (*attr_set)(struct nvkm_therm *, enum nvkm_therm_attr_type, int); member
|
/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/subdev/therm/ |
D | base.c | 435 therm->attr_set = nvkm_therm_attr_set; in nvkm_therm_ctor()
|
/Linux-v4.19/drivers/scsi/ufs/ |
D | ufshcd.h | 808 u8 attr_set, u32 mib_val, u8 peer);
|
D | ufshcd.c | 3577 u8 attr_set, u32 mib_val, u8 peer) in ufshcd_dme_set_attr() argument 3591 uic_cmd.argument2 = UIC_ARG_ATTR_TYPE(attr_set); in ufshcd_dme_set_attr()
|
/Linux-v4.19/Documentation/networking/ |
D | switchdev.txt | 380 For switchdev ops attr_set and obj_add, there is a 2 phase transaction model
|