Home
last modified time | relevance | path

Searched refs:attr (Results 1851 - 1875 of 8031) sorted by relevance

1...<<71727374757677787980>>...322

/kernel/linux/linux-5.10/drivers/platform/x86/
H A Dintel-rst.c13 struct device_attribute *attr, in irst_show_wakeup_events()
30 struct device_attribute *attr, in irst_store_wakeup_events()
52 .attr = { .name = "wakeup_events", .mode = 0600 },
58 struct device_attribute *attr, char *buf) in irst_show_wakeup_time()
74 struct device_attribute *attr, in irst_store_wakeup_time()
96 .attr = { .name = "wakeup_time", .mode = 0600 },
12 irst_show_wakeup_events(struct device *dev, struct device_attribute *attr, char *buf) irst_show_wakeup_events() argument
29 irst_store_wakeup_events(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) irst_store_wakeup_events() argument
57 irst_show_wakeup_time(struct device *dev, struct device_attribute *attr, char *buf) irst_show_wakeup_time() argument
73 irst_store_wakeup_time(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) irst_store_wakeup_time() argument
/kernel/linux/linux-5.10/drivers/rtc/
H A Dnvmem.c23 struct bin_attribute *attr, in rtc_nvram_read()
28 return nvmem_device_read(attr->private, off, count, buf); in rtc_nvram_read()
33 struct bin_attribute *attr, in rtc_nvram_write()
38 return nvmem_device_write(attr->private, off, count, buf); in rtc_nvram_write()
50 rtc->nvram->attr.name = "nvram"; in rtc_nvram_register()
51 rtc->nvram->attr.mode = 0644; in rtc_nvram_register()
22 rtc_nvram_read(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) rtc_nvram_read() argument
32 rtc_nvram_write(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) rtc_nvram_write() argument
/kernel/linux/linux-5.10/include/kvm/
H A Darm_pmu.h54 struct kvm_device_attr *attr);
56 struct kvm_device_attr *attr);
58 struct kvm_device_attr *attr);
95 struct kvm_device_attr *attr) in kvm_arm_pmu_v3_set_attr()
100 struct kvm_device_attr *attr) in kvm_arm_pmu_v3_get_attr()
105 struct kvm_device_attr *attr) in kvm_arm_pmu_v3_has_attr()
94 kvm_arm_pmu_v3_set_attr(struct kvm_vcpu *vcpu, struct kvm_device_attr *attr) kvm_arm_pmu_v3_set_attr() argument
99 kvm_arm_pmu_v3_get_attr(struct kvm_vcpu *vcpu, struct kvm_device_attr *attr) kvm_arm_pmu_v3_get_attr() argument
104 kvm_arm_pmu_v3_has_attr(struct kvm_vcpu *vcpu, struct kvm_device_attr *attr) kvm_arm_pmu_v3_has_attr() argument
/kernel/linux/linux-6.6/drivers/misc/
H A Dhmc6352.c52 struct device_attribute *attr, const char *buf, size_t count) in compass_calibration_store()
58 struct device_attribute *attr, const char *buf, size_t count) in compass_power_mode_store()
64 struct device_attribute *attr, char *buf) in compass_heading_data_show()
93 &dev_attr_heading0_input.attr,
94 &dev_attr_calibration.attr,
95 &dev_attr_power_state.attr,
51 compass_calibration_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) compass_calibration_store() argument
57 compass_power_mode_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) compass_power_mode_store() argument
63 compass_heading_data_show(struct device *dev, struct device_attribute *attr, char *buf) compass_heading_data_show() argument
/kernel/linux/linux-6.6/drivers/net/ethernet/aquantia/atlantic/
H A Daq_drvinfo.c28 u32 attr, int channel, long *value) in aq_hwmon_read()
37 if (type != hwmon_temp || attr != hwmon_temp_input) in aq_hwmon_read()
68 u32 attr, int channel, const char **str) in aq_hwmon_read_string()
75 if (type != hwmon_temp || attr != hwmon_temp_label) in aq_hwmon_read_string()
88 u32 attr, int channel) in aq_hwmon_is_visible()
101 switch (attr) { in aq_hwmon_is_visible()
27 aq_hwmon_read(struct device *dev, enum hwmon_sensor_types type, u32 attr, int channel, long *value) aq_hwmon_read() argument
66 aq_hwmon_read_string(struct device *dev, enum hwmon_sensor_types type, u32 attr, int channel, const char **str) aq_hwmon_read_string() argument
86 aq_hwmon_is_visible(const void *data, enum hwmon_sensor_types type, u32 attr, int channel) aq_hwmon_is_visible() argument
/kernel/linux/linux-6.6/fs/ubifs/
H A Dsysfs.c21 struct attribute attr; member
27 .attr = {.name = __stringify(_name), .mode = _mode }, \
37 #define ATTR_LIST(name) (&ubifs_attr_##name.attr)
48 struct attribute *attr, char *buf) in ubifs_attr_show()
53 struct ubifs_attr *a = container_of(attr, struct ubifs_attr, attr); in ubifs_attr_show()
47 ubifs_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) ubifs_attr_show() argument
/kernel/linux/linux-6.6/drivers/platform/x86/intel/
H A Drst.c13 struct device_attribute *attr, in irst_show_wakeup_events()
30 struct device_attribute *attr, in irst_store_wakeup_events()
52 .attr = { .name = "wakeup_events", .mode = 0600 },
58 struct device_attribute *attr, char *buf) in irst_show_wakeup_time()
74 struct device_attribute *attr, in irst_store_wakeup_time()
96 .attr = { .name = "wakeup_time", .mode = 0600 },
12 irst_show_wakeup_events(struct device *dev, struct device_attribute *attr, char *buf) irst_show_wakeup_events() argument
29 irst_store_wakeup_events(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) irst_store_wakeup_events() argument
57 irst_show_wakeup_time(struct device *dev, struct device_attribute *attr, char *buf) irst_show_wakeup_time() argument
73 irst_store_wakeup_time(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) irst_store_wakeup_time() argument
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/
H A Dact.h42 struct mlx5_flow_attr *attr);
47 struct mlx5_flow_attr *attr);
51 struct mlx5_flow_attr *attr);
55 struct mlx5_flow_attr *attr);
116 struct mlx5_flow_attr *attr,
121 struct mlx5_flow_attr *attr,
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dtc_ct.h116 struct mlx5_flow_attr *attr,
121 mlx5_tc_ct_flow_offload(struct mlx5_tc_ct_priv *priv, struct mlx5_flow_attr *attr);
125 struct mlx5_flow_attr *attr);
174 struct mlx5_flow_attr *attr, in mlx5_tc_ct_parse_action()
184 struct mlx5_flow_attr *attr) in mlx5_tc_ct_flow_offload()
191 struct mlx5_flow_attr *attr) in mlx5_tc_ct_delete_flow()
173 mlx5_tc_ct_parse_action(struct mlx5_tc_ct_priv *priv, struct mlx5_flow_attr *attr, const struct flow_action_entry *act, struct netlink_ext_ack *extack) mlx5_tc_ct_parse_action() argument
183 mlx5_tc_ct_flow_offload(struct mlx5_tc_ct_priv *priv, struct mlx5_flow_attr *attr) mlx5_tc_ct_flow_offload() argument
190 mlx5_tc_ct_delete_flow(struct mlx5_tc_ct_priv *priv, struct mlx5_flow_attr *attr) mlx5_tc_ct_delete_flow() argument
/kernel/linux/linux-6.6/drivers/perf/arm_cspmu/
H A Darm_cspmu.h25 .attr = __ATTR(_name, 0444, _func, NULL), \
28 })[0].attr.attr)
106 struct attribute *attr, int unused);
142 struct device_attribute *attr,
147 struct device_attribute *attr,
/kernel/linux/linux-6.6/arch/x86/kernel/cpu/
H A Dumwait.c127 enable_c02_show(struct device *dev, struct device_attribute *attr, char *buf) in enable_c02_show() argument
135 struct device_attribute *attr, in enable_c02_store()
159 max_time_show(struct device *kobj, struct device_attribute *attr, char *buf) in max_time_show() argument
167 struct device_attribute *attr, in max_time_store()
194 &dev_attr_enable_c02.attr,
195 &dev_attr_max_time.attr,
134 enable_c02_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) enable_c02_store() argument
166 max_time_store(struct device *kobj, struct device_attribute *attr, const char *buf, size_t count) max_time_store() argument
/kernel/linux/linux-6.6/drivers/infiniband/hw/qedr/
H A Dverbs.h36 struct ib_device_attr *attr, struct ib_udata *udata);
54 int qedr_create_cq(struct ib_cq *ibcq, const struct ib_cq_init_attr *attr,
60 int qedr_modify_qp(struct ib_qp *, struct ib_qp_attr *attr,
66 int qedr_create_srq(struct ib_srq *ibsrq, struct ib_srq_init_attr *attr,
68 int qedr_modify_srq(struct ib_srq *ibsrq, struct ib_srq_attr *attr,
70 int qedr_query_srq(struct ib_srq *ibsrq, struct ib_srq_attr *attr);
/kernel/linux/linux-6.6/drivers/leds/trigger/
H A Dledtrig-timer.c19 struct device_attribute *attr, char *buf) in led_delay_on_show()
27 struct device_attribute *attr, const char *buf, size_t size) in led_delay_on_store()
44 struct device_attribute *attr, char *buf) in led_delay_off_show()
52 struct device_attribute *attr, const char *buf, size_t size) in led_delay_off_store()
72 &dev_attr_delay_on.attr,
73 &dev_attr_delay_off.attr,
18 led_delay_on_show(struct device *dev, struct device_attribute *attr, char *buf) led_delay_on_show() argument
26 led_delay_on_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) led_delay_on_store() argument
43 led_delay_off_show(struct device *dev, struct device_attribute *attr, char *buf) led_delay_off_show() argument
51 led_delay_off_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) led_delay_off_store() argument
/kernel/linux/linux-6.6/tools/usb/usbip/libsrc/
H A Dusbip_device_driver.c24 #define copy_descr_attr16(dev, descr, attr) \
25 ((dev)->attr = le16toh((descr)->attr)) \
27 #define copy_descr_attr(dev, descr, attr) \
28 ((dev)->attr = (descr)->attr) \
/kernel/liteos_a/testsuites/kernel/sample/posix/mutex/full/
H A DIt_posix_mutex_093.c50 g_mutex1093.attr.type = 1; in TaskF01()
74 g_mutex2093.attr.type = 1; in TaskF02()
95 pthread_attr_t attr; in Testcase() local
100 ret = PosixPthreadInit(&attr, 10); // 10, Set thread priority. in Testcase()
103 ret = pthread_create(&newTh, &attr, TaskF01, NULL); in Testcase()
118 ret = PosixPthreadDestroy(&attr, newTh); in Testcase()
H A DIt_posix_mutex_070.c94 pthread_attr_t attr; in Testcase() local
106 ret = PosixPthreadInit(&attr, 4); // 4, Set thread priority. in Testcase()
109 ret = pthread_create(&newTh, &attr, TaskF01, NULL); in Testcase()
126 ret = PosixPthreadDestroy(&attr, newTh); in Testcase()
138 PosixPthreadDestroy(&attr, newTh2); in Testcase()
141 PosixPthreadDestroy(&attr, newTh); in Testcase()
/kernel/liteos_a/testsuites/kernel/sample/posix/pthread/full/
H A DIt_posix_pthread_205.c85 pthread_attr_t attr; in Testcase() local
88 ret = pthread_attr_init(&attr); in Testcase()
92 ret = pthread_attr_setinheritsched(&attr, g_pthreadSchedInherit); in Testcase()
97 ret = pthread_create(&newTh1, &attr, PthreadF01, NULL); in Testcase()
100 ret = pthread_create(&newTh2, &attr, PthreadF02, &newTh1); in Testcase()
111 ret = pthread_attr_destroy(&attr); in Testcase()
/kernel/liteos_a/testsuites/unittest/libc/posix/mqueue/full/
H A DIt_posix_queue_143.cpp58 struct mq_attr attr = { 0 }; in Testcase() local
60 attr.mq_msgsize = size; in Testcase()
61 attr.mq_maxmsg = size; in Testcase()
62 attr.mq_flags = O_NONBLOCK; in Testcase()
68 g_gqueue = mq_open(mqname, O_CREAT | O_RDWR | O_EXCL, S_IRUSR | S_IWUSR, &attr); in Testcase()
84 g_gqueue = mq_open(mqname, O_RDWR, S_IRUSR | S_IWUSR, &attr); in Testcase()
/kernel/liteos_a/testsuites/unittest/libc/posix/pthread/full/
H A DIt_posix_pthread_205.cpp78 pthread_attr_t attr; in Testcase() local
81 ret = pthread_attr_init(&attr); in Testcase()
85 ret = pthread_attr_setinheritsched(&attr, g_pthreadSchedInherit); in Testcase()
89 ret = pthread_create(&newTh1, &attr, pthread_f01, NULL); in Testcase()
92 ret = pthread_create(&newTh2, &attr, pthread_f02, &newTh1); in Testcase()
103 ret = pthread_attr_destroy(&attr); in Testcase()
/third_party/elfutils/backends/
H A Dppc64_retval.c94 Dwarf_Attribute attr_mem, *attr; in ppc64_return_value_location() local
95 attr = dwarf_attr_integrate (typedie, DW_AT_type, &attr_mem); in ppc64_return_value_location()
96 typedie = dwarf_formref_die (attr, &die_mem); in ppc64_return_value_location()
172 Dwarf_Attribute attr_mem, *attr; in ppc64_return_value_location() local
173 attr = dwarf_attr_integrate (typedie, DW_AT_type, &attr_mem); in ppc64_return_value_location()
174 typedie = dwarf_formref_die (attr, &die_mem); in ppc64_return_value_location()
/third_party/ffmpeg/libavutil/
H A Dthread.h65 static inline int strict_pthread_mutex_init(pthread_mutex_t *mutex, const pthread_mutexattr_t *attr) in strict_pthread_mutex_init() argument
67 if (attr) { in strict_pthread_mutex_init()
68 ASSERT_PTHREAD_NORET(pthread_mutex_init, mutex, attr); in strict_pthread_mutex_init()
94 static inline int strict_pthread_cond_init(pthread_cond_t *cond, const pthread_condattr_t *attr) in strict_pthread_cond_init() argument
96 ASSERT_PTHREAD(pthread_cond_init, cond, attr); in strict_pthread_cond_init()
171 static inline int ff_mutex_init(AVMutex *mutex, const void *attr){ return 0; } in ff_mutex_init() argument
/third_party/ltp/testcases/kernel/syscalls/bpf/
H A Dbpf_prog07.c56 static union bpf_attr *attr; variable
92 bpf_init_prog_attr(attr, prog_insn, sizeof(prog_insn), log, BUFSIZE); in load_prog()
94 ret = TST_RETRY_FUNC(bpf(BPF_PROG_LOAD, attr, sizeof(*attr)), in load_prog()
155 {&attr, .size = sizeof(*attr)},
/third_party/node/deps/v8/src/base/platform/
H A Dplatform-freebsd.cc108 pthread_attr_t attr; in GetStackStart() local
110 pthread_attr_init(&attr); in GetStackStart()
111 error = pthread_attr_get_np(pthread_self(), &attr); in GetStackStart()
115 error = pthread_attr_getstack(&attr, &base, &size); in GetStackStart()
117 pthread_attr_destroy(&attr); in GetStackStart()
120 pthread_attr_destroy(&attr); in GetStackStart()
/third_party/rust/crates/serde/serde_derive_internals/src/
H A Dast.rs3 use crate::internals::{attr, check, Ctxt, Derive};
13 pub attrs: attr::Container,
33 pub attrs: attr::Variant,
42 pub attrs: attr::Field,
66 let mut attrs = attr::Container::from_ast(cx, item); in from_ast()
142 container_default: &attr::Default, in enum_from_ast()
147 let attrs = attr::Variant::from_ast(cx, variant); in enum_from_ast()
177 attrs: Option<&attr::Variant>, in struct_from_ast()
178 container_default: &attr::Default, in struct_from_ast()
200 attrs: Option<&attr in fields_from_ast()
[all...]
/third_party/rust/crates/serde/serde_derive/src/internals/
H A Dast.rs3 use crate::internals::{attr, check, Ctxt, Derive};
13 pub attrs: attr::Container,
33 pub attrs: attr::Variant,
42 pub attrs: attr::Field,
66 let mut attrs = attr::Container::from_ast(cx, item); in from_ast()
142 container_default: &attr::Default, in enum_from_ast()
147 let attrs = attr::Variant::from_ast(cx, variant); in enum_from_ast()
177 attrs: Option<&attr::Variant>, in struct_from_ast()
178 container_default: &attr::Default, in struct_from_ast()
200 attrs: Option<&attr in fields_from_ast()
[all...]

Completed in 10 milliseconds

1...<<71727374757677787980>>...322