Home
last modified time | relevance | path

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

/linux/drivers/cpufreq/
A Dcpufreq_governor_attr_set.c36 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()
51 mutex_init(&attr_set->update_lock); in gov_attr_set_init()
52 attr_set->usage_count = 1; in gov_attr_set_init()
59 mutex_lock(&attr_set->update_lock); in gov_attr_set_get()
60 attr_set->usage_count++; in gov_attr_set_get()
62 mutex_unlock(&attr_set->update_lock); in gov_attr_set_get()
70 mutex_lock(&attr_set->update_lock); in gov_attr_set_put()
72 count = --attr_set->usage_count; in gov_attr_set_put()
[all …]
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,
A Dcpufreq_conservative.c149 static ssize_t store_sampling_down_factor(struct gov_attr_set *attr_set, in store_sampling_down_factor() argument
152 struct dbs_data *dbs_data = to_dbs_data(attr_set); in store_sampling_down_factor()
164 static ssize_t store_up_threshold(struct gov_attr_set *attr_set, in store_up_threshold() argument
167 struct dbs_data *dbs_data = to_dbs_data(attr_set); in store_up_threshold()
180 static ssize_t store_down_threshold(struct gov_attr_set *attr_set, in store_down_threshold() argument
183 struct dbs_data *dbs_data = to_dbs_data(attr_set); in store_down_threshold()
198 static ssize_t store_ignore_nice_load(struct gov_attr_set *attr_set, in store_ignore_nice_load() argument
201 struct dbs_data *dbs_data = to_dbs_data(attr_set); in store_ignore_nice_load()
223 static ssize_t store_freq_step(struct gov_attr_set *attr_set, const char *buf, in store_freq_step() argument
226 struct dbs_data *dbs_data = to_dbs_data(attr_set); in store_freq_step()
A Dcpufreq_ondemand.c208 struct dbs_data *dbs_data = to_dbs_data(attr_set); in store_io_is_busy()
223 static ssize_t store_up_threshold(struct gov_attr_set *attr_set, in store_up_threshold() argument
226 struct dbs_data *dbs_data = to_dbs_data(attr_set); in store_up_threshold()
240 static ssize_t store_sampling_down_factor(struct gov_attr_set *attr_set, in store_sampling_down_factor() argument
243 struct dbs_data *dbs_data = to_dbs_data(attr_set); in store_sampling_down_factor()
255 list_for_each_entry(policy_dbs, &attr_set->policy_list, list) { in store_sampling_down_factor()
268 static ssize_t store_ignore_nice_load(struct gov_attr_set *attr_set, in store_ignore_nice_load() argument
271 struct dbs_data *dbs_data = to_dbs_data(attr_set); in store_ignore_nice_load()
293 static ssize_t store_powersave_bias(struct gov_attr_set *attr_set, in store_powersave_bias() argument
296 struct dbs_data *dbs_data = to_dbs_data(attr_set); in store_powersave_bias()
[all …]
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()
/linux/tools/testing/selftests/mount_setattr/
A Dmount_setattr_test.c108 __u64 attr_set; member
449 .attr_set = (1U << 31), in TEST_F()
458 invalid_attr.attr_set = 0; in TEST_F()
521 large_attr.attr3.attr_set = 0; in TEST_F()
785 attr.attr_set = 0; in TEST_F()
1078 .attr_set = MOUNT_ATTR_IDMAP, in TEST_F()
1096 .attr_set = MOUNT_ATTR_IDMAP, in TEST_F()
1115 .attr_set = MOUNT_ATTR_IDMAP, in TEST_F()
1138 .attr_set = MOUNT_ATTR_IDMAP, in TEST_F()
1247 .attr_set = MOUNT_ATTR_IDMAP, in TEST_F()
[all …]
/linux/kernel/sched/
A Dcpufreq_schedutil.c19 struct gov_attr_set attr_set; member
504 return container_of(attr_set, struct sugov_tunables, attr_set); in to_sugov_tunables()
507 static ssize_t rate_limit_us_show(struct gov_attr_set *attr_set, char *buf) in rate_limit_us_show() argument
509 struct sugov_tunables *tunables = to_sugov_tunables(attr_set); in rate_limit_us_show()
517 struct sugov_tunables *tunables = to_sugov_tunables(attr_set); in rate_limit_us_store()
526 list_for_each_entry(sg_policy, &attr_set->policy_list, tunables_hook) in rate_limit_us_store()
544 kfree(to_sugov_tunables(attr_set)); in sugov_tunables_free()
643 gov_attr_set_init(&tunables->attr_set, &sg_policy->tunables_hook); in sugov_tunables_alloc()
688 gov_attr_set_get(&global_tunables->attr_set, &sg_policy->tunables_hook); in sugov_init()
714 kobject_put(&tunables->attr_set.kobj); in sugov_init()
[all …]
/linux/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()
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()
592 return therm->attr_set(therm, NVKM_THERM_ATTR_THRS_CRITICAL, in nouveau_temp_write()
598 return therm->attr_set(therm, NVKM_THERM_ATTR_THRS_SHUTDOWN, in nouveau_temp_write()
615 if (!therm || !therm->attr_set) in nouveau_pwm_write()
622 return therm->attr_set(therm, NVKM_THERM_ATTR_FAN_MODE, val); in nouveau_pwm_write()
[all …]
/linux/include/linux/
A Dcpufreq.h661 void gov_attr_set_init(struct gov_attr_set *attr_set, struct list_head *list_node);
662 void gov_attr_set_get(struct gov_attr_set *attr_set, struct list_head *list_node);
663 unsigned int gov_attr_set_put(struct gov_attr_set *attr_set, struct list_head *list_node);
668 ssize_t (*show)(struct gov_attr_set *attr_set, char *buf);
669 ssize_t (*store)(struct gov_attr_set *attr_set, const char *buf,
/linux/tools/include/uapi/linux/
A Dmount.h130 __u64 attr_set; member
/linux/include/uapi/linux/
A Dmount.h130 __u64 attr_set; member
/linux/drivers/gpu/drm/nouveau/include/nvkm/subdev/
A Dtherm.h97 int (*attr_set)(struct nvkm_therm *, enum nvkm_therm_attr_type, int); member
/linux/arch/arm64/kvm/hyp/
A Dpgtable.c950 kvm_pte_t attr_set; member
971 pte |= data->attr_set; in stage2_attr_walker()
994 u64 size, kvm_pte_t attr_set, in stage2_update_leaf_attrs() argument
1001 .attr_set = attr_set & attr_mask, in stage2_update_leaf_attrs()
/linux/fs/
A Dnamespace.c78 unsigned int attr_set; member
3922 flags |= kattr->attr_set; in recalc_flags()
3991 if ((kattr->attr_set & MNT_READONLY) && in mount_setattr_prepare()
4035 if ((kattr->attr_set & MNT_READONLY) && in mount_setattr_commit()
4106 if (!((attr->attr_set | attr->attr_clr) & MOUNT_ATTR_IDMAP)) in build_mount_idmapped()
4179 kattr->attr_set = attr_flags_to_mnt_flags(attr->attr_set); in build_mount_kattr()
4200 switch (attr->attr_set & MOUNT_ATTR__ATIME) { in build_mount_kattr()
4202 kattr->attr_set |= MNT_RELATIME; in build_mount_kattr()
4205 kattr->attr_set |= MNT_NOATIME; in build_mount_kattr()
4213 if (attr->attr_set & MOUNT_ATTR__ATIME) in build_mount_kattr()
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/therm/
A Dbase.c437 therm->attr_set = nvkm_therm_attr_set; in nvkm_therm_ctor()
/linux/drivers/scsi/ufs/
A Dufshcd.h1102 u8 attr_set, u32 mib_val, u8 peer);
A Dufshcd.c3842 u8 attr_set, u32 mib_val, u8 peer) in ufshcd_dme_set_attr() argument
3856 uic_cmd.argument2 = UIC_ARG_ATTR_TYPE(attr_set); in ufshcd_dme_set_attr()

Completed in 53 milliseconds