Home
last modified time | relevance | path

Searched refs:attr (Results 2226 - 2250 of 8626) sorted by relevance

1...<<81828384858687888990>>...346

/kernel/linux/common_modules/qos_auth/auth_ctl/
H A Dqos_ctrl.c56 static void init_sched_attr(struct sched_attr *attr) in init_sched_attr() argument
58 memset(attr, 0, sizeof(struct sched_attr)); in init_sched_attr()
71 struct sched_attr attr; in sched_set_task_qos_attr() local
84 init_sched_attr(&attr); in sched_set_task_qos_attr()
85 attr.size = sizeof(struct sched_attr); in sched_set_task_qos_attr()
86 attr.sched_policy = SCHED_NORMAL; in sched_set_task_qos_attr()
89 attr.sched_nice = item->nice; in sched_set_task_qos_attr()
92 attr.sched_flags |= SCHED_FLAG_LATENCY_NICE; in sched_set_task_qos_attr()
93 attr.sched_latency_nice = item->latency_nice; in sched_set_task_qos_attr()
97 attr in sched_set_task_qos_attr()
[all...]
/kernel/linux/linux-5.10/drivers/accessibility/speakup/
H A Dspeakup_decpc.c186 &caps_start_attribute.attr,
187 &caps_stop_attribute.attr,
188 &pitch_attribute.attr,
189 &inflection_attribute.attr,
190 &punct_attribute.attr,
191 &rate_attribute.attr,
192 &voice_attribute.attr,
193 &vol_attribute.attr,
194 &delay_time_attribute.attr,
195 &direct_attribute.attr,
[all...]
/kernel/linux/linux-5.10/drivers/char/tpm/
H A Dtpm_ppi.c51 struct device_attribute *attr, char *buf) in tpm_show_ppi_version()
59 struct device_attribute *attr, char *buf) in tpm_show_ppi_request()
113 struct device_attribute *attr, in tpm_store_ppi_request()
176 struct device_attribute *attr, in tpm_show_ppi_transition_action()
222 struct device_attribute *attr, in tpm_show_ppi_response()
325 struct device_attribute *attr, in tpm_show_ppi_tcg_operations()
335 struct device_attribute *attr, in tpm_show_ppi_vs_operations()
354 &dev_attr_version.attr,
355 &dev_attr_request.attr,
356 &dev_attr_transition_action.attr,
50 tpm_show_ppi_version(struct device *dev, struct device_attribute *attr, char *buf) tpm_show_ppi_version() argument
58 tpm_show_ppi_request(struct device *dev, struct device_attribute *attr, char *buf) tpm_show_ppi_request() argument
112 tpm_store_ppi_request(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) tpm_store_ppi_request() argument
175 tpm_show_ppi_transition_action(struct device *dev, struct device_attribute *attr, char *buf) tpm_show_ppi_transition_action() argument
221 tpm_show_ppi_response(struct device *dev, struct device_attribute *attr, char *buf) tpm_show_ppi_response() argument
324 tpm_show_ppi_tcg_operations(struct device *dev, struct device_attribute *attr, char *buf) tpm_show_ppi_tcg_operations() argument
334 tpm_show_ppi_vs_operations(struct device *dev, struct device_attribute *attr, char *buf) tpm_show_ppi_vs_operations() argument
[all...]
/kernel/linux/linux-5.10/drivers/hwmon/
H A Ddrivetemp.c118 int (*get_temp)(struct drivetemp_data *st, u32 attr, long *val);
207 static int drivetemp_get_smarttemp(struct drivetemp_data *st, u32 attr, in drivetemp_get_smarttemp() argument
232 u8 *attr = buf + i * 12; in drivetemp_get_smarttemp() local
233 int id = attr[2]; in drivetemp_get_smarttemp()
239 temp_raw = attr[7]; in drivetemp_get_smarttemp()
243 temp_raw = attr[7]; in drivetemp_get_smarttemp()
257 static int drivetemp_get_scttemp(struct drivetemp_data *st, u32 attr, long *val) in drivetemp_get_scttemp() argument
265 switch (attr) { in drivetemp_get_scttemp()
450 u32 attr, int channel, long *val) in drivetemp_read()
458 switch (attr) { in drivetemp_read()
449 drivetemp_read(struct device *dev, enum hwmon_sensor_types type, u32 attr, int channel, long *val) drivetemp_read() argument
485 drivetemp_is_visible(const void *data, enum hwmon_sensor_types type, u32 attr, int channel) drivetemp_is_visible() argument
[all...]
/kernel/linux/linux-5.10/tools/perf/util/
H A Dstat.c516 struct perf_event_attr *attr = &evsel->core.attr; in create_perf_stat_counter() local
519 attr->read_format = PERF_FORMAT_TOTAL_TIME_ENABLED | in create_perf_stat_counter()
528 attr->read_format |= PERF_FORMAT_ID|PERF_FORMAT_GROUP; in create_perf_stat_counter()
530 attr->inherit = !config->no_inherit; in create_perf_stat_counter()
536 attr->sample_period = 0; in create_perf_stat_counter()
539 attr->sample_type = PERF_SAMPLE_IDENTIFIER; in create_perf_stat_counter()
542 attr->exclude_kernel = 1; in create_perf_stat_counter()
543 attr->exclude_user = 0; in create_perf_stat_counter()
547 attr in create_perf_stat_counter()
[all...]
/kernel/linux/linux-5.10/fs/hpfs/
H A Dinode.c260 int hpfs_setattr(struct dentry *dentry, struct iattr *attr) in hpfs_setattr() argument
268 if ((attr->ia_valid & ATTR_UID) && in hpfs_setattr()
269 from_kuid(&init_user_ns, attr->ia_uid) >= 0x10000) in hpfs_setattr()
271 if ((attr->ia_valid & ATTR_GID) && in hpfs_setattr()
272 from_kgid(&init_user_ns, attr->ia_gid) >= 0x10000) in hpfs_setattr()
274 if ((attr->ia_valid & ATTR_SIZE) && attr->ia_size > inode->i_size) in hpfs_setattr()
277 error = setattr_prepare(dentry, attr); in hpfs_setattr()
281 if ((attr->ia_valid & ATTR_SIZE) && in hpfs_setattr()
282 attr in hpfs_setattr()
[all...]
/kernel/linux/linux-5.10/kernel/bpf/
H A Dlpm_trie.c543 static struct bpf_map *trie_alloc(union bpf_attr *attr) in trie_alloc() argument
553 if (attr->max_entries == 0 || in trie_alloc()
554 !(attr->map_flags & BPF_F_NO_PREALLOC) || in trie_alloc()
555 attr->map_flags & ~LPM_CREATE_FLAG_MASK || in trie_alloc()
556 !bpf_map_flags_access_ok(attr->map_flags) || in trie_alloc()
557 attr->key_size < LPM_KEY_SIZE_MIN || in trie_alloc()
558 attr->key_size > LPM_KEY_SIZE_MAX || in trie_alloc()
559 attr->value_size < LPM_VAL_SIZE_MIN || in trie_alloc()
560 attr->value_size > LPM_VAL_SIZE_MAX) in trie_alloc()
568 bpf_map_init_from_attr(&trie->map, attr); in trie_alloc()
[all...]
/kernel/linux/linux-5.10/kernel/trace/
H A Dtrace_event_perf.c52 ret = perf_allow_tracepoint(&p_event->attr); in perf_trace_event_perm()
64 if (!p_event->attr.exclude_callchain_user) in perf_trace_event_perm()
71 if (p_event->attr.sample_type & PERF_SAMPLE_STACK_USER) in perf_trace_event_perm()
76 if (!(p_event->attr.sample_type & PERF_SAMPLE_RAW)) in perf_trace_event_perm()
89 ret = perf_allow_tracepoint(&p_event->attr); in perf_trace_event_perm()
220 u64 event_id = p_event->attr.config; in perf_trace_init()
254 if (p_event->attr.kprobe_func) { in perf_kprobe_init()
259 func, u64_to_user_ptr(p_event->attr.kprobe_func), in perf_kprobe_init()
273 func, (void *)(unsigned long)(p_event->attr.kprobe_addr), in perf_kprobe_init()
274 p_event->attr in perf_kprobe_init()
[all...]
/kernel/linux/linux-5.10/drivers/scsi/arcmsr/
H A Darcmsr_attr.c194 .attr = {
203 .attr = {
212 .attr = {
261 struct device_attribute *attr, char *buf) in arcmsr_attr_host_driver_version()
270 struct device_attribute *attr, char *buf) in arcmsr_attr_host_driver_posted_cmd()
282 struct device_attribute *attr, char *buf) in arcmsr_attr_host_driver_reset()
294 struct device_attribute *attr, char *buf) in arcmsr_attr_host_driver_abort()
305 arcmsr_attr_host_fw_model(struct device *dev, struct device_attribute *attr, in arcmsr_attr_host_fw_model() argument
318 struct device_attribute *attr, char *buf) in arcmsr_attr_host_fw_version()
331 struct device_attribute *attr, cha in arcmsr_attr_host_fw_request_len()
260 arcmsr_attr_host_driver_version(struct device *dev, struct device_attribute *attr, char *buf) arcmsr_attr_host_driver_version() argument
269 arcmsr_attr_host_driver_posted_cmd(struct device *dev, struct device_attribute *attr, char *buf) arcmsr_attr_host_driver_posted_cmd() argument
281 arcmsr_attr_host_driver_reset(struct device *dev, struct device_attribute *attr, char *buf) arcmsr_attr_host_driver_reset() argument
293 arcmsr_attr_host_driver_abort(struct device *dev, struct device_attribute *attr, char *buf) arcmsr_attr_host_driver_abort() argument
317 arcmsr_attr_host_fw_version(struct device *dev, struct device_attribute *attr, char *buf) arcmsr_attr_host_fw_version() argument
330 arcmsr_attr_host_fw_request_len(struct device *dev, struct device_attribute *attr, char *buf) arcmsr_attr_host_fw_request_len() argument
343 arcmsr_attr_host_fw_numbers_queue(struct device *dev, struct device_attribute *attr, char *buf) arcmsr_attr_host_fw_numbers_queue() argument
356 arcmsr_attr_host_fw_sdram_size(struct device *dev, struct device_attribute *attr, char *buf) arcmsr_attr_host_fw_sdram_size() argument
369 arcmsr_attr_host_fw_hd_channels(struct device *dev, struct device_attribute *attr, char *buf) arcmsr_attr_host_fw_hd_channels() argument
[all...]
/kernel/linux/linux-5.10/drivers/staging/iio/adc/
H A Dad7816.c120 struct device_attribute *attr, in ad7816_show_mode()
132 struct device_attribute *attr, in ad7816_store_mode()
156 struct device_attribute *attr, in ad7816_show_available_modes()
166 struct device_attribute *attr, in ad7816_show_channel()
176 struct device_attribute *attr, in ad7816_store_channel()
214 struct device_attribute *attr, in ad7816_show_value()
242 &iio_dev_attr_available_modes.dev_attr.attr,
243 &iio_dev_attr_mode.dev_attr.attr,
244 &iio_dev_attr_channel.dev_attr.attr,
245 &iio_dev_attr_value.dev_attr.attr,
119 ad7816_show_mode(struct device *dev, struct device_attribute *attr, char *buf) ad7816_show_mode() argument
131 ad7816_store_mode(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) ad7816_store_mode() argument
155 ad7816_show_available_modes(struct device *dev, struct device_attribute *attr, char *buf) ad7816_show_available_modes() argument
165 ad7816_show_channel(struct device *dev, struct device_attribute *attr, char *buf) ad7816_show_channel() argument
175 ad7816_store_channel(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) ad7816_store_channel() argument
213 ad7816_show_value(struct device *dev, struct device_attribute *attr, char *buf) ad7816_show_value() argument
269 ad7816_show_oti(struct device *dev, struct device_attribute *attr, char *buf) ad7816_show_oti() argument
289 ad7816_set_oti(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) ad7816_set_oti() argument
[all...]
/kernel/linux/linux-6.6/drivers/accessibility/speakup/
H A Dspeakup_decpc.c197 &caps_start_attribute.attr,
198 &caps_stop_attribute.attr,
199 &pitch_attribute.attr,
200 &inflection_attribute.attr,
201 &punct_attribute.attr,
202 &rate_attribute.attr,
203 &voice_attribute.attr,
204 &vol_attribute.attr,
205 &delay_time_attribute.attr,
206 &direct_attribute.attr,
[all...]
/kernel/linux/linux-6.6/fs/hpfs/
H A Dinode.c261 struct iattr *attr) in hpfs_setattr()
269 if ((attr->ia_valid & ATTR_UID) && in hpfs_setattr()
270 from_kuid(&init_user_ns, attr->ia_uid) >= 0x10000) in hpfs_setattr()
272 if ((attr->ia_valid & ATTR_GID) && in hpfs_setattr()
273 from_kgid(&init_user_ns, attr->ia_gid) >= 0x10000) in hpfs_setattr()
275 if ((attr->ia_valid & ATTR_SIZE) && attr->ia_size > inode->i_size) in hpfs_setattr()
278 error = setattr_prepare(&nop_mnt_idmap, dentry, attr); in hpfs_setattr()
282 if ((attr->ia_valid & ATTR_SIZE) && in hpfs_setattr()
283 attr in hpfs_setattr()
260 hpfs_setattr(struct mnt_idmap *idmap, struct dentry *dentry, struct iattr *attr) hpfs_setattr() argument
[all...]
/kernel/linux/linux-6.6/drivers/staging/iio/adc/
H A Dad7816.c120 struct device_attribute *attr, in ad7816_show_mode()
132 struct device_attribute *attr, in ad7816_store_mode()
156 struct device_attribute *attr, in ad7816_show_available_modes()
166 struct device_attribute *attr, in ad7816_show_channel()
176 struct device_attribute *attr, in ad7816_store_channel()
214 struct device_attribute *attr, in ad7816_show_value()
242 &iio_dev_attr_available_modes.dev_attr.attr,
243 &iio_dev_attr_mode.dev_attr.attr,
244 &iio_dev_attr_channel.dev_attr.attr,
245 &iio_dev_attr_value.dev_attr.attr,
119 ad7816_show_mode(struct device *dev, struct device_attribute *attr, char *buf) ad7816_show_mode() argument
131 ad7816_store_mode(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) ad7816_store_mode() argument
155 ad7816_show_available_modes(struct device *dev, struct device_attribute *attr, char *buf) ad7816_show_available_modes() argument
165 ad7816_show_channel(struct device *dev, struct device_attribute *attr, char *buf) ad7816_show_channel() argument
175 ad7816_store_channel(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) ad7816_store_channel() argument
213 ad7816_show_value(struct device *dev, struct device_attribute *attr, char *buf) ad7816_show_value() argument
269 ad7816_show_oti(struct device *dev, struct device_attribute *attr, char *buf) ad7816_show_oti() argument
289 ad7816_set_oti(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) ad7816_set_oti() argument
[all...]
/kernel/linux/linux-6.6/drivers/platform/x86/dell/dell-wmi-sysman/
H A Dsysman.c142 * @attr: Kernel object attribute
145 static ssize_t reset_bios_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in reset_bios_show() argument
163 * @attr: Kernel object attribute
168 struct kobj_attribute *attr, const char *buf, size_t count) in reset_bios_store()
189 * @attr: Kernel object attribute
195 static ssize_t pending_reboot_show(struct kobject *kobj, struct kobj_attribute *attr, in pending_reboot_show() argument
213 ret = sysfs_create_file(&wmi_priv.main_dir_kset->kobj, &reset_bios.attr); in create_attributes_level_sysfs_files()
217 ret = sysfs_create_file(&wmi_priv.main_dir_kset->kobj, &pending_reboot.attr); in create_attributes_level_sysfs_files()
224 static ssize_t wmi_sysman_attr_show(struct kobject *kobj, struct attribute *attr, in wmi_sysman_attr_show() argument
230 kattr = container_of(attr, struc in wmi_sysman_attr_show()
167 reset_bios_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) reset_bios_store() argument
236 wmi_sysman_attr_store(struct kobject *kobj, struct attribute *attr, const char *buf, size_t count) wmi_sysman_attr_store() argument
[all...]
/kernel/linux/linux-6.6/drivers/char/tpm/
H A Dtpm_ppi.c51 struct device_attribute *attr, char *buf) in tpm_show_ppi_version()
59 struct device_attribute *attr, char *buf) in tpm_show_ppi_request()
113 struct device_attribute *attr, in tpm_store_ppi_request()
176 struct device_attribute *attr, in tpm_show_ppi_transition_action()
222 struct device_attribute *attr, in tpm_show_ppi_response()
325 struct device_attribute *attr, in tpm_show_ppi_tcg_operations()
335 struct device_attribute *attr, in tpm_show_ppi_vs_operations()
354 &dev_attr_version.attr,
355 &dev_attr_request.attr,
356 &dev_attr_transition_action.attr,
50 tpm_show_ppi_version(struct device *dev, struct device_attribute *attr, char *buf) tpm_show_ppi_version() argument
58 tpm_show_ppi_request(struct device *dev, struct device_attribute *attr, char *buf) tpm_show_ppi_request() argument
112 tpm_store_ppi_request(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) tpm_store_ppi_request() argument
175 tpm_show_ppi_transition_action(struct device *dev, struct device_attribute *attr, char *buf) tpm_show_ppi_transition_action() argument
221 tpm_show_ppi_response(struct device *dev, struct device_attribute *attr, char *buf) tpm_show_ppi_response() argument
324 tpm_show_ppi_tcg_operations(struct device *dev, struct device_attribute *attr, char *buf) tpm_show_ppi_tcg_operations() argument
334 tpm_show_ppi_vs_operations(struct device *dev, struct device_attribute *attr, char *buf) tpm_show_ppi_vs_operations() argument
[all...]
/kernel/linux/linux-6.6/drivers/clk/zynqmp/
H A Dclkc.c109 u32 attr[CLK_GET_ATTR_RESP_WORDS]; member
691 struct attr_resp attr; in zynqmp_get_clock_info() local
695 ret = zynqmp_pm_clock_get_attributes(i, &attr); in zynqmp_get_clock_info()
699 clock[i].valid = FIELD_GET(CLK_ATTR_VALID, attr.attr[0]); in zynqmp_get_clock_info()
705 clock[i].type = FIELD_GET(CLK_ATTR_TYPE, attr.attr[0]) ? in zynqmp_get_clock_info()
708 nodetype = FIELD_GET(CLK_ATTR_NODE_TYPE, attr.attr[0]); in zynqmp_get_clock_info()
709 subclass = FIELD_GET(CLK_ATTR_NODE_SUBCLASS, attr in zynqmp_get_clock_info()
[all...]
/kernel/linux/linux-6.6/drivers/infiniband/hw/hns/
H A Dhns_roce_srq.c294 struct ib_srq_attr *attr = &init_attr->attr; in set_srq_basic_param() local
298 if (attr->max_wr > hr_dev->caps.max_srq_wrs || in set_srq_basic_param()
299 attr->max_sge > max_sge) { in set_srq_basic_param()
301 "invalid SRQ attr, depth = %u, sge = %u.\n", in set_srq_basic_param()
302 attr->max_wr, attr->max_sge); in set_srq_basic_param()
306 attr->max_wr = max_t(u32, attr->max_wr, HNS_ROCE_MIN_SRQ_WQE_NUM); in set_srq_basic_param()
307 srq->wqe_cnt = roundup_pow_of_two(attr in set_srq_basic_param()
[all...]
/kernel/linux/linux-6.6/drivers/hwmon/
H A Ddrivetemp.c118 int (*get_temp)(struct drivetemp_data *st, u32 attr, long *val);
206 static int drivetemp_get_smarttemp(struct drivetemp_data *st, u32 attr, in drivetemp_get_smarttemp() argument
231 u8 *attr = buf + i * 12; in drivetemp_get_smarttemp() local
232 int id = attr[2]; in drivetemp_get_smarttemp()
238 temp_raw = attr[7]; in drivetemp_get_smarttemp()
242 temp_raw = attr[7]; in drivetemp_get_smarttemp()
256 static int drivetemp_get_scttemp(struct drivetemp_data *st, u32 attr, long *val) in drivetemp_get_scttemp() argument
264 switch (attr) { in drivetemp_get_scttemp()
449 u32 attr, int channel, long *val) in drivetemp_read()
457 switch (attr) { in drivetemp_read()
448 drivetemp_read(struct device *dev, enum hwmon_sensor_types type, u32 attr, int channel, long *val) drivetemp_read() argument
484 drivetemp_is_visible(const void *data, enum hwmon_sensor_types type, u32 attr, int channel) drivetemp_is_visible() argument
[all...]
H A Dnzxt-smart2.c311 u32 attr, int channel) in nzxt_smart2_hwmon_is_visible()
315 switch (attr) { in nzxt_smart2_hwmon_is_visible()
325 switch (attr) { in nzxt_smart2_hwmon_is_visible()
339 u32 attr, int channel, long *val) in nzxt_smart2_hwmon_read()
345 switch (attr) { in nzxt_smart2_hwmon_read()
367 switch (attr) { in nzxt_smart2_hwmon_read()
404 if (attr == hwmon_fan_input) { in nzxt_smart2_hwmon_read()
415 if (attr == hwmon_in_input) { in nzxt_smart2_hwmon_read()
426 if (attr == hwmon_curr_input) { in nzxt_smart2_hwmon_read()
600 enum hwmon_sensor_types type, u32 attr, in nzxt_smart2_hwmon_write()
309 nzxt_smart2_hwmon_is_visible(const void *data, enum hwmon_sensor_types type, u32 attr, int channel) nzxt_smart2_hwmon_is_visible() argument
338 nzxt_smart2_hwmon_read(struct device *dev, enum hwmon_sensor_types type, u32 attr, int channel, long *val) nzxt_smart2_hwmon_read() argument
599 nzxt_smart2_hwmon_write(struct device *dev, enum hwmon_sensor_types type, u32 attr, int channel, long val) nzxt_smart2_hwmon_write() argument
640 nzxt_smart2_hwmon_read_string(struct device *dev, enum hwmon_sensor_types type, u32 attr, int channel, const char **str) nzxt_smart2_hwmon_read_string() argument
[all...]
/kernel/linux/linux-6.6/tools/lib/perf/
H A Devsel.c22 void perf_evsel__init(struct perf_evsel *evsel, struct perf_event_attr *attr, in perf_evsel__init() argument
26 evsel->attr = *attr; in perf_evsel__init()
31 struct perf_evsel *perf_evsel__new(struct perf_event_attr *attr) in perf_evsel__new() argument
36 perf_evsel__init(evsel, attr, 0); in perf_evsel__new()
80 sys_perf_event_open(struct perf_event_attr *attr, in sys_perf_event_open() argument
84 return syscall(__NR_perf_event_open, attr, pid, cpu.cpu, group_fd, flags); in sys_perf_event_open()
161 fd = sys_perf_event_open(&evsel->attr, in perf_evsel__open()
294 u64 read_format = evsel->attr.read_format; in perf_evsel__read_size()
326 u64 read_format = evsel->attr in perf_evsel__read_group()
[all...]
/kernel/linux/linux-6.6/kernel/trace/
H A Dtrace_event_perf.c52 ret = perf_allow_tracepoint(&p_event->attr); in perf_trace_event_perm()
64 if (!p_event->attr.exclude_callchain_user) in perf_trace_event_perm()
71 if (p_event->attr.sample_type & PERF_SAMPLE_STACK_USER) in perf_trace_event_perm()
76 if (!(p_event->attr.sample_type & PERF_SAMPLE_RAW)) in perf_trace_event_perm()
89 ret = perf_allow_tracepoint(&p_event->attr); in perf_trace_event_perm()
218 u64 event_id = p_event->attr.config; in perf_trace_init()
253 if (p_event->attr.kprobe_func) { in perf_kprobe_init()
254 func = strndup_user(u64_to_user_ptr(p_event->attr.kprobe_func), in perf_kprobe_init()
268 func, (void *)(unsigned long)(p_event->attr.kprobe_addr), in perf_kprobe_init()
269 p_event->attr in perf_kprobe_init()
[all...]
/third_party/eudev/src/udev/
H A Dudev-builtin-net_id.c135 const char *attr; in dev_pci_onboard() local
139 attr = udev_device_get_sysattr_value(names->pcidev, "acpi_index"); in dev_pci_onboard()
141 if (!attr) in dev_pci_onboard()
142 attr = udev_device_get_sysattr_value(names->pcidev, "index"); in dev_pci_onboard()
143 if (!attr) in dev_pci_onboard()
146 idx = strtoul(attr, NULL, 0); in dev_pci_onboard()
151 attr = udev_device_get_sysattr_value(dev, "dev_port"); in dev_pci_onboard()
152 if (attr) in dev_pci_onboard()
153 dev_port = strtol(attr, NULL, 10); in dev_pci_onboard()
193 const char *attr; in dev_pci_slot() local
[all...]
/third_party/gn/src/base/files/
H A Dfile_util_win.cc116 const DWORD attr = ::GetFileAttributes(ToWCharT(&path.value())); in DoDeleteFile() local
117 if (attr == INVALID_FILE_ATTRIBUTES) { in DoDeleteFile()
126 if ((attr & FILE_ATTRIBUTE_READONLY) && in DoDeleteFile()
128 attr & ~FILE_ATTRIBUTE_READONLY)) { in DoDeleteFile()
133 if (!(attr & FILE_ATTRIBUTE_DIRECTORY)) { in DoDeleteFile()
530 WIN32_FILE_ATTRIBUTE_DATA attr; in GetFileInfo() local
532 &attr)) { in GetFileInfo()
537 size.HighPart = attr.nFileSizeHigh; in GetFileInfo()
538 size.LowPart = attr.nFileSizeLow; in GetFileInfo()
542 (attr in GetFileInfo()
[all...]
/third_party/cups-filters/cupsfilters/
H A Dcolord.c54 ppd_attr_t *attr; in colord_get_qualifier_for_ppd() local
60 if ((attr = ppdFindAttr (ppd, "cupsICCQualifier1", NULL)) != NULL && in colord_get_qualifier_for_ppd()
61 attr->value && attr->value[0]) in colord_get_qualifier_for_ppd()
63 snprintf (q_keyword, sizeof (q_keyword), "Default%s", attr->value); in colord_get_qualifier_for_ppd()
75 if ((attr = ppdFindAttr(ppd, "cupsICCQualifier2", NULL)) != NULL && in colord_get_qualifier_for_ppd()
76 attr->value && attr->value[0]) in colord_get_qualifier_for_ppd()
78 snprintf(q_keyword, sizeof(q_keyword), "Default%s", attr->value); in colord_get_qualifier_for_ppd()
90 if ((attr in colord_get_qualifier_for_ppd()
[all...]
/foundation/ai/ai_engine/services/common/platform/os_wrapper/audio_loader/source/codec/
H A Ddecoder_wrapper.cpp52 Param attr[AUDIO_DECODE_PARAM_NUM]; in InitCodecAttr() local
54 int32_t ret = memset_s(attr, paramSize, 0x00, paramSize); in InitCodecAttr()
60 attr[index++] = {.key = KEY_MIMETYPE, .val = (void *)(&codecMime_), .size = sizeof(AvCodecMime)}; in InitCodecAttr()
61 attr[index++] = {.key = KEY_BUFFERSIZE, .val = (void *)(&bufSize_), .size = sizeof(uint32_t)}; in InitCodecAttr()
62 attr[index++] = {.key = KEY_CODEC_TYPE, .val = (void *)(&decodeType_), .size = sizeof(CodecType)}; in InitCodecAttr()
65 ret = CodecCreate(CODER_NAME.c_str(), attr, index, &codeHandle_); in InitCodecAttr()

Completed in 20 milliseconds

1...<<81828384858687888990>>...346