Home
last modified time | relevance | path

Searched refs:attr (Results 1 – 25 of 1409) sorted by relevance

12345678910>>...57

/linux-3.4.99/arch/x86/include/asm/
Dinat.h112 static inline int inat_is_legacy_prefix(insn_attr_t attr) in inat_is_legacy_prefix() argument
114 attr &= INAT_PFX_MASK; in inat_is_legacy_prefix()
115 return attr && attr <= INAT_LGCPFX_MAX; in inat_is_legacy_prefix()
118 static inline int inat_is_address_size_prefix(insn_attr_t attr) in inat_is_address_size_prefix() argument
120 return (attr & INAT_PFX_MASK) == INAT_PFX_ADDRSZ; in inat_is_address_size_prefix()
123 static inline int inat_is_operand_size_prefix(insn_attr_t attr) in inat_is_operand_size_prefix() argument
125 return (attr & INAT_PFX_MASK) == INAT_PFX_OPNDSZ; in inat_is_operand_size_prefix()
128 static inline int inat_is_rex_prefix(insn_attr_t attr) in inat_is_rex_prefix() argument
130 return (attr & INAT_PFX_MASK) == INAT_PFX_REX; in inat_is_rex_prefix()
133 static inline int inat_last_prefix_id(insn_attr_t attr) in inat_last_prefix_id() argument
[all …]
/linux-3.4.99/drivers/scsi/
Discsi_boot_sysfs.c32 struct attribute attr; member
41 struct attribute *attr, char *buf) in iscsi_boot_show_attribute() argument
46 container_of(attr, struct iscsi_boot_attr, attr); in iscsi_boot_show_attribute()
79 .attr = { .name = __stringify(sysfs_name), .mode = 0444 }, \
100 &iscsi_boot_attr_tgt_index.attr,
101 &iscsi_boot_attr_tgt_flags.attr,
102 &iscsi_boot_attr_tgt_ip.attr,
103 &iscsi_boot_attr_tgt_port.attr,
104 &iscsi_boot_attr_tgt_lun.attr,
105 &iscsi_boot_attr_tgt_chap.attr,
[all …]
/linux-3.4.99/drivers/infiniband/core/
Dsysfs.c52 struct attribute attr; member
65 struct port_attribute attr; member
71 struct attribute *attr, char *buf) in port_attr_show() argument
74 container_of(attr, struct port_attribute, attr); in port_attr_show()
90 struct ib_port_attr attr; in state_show() local
102 ret = ib_query_port(p->ibdev, p->port_num, &attr); in state_show()
106 return sprintf(buf, "%d: %s\n", attr.state, in state_show()
107 attr.state >= 0 && attr.state < ARRAY_SIZE(state_name) ? in state_show()
108 state_name[attr.state] : "UNKNOWN"); in state_show()
114 struct ib_port_attr attr; in lid_show() local
[all …]
/linux-3.4.99/lib/
Dfault-inject.c17 int setup_fault_attr(struct fault_attr *attr, char *str) in setup_fault_attr() argument
32 attr->probability = probability; in setup_fault_attr()
33 attr->interval = interval; in setup_fault_attr()
34 atomic_set(&attr->times, times); in setup_fault_attr()
35 atomic_set(&attr->space, space); in setup_fault_attr()
41 static void fail_dump(struct fault_attr *attr) in fail_dump() argument
43 if (attr->verbose > 0) in fail_dump()
45 if (attr->verbose > 1) in fail_dump()
51 static bool fail_task(struct fault_attr *attr, struct task_struct *task) in fail_task() argument
60 static bool fail_stacktrace(struct fault_attr *attr) in fail_stacktrace() argument
[all …]
/linux-3.4.99/drivers/staging/iio/meter/
Dade7854.c26 struct device_attribute *attr, in ade7854_read_8bit() argument
33 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ade7854_read_8bit()
43 struct device_attribute *attr, in ade7854_read_16bit() argument
50 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ade7854_read_16bit()
60 struct device_attribute *attr, in ade7854_read_24bit() argument
67 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ade7854_read_24bit()
77 struct device_attribute *attr, in ade7854_read_32bit() argument
82 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ade7854_read_32bit()
94 struct device_attribute *attr, in ade7854_write_8bit() argument
98 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ade7854_write_8bit()
[all …]
/linux-3.4.99/drivers/base/
Dsoc.c22 struct device_attribute *attr,
27 struct soc_device_attribute *attr; member
46 struct attribute *attr, in soc_attribute_mode() argument
52 if ((attr == &dev_attr_machine.attr) in soc_attribute_mode()
53 && (soc_dev->attr->machine != NULL)) in soc_attribute_mode()
54 return attr->mode; in soc_attribute_mode()
55 if ((attr == &dev_attr_family.attr) in soc_attribute_mode()
56 && (soc_dev->attr->family != NULL)) in soc_attribute_mode()
57 return attr->mode; in soc_attribute_mode()
58 if ((attr == &dev_attr_revision.attr) in soc_attribute_mode()
[all …]
/linux-3.4.99/drivers/hwmon/
Dadt7462.c817 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in show_temp_min() local
820 if (!temp_enabled(data, attr->index)) in show_temp_min()
823 return sprintf(buf, "%d\n", 1000 * (data->temp_min[attr->index] - 64)); in show_temp_min()
831 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in set_temp_min() local
836 if (kstrtol(buf, 10, &temp) || !temp_enabled(data, attr->index)) in set_temp_min()
843 data->temp_min[attr->index] = temp; in set_temp_min()
844 i2c_smbus_write_byte_data(client, ADT7462_TEMP_MIN_REG(attr->index), in set_temp_min()
855 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in show_temp_max() local
858 if (!temp_enabled(data, attr->index)) in show_temp_max()
861 return sprintf(buf, "%d\n", 1000 * (data->temp_max[attr->index] - 64)); in show_temp_max()
[all …]
Dadm1026.c710 static ssize_t show_in(struct device *dev, struct device_attribute *attr, in show_in() argument
713 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); in show_in()
718 static ssize_t show_in_min(struct device *dev, struct device_attribute *attr, in show_in_min() argument
721 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); in show_in_min()
726 static ssize_t set_in_min(struct device *dev, struct device_attribute *attr, in set_in_min() argument
729 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); in set_in_min()
746 static ssize_t show_in_max(struct device *dev, struct device_attribute *attr, in show_in_max() argument
749 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); in show_in_max()
754 static ssize_t set_in_max(struct device *dev, struct device_attribute *attr, in set_in_max() argument
757 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); in set_in_max()
[all …]
Dsmm665.c350 struct sensor_device_attribute *attr = to_sensor_dev_attr(da); in smm665_show_crit_alarm() local
357 if (data->faults & (1 << attr->index)) in smm665_show_crit_alarm()
366 struct sensor_device_attribute *attr = to_sensor_dev_attr(da); in smm665_show_input() local
368 int adc = attr->index; in smm665_show_input()
382 struct sensor_device_attribute *attr = to_sensor_dev_attr(da); \
383 const int val = smm665_get_##what(dev, attr->index); \
489 &sensor_dev_attr_in1_input.dev_attr.attr,
490 &sensor_dev_attr_in1_min.dev_attr.attr,
491 &sensor_dev_attr_in1_max.dev_attr.attr,
492 &sensor_dev_attr_in1_lcrit.dev_attr.attr,
[all …]
Dadt7470.c499 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in show_temp_min() local
501 return sprintf(buf, "%d\n", 1000 * data->temp_min[attr->index]); in show_temp_min()
509 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in set_temp_min() local
521 data->temp_min[attr->index] = temp; in set_temp_min()
522 i2c_smbus_write_byte_data(client, ADT7470_TEMP_MIN_REG(attr->index), in set_temp_min()
533 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in show_temp_max() local
535 return sprintf(buf, "%d\n", 1000 * data->temp_max[attr->index]); in show_temp_max()
543 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in set_temp_max() local
555 data->temp_max[attr->index] = temp; in set_temp_max()
556 i2c_smbus_write_byte_data(client, ADT7470_TEMP_MAX_REG(attr->index), in set_temp_max()
[all …]
Df71805f.c430 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in show_in0() local
431 int nr = attr->index; in show_in0()
440 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in show_in0_max() local
441 int nr = attr->index; in show_in0_max()
450 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in show_in0_min() local
451 int nr = attr->index; in show_in0_min()
460 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in set_in0_max() local
461 int nr = attr->index; in set_in0_max()
481 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in set_in0_min() local
482 int nr = attr->index; in set_in0_min()
[all …]
Dsmsc47m192.c141 static ssize_t show_in(struct device *dev, struct device_attribute *attr, in show_in() argument
144 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); in show_in()
150 static ssize_t show_in_min(struct device *dev, struct device_attribute *attr, in show_in_min() argument
153 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); in show_in_min()
159 static ssize_t show_in_max(struct device *dev, struct device_attribute *attr, in show_in_max() argument
162 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); in show_in_max()
168 static ssize_t set_in_min(struct device *dev, struct device_attribute *attr, in set_in_min() argument
171 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); in set_in_min()
190 static ssize_t set_in_max(struct device *dev, struct device_attribute *attr, in set_in_max() argument
193 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); in set_in_max()
[all …]
Dmax16065.c199 struct sensor_device_attribute *attr = to_sensor_dev_attr(da); in max16065_show_input() local
201 int adc = data->adc[attr->index]; in max16065_show_input()
207 ADC_TO_MV(adc, data->range[attr->index])); in max16065_show_input()
418 &sensor_dev_attr_in0_input.dev_attr.attr,
419 &sensor_dev_attr_in0_lcrit.dev_attr.attr,
420 &sensor_dev_attr_in0_crit.dev_attr.attr,
421 &sensor_dev_attr_in0_alarm.dev_attr.attr,
423 &sensor_dev_attr_in1_input.dev_attr.attr,
424 &sensor_dev_attr_in1_lcrit.dev_attr.attr,
425 &sensor_dev_attr_in1_crit.dev_attr.attr,
[all …]
Dsch5627.c217 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in show_temp() local
224 val = reg_to_temp(data->temp[attr->index]); in show_temp()
231 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in show_temp_fault() local
237 return snprintf(buf, PAGE_SIZE, "%d\n", data->temp[attr->index] == 0); in show_temp_fault()
243 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in show_temp_max() local
247 val = reg_to_temp_limit(data->temp_max[attr->index]); in show_temp_max()
254 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in show_temp_crit() local
258 val = reg_to_temp_limit(data->temp_crit[attr->index]); in show_temp_crit()
265 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in show_fan() local
272 val = reg_to_rpm(data->fan[attr->index]); in show_fan()
[all …]
Dultra45_env.c95 static ssize_t show_fan_speed(struct device *dev, struct device_attribute *attr, in show_fan_speed() argument
98 int fan_nr = to_sensor_dev_attr(attr)->index; in show_fan_speed()
113 static ssize_t set_fan_speed(struct device *dev, struct device_attribute *attr, in set_fan_speed() argument
116 int fan_nr = to_sensor_dev_attr(attr)->index; in set_fan_speed()
137 static ssize_t show_fan_fault(struct device *dev, struct device_attribute *attr, in show_fan_fault() argument
140 int fan_nr = to_sensor_dev_attr(attr)->index; in show_fan_fault()
160 static ssize_t show_temp(struct device *dev, struct device_attribute *attr, in show_temp() argument
163 int temp_nr = to_sensor_dev_attr(attr)->index; in show_temp()
181 static ssize_t show_stat_bit(struct device *dev, struct device_attribute *attr, in show_stat_bit() argument
184 int index = to_sensor_dev_attr(attr)->index; in show_stat_bit()
[all …]
/linux-3.4.99/fs/
Dattr.c30 int inode_change_ok(const struct inode *inode, struct iattr *attr) in inode_change_ok() argument
32 unsigned int ia_valid = attr->ia_valid; in inode_change_ok()
39 int error = inode_newsize_ok(inode, attr->ia_size); in inode_change_ok()
51 attr->ia_uid != inode->i_uid) && !capable(CAP_CHOWN)) in inode_change_ok()
57 (!in_group_p(attr->ia_gid) && attr->ia_gid != inode->i_gid)) && in inode_change_ok()
66 if (!in_group_p((ia_valid & ATTR_GID) ? attr->ia_gid : in inode_change_ok()
68 attr->ia_mode &= ~S_ISGID; in inode_change_ok()
139 void setattr_copy(struct inode *inode, const struct iattr *attr) in setattr_copy() argument
141 unsigned int ia_valid = attr->ia_valid; in setattr_copy()
144 inode->i_uid = attr->ia_uid; in setattr_copy()
[all …]
/linux-3.4.99/drivers/infiniband/hw/cxgb3/
Diwch_mem.c47 mhp->attr.state = 1; in iwch_finish_mem_reg()
48 mhp->attr.stag = stag; in iwch_finish_mem_reg()
62 &stag, mhp->attr.pdid, in iwch_register_mem()
63 mhp->attr.perms, in iwch_register_mem()
64 mhp->attr.zbva, in iwch_register_mem()
65 mhp->attr.va_fbo, in iwch_register_mem()
66 mhp->attr.len, in iwch_register_mem()
68 mhp->attr.pbl_size, mhp->attr.pbl_addr)) in iwch_register_mem()
73 cxio_dereg_mem(&rhp->rdev, mhp->attr.stag, mhp->attr.pbl_size, in iwch_register_mem()
74 mhp->attr.pbl_addr); in iwch_register_mem()
[all …]
/linux-3.4.99/include/linux/
Dhw_breakpoint.h38 static inline void hw_breakpoint_init(struct perf_event_attr *attr) in hw_breakpoint_init() argument
40 memset(attr, 0, sizeof(*attr)); in hw_breakpoint_init()
42 attr->type = PERF_TYPE_BREAKPOINT; in hw_breakpoint_init()
43 attr->size = sizeof(*attr); in hw_breakpoint_init()
48 attr->pinned = 1; in hw_breakpoint_init()
49 attr->sample_period = 1; in hw_breakpoint_init()
52 static inline void ptrace_breakpoint_init(struct perf_event_attr *attr) in ptrace_breakpoint_init() argument
54 hw_breakpoint_init(attr); in ptrace_breakpoint_init()
55 attr->exclude_kernel = 1; in ptrace_breakpoint_init()
60 return bp->attr.bp_addr; in hw_breakpoint_addr()
[all …]
/linux-3.4.99/net/bridge/
Dbr_sysfs_br.c52 struct device_attribute *attr, char *buf) in show_forward_delay() argument
59 struct device_attribute *attr, in store_forward_delay() argument
67 static ssize_t show_hello_time(struct device *d, struct device_attribute *attr, in show_hello_time() argument
75 struct device_attribute *attr, const char *buf, in store_hello_time() argument
83 static ssize_t show_max_age(struct device *d, struct device_attribute *attr, in show_max_age() argument
90 static ssize_t store_max_age(struct device *d, struct device_attribute *attr, in store_max_age() argument
98 struct device_attribute *attr, char *buf) in show_ageing_time() argument
111 struct device_attribute *attr, in store_ageing_time() argument
120 struct device_attribute *attr, char *buf) in show_stp_state() argument
128 struct device_attribute *attr, const char *buf, in store_stp_state() argument
[all …]
/linux-3.4.99/arch/sparc/kernel/
Dsysfs.c20 struct device_attribute *attr, char *buf) \
61 &dev_attr_immu_tsb_hits_ctx0_8k_tte.attr,
62 &dev_attr_immu_tsb_ticks_ctx0_8k_tte.attr,
63 &dev_attr_immu_tsb_hits_ctx0_64k_tte.attr,
64 &dev_attr_immu_tsb_ticks_ctx0_64k_tte.attr,
65 &dev_attr_immu_tsb_hits_ctx0_4mb_tte.attr,
66 &dev_attr_immu_tsb_ticks_ctx0_4mb_tte.attr,
67 &dev_attr_immu_tsb_hits_ctx0_256mb_tte.attr,
68 &dev_attr_immu_tsb_ticks_ctx0_256mb_tte.attr,
69 &dev_attr_immu_tsb_hits_ctxnon0_8k_tte.attr,
[all …]
/linux-3.4.99/drivers/usb/core/
Dsysfs.c22 struct device_attribute *attr, char *buf) \
45 struct device_attribute *attr, char *buf) in show_configuration_string() argument
62 set_bConfigurationValue(struct device *dev, struct device_attribute *attr, in set_bConfigurationValue() argument
82 struct device_attribute *attr, char *buf) \
100 show_speed(struct device *dev, struct device_attribute *attr, char *buf) in show_speed() argument
132 show_busnum(struct device *dev, struct device_attribute *attr, char *buf) in show_busnum() argument
142 show_devnum(struct device *dev, struct device_attribute *attr, char *buf) in show_devnum() argument
152 show_devpath(struct device *dev, struct device_attribute *attr, char *buf) in show_devpath() argument
162 show_version(struct device *dev, struct device_attribute *attr, char *buf) in show_version() argument
174 show_maxchild(struct device *dev, struct device_attribute *attr, char *buf) in show_maxchild() argument
[all …]
/linux-3.4.99/drivers/infiniband/hw/qib/
Dqib_sysfs.c213 struct attribute attr; member
226 &qib_port_attr_loopback.attr,
227 &qib_port_attr_led_override.attr,
228 &qib_port_attr_hrtbt_enable.attr,
229 &qib_port_attr_status.attr,
230 &qib_port_attr_status_str.attr,
235 struct attribute *attr, char *buf) in qib_portattr_show() argument
238 container_of(attr, struct qib_port_attr, attr); in qib_portattr_show()
246 struct attribute *attr, const char *buf, size_t len) in qib_portattr_store() argument
249 container_of(attr, struct qib_port_attr, attr); in qib_portattr_store()
[all …]
/linux-3.4.99/drivers/infiniband/hw/ipath/
Dipath_sysfs.c89 struct device_attribute *attr, in show_status() argument
122 struct device_attribute *attr, in show_status_str() argument
160 struct device_attribute *attr, in show_boardversion() argument
169 struct device_attribute *attr, in show_localbus_info() argument
178 struct device_attribute *attr, in show_lmc() argument
187 struct device_attribute *attr, in store_lmc() argument
214 struct device_attribute *attr, in show_lid() argument
223 struct device_attribute *attr, in store_lid() argument
250 struct device_attribute *attr, in show_mlid() argument
259 struct device_attribute *attr, in store_mlid() argument
[all …]
/linux-3.4.99/drivers/media/video/pvrusb2/
Dpvrusb2-sysfs.c88 struct device_attribute *attr, in show_name() argument
93 cip = container_of(attr, struct pvr2_sysfs_ctl_item, attr_name); in show_name()
102 struct device_attribute *attr, in show_type() argument
108 cip = container_of(attr, struct pvr2_sysfs_ctl_item, attr_type); in show_type()
124 struct device_attribute *attr, in show_min() argument
129 cip = container_of(attr, struct pvr2_sysfs_ctl_item, attr_min); in show_min()
137 struct device_attribute *attr, in show_max() argument
142 cip = container_of(attr, struct pvr2_sysfs_ctl_item, attr_max); in show_max()
150 struct device_attribute *attr, in show_def() argument
157 cip = container_of(attr, struct pvr2_sysfs_ctl_item, attr_def); in show_def()
[all …]
/linux-3.4.99/fs/sysfs/
Dgroup.c22 struct attribute *const* attr; in remove_files() local
25 for (i = 0, attr = grp->attrs; *attr; i++, attr++) in remove_files()
26 sysfs_hash_and_remove(dir_sd, NULL, (*attr)->name); in remove_files()
32 struct attribute *const* attr; in create_files() local
35 for (i = 0, attr = grp->attrs; *attr && !error; i++, attr++) { in create_files()
42 sysfs_hash_and_remove(dir_sd, NULL, (*attr)->name); in create_files()
44 mode = grp->is_visible(kobj, *attr, i); in create_files()
48 error = sysfs_add_file_mode(dir_sd, *attr, SYSFS_KOBJ_ATTR, in create_files()
49 (*attr)->mode | mode); in create_files()
169 struct attribute *const *attr; in sysfs_merge_group() local
[all …]

12345678910>>...57