Home
last modified time | relevance | path

Searched refs:attr_set (Results 1 – 16 of 16) 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.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,
/linux/kernel/sched/
H A Dcpufreq_schedutil.c14 struct gov_attr_set attr_set; member
582 static inline struct sugov_tunables *to_sugov_tunables(struct gov_attr_set *attr_set) in to_sugov_tunables() argument
584 return container_of(attr_set, struct sugov_tunables, attr_set); in to_sugov_tunables()
587 static ssize_t rate_limit_us_show(struct gov_attr_set *attr_set, char *buf) in rate_limit_us_show() argument
589 struct sugov_tunables *tunables = to_sugov_tunables(attr_set); in rate_limit_us_show()
595 rate_limit_us_store(struct gov_attr_set *attr_set, const char *buf, size_t count) in rate_limit_us_store() argument
597 struct sugov_tunables *tunables = to_sugov_tunables(attr_set); in rate_limit_us_store()
606 list_for_each_entry(sg_policy, &attr_set->policy_list, tunables_hook) in rate_limit_us_store()
622 struct gov_attr_set *attr_set = to_gov_attr_set(kobj); in sugov_tunables_free() local
624 kfree(to_sugov_tunables(attr_set)); in sugov_tunables_free()
[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/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 Dynl_gen_c.py48 def __init__(self, family, attr_set, attr, value): argument
49 super().__init__(family, attr_set, attr, value)
52 self.attr_set = attr_set
95 return self.family.attr_sets[self.attr_set.subset_of][self.name]
99 if self.attr_set.subset_of:
104 if self.attr_set.subset_of:
139 if self.attr_set.subset_of:
357 def __init__(self, family, attr_set, attr, value): argument
358 super().__init__(family, attr_set, attr, value)
703 def __init__(self, family, attr_set, attr, value, base_type): argument
[all …]
/linux/tools/net/ynl/pyynl/lib/
H A Dynl.py621 if msg_format.attr_set:
622 if msg_format.attr_set in self.attr_sets:
624 sub_attrs = SpaceAttrs(msg_format.attr_set, value, search_attrs)
626 attr_payload += self._add_attr(msg_format.attr_set,
629 raise Exception(f"Unknown attribute-set '{msg_format.attr_set}'")
773 if msg_format.attr_set:
774 if msg_format.attr_set in self.attr_sets:
775 subdict = self._decode(NlAttrs(attr.raw, offset), msg_format.attr_set)
778 raise Exception(f"Unknown attribute-set '{msg_format.attr_set}' when decoding '{attr_spec.name}'")
841 def _decode_extack_path(self, attrs, attr_set, offse
812 _decode_extack_path(self, attrs, attr_set, offset, target, search_attrs) global() argument
[all...]
/linux/include/linux/
H A Dcpufreq.h686 void gov_attr_set_init(struct gov_attr_set *attr_set, struct list_head *list_node);
687 void gov_attr_set_get(struct gov_attr_set *attr_set, struct list_head *list_node);
688 unsigned int gov_attr_set_put(struct gov_attr_set *attr_set, struct list_head *list_node);
693 ssize_t (*show)(struct gov_attr_set *attr_set, char *buf);
694 ssize_t (*store)(struct gov_attr_set *attr_set, const char *buf,
/linux/tools/include/uapi/linux/
H A Dmount.h132 __u64 attr_set; 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/include/uapi/linux/
H A Dmount.h132 __u64 attr_set; member
/linux/tools/perf/trace/beauty/include/uapi/linux/
H A Dmount.h132 __u64 attr_set; member
/linux/arch/arm64/kvm/hyp/
H A Dpgtable.c1189 kvm_pte_t attr_set; member
1208 pte |= data->attr_set; in stage2_attr_walker()
1233 u64 size, kvm_pte_t attr_set, in stage2_update_leaf_attrs() argument
1240 .attr_set = attr_set & attr_mask, in stage2_update_leaf_attrs()
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/therm/
H A Dbase.c437 therm->attr_set = nvkm_therm_attr_set; in nvkm_therm_ctor()
/linux/include/ufs/
H A Dufshcd.h1363 u8 attr_set, u32 mib_val, u8 peer);
/linux/drivers/ufs/core/
H A Dufshcd.c4174 u8 attr_set, u32 mib_val, u8 peer) in ufshcd_dme_set_attr() argument
4179 .argument2 = UIC_ARG_ATTR_TYPE(attr_set), in ufshcd_dme_set_attr()