Home
last modified time | relevance | path

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

/linux/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->policy_list); in gov_attr_set_init()
52 void gov_attr_set_get(struct gov_attr_set *attr_set, struct list_head *list_node) in gov_attr_set_get() argument
[all …]
H A Dcpufreq_governor.h40 struct gov_attr_set attr_set; member
50 static inline struct dbs_data *to_dbs_data(struct gov_attr_set *attr_set) in to_dbs_data() argument
52 return container_of(attr_set, struct dbs_data, attr_set); in to_dbs_data()
57 (struct gov_attr_set *attr_set, char *buf) \
59 struct dbs_data *dbs_data = to_dbs_data(attr_set); \
66 (struct gov_attr_set *attr_set, char *buf) \
68 struct dbs_data *dbs_data = to_dbs_data(attr_set); \
182 ssize_t sampling_rate_store(struct gov_attr_set *attr_set, const char *buf,
H A Dcpufreq_ondemand.c182 static ssize_t io_is_busy_store(struct gov_attr_set *attr_set, const char *buf, in io_is_busy_store() argument
185 struct dbs_data *dbs_data = to_dbs_data(attr_set); in io_is_busy_store()
200 static ssize_t up_threshold_store(struct gov_attr_set *attr_set, in up_threshold_store() argument
203 struct dbs_data *dbs_data = to_dbs_data(attr_set); in up_threshold_store()
217 static ssize_t sampling_down_factor_store(struct gov_attr_set *attr_set, in sampling_down_factor_store() argument
220 struct dbs_data *dbs_data = to_dbs_data(attr_set); in sampling_down_factor_store()
232 list_for_each_entry(policy_dbs, &attr_set->policy_list, list) { in sampling_down_factor_store()
245 static ssize_t ignore_nice_load_store(struct gov_attr_set *attr_set, in ignore_nice_load_store() argument
248 struct dbs_data *dbs_data = to_dbs_data(attr_set); in ignore_nice_load_store()
270 static ssize_t powersave_bias_store(struct gov_attr_set *attr_set, in powersave_bias_store() argument
[all …]
/linux/tools/testing/selftests/mount_setattr/
H A Dmount_setattr_test.c335 .attr_set = MOUNT_ATTR_RDONLY | MOUNT_ATTR_NOSUID, in mount_setattr_thread()
437 .attr_set = (1U << 31), in TEST_F()
446 invalid_attr.attr_set = 0; in TEST_F()
456 invalid_attr.attr_set = (1U << 31); in TEST_F()
505 large_attr.attr3.attr_set = MOUNT_ATTR_RDONLY; in TEST_F()
509 large_attr.attr3.attr_set = 0; in TEST_F()
510 large_attr.attr1.attr_set = MOUNT_ATTR_RDONLY; in TEST_F()
534 .attr_set = MOUNT_ATTR_RDONLY | MOUNT_ATTR_NOEXEC | MOUNT_ATTR_RELATIME, in TEST_F()
570 .attr_set = MOUNT_ATTR_RDONLY | MOUNT_ATTR_NOEXEC | MOUNT_ATTR_RELATIME, in TEST_F()
633 attr.attr_set = MOUNT_ATTR_RDONLY; in TEST_F()
[all …]
/linux/kernel/sched/
H A Dcpufreq_schedutil.c14 struct gov_attr_set attr_set; member
83 guard(mutex)(&sg_policy->tunables->attr_set.update_lock); in sugov_should_update_freq()
609 static inline struct sugov_tunables *to_sugov_tunables(struct gov_attr_set *attr_set)
611 return container_of(attr_set, struct sugov_tunables, attr_set); in rate_limit_us_store()
614 static ssize_t rate_limit_us_show(struct gov_attr_set *attr_set, char *buf) in rate_limit_us_store()
616 struct sugov_tunables *tunables = to_sugov_tunables(attr_set); in rate_limit_us_store()
622 rate_limit_us_store(struct gov_attr_set *attr_set, const char *buf, size_t count) in rate_limit_us_store()
624 struct sugov_tunables *tunables = to_sugov_tunables(attr_set); in rate_limit_us_store()
633 list_for_each_entry(sg_policy, &attr_set
597 to_sugov_tunables(struct gov_attr_set * attr_set) to_sugov_tunables() argument
602 rate_limit_us_show(struct gov_attr_set * attr_set,char * buf) rate_limit_us_show() argument
610 rate_limit_us_store(struct gov_attr_set * attr_set,const char * buf,size_t count) rate_limit_us_store() argument
637 struct gov_attr_set *attr_set = to_gov_attr_set(kobj); sugov_tunables_free() local
[all...]
/linux/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(therm, NVKM_THERM_ATTR_THRS_SHUTDOWN, in nouveau_temp_write()
[all …]
/linux/tools/net/ynl/pyynl/
H A Dcli.py59 def print_attr_list(ynl, attr_names, attr_set, indent=2): argument
63 if attr_name in attr_set.attrs:
64 attr = attr_set.attrs[attr_name]
100 def print_mode_attrs(ynl, mode, mode_spec, attr_set, consistent_dd_reply=None): argument
106 print_attr_list(ynl, mode_spec['request']['attributes'], attr_set)
117 print_attr_list(ynl, mode_spec['reply']['attributes'], attr_set)
132 print_mode_attrs(ynl, mode, op.yaml[mode], op.attr_set,
137 print_attr_list(ynl, op.yaml['event']['attributes'], op.attr_set)
146 print_attr_list(ynl, ref_spec['reply']['attributes'], op.attr_set)
H A Dynl_gen_c.py61 def __init__(self, family, attr_set, attr, value): argument
62 super().__init__(family, attr_set, attr, value)
65 self.attr_set = attr_set
108 return self.family.attr_sets[self.attr_set.subset_of][self.name]
112 if self.attr_set.subset_of:
117 if self.attr_set.subset_of:
149 enum_name = f"{self.attr_set.name_prefix}{self.name}"
152 if self.attr_set.subset_of:
373 def __init__(self, family, attr_set, att argument
730 __init__(self, family, attr_set, attr, value, base_type) global() argument
932 __init__(self, family, attr_set, attr, value) global() argument
964 __init__(self, msg_attr, attr_set) global() argument
1602 __init__(self, cw, family, ku_space, op, op_mode, attr_set=None) global() argument
[all...]
/linux/tools/net/ynl/pyynl/lib/
H A Dynl.py169 def __init__(self, ynl, policy_idx, policy_table, attr_set, props=None):
178 if attr_set and attr_id in attr_set.attrs_by_val:
179 spec = attr_set.attrs_by_val[attr_id]
890 if msg_format.attr_set:
891 if msg_format.attr_set in self.attr_sets:
893 sub_attrs = SpaceAttrs(msg_format.attr_set, value, search_attrs)
895 attr_payload += self._add_attr(msg_format.attr_set,
898 raise YnlException(f"Unknown attribute-set '{msg_format.attr_set}'")
1041 if msg_format.attr_set
166 __init__(self, ynl, policy_idx, policy_table, attr_set, props=None) global() argument
1113 _decode_extack_path(self, attrs, attr_set, offset, target, search_attrs) global() argument
[all...]
H A Dnlspec.py179 def __init__(self, family, attr_set, yaml, value): argument
184 self.attr_set = attr_set
340 self.attr_set = yaml.get('attribute-set')
376 self.attr_set = None
392 self.attr_set = self.family.attr_sets[attr_set_name]
623 attr_set = self.new_attr_set(elem)
624 self.attr_sets[elem['name']] = attr_set
/linux/include/linux/
H A Dcpufreq.h703 void gov_attr_set_init(struct gov_attr_set *attr_set, struct list_head *list_node);
704 void gov_attr_set_get(struct gov_attr_set *attr_set, struct list_head *list_node);
705 unsigned int gov_attr_set_put(struct gov_attr_set *attr_set, struct list_head *list_node);
710 ssize_t (*show)(struct gov_attr_set *attr_set, char *buf);
711 ssize_t (*store)(struct gov_attr_set *attr_set, const char *buf,
/linux/tools/include/uapi/linux/
H A Dmount.h134 __u64 attr_set;
132 __u64 attr_set; global() member
/linux/drivers/gpu/drm/nouveau/include/nvkm/subdev/
H A Dtherm.h97 int (*attr_set)(struct nvkm_therm *, enum nvkm_therm_attr_type, int); member
/linux/tools/perf/trace/beauty/include/uapi/linux/
H A Dmount.h135 __u64 attr_set;
134 __u64 attr_set; global() member
/linux/include/uapi/linux/
H A Dmount.h135 __u64 attr_set; member
/linux/tools/testing/selftests/filesystems/
H A Didmapped_tmpfile.c53 .attr_set = MOUNT_ATTR_IDMAP, in idmapped_clone()
/linux/arch/arm64/kvm/hyp/
H A Dpgtable.c1226 kvm_pte_t attr_set; in stage2_attr_walker()
1245 pte |= data->attr_set; in stage2_attr_walker()
1270 u64 size, kvm_pte_t attr_set, in stage2_update_leaf_attrs()
1277 .attr_set = attr_set & attr_mask, in stage2_update_leaf_attrs()
1216 kvm_pte_t attr_set; global() member
1260 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,s8 * level,enum kvm_pgtable_walk_flags flags) stage2_update_leaf_attrs() argument
/linux/fs/
H A Dnamespace.c108 unsigned int attr_set; member
4968 flags |= kattr->attr_set; in recalc_flags()
5026 return (!(kattr->attr_set & MNT_READONLY) || in mnt_allow_writers()
5173 if (!((attr->attr_set | attr->attr_clr) & MOUNT_ATTR_IDMAP)) in build_mount_idmapped()
5188 if (!(attr->attr_set & MOUNT_ATTR_IDMAP)) { in build_mount_idmapped()
5237 if ((attr->attr_set | attr->attr_clr) & ~MOUNT_SETATTR_VALID_FLAGS) in build_mount_kattr()
5240 kattr->attr_set = attr_flags_to_mnt_flags(attr->attr_set); in build_mount_kattr()
5246 * simply specify the atime setting in @attr_set, but must also in build_mount_kattr()
5249 * @attr_clr and that @attr_set ca in build_mount_kattr()
[all...]
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/therm/
H A Dbase.c437 therm->attr_set = nvkm_therm_attr_set; in nvkm_therm_ctor()
/linux/tools/testing/selftests/filesystems/mount_cycle/
H A Dunmounted_tree_test.c390 .attr_set = MOUNT_ATTR_NOSUID, in ordinary_copy()
/linux/drivers/ufs/core/
H A Dufshcd.c4379 * @attr_set: attribute set type as uic command argument2
4386 u8 attr_set, u32 mib_val, u8 peer) in ufshcd_dme_get_attr()
4391 .argument2 = UIC_ARG_ATTR_TYPE(attr_set), in ufshcd_dme_get_attr()
4343 ufshcd_dme_set_attr(struct ufs_hba * hba,u32 attr_sel,u8 attr_set,u32 mib_val,u8 peer) ufshcd_dme_set_attr() argument