Home
last modified time | relevance | path

Searched refs:attr_set (Results 1 – 20 of 20) sorted by relevance

/linux-6.3-rc2/drivers/cpufreq/
A Dcpufreq_governor_attr_set.c31 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()
46 mutex_init(&attr_set->update_lock); in gov_attr_set_init()
47 attr_set->usage_count = 1; in gov_attr_set_init()
54 mutex_lock(&attr_set->update_lock); in gov_attr_set_get()
55 attr_set->usage_count++; in gov_attr_set_get()
57 mutex_unlock(&attr_set->update_lock); in gov_attr_set_get()
65 mutex_lock(&attr_set->update_lock); in gov_attr_set_put()
67 count = --attr_set->usage_count; in gov_attr_set_put()
[all …]
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,
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()
A Dcpufreq_ondemand.c208 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
296 struct dbs_data *dbs_data = to_dbs_data(attr_set); in powersave_bias_store()
[all …]
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()
498 count = gov_attr_set_put(&dbs_data->attr_set, &policy_dbs->list); in cpufreq_dbs_governor_exit()
/linux-6.3-rc2/tools/testing/selftests/mount_setattr/
A Dmount_setattr_test.c442 .attr_set = (1U << 31), in TEST_F()
451 invalid_attr.attr_set = 0; in TEST_F()
514 large_attr.attr3.attr_set = 0; in TEST_F()
778 attr.attr_set = 0; in TEST_F()
1071 .attr_set = MOUNT_ATTR_IDMAP, in TEST_F()
1089 .attr_set = MOUNT_ATTR_IDMAP, in TEST_F()
1108 .attr_set = MOUNT_ATTR_IDMAP, in TEST_F()
1131 .attr_set = MOUNT_ATTR_IDMAP, in TEST_F()
1240 .attr_set = MOUNT_ATTR_IDMAP, in TEST_F()
1270 .attr_set = MOUNT_ATTR_IDMAP, in TEST_F()
[all …]
/linux-6.3-rc2/kernel/sched/
A Dcpufreq_schedutil.c12 struct gov_attr_set attr_set; member
506 return container_of(attr_set, struct sugov_tunables, attr_set); in to_sugov_tunables()
511 struct sugov_tunables *tunables = to_sugov_tunables(attr_set); in rate_limit_us_show()
519 struct sugov_tunables *tunables = to_sugov_tunables(attr_set); in rate_limit_us_store()
528 list_for_each_entry(sg_policy, &attr_set->policy_list, tunables_hook) in rate_limit_us_store()
544 struct gov_attr_set *attr_set = to_gov_attr_set(kobj); in sugov_tunables_free() local
546 kfree(to_sugov_tunables(attr_set)); in sugov_tunables_free()
645 gov_attr_set_init(&tunables->attr_set, &sg_policy->tunables_hook); in sugov_tunables_alloc()
690 gov_attr_set_get(&global_tunables->attr_set, &sg_policy->tunables_hook); in sugov_init()
716 kobject_put(&tunables->attr_set.kobj); in sugov_init()
[all …]
/linux-6.3-rc2/drivers/gpu/drm/nouveau/
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()
541 return therm->attr_set(therm, NVKM_THERM_ATTR_THRS_CRITICAL, in nouveau_temp_write()
547 return therm->attr_set(therm, NVKM_THERM_ATTR_THRS_SHUTDOWN, in nouveau_temp_write()
564 if (!therm || !therm->attr_set) in nouveau_pwm_write()
571 return therm->attr_set(therm, NVKM_THERM_ATTR_FAN_MODE, val); in nouveau_pwm_write()
[all …]
/linux-6.3-rc2/tools/net/ynl/lib/
A Dnlspec.py157 def __init__(self, family, attr_set, yaml, value): argument
161 self.attr_set = attr_set
248 self.attr_set = None
264 self.attr_set = self.family.attr_sets[attr_set_name]
399 attr_set = self.new_attr_set(elem)
400 self.attr_sets[elem['name']] = attr_set
A Dynl.py398 def _decode_extack_path(self, attrs, attr_set, offset, target): argument
400 attr_spec = attr_set.attrs_by_val[attr.type]
439 msg['msg'] = self._decode(genl_msg.raw_attrs, op.attr_set.name)
476 msg += self._add_attr(op.attr_set.name, name, value)
485 nms = NlMsgs(reply, attr_space=op.attr_set)
488 self._decode_extack(msg, op.attr_set, nl_msg.extack)
511 rsp.append(self._decode(gm.raw_attrs, op.attr_set.name))
/linux-6.3-rc2/tools/net/ynl/
A Dynl-gen-c.py34 def __init__(self, family, attr_set, attr, value): argument
35 super().__init__(family, attr_set, attr, value)
38 self.attr_set = attr_set
544 for t in self.attr_set:
891 self.attr_set = attr_set
892 if not self.attr_set:
893 self.attr_set = op['attribute-set']
898 self.type_name = c_lower(attr_set)
1138 type_max = struct.attr_set.max_name
1951 if attr_set.subset_of:
[all …]
/linux-6.3-rc2/include/linux/
A Dcpufreq.h669 void gov_attr_set_init(struct gov_attr_set *attr_set, struct list_head *list_node);
670 void gov_attr_set_get(struct gov_attr_set *attr_set, struct list_head *list_node);
671 unsigned int gov_attr_set_put(struct gov_attr_set *attr_set, struct list_head *list_node);
676 ssize_t (*show)(struct gov_attr_set *attr_set, char *buf);
677 ssize_t (*store)(struct gov_attr_set *attr_set, const char *buf,
/linux-6.3-rc2/include/uapi/linux/
A Dmount.h130 __u64 attr_set; member
/linux-6.3-rc2/tools/include/uapi/linux/
A Dmount.h130 __u64 attr_set; member
/linux-6.3-rc2/drivers/gpu/drm/nouveau/include/nvkm/subdev/
A Dtherm.h97 int (*attr_set)(struct nvkm_therm *, enum nvkm_therm_attr_type, int); member
/linux-6.3-rc2/arch/arm64/kvm/hyp/
A Dpgtable.c1039 kvm_pte_t attr_set; member
1058 pte |= data->attr_set; in stage2_attr_walker()
1083 u64 size, kvm_pte_t attr_set, in stage2_update_leaf_attrs() argument
1090 .attr_set = attr_set & attr_mask, in stage2_update_leaf_attrs()
/linux-6.3-rc2/fs/
A Dnamespace.c79 unsigned int attr_set; member
3977 flags |= kattr->attr_set; in recalc_flags()
4032 return (!(kattr->attr_set & MNT_READONLY) || in mnt_allow_writers()
4202 if (!((attr->attr_set | attr->attr_clr) & MOUNT_ATTR_IDMAP)) in build_mount_idmapped()
4281 if ((attr->attr_set | attr->attr_clr) & ~MOUNT_SETATTR_VALID_FLAGS) in build_mount_kattr()
4284 kattr->attr_set = attr_flags_to_mnt_flags(attr->attr_set); in build_mount_kattr()
4305 switch (attr->attr_set & MOUNT_ATTR__ATIME) { in build_mount_kattr()
4307 kattr->attr_set |= MNT_RELATIME; in build_mount_kattr()
4310 kattr->attr_set |= MNT_NOATIME; in build_mount_kattr()
4318 if (attr->attr_set & MOUNT_ATTR__ATIME) in build_mount_kattr()
[all …]
/linux-6.3-rc2/drivers/gpu/drm/nouveau/nvkm/subdev/therm/
A Dbase.c437 therm->attr_set = nvkm_therm_attr_set; in nvkm_therm_ctor()
/linux-6.3-rc2/include/ufs/
A Dufshcd.h1292 u8 attr_set, u32 mib_val, u8 peer);
/linux-6.3-rc2/drivers/ufs/core/
A Dufshcd.c4005 u8 attr_set, u32 mib_val, u8 peer) in ufshcd_dme_set_attr() argument
4019 uic_cmd.argument2 = UIC_ARG_ATTR_TYPE(attr_set); in ufshcd_dme_set_attr()

Completed in 65 milliseconds