Home
last modified time | relevance | path

Searched refs:attr_set (Results 1 - 25 of 33) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/cpufreq/
H A Dcpufreq_governor_attr_set.c32 struct gov_attr_set *attr_set = to_gov_attr_set(kobj); in governor_store() local
36 mutex_lock(&attr_set->update_lock); in governor_store()
37 ret = attr_set->usage_count ? gattr->store(attr_set, buf, count) : -EBUSY; in governor_store()
38 mutex_unlock(&attr_set->update_lock); in governor_store()
48 void gov_attr_set_init(struct gov_attr_set *attr_set, struct list_head *list_node) in gov_attr_set_init() argument
50 INIT_LIST_HEAD(&attr_set->policy_list); in gov_attr_set_init()
51 mutex_init(&attr_set->update_lock); in gov_attr_set_init()
52 attr_set->usage_count = 1; in gov_attr_set_init()
53 list_add(list_node, &attr_set in gov_attr_set_init()
57 gov_attr_set_get(struct gov_attr_set *attr_set, struct list_head *list_node) gov_attr_set_get() argument
66 gov_attr_set_put(struct gov_attr_set *attr_set, struct list_head *list_node) gov_attr_set_put() argument
[all...]
H A Dcpufreq_governor.h39 struct gov_attr_set attr_set; member
48 static inline struct dbs_data *to_dbs_data(struct gov_attr_set *attr_set) in to_dbs_data() argument
50 return container_of(attr_set, struct dbs_data, attr_set); in to_dbs_data()
55 (struct gov_attr_set *attr_set, char *buf) \
57 struct dbs_data *dbs_data = to_dbs_data(attr_set); \
64 (struct gov_attr_set *attr_set, char *buf) \
66 struct dbs_data *dbs_data = to_dbs_data(attr_set); \
179 ssize_t store_sampling_rate(struct gov_attr_set *attr_set, const char *buf,
H A Dcpufreq_conservative.c147 static ssize_t store_sampling_down_factor(struct gov_attr_set *attr_set, in store_sampling_down_factor() argument
150 struct dbs_data *dbs_data = to_dbs_data(attr_set); in store_sampling_down_factor()
162 static ssize_t store_up_threshold(struct gov_attr_set *attr_set, in store_up_threshold() argument
165 struct dbs_data *dbs_data = to_dbs_data(attr_set); in store_up_threshold()
178 static ssize_t store_down_threshold(struct gov_attr_set *attr_set, in store_down_threshold() argument
181 struct dbs_data *dbs_data = to_dbs_data(attr_set); in store_down_threshold()
196 static ssize_t store_ignore_nice_load(struct gov_attr_set *attr_set, in store_ignore_nice_load() argument
199 struct dbs_data *dbs_data = to_dbs_data(attr_set); in store_ignore_nice_load()
221 static ssize_t store_freq_step(struct gov_attr_set *attr_set, const char *buf, in store_freq_step() argument
224 struct dbs_data *dbs_data = to_dbs_data(attr_set); in store_freq_step()
[all...]
H A Dcpufreq_ondemand.c203 static ssize_t store_io_is_busy(struct gov_attr_set *attr_set, const char *buf, in store_io_is_busy() argument
206 struct dbs_data *dbs_data = to_dbs_data(attr_set); in store_io_is_busy()
221 static ssize_t store_up_threshold(struct gov_attr_set *attr_set, in store_up_threshold() argument
224 struct dbs_data *dbs_data = to_dbs_data(attr_set); in store_up_threshold()
238 static ssize_t store_sampling_down_factor(struct gov_attr_set *attr_set, in store_sampling_down_factor() argument
241 struct dbs_data *dbs_data = to_dbs_data(attr_set); in store_sampling_down_factor()
253 list_for_each_entry(policy_dbs, &attr_set->policy_list, list) { in store_sampling_down_factor()
266 static ssize_t store_ignore_nice_load(struct gov_attr_set *attr_set, in store_ignore_nice_load() argument
269 struct dbs_data *dbs_data = to_dbs_data(attr_set); in store_ignore_nice_load()
291 static ssize_t store_powersave_bias(struct gov_attr_set *attr_set, in store_powersave_bias() argument
[all...]
H A Dcpufreq_governor.c44 ssize_t store_sampling_rate(struct gov_attr_set *attr_set, const char *buf, in store_sampling_rate() argument
47 struct dbs_data *dbs_data = to_dbs_data(attr_set); in store_sampling_rate()
62 list_for_each_entry(policy_dbs, &attr_set->policy_list, list) { in store_sampling_rate()
99 list_for_each_entry(policy_dbs, &dbs_data->attr_set.policy_list, list) { in gov_update_cpu_data()
418 gov_attr_set_get(&dbs_data->attr_set, &policy_dbs->list); in cpufreq_dbs_governor_init()
428 gov_attr_set_init(&dbs_data->attr_set, &policy_dbs->list); in cpufreq_dbs_governor_init()
450 ret = kobject_init_and_add(&dbs_data->attr_set.kobj, &gov->kobj_type, in cpufreq_dbs_governor_init()
459 kobject_put(&dbs_data->attr_set.kobj); in cpufreq_dbs_governor_init()
487 count = gov_attr_set_put(&dbs_data->attr_set, &policy_dbs->list); in cpufreq_dbs_governor_exit()
/kernel/linux/linux-6.6/drivers/cpufreq/
H A Dcpufreq_governor_attr_set.c27 struct gov_attr_set *attr_set = to_gov_attr_set(kobj); in governor_store() local
31 mutex_lock(&attr_set->update_lock); in governor_store()
32 ret = attr_set->usage_count ? gattr->store(attr_set, buf, count) : -EBUSY; in governor_store()
33 mutex_unlock(&attr_set->update_lock); in governor_store()
43 void gov_attr_set_init(struct gov_attr_set *attr_set, struct list_head *list_node) in gov_attr_set_init() argument
45 INIT_LIST_HEAD(&attr_set->policy_list); in gov_attr_set_init()
46 mutex_init(&attr_set->update_lock); in gov_attr_set_init()
47 attr_set->usage_count = 1; in gov_attr_set_init()
48 list_add(list_node, &attr_set in gov_attr_set_init()
52 gov_attr_set_get(struct gov_attr_set *attr_set, struct list_head *list_node) gov_attr_set_get() argument
61 gov_attr_set_put(struct gov_attr_set *attr_set, struct list_head *list_node) gov_attr_set_put() argument
[all...]
H A Dcpufreq_governor.h39 struct gov_attr_set attr_set; member
49 static inline struct dbs_data *to_dbs_data(struct gov_attr_set *attr_set) in to_dbs_data() argument
51 return container_of(attr_set, struct dbs_data, attr_set); in to_dbs_data()
56 (struct gov_attr_set *attr_set, char *buf) \
58 struct dbs_data *dbs_data = to_dbs_data(attr_set); \
65 (struct gov_attr_set *attr_set, char *buf) \
67 struct dbs_data *dbs_data = to_dbs_data(attr_set); \
178 ssize_t sampling_rate_store(struct gov_attr_set *attr_set, const char *buf,
H A Dcpufreq_conservative.c149 static ssize_t sampling_down_factor_store(struct gov_attr_set *attr_set, in sampling_down_factor_store() argument
152 struct dbs_data *dbs_data = to_dbs_data(attr_set); in sampling_down_factor_store()
164 static ssize_t up_threshold_store(struct gov_attr_set *attr_set, in up_threshold_store() argument
167 struct dbs_data *dbs_data = to_dbs_data(attr_set); in up_threshold_store()
180 static ssize_t down_threshold_store(struct gov_attr_set *attr_set, in down_threshold_store() argument
183 struct dbs_data *dbs_data = to_dbs_data(attr_set); in down_threshold_store()
198 static ssize_t ignore_nice_load_store(struct gov_attr_set *attr_set, in ignore_nice_load_store() argument
201 struct dbs_data *dbs_data = to_dbs_data(attr_set); in ignore_nice_load_store()
223 static ssize_t freq_step_store(struct gov_attr_set *attr_set, const char *buf, in freq_step_store() argument
226 struct dbs_data *dbs_data = to_dbs_data(attr_set); in freq_step_store()
[all...]
H A Dcpufreq_ondemand.c205 static ssize_t io_is_busy_store(struct gov_attr_set *attr_set, const char *buf, in io_is_busy_store() argument
208 struct dbs_data *dbs_data = to_dbs_data(attr_set); in io_is_busy_store()
223 static ssize_t up_threshold_store(struct gov_attr_set *attr_set, in up_threshold_store() argument
226 struct dbs_data *dbs_data = to_dbs_data(attr_set); in up_threshold_store()
240 static ssize_t sampling_down_factor_store(struct gov_attr_set *attr_set, in sampling_down_factor_store() argument
243 struct dbs_data *dbs_data = to_dbs_data(attr_set); in sampling_down_factor_store()
255 list_for_each_entry(policy_dbs, &attr_set->policy_list, list) { in sampling_down_factor_store()
268 static ssize_t ignore_nice_load_store(struct gov_attr_set *attr_set, in ignore_nice_load_store() argument
271 struct dbs_data *dbs_data = to_dbs_data(attr_set); in ignore_nice_load_store()
293 static ssize_t powersave_bias_store(struct gov_attr_set *attr_set, in powersave_bias_store() argument
[all...]
H A Dcpufreq_governor.c44 ssize_t sampling_rate_store(struct gov_attr_set *attr_set, const char *buf, in sampling_rate_store() argument
47 struct dbs_data *dbs_data = to_dbs_data(attr_set); in sampling_rate_store()
62 list_for_each_entry(policy_dbs, &attr_set->policy_list, list) { in sampling_rate_store()
99 list_for_each_entry(policy_dbs, &dbs_data->attr_set.policy_list, list) { in gov_update_cpu_data()
427 gov_attr_set_get(&dbs_data->attr_set, &policy_dbs->list); in cpufreq_dbs_governor_init()
438 gov_attr_set_init(&dbs_data->attr_set, &policy_dbs->list); in cpufreq_dbs_governor_init()
461 ret = kobject_init_and_add(&dbs_data->attr_set.kobj, &gov->kobj_type, in cpufreq_dbs_governor_init()
470 kobject_put(&dbs_data->attr_set.kobj); in cpufreq_dbs_governor_init()
500 count = gov_attr_set_put(&dbs_data->attr_set, &policy_dbs->list); in cpufreq_dbs_governor_exit()
/kernel/linux/linux-6.6/tools/testing/selftests/mount_setattr/
H A Dmount_setattr_test.c345 .attr_set = MOUNT_ATTR_RDONLY | MOUNT_ATTR_NOSUID, in mount_setattr_thread()
443 .attr_set = (1U << 31), in TEST_F()
452 invalid_attr.attr_set = 0; in TEST_F()
462 invalid_attr.attr_set = (1U << 31); in TEST_F()
511 large_attr.attr3.attr_set = MOUNT_ATTR_RDONLY; in TEST_F()
515 large_attr.attr3.attr_set = 0; in TEST_F()
516 large_attr.attr1.attr_set = MOUNT_ATTR_RDONLY; in TEST_F()
540 .attr_set = MOUNT_ATTR_RDONLY | MOUNT_ATTR_NOEXEC | MOUNT_ATTR_RELATIME, in TEST_F()
576 .attr_set = MOUNT_ATTR_RDONLY | MOUNT_ATTR_NOEXEC | MOUNT_ATTR_RELATIME, in TEST_F()
639 attr.attr_set in TEST_F()
[all...]
/kernel/linux/linux-5.10/kernel/sched/
H A Dcpufreq_schedutil.c20 struct gov_attr_set attr_set; member
622 static inline struct sugov_tunables *to_sugov_tunables(struct gov_attr_set *attr_set) argument
624 return container_of(attr_set, struct sugov_tunables, attr_set);
627 static ssize_t rate_limit_us_show(struct gov_attr_set *attr_set, char *buf) argument
629 struct sugov_tunables *tunables = to_sugov_tunables(attr_set);
635 rate_limit_us_store(struct gov_attr_set *attr_set, const char *buf, size_t count) argument
637 struct sugov_tunables *tunables = to_sugov_tunables(attr_set);
646 list_for_each_entry(sg_policy, &attr_set->policy_list, tunables_hook)
662 struct gov_attr_set *attr_set local
[all...]
/kernel/linux/linux-6.6/kernel/sched/
H A Dcpufreq_schedutil.c14 struct gov_attr_set attr_set; member
554 static inline struct sugov_tunables *to_sugov_tunables(struct gov_attr_set *attr_set) argument
556 return container_of(attr_set, struct sugov_tunables, attr_set);
559 static ssize_t rate_limit_us_show(struct gov_attr_set *attr_set, char *buf) argument
561 struct sugov_tunables *tunables = to_sugov_tunables(attr_set);
567 rate_limit_us_store(struct gov_attr_set *attr_set, const char *buf, size_t count) argument
569 struct sugov_tunables *tunables = to_sugov_tunables(attr_set);
578 list_for_each_entry(sg_policy, &attr_set->policy_list, tunables_hook)
594 struct gov_attr_set *attr_set local
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/
H A Dnouveau_hwmon.c73 therm->attr_set(therm, NVKM_THERM_ATTR_THRS_FAN_BOOST, in nouveau_hwmon_set_temp1_auto_point1_temp()
106 therm->attr_set(therm, NVKM_THERM_ATTR_THRS_FAN_BOOST_HYST, in nouveau_hwmon_set_temp1_auto_point1_temp_hyst()
160 ret = therm->attr_set(therm, NVKM_THERM_ATTR_FAN_MIN_DUTY, value); in nouveau_hwmon_set_pwm1_min()
183 ret = therm->attr_set(therm, NVKM_THERM_ATTR_FAN_MAX_DUTY, value); in nouveau_hwmon_set_pwm1_max()
581 if (!therm || !therm->attr_set) in nouveau_temp_write()
586 return therm->attr_set(therm, NVKM_THERM_ATTR_THRS_DOWN_CLK, in nouveau_temp_write()
589 return therm->attr_set(therm, NVKM_THERM_ATTR_THRS_DOWN_CLK_HYST, in nouveau_temp_write()
592 return therm->attr_set(therm, NVKM_THERM_ATTR_THRS_CRITICAL, in nouveau_temp_write()
595 return therm->attr_set(therm, NVKM_THERM_ATTR_THRS_CRITICAL_HYST, in nouveau_temp_write()
598 return therm->attr_set(ther in nouveau_temp_write()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/
H A Dnouveau_hwmon.c73 therm->attr_set(therm, NVKM_THERM_ATTR_THRS_FAN_BOOST, in nouveau_hwmon_set_temp1_auto_point1_temp()
106 therm->attr_set(therm, NVKM_THERM_ATTR_THRS_FAN_BOOST_HYST, in nouveau_hwmon_set_temp1_auto_point1_temp_hyst()
160 ret = therm->attr_set(therm, NVKM_THERM_ATTR_FAN_MIN_DUTY, value); in nouveau_hwmon_set_pwm1_min()
183 ret = therm->attr_set(therm, NVKM_THERM_ATTR_FAN_MAX_DUTY, value); in nouveau_hwmon_set_pwm1_max()
530 if (!therm || !therm->attr_set) in nouveau_temp_write()
535 return therm->attr_set(therm, NVKM_THERM_ATTR_THRS_DOWN_CLK, in nouveau_temp_write()
538 return therm->attr_set(therm, NVKM_THERM_ATTR_THRS_DOWN_CLK_HYST, in nouveau_temp_write()
541 return therm->attr_set(therm, NVKM_THERM_ATTR_THRS_CRITICAL, in nouveau_temp_write()
544 return therm->attr_set(therm, NVKM_THERM_ATTR_THRS_CRITICAL_HYST, in nouveau_temp_write()
547 return therm->attr_set(ther in nouveau_temp_write()
[all...]
/kernel/linux/linux-6.6/tools/net/ynl/lib/
H A Dnlspec.py153 attr_set Attribute Set containing this attr
161 def __init__(self, family, attr_set, yaml, value):
165 self.attr_set = attr_set
288 attr_set attribute set name
306 self.attr_set = None
307 delattr(self, "attr_set")
322 self.attr_set = self.family.attr_sets[attr_set_name]
523 attr_set = self.new_attr_set(elem)
524 self.attr_sets[elem['name']] = attr_set
[all...]
H A Dynl.py551 def _decode_extack_path(self, attrs, attr_set, offset, target):
554 attr_spec = attr_set.attrs_by_val[attr.type]
556 raise Exception(f"Space '{attr_set.name}' has no attribute with value '{attr.type}'")
581 msg = self.nlproto.decode(self, NlMsg(request, 0, op.attr_set))
583 path = self._decode_extack_path(msg.raw_attrs, op.attr_set, offset,
618 attrs = self._decode(decoded.raw_attrs, op.attr_set.name)
680 msg += self._add_attr(op.attr_set.name, name, value)
689 nms = NlMsgs(reply, attr_space=op.attr_set)
714 rsp_msg = self._decode(decoded.raw_attrs, op.attr_set.name)
/kernel/linux/linux-6.6/tools/net/ynl/
H A Dynl-gen-c.py37 def __init__(self, family, attr_set, attr, value):
38 super().__init__(family, attr_set, attr, value)
41 self.attr_set = attr_set
71 enum_name = f"{self.attr_set.name_prefix}{self.name}"
255 def __init__(self, family, attr_set, attr, value):
256 super().__init__(family, attr_set, attr, value)
468 def __init__(self, family, attr_set, attr, value, base_type):
469 super().__init__(family, attr_set, attr, value)
598 self.attr_set
[all...]
/kernel/linux/linux-5.10/include/linux/
H A Dcpufreq.h646 void gov_attr_set_init(struct gov_attr_set *attr_set, struct list_head *list_node);
647 void gov_attr_set_get(struct gov_attr_set *attr_set, struct list_head *list_node);
648 unsigned int gov_attr_set_put(struct gov_attr_set *attr_set, struct list_head *list_node);
653 ssize_t (*show)(struct gov_attr_set *attr_set, char *buf);
654 ssize_t (*store)(struct gov_attr_set *attr_set, const char *buf,
/kernel/linux/linux-5.10/arch/arm64/kvm/hyp/
H A Dpgtable.c710 kvm_pte_t attr_set; member
729 pte |= data->attr_set; in stage2_attr_walker()
743 u64 size, kvm_pte_t attr_set, in stage2_update_leaf_attrs()
750 .attr_set = attr_set & attr_mask, in stage2_update_leaf_attrs()
742 stage2_update_leaf_attrs(struct kvm_pgtable *pgt, u64 addr, u64 size, kvm_pte_t attr_set, kvm_pte_t attr_clr, kvm_pte_t *orig_pte, u32 *level) stage2_update_leaf_attrs() argument
/kernel/linux/linux-6.6/include/linux/
H A Dcpufreq.h667 void gov_attr_set_init(struct gov_attr_set *attr_set, struct list_head *list_node);
668 void gov_attr_set_get(struct gov_attr_set *attr_set, struct list_head *list_node);
669 unsigned int gov_attr_set_put(struct gov_attr_set *attr_set, struct list_head *list_node);
674 ssize_t (*show)(struct gov_attr_set *attr_set, char *buf);
675 ssize_t (*store)(struct gov_attr_set *attr_set, const char *buf,
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/include/nvkm/subdev/
H A Dtherm.h97 int (*attr_set)(struct nvkm_therm *, enum nvkm_therm_attr_type, int); member
/kernel/linux/linux-6.6/include/uapi/linux/
H A Dmount.h132 __u64 attr_set; member
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/include/nvkm/subdev/
H A Dtherm.h97 int (*attr_set)(struct nvkm_therm *, enum nvkm_therm_attr_type, int); member
/kernel/linux/linux-6.6/tools/include/uapi/linux/
H A Dmount.h131 __u64 attr_set; member

Completed in 21 milliseconds

12