Searched refs:attr (Results 201 - 225 of 3244) sorted by relevance

1234567891011>>

/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dtask_fd_query_tp.c9 struct perf_event_attr attr = {}; local
36 attr.config = strtol(buf, NULL, 0);
37 attr.type = PERF_TYPE_TRACEPOINT;
38 attr.sample_type = PERF_SAMPLE_RAW;
39 attr.sample_period = 1;
40 attr.wakeup_events = 1;
41 pmu_fd = syscall(__NR_perf_event_open, &attr, -1 /* pid */,
/linux-master/drivers/hwmon/
H A Dmax6639.c160 struct sensor_device_attribute *attr = to_sensor_dev_attr(dev_attr); local
165 temp = data->temp[attr->index] * 125;
173 struct sensor_device_attribute *attr = to_sensor_dev_attr(dev_attr); local
178 return sprintf(buf, "%d\n", data->temp_fault[attr->index]);
184 struct sensor_device_attribute *attr = to_sensor_dev_attr(dev_attr); local
187 return sprintf(buf, "%d\n", (data->temp_therm[attr->index] * 1000));
194 struct sensor_device_attribute *attr = to_sensor_dev_attr(dev_attr); local
205 data->temp_therm[attr->index] = TEMP_LIMIT_TO_REG(val);
207 MAX6639_REG_THERM_LIMIT(attr->index),
208 data->temp_therm[attr
216 struct sensor_device_attribute *attr = to_sensor_dev_attr(dev_attr); local
226 struct sensor_device_attribute *attr = to_sensor_dev_attr(dev_attr); local
249 struct sensor_device_attribute *attr = to_sensor_dev_attr(dev_attr); local
259 struct sensor_device_attribute *attr = to_sensor_dev_attr(dev_attr); local
281 struct sensor_device_attribute *attr = to_sensor_dev_attr(dev_attr); local
291 struct sensor_device_attribute *attr = to_sensor_dev_attr(dev_attr); local
316 struct sensor_device_attribute *attr = to_sensor_dev_attr(dev_attr); local
329 struct sensor_device_attribute *attr = to_sensor_dev_attr(dev_attr); local
[all...]
H A Dltc4222.c91 struct sensor_device_attribute *attr = to_sensor_dev_attr(da); local
94 value = ltc4222_get_value(dev, attr->index);
103 struct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(da); local
108 ret = regmap_read(regmap, attr->nr, &fault);
111 fault &= attr->index;
113 regmap_update_bits(regmap, attr->nr, attr->index, 0);
154 &sensor_dev_attr_in1_input.dev_attr.attr,
155 &sensor_dev_attr_in1_min_alarm.dev_attr.attr,
156 &sensor_dev_attr_in1_max_alarm.dev_attr.attr,
[all...]
H A Daxi-fan-control.c82 struct sensor_device_attribute *attr = to_sensor_dev_attr(da); local
83 u32 temp = axi_ioread(attr->index, ctl);
94 struct sensor_device_attribute *attr = to_sensor_dev_attr(da); local
103 axi_iowrite(temp, attr->index, ctl);
151 static int axi_fan_control_read_temp(struct device *dev, u32 attr, long *val) argument
156 switch (attr) {
172 static int axi_fan_control_read_fan(struct device *dev, u32 attr, long *val) argument
176 switch (attr) {
190 static int axi_fan_control_read_pwm(struct device *dev, u32 attr, long *val) argument
194 switch (attr) {
203 axi_fan_control_write_pwm(struct device *dev, u32 attr, long val) argument
215 axi_fan_control_read_labels(struct device *dev, enum hwmon_sensor_types type, u32 attr, int channel, const char **str) argument
231 axi_fan_control_read(struct device *dev, enum hwmon_sensor_types type, u32 attr, int channel, long *val) argument
247 axi_fan_control_write(struct device *dev, enum hwmon_sensor_types type, u32 attr, int channel, long val) argument
259 axi_fan_control_fan_is_visible(const u32 attr) argument
271 axi_fan_control_pwm_is_visible(const u32 attr) argument
281 axi_fan_control_temp_is_visible(const u32 attr) argument
292 axi_fan_control_is_visible(const void *data, enum hwmon_sensor_types type, u32 attr, int channel) argument
[all...]
H A Dthmc50.c119 struct device_attribute *attr, char *buf)
126 struct device_attribute *attr,
157 struct device_attribute *attr, char *buf)
163 static ssize_t temp_show(struct device *dev, struct device_attribute *attr, argument
166 int nr = to_sensor_dev_attr(attr)->index;
172 struct device_attribute *attr, char *buf)
174 int nr = to_sensor_dev_attr(attr)->index;
180 struct device_attribute *attr, const char *buf,
183 int nr = to_sensor_dev_attr(attr)->index;
202 struct device_attribute *attr, cha
118 analog_out_show(struct device *dev, struct device_attribute *attr, char *buf) argument
125 analog_out_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
156 pwm_mode_show(struct device *dev, struct device_attribute *attr, char *buf) argument
171 temp_min_show(struct device *dev, struct device_attribute *attr, char *buf) argument
179 temp_min_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
201 temp_max_show(struct device *dev, struct device_attribute *attr, char *buf) argument
209 temp_max_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
231 temp_critical_show(struct device *dev, struct device_attribute *attr, char *buf) argument
239 alarm_show(struct device *dev, struct device_attribute *attr, char *buf) argument
[all...]
H A Dsmsc47m192.c169 static ssize_t in_show(struct device *dev, struct device_attribute *attr, argument
172 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr);
178 static ssize_t in_min_show(struct device *dev, struct device_attribute *attr, argument
181 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr);
187 static ssize_t in_max_show(struct device *dev, struct device_attribute *attr, argument
190 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr);
196 static ssize_t in_min_store(struct device *dev, struct device_attribute *attr, argument
199 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr);
218 static ssize_t in_max_store(struct device *dev, struct device_attribute *attr, argument
221 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr);
266 temp_show(struct device *dev, struct device_attribute *attr, char *buf) argument
275 temp_min_show(struct device *dev, struct device_attribute *attr, char *buf) argument
284 temp_max_show(struct device *dev, struct device_attribute *attr, char *buf) argument
293 temp_min_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
316 temp_max_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
339 temp_offset_show(struct device *dev, struct device_attribute *attr, char *buf) argument
348 temp_offset_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
400 cpu0_vid_show(struct device *dev, struct device_attribute *attr, char *buf) argument
408 vrm_show(struct device *dev, struct device_attribute *attr, char *buf) argument
415 vrm_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
434 alarm_show(struct device *dev, struct device_attribute *attr, char *buf) argument
[all...]
/linux-master/drivers/pcmcia/
H A Dsocket_sysfs.c33 static ssize_t pccard_show_type(struct device *dev, struct device_attribute *attr, argument
46 static ssize_t pccard_show_voltage(struct device *dev, struct device_attribute *attr, argument
60 static ssize_t pccard_show_vpp(struct device *dev, struct device_attribute *attr, argument
70 static ssize_t pccard_show_vcc(struct device *dev, struct device_attribute *attr, argument
81 static ssize_t pccard_store_insert(struct device *dev, struct device_attribute *attr, argument
97 struct device_attribute *attr,
105 struct device_attribute *attr,
128 struct device_attribute *attr,
144 struct device_attribute *attr,
152 struct device_attribute *attr,
96 pccard_show_card_pm_state(struct device *dev, struct device_attribute *attr, char *buf) argument
104 pccard_store_card_pm_state(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
127 pccard_store_eject(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
143 pccard_show_irq_mask(struct device *dev, struct device_attribute *attr, char *buf) argument
151 pccard_store_irq_mask(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
176 pccard_show_resource(struct device *dev, struct device_attribute *attr, char *buf) argument
183 pccard_store_resource(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
[all...]
/linux-master/tools/testing/selftests/bpf/progs/
H A Dsyscall.c165 union bpf_attr *attr; local
167 attr = bpf_map_lookup_elem((struct bpf_map *)&bpf_attr_array, &zero);
168 if (!attr)
171 memset(attr, 0, attr_sz);
172 attr->map_id = ((struct bpf_map *)&outer_array_map)->id;
173 outer_fd = bpf_sys_bpf(BPF_MAP_GET_FD_BY_ID, attr, attr_sz);
177 memset(attr, 0, attr_sz);
178 attr->map_type = BPF_MAP_TYPE_ARRAY;
179 attr->key_size = 4;
180 attr
[all...]
/linux-master/drivers/pci/
H A Dpci-sysfs.c39 field##_show(struct device *dev, struct device_attribute *attr, char *buf) \
56 struct device_attribute *attr,
75 struct device_attribute *attr,
83 struct device_attribute *attr,
99 struct device_attribute *attr, char *buf)
115 struct device_attribute *attr, char *buf)
117 return pci_dev_show_local_cpu(dev, false, attr, buf);
122 struct device_attribute *attr, char *buf)
124 return pci_dev_show_local_cpu(dev, true, attr, buf);
132 struct device_attribute *attr, cha
55 irq_show(struct device *dev, struct device_attribute *attr, char *buf) argument
74 broken_parity_status_show(struct device *dev, struct device_attribute *attr, char *buf) argument
82 broken_parity_status_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
98 pci_dev_show_local_cpu(struct device *dev, bool list, struct device_attribute *attr, char *buf) argument
114 local_cpus_show(struct device *dev, struct device_attribute *attr, char *buf) argument
121 local_cpulist_show(struct device *dev, struct device_attribute *attr, char *buf) argument
131 cpuaffinity_show(struct device *dev, struct device_attribute *attr, char *buf) argument
140 cpulistaffinity_show(struct device *dev, struct device_attribute *attr, char *buf) argument
149 power_state_show(struct device *dev, struct device_attribute *attr, char *buf) argument
159 resource_show(struct device *dev, struct device_attribute *attr, char *buf) argument
185 max_link_speed_show(struct device *dev, struct device_attribute *attr, char *buf) argument
195 max_link_width_show(struct device *dev, struct device_attribute *attr, char *buf) argument
204 current_link_speed_show(struct device *dev, struct device_attribute *attr, char *buf) argument
222 current_link_width_show(struct device *dev, struct device_attribute *attr, char *buf) argument
237 secondary_bus_number_show(struct device *dev, struct device_attribute *attr, char *buf) argument
253 subordinate_bus_number_show(struct device *dev, struct device_attribute *attr, char *buf) argument
269 ari_enabled_show(struct device *dev, struct device_attribute *attr, char *buf) argument
279 modalias_show(struct device *dev, struct device_attribute *attr, char *buf) argument
292 enable_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
320 enable_show(struct device *dev, struct device_attribute *attr, char *buf) argument
331 numa_node_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
358 numa_node_show(struct device *dev, struct device_attribute *attr, char *buf) argument
366 dma_mask_bits_show(struct device *dev, struct device_attribute *attr, char *buf) argument
375 consistent_dma_mask_bits_show(struct device *dev, struct device_attribute *attr, char *buf) argument
383 msi_bus_show(struct device *dev, struct device_attribute *attr, char *buf) argument
394 msi_bus_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
462 dev_rescan_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
482 remove_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
497 bus_rescan_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
521 d3cold_allowed_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
539 d3cold_allowed_show(struct device *dev, struct device_attribute *attr, char *buf) argument
549 devspec_show(struct device *dev, struct device_attribute *attr, char *buf) argument
562 driver_override_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
576 driver_override_show(struct device *dev, struct device_attribute *attr, char *buf) argument
651 boot_vga_show(struct device *dev, struct device_attribute *attr, char *buf) argument
839 pci_llseek_resource(struct file *filep, struct kobject *kobj __always_unused, struct bin_attribute *attr, loff_t offset, int whence) argument
909 pci_mmap_legacy_mem(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, struct vm_area_struct *vma) argument
929 pci_mmap_legacy_io(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, struct vm_area_struct *vma) argument
1034 pci_mmap_resource(struct kobject *kobj, struct bin_attribute *attr, struct vm_area_struct *vma, int write_combine) argument
1058 pci_mmap_resource_uc(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, struct vm_area_struct *vma) argument
1065 pci_mmap_resource_wc(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, struct vm_area_struct *vma) argument
1072 pci_resource_io(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count, bool write) argument
1115 pci_read_resource_io(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) argument
1122 pci_write_resource_io(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) argument
1346 reset_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
[all...]
/linux-master/drivers/gpu/drm/i915/gt/
H A Dsysfs_engines.c25 name_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
34 class_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
43 inst_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
52 mmio_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
121 caps_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
132 all_caps_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
141 max_spin_store(struct kobject *kobj, struct kobj_attribute *attr, argument
179 max_spin_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
190 max_spin_default(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
201 timeslice_store(struct kobject *kobj, struct kobj_attribute *attr, argument
233 timeslice_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
244 timeslice_default(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
255 stop_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) argument
284 stop_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
295 stop_default(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
306 preempt_timeout_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) argument
339 preempt_timeout_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
351 preempt_timeout_default(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
363 heartbeat_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) argument
396 heartbeat_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
407 heartbeat_default(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
[all...]
/linux-master/drivers/macintosh/
H A Dwindfarm_core.c160 struct device_attribute *attr, char *buf)
162 struct wf_control *ctrl = container_of(attr, struct wf_control, attr);
188 struct device_attribute *attr,
191 struct wf_control *ctrl = container_of(attr, struct wf_control, attr);
223 sysfs_attr_init(&new_ct->attr.attr);
224 new_ct->attr.attr
159 wf_show_control(struct device *dev, struct device_attribute *attr, char *buf) argument
187 wf_store_control(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
289 wf_show_sensor(struct device *dev, struct device_attribute *attr, char *buf) argument
[all...]
/linux-master/drivers/base/power/
H A Dsysfs.c101 static ssize_t control_show(struct device *dev, struct device_attribute *attr, argument
108 static ssize_t control_store(struct device * dev, struct device_attribute *attr, argument
125 struct device_attribute *attr,
138 struct device_attribute *attr,
151 struct device_attribute *attr, char *buf)
183 struct device_attribute *attr,
193 struct device_attribute *attr, const char *buf, size_t n)
212 struct device_attribute *attr,
226 struct device_attribute *attr,
256 struct device_attribute *attr,
124 runtime_active_time_show(struct device *dev, struct device_attribute *attr, char *buf) argument
137 runtime_suspended_time_show(struct device *dev, struct device_attribute *attr, char *buf) argument
150 runtime_status_show(struct device *dev, struct device_attribute *attr, char *buf) argument
182 autosuspend_delay_ms_show(struct device *dev, struct device_attribute *attr, char *buf) argument
192 autosuspend_delay_ms_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t n) argument
211 pm_qos_resume_latency_us_show(struct device *dev, struct device_attribute *attr, char *buf) argument
225 pm_qos_resume_latency_us_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t n) argument
255 pm_qos_latency_tolerance_us_show(struct device *dev, struct device_attribute *attr, char *buf) argument
269 pm_qos_latency_tolerance_us_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t n) argument
294 pm_qos_no_power_off_show(struct device *dev, struct device_attribute *attr, char *buf) argument
302 pm_qos_no_power_off_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t n) argument
324 wakeup_show(struct device *dev, struct device_attribute *attr, char *buf) argument
332 wakeup_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t n) argument
349 wakeup_count_show(struct device *dev, struct device_attribute *attr, char *buf) argument
369 wakeup_active_count_show(struct device *dev, struct device_attribute *attr, char *buf) argument
390 wakeup_abort_count_show(struct device *dev, struct device_attribute *attr, char *buf) argument
411 wakeup_expire_count_show(struct device *dev, struct device_attribute *attr, char *buf) argument
432 wakeup_active_show(struct device *dev, struct device_attribute *attr, char *buf) argument
452 wakeup_total_time_ms_show(struct device *dev, struct device_attribute *attr, char *buf) argument
473 wakeup_max_time_ms_show(struct device *dev, struct device_attribute *attr, char *buf) argument
493 wakeup_last_time_ms_show(struct device *dev, struct device_attribute *attr, char *buf) argument
523 wakeup_prevent_sleep_time_ms_show(struct device *dev, struct device_attribute *attr, char *buf) argument
553 runtime_usage_show(struct device *dev, struct device_attribute *attr, char *buf) argument
560 runtime_active_kids_show(struct device *dev, struct device_attribute *attr, char *buf) argument
569 runtime_enabled_show(struct device *dev, struct device_attribute *attr, char *buf) argument
588 async_show(struct device *dev, struct device_attribute *attr, char *buf) argument
596 async_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t n) argument
[all...]
/linux-master/drivers/accessibility/speakup/
H A Dspeakup_dummy.c84 &caps_start_attribute.attr,
85 &caps_stop_attribute.attr,
86 &pitch_attribute.attr,
87 &inflection_attribute.attr,
88 &punct_attribute.attr,
89 &rate_attribute.attr,
90 &tone_attribute.attr,
91 &vol_attribute.attr,
92 &delay_time_attribute.attr,
93 &direct_attribute.attr,
[all...]
/linux-master/drivers/gpu/drm/nouveau/
H A Dnouveau_hwmon.c194 &sensor_dev_attr_pwm1_min.dev_attr.attr,
195 &sensor_dev_attr_pwm1_max.dev_attr.attr,
203 &sensor_dev_attr_temp1_auto_point1_pwm.dev_attr.attr,
204 &sensor_dev_attr_temp1_auto_point1_temp.dev_attr.attr,
205 &sensor_dev_attr_temp1_auto_point1_temp_hyst.dev_attr.attr,
236 nouveau_chip_is_visible(const void *data, u32 attr, int channel) argument
238 switch (attr) {
247 nouveau_power_is_visible(const void *data, u32 attr, int channel) argument
255 switch (attr) {
272 nouveau_temp_is_visible(const void *data, u32 attr, in argument
296 nouveau_pwm_is_visible(const void *data, u32 attr, int channel) argument
315 nouveau_input_is_visible(const void *data, u32 attr, int channel) argument
335 nouveau_fan_is_visible(const void *data, u32 attr, int channel) argument
352 nouveau_chip_read(struct device *dev, u32 attr, int channel, long *val) argument
366 nouveau_temp_read(struct device *dev, u32 attr, int channel, long *val) argument
415 nouveau_fan_read(struct device *dev, u32 attr, int channel, long *val) argument
438 nouveau_in_read(struct device *dev, u32 attr, int channel, long *val) argument
469 nouveau_pwm_read(struct device *dev, u32 attr, int channel, long *val) argument
495 nouveau_power_read(struct device *dev, u32 attr, int channel, long *val) argument
524 nouveau_temp_write(struct device *dev, u32 attr, int channel, long val) argument
558 nouveau_pwm_write(struct device *dev, u32 attr, int channel, long val) argument
578 nouveau_is_visible(const void *data, enum hwmon_sensor_types type, u32 attr, int channel) argument
602 nouveau_read_string(struct device *dev, enum hwmon_sensor_types type, u32 attr, int channel, const char **buf) argument
614 nouveau_read(struct device *dev, enum hwmon_sensor_types type, u32 attr, int channel, long *val) argument
636 nouveau_write(struct device *dev, enum hwmon_sensor_types type, u32 attr, int channel, long val) argument
[all...]
/linux-master/drivers/soundwire/
H A Dmaster.c39 struct device_attribute *attr, \
57 struct device_attribute *attr, char *buf)
73 struct device_attribute *attr, char *buf)
89 &dev_attr_revision.attr,
90 &dev_attr_clk_stop_modes.attr,
91 &dev_attr_max_clk_freq.attr,
92 &dev_attr_default_row.attr,
93 &dev_attr_default_col.attr,
94 &dev_attr_default_frame_rate.attr,
95 &dev_attr_dynamic_frame.attr,
56 clock_frequencies_show(struct device *dev, struct device_attribute *attr, char *buf) argument
72 clock_gears_show(struct device *dev, struct device_attribute *attr, char *buf) argument
[all...]
/linux-master/drivers/net/ethernet/netronome/nfp/
H A Dnfp_hwmon.c27 nfp_hwmon_read(struct device *dev, enum hwmon_sensor_types type, u32 attr, argument
32 u32 attr; member in struct:__anon1432
44 if (const_vals[i].type == type && const_vals[i].attr == attr) {
57 if (type == hwmon_temp && attr == hwmon_temp_input)
59 if (type == hwmon_power && attr == hwmon_power_input)
66 nfp_hwmon_is_visible(const void *data, enum hwmon_sensor_types type, u32 attr, argument
70 switch (attr) {
77 switch (attr) {
/linux-master/drivers/staging/media/atomisp/pci/
H A Datomisp_drvfs.c77 static ssize_t dbglvl_show(struct device *dev, struct device_attribute *attr, argument
85 static ssize_t dbglvl_store(struct device *dev, struct device_attribute *attr, argument
103 static ssize_t dbgfun_show(struct device *dev, struct device_attribute *attr, argument
111 static ssize_t dbgfun_store(struct device *dev, struct device_attribute *attr, argument
126 static ssize_t dbgopt_show(struct device *dev, struct device_attribute *attr, argument
132 static ssize_t dbgopt_store(struct device *dev, struct device_attribute *attr, argument
153 &dev_attr_dbglvl.attr,
154 &dev_attr_dbgfun.attr,
155 &dev_attr_dbgopt.attr,
/linux-master/fs/sysfs/
H A Dgroup.c23 struct attribute *const *attr; local
27 for (attr = grp->attrs; *attr; attr++)
28 kernfs_remove_by_name(parent, (*attr)->name);
31 kernfs_remove_by_name(parent, (*bin_attr)->attr.name);
49 struct attribute *const *attr; local
54 for (i = 0, attr = grp->attrs; *attr && !error; i++, attr
363 struct attribute *const *attr; local
394 struct attribute *const *attr; local
506 struct attribute *const *attr; local
[all...]
/linux-master/include/rdma/
H A Dib_cache.h15 void *rdma_read_gid_hw_context(const struct ib_gid_attr *attr);
31 int rdma_read_gid_l2_fields(const struct ib_gid_attr *attr,
33 struct net_device *rdma_read_gid_attr_ndev_rcu(const struct ib_gid_attr *attr);
111 void rdma_put_gid_attr(const struct ib_gid_attr *attr);
112 void rdma_hold_gid_attr(const struct ib_gid_attr *attr);
/linux-master/tools/testing/selftests/powerpc/pmu/sampling_tests/
H A Dmmcr1_sel_unit_cache_test.c37 event.attr.sample_regs_intr = platform_extended_mask;
38 event.attr.sample_period = 1;
62 FAIL_IF(EV_CODE_EXTRACT(event.attr.config, pmcxsel) !=
64 FAIL_IF(EV_CODE_EXTRACT(event.attr.config, unit) !=
66 FAIL_IF(EV_CODE_EXTRACT(event.attr.config, cache) !=
/linux-master/arch/powerpc/platforms/powernv/
H A Dopal-sensor-groups.c22 struct kobj_attribute attr; member in struct:sg_attr
59 static ssize_t sg_store(struct kobject *kobj, struct kobj_attribute *attr, argument
62 struct sg_attr *sattr = container_of(attr, struct sg_attr, attr);
114 ssize_t (*store)(struct kobject *kobj, struct kobj_attribute *attr,
120 static void add_attr(int handle, struct sg_attr *attr, int index) argument
122 attr->handle = handle;
123 sysfs_attr_init(&attr->attr.attr);
[all...]
/linux-master/mm/
H A Dfailslab.c8 struct fault_attr attr; member in struct:__anon189
12 .attr = FAULT_ATTR_INITIALIZER,
44 return should_fail_ex(&failslab.attr, s->object_size, flags);
49 return setup_fault_attr(&failslab.attr, str);
59 dir = fault_create_debugfs_attr("failslab", NULL, &failslab.attr);
H A Dfail_page_alloc.c6 struct fault_attr attr; member in struct:__anon4769
12 .attr = FAULT_ATTR_INITIALIZER,
20 return setup_fault_attr(&fail_page_alloc.attr, str);
42 return should_fail_ex(&fail_page_alloc.attr, 1 << order, flags);
53 &fail_page_alloc.attr);
/linux-master/drivers/staging/greybus/
H A Daudio_manager_module.c14 container_of(x, struct gb_audio_manager_module_attribute, attr)
22 struct attribute attr; member in struct:gb_audio_manager_module_attribute
24 struct gb_audio_manager_module_attribute *attr,
27 struct gb_audio_manager_module_attribute *attr,
32 struct attribute *attr, char *buf)
37 attribute = to_gb_audio_module_attr(attr);
47 struct attribute *attr,
53 attribute = to_gb_audio_module_attr(attr);
77 struct gb_audio_manager_module_attribute *attr, char *buf)
86 struct gb_audio_manager_module_attribute *attr, cha
31 gb_audio_module_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) argument
46 gb_audio_module_attr_store(struct kobject *kobj, struct attribute *attr, const char *buf, size_t len) argument
76 gb_audio_module_name_show(struct gb_audio_manager_module *module, struct gb_audio_manager_module_attribute *attr, char *buf) argument
85 gb_audio_module_vid_show(struct gb_audio_manager_module *module, struct gb_audio_manager_module_attribute *attr, char *buf) argument
94 gb_audio_module_pid_show(struct gb_audio_manager_module *module, struct gb_audio_manager_module_attribute *attr, char *buf) argument
103 gb_audio_module_intf_id_show(struct gb_audio_manager_module *module, struct gb_audio_manager_module_attribute *attr, char *buf) argument
114 gb_audio_module_ip_devices_show(struct gb_audio_manager_module *module, struct gb_audio_manager_module_attribute *attr, char *buf) argument
125 gb_audio_module_op_devices_show(struct gb_audio_manager_module *module, struct gb_audio_manager_module_attribute *attr, char *buf) argument
[all...]
/linux-master/drivers/nvme/host/
H A Dfault_inject.c22 struct fault_attr *attr = &fault_inj->attr; local
35 *attr = fail_default_attr;
36 dir = fault_create_debugfs_attr("fault_inject", parent, attr);
38 pr_warn("%s: failed to create debugfs attr\n", dev_name);
74 if (fault_inject && should_fail(&fault_inject->attr, 1)) {

Completed in 381 milliseconds

1234567891011>>