| /linux/drivers/infiniband/hw/hfi1/ |
| H A D | sysfs.c | 105 struct ib_port_attribute *attr, char *buf) in cc_prescan_show() argument 114 struct ib_port_attribute *attr, const char *buf, in cc_prescan_store() argument 130 &ib_port_attr_cc_prescan.attr, 142 struct ib_port_attribute attr; member 147 struct ib_port_attribute *attr, char *buf) in sc2vl_attr_show() argument 150 container_of(attr, struct hfi1_sc2vl_attr, attr); in sc2vl_attr_show() 158 .attr = __ATTR(N, 0444, sc2vl_attr_show, NULL), \ 196 &hfi1_sc2vl_attr_0.attr.attr, 197 &hfi1_sc2vl_attr_1.attr.attr, 198 &hfi1_sc2vl_attr_2.attr.attr, [all …]
|
| /linux/tools/arch/x86/include/asm/ |
| H A D | inat.h | 121 static inline int inat_is_legacy_prefix(insn_attr_t attr) in inat_is_legacy_prefix() argument 123 attr &= INAT_PFX_MASK; in inat_is_legacy_prefix() 124 return attr && attr <= INAT_LGCPFX_MAX; in inat_is_legacy_prefix() 127 static inline int inat_is_address_size_prefix(insn_attr_t attr) in inat_is_address_size_prefix() argument 129 return (attr & INAT_PFX_MASK) == INAT_PFX_ADDRSZ; in inat_is_address_size_prefix() 132 static inline int inat_is_operand_size_prefix(insn_attr_t attr) in inat_is_operand_size_prefix() argument 134 return (attr & INAT_PFX_MASK) == INAT_PFX_OPNDSZ; in inat_is_operand_size_prefix() 137 static inline int inat_is_rex_prefix(insn_attr_t attr) in inat_is_rex_prefix() argument 139 return (attr & INAT_PFX_MASK) == INAT_PFX_REX; in inat_is_rex_prefix() 142 static inline int inat_is_rex2_prefix(insn_attr_t attr) in inat_is_rex2_prefix() argument [all …]
|
| /linux/arch/x86/include/asm/ |
| H A D | inat.h | 121 static inline int inat_is_legacy_prefix(insn_attr_t attr) in inat_is_legacy_prefix() argument 123 attr &= INAT_PFX_MASK; in inat_is_legacy_prefix() 124 return attr && attr <= INAT_LGCPFX_MAX; in inat_is_legacy_prefix() 127 static inline int inat_is_address_size_prefix(insn_attr_t attr) in inat_is_address_size_prefix() argument 129 return (attr & INAT_PFX_MASK) == INAT_PFX_ADDRSZ; in inat_is_address_size_prefix() 132 static inline int inat_is_operand_size_prefix(insn_attr_t attr) in inat_is_operand_size_prefix() argument 134 return (attr & INAT_PFX_MASK) == INAT_PFX_OPNDSZ; in inat_is_operand_size_prefix() 137 static inline int inat_is_rex_prefix(insn_attr_t attr) in inat_is_rex_prefix() argument 139 return (attr & INAT_PFX_MASK) == INAT_PFX_REX; in inat_is_rex_prefix() 142 static inline int inat_is_rex2_prefix(insn_attr_t attr) in inat_is_rex2_prefix() argument [all …]
|
| /linux/drivers/infiniband/core/ |
| H A D | sysfs.c | 50 struct ib_port_attribute attr; member 77 struct device_attribute attr; member 86 struct ib_port_attribute attr; member 106 struct attribute *attr, char *buf) in port_attr_show() argument 109 container_of(attr, struct ib_port_attribute, attr); in port_attr_show() 119 struct attribute *attr, in port_attr_store() argument 123 container_of(attr, struct ib_port_attribute, attr); in port_attr_store() 147 struct device_attribute *attr, cha in hw_stat_device_show() argument 158 hw_stat_device_store(struct device * dev,struct device_attribute * attr,const char * buf,size_t count) hw_stat_device_store() argument 171 hw_stat_port_show(struct ib_device * ibdev,u32 port_num,struct ib_port_attribute * attr,char * buf) hw_stat_port_show() argument 183 hw_stat_port_store(struct ib_device * ibdev,u32 port_num,struct ib_port_attribute * attr,const char * buf,size_t count) hw_stat_port_store() argument 196 gid_attr_show(struct kobject * kobj,struct attribute * attr,char * buf) gid_attr_show() argument 216 struct ib_port_attr attr; state_show() local 230 struct ib_port_attr attr; lid_show() local 243 struct ib_port_attr attr; lid_mask_count_show() local 256 struct ib_port_attr attr; sm_lid_show() local 269 struct ib_port_attr attr; sm_sl_show() local 282 struct ib_port_attr attr; cap_mask_show() local 296 struct ib_port_attr attr; rate_show() local 334 struct ib_port_attr attr; phys_state_show() local 410 _show_port_gid_attr(struct ib_device * ibdev,u32 port_num,struct ib_port_attribute * attr,char * buf,ssize_t (* print)(const struct ib_gid_attr * gid_attr,char * buf)) _show_port_gid_attr() argument 430 show_port_gid(struct ib_device * ibdev,u32 port_num,struct ib_port_attribute * attr,char * buf) show_port_gid() argument 459 show_port_gid_attr_ndev(struct ib_device * ibdev,u32 port_num,struct ib_port_attribute * attr,char * buf) show_port_gid_attr_ndev() argument 467 show_port_gid_attr_gid_type(struct ib_device * ibdev,u32 port_num,struct ib_port_attribute * attr,char * buf) show_port_gid_attr_gid_type() argument 474 show_port_pkey(struct ib_device * ibdev,u32 port_num,struct ib_port_attribute * attr,char * buf) show_port_pkey() argument 506 get_perf_mad(struct ib_device * dev,int port_num,__be16 attr,void * data,int offset,size_t size) get_perf_mad() argument 551 show_pma_counter(struct ib_device * ibdev,u32 port_num,struct ib_port_attribute * attr,char * buf) show_pma_counter() argument 886 struct hw_stats_device_attribute *attr; ib_setup_device_attrs() local 985 struct hw_stats_port_attribute *attr; setup_hw_port_stats() local 1087 setup_gid_attrs(struct ib_port * port,const struct ib_port_attr * attr) setup_gid_attrs() argument 1148 setup_port(struct ib_core_device * coredev,int port_num,const struct ib_port_attr * attr) setup_port() argument 1265 node_type_show(struct device * device,struct device_attribute * attr,char * buf) node_type_show() argument 1289 node_guid_show(struct device * device,struct device_attribute * attr,char * buf) node_guid_show() argument 1303 node_desc_show(struct device * device,struct device_attribute * attr,char * buf) node_desc_show() argument 1311 node_desc_store(struct device * device,struct device_attribute * attr,const char * buf,size_t count) node_desc_store() argument 1330 fw_ver_show(struct device * device,struct device_attribute * attr,char * buf) fw_ver_show() argument 1381 struct ib_port_attr attr; ib_setup_port_attrs() local [all...] |
| /linux/drivers/scsi/ |
| H A D | iscsi_boot_sysfs.c | 24 struct attribute attr; member 33 struct attribute *attr, char *buf) in iscsi_boot_show_attribute() argument 38 container_of(attr, struct iscsi_boot_attr, attr); in iscsi_boot_show_attribute() 71 .attr = { .name = __stringify(sysfs_name), .mode = 0444 }, \ 92 &iscsi_boot_attr_tgt_index.attr, 93 &iscsi_boot_attr_tgt_flags.attr, 94 &iscsi_boot_attr_tgt_ip.attr, 95 &iscsi_boot_attr_tgt_port.attr, 96 &iscsi_boot_attr_tgt_lun.attr, 97 &iscsi_boot_attr_tgt_chap.attr, [all …]
|
| H A D | scsi_transport_iscsi.c | 127 show_transport_handle(struct device *dev, struct device_attribute *attr, in show_transport_handle() argument 142 struct device_attribute *attr,char *buf) \ 152 &dev_attr_handle.attr, 153 &dev_attr_caps.attr, 188 show_ep_handle(struct device *dev, struct device_attribute *attr, char *buf) in show_ep_handle() argument 196 &dev_attr_ep_handle.attr, 321 show_##type##_##name(struct device *dev, struct device_attribute *attr, \ 442 struct attribute *attr, int i) in iscsi_iface_attr_is_visible() argument 449 if (attr == &dev_attr_iface_def_taskmgmt_tmo.attr) in iscsi_iface_attr_is_visible() 908 iscsi_flashnode_sess_attr_is_visible(struct kobject * kobj,struct attribute * attr,int i) iscsi_flashnode_sess_attr_is_visible() argument 1110 iscsi_flashnode_conn_attr_is_visible(struct kobject * kobj,struct attribute * attr,int i) iscsi_flashnode_conn_attr_is_visible() argument 4166 show_conn_state(struct device * dev,struct device_attribute * attr,char * buf) show_conn_state() argument 4254 iscsi_conn_attr_is_visible(struct kobject * kobj,struct attribute * attr,int i) iscsi_conn_attr_is_visible() argument 4400 show_priv_session_target_state(struct device * dev,struct device_attribute * attr,char * buf) show_priv_session_target_state() argument 4413 show_priv_session_state(struct device * dev,struct device_attribute * attr,char * buf) show_priv_session_state() argument 4422 show_priv_session_creator(struct device * dev,struct device_attribute * attr,char * buf) show_priv_session_creator() argument 4431 show_priv_session_target_id(struct device * dev,struct device_attribute * attr,char * buf) show_priv_session_target_id() argument 4537 iscsi_session_attr_is_visible(struct kobject * kobj,struct attribute * attr,int i) iscsi_session_attr_is_visible() argument 4683 iscsi_host_attr_is_visible(struct kobject * kobj,struct attribute * attr,int i) iscsi_host_attr_is_visible() argument [all...] |
| /linux/fs/orangefs/ |
| H A D | orangefs-sysfs.c | 166 struct attribute attr; member 168 struct orangefs_attribute *attr, 171 struct orangefs_attribute *attr, 177 struct attribute *attr, in orangefs_attr_show() argument 182 attribute = container_of(attr, struct orangefs_attribute, attr); in orangefs_attr_show() 189 struct attribute *attr, in orangefs_attr_store() argument 199 attribute = container_of(attr, struct orangefs_attribute, attr); in orangefs_attr_store() 211 struct orangefs_attribute *attr, char *buf) in sysfs_int_show() argument 219 if (!strcmp(attr->attr.name, "op_timeout_secs")) { in sysfs_int_show() 224 } else if (!strcmp(attr->attr.name, in sysfs_int_show() [all …]
|
| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_gt_throttle.c | 65 struct kobj_attribute attr; member 79 static struct throttle_attribute *kobj_attribute_to_throttle(struct kobj_attribute *attr) in kobj_attribute_to_throttle() argument 81 return container_of(attr, struct throttle_attribute, attr); in kobj_attribute_to_throttle() 110 struct kobj_attribute *attr, char *buff) in reason_show() argument 112 struct throttle_attribute *ta = kobj_attribute_to_throttle(attr); in reason_show() 121 struct kobj_attribute *attr, char *buff) in reasons_show() argument 136 struct kobj_attribute *kattr = container_of(*pother, struct kobj_attribute, attr); in reasons_show() 158 .attr = __ATTR(name, 0444, reason_show, NULL), \ 164 .attr = __ATTR(name, 0444, _show, NULL), \ 180 &attr_reasons.attr.attr, [all …]
|
| /linux/drivers/memory/ |
| H A D | dfl-emif.c | 52 struct device_attribute attr; member 58 container_of(dev_attr, struct emif_attr, attr) 61 struct device_attribute *attr, char *buf) in emif_state_show() argument 63 struct emif_attr *eattr = to_emif_attr(attr); in emif_state_show() 74 struct device_attribute *attr, in emif_clear_store() argument 77 struct emif_attr *eattr = to_emif_attr(attr); in emif_clear_store() 108 { .attr = __ATTR(inf##_index##_##_name, 0444, \ 114 { .attr = __ATTR(inf##_index##_clear, 0200, \ 148 &emif_attr_inf0_init_done.attr.attr, 184 dfl_emif_visible(struct kobject * kobj,struct attribute * attr,int n) dfl_emif_visible() argument [all...] |
| /linux/tools/net/ynl/lib/ |
| H A D | ynl-priv.h | 190 static inline unsigned int ynl_attr_type(const struct nlattr *attr) in ynl_attr_type() argument 192 return attr->nla_type & NLA_TYPE_MASK; in ynl_attr_type() 195 static inline unsigned int ynl_attr_data_len(const struct nlattr *attr) in ynl_attr_data_len() argument 197 return attr->nla_len - NLA_HDRLEN; in ynl_attr_data_len() 200 static inline void *ynl_attr_data(const struct nlattr *attr) in ynl_attr_data() argument 202 return (unsigned char *)attr + NLA_HDRLEN; in ynl_attr_data() 205 static inline void *ynl_attr_data_end(const struct nlattr *attr) in ynl_attr_data_end() argument 207 return (char *)ynl_attr_data(attr) + ynl_attr_data_len(attr); in ynl_attr_data_end() 210 #define ynl_attr_for_each(attr, nlh, fixed_hdr_sz) \ argument 211 for ((attr) = ynl_attr_first(nlh, (nlh)->nlmsg_len, \ [all …]
|
| /linux/kernel/ |
| H A D | fail_function.c | 58 struct fei_attr *attr; in fei_attr_new() local 60 attr = kzalloc_obj(*attr); in fei_attr_new() 61 if (attr) { in fei_attr_new() 62 attr->kp.symbol_name = kstrdup(sym, GFP_KERNEL); in fei_attr_new() 63 if (!attr->kp.symbol_name) { in fei_attr_new() 64 kfree(attr); in fei_attr_new() 67 attr->kp.pre_handler = fei_kprobe_handler; in fei_attr_new() 68 attr->kp.post_handler = fei_post_handler; in fei_attr_new() 69 attr->retval = adjust_error_retval(addr, 0); in fei_attr_new() 70 INIT_LIST_HEAD(&attr->list); in fei_attr_new() [all …]
|
| /linux/tools/lib/bpf/ |
| H A D | skel_internal.h | 76 long kern_sys_bpf(__u32 cmd, void *attr, __u32 attr_size); 78 static inline int skel_sys_bpf(enum bpf_cmd cmd, union bpf_attr *attr, in skel_sys_bpf() 82 return kern_sys_bpf(cmd, attr, size); in skel_sys_bpf() 84 return syscall(__NR_bpf, cmd, attr, size); in skel_sys_bpf() 274 union bpf_attr attr; 276 memset(&attr, 0, attr_sz); in skel_map_update_elem() 278 attr.map_type = map_type; in skel_map_update_elem() 279 attr.excl_prog_hash = (unsigned long) excl_prog_hash; in skel_map_update_elem() local 280 attr.excl_prog_hash_size = excl_prog_hash_sz; in skel_map_update_elem() 283 if (strscpy(attr in skel_map_update_elem() 77 skel_sys_bpf(enum bpf_cmd cmd,union bpf_attr * attr,unsigned int size) skel_sys_bpf() argument 254 union bpf_attr attr; skel_map_create() local 293 union bpf_attr attr; skel_map_delete_elem() local 305 union bpf_attr attr; skel_map_get_fd_by_id() local 316 union bpf_attr attr; skel_raw_tracepoint_open() local 329 union bpf_attr attr; skel_link_create() local 342 union bpf_attr attr; skel_map_freeze() local 360 union bpf_attr attr; bpf_load_and_run() local [all...] |
| /linux/drivers/hwmon/ |
| H A D | adt7462.c | 781 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in temp_min_show() local 784 if (!temp_enabled(data, attr->index)) in temp_min_show() 787 return sprintf(buf, "%d\n", 1000 * (data->temp_min[attr->index] - 64)); in temp_min_show() 794 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in temp_min_store() local 799 if (kstrtol(buf, 10, &temp) || !temp_enabled(data, attr->index)) in temp_min_store() 806 data->temp_min[attr->index] = temp; in temp_min_store() 807 i2c_smbus_write_byte_data(client, ADT7462_TEMP_MIN_REG(attr->index), in temp_min_store() 817 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in temp_max_show() local 820 if (!temp_enabled(data, attr->index)) in temp_max_show() 823 return sprintf(buf, "%d\n", 1000 * (data->temp_max[attr in temp_max_show() 830 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); temp_max_store() local 853 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); temp_show() local 867 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); temp_label_show() local 876 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); volt_max_show() local 890 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); volt_max_store() local 916 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); volt_min_show() local 930 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); volt_min_store() local 956 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); voltage_show() local 969 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); voltage_label_show() local 978 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); alarm_show() local 997 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); fan_min_show() local 1016 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); fan_min_store() local 1041 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); fan_show() local 1087 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); pwm_show() local 1095 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); pwm_store() local 1144 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); pwm_min_show() local 1153 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); pwm_min_store() local 1175 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); pwm_hyst_show() local 1185 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); pwm_hyst_store() local 1212 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); pwm_tmax_show() local 1228 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); pwm_tmax_store() local 1258 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); pwm_tmin_show() local 1267 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); pwm_tmin_store() local 1290 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); pwm_auto_show() local 1322 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); pwm_auto_store() local 1345 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); pwm_auto_temp_show() local 1379 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); pwm_auto_temp_store() local [all...] |
| /linux/drivers/infiniband/hw/bng_re/ |
| H A D | bng_sp.c | 43 struct bng_re_dev_attr *attr = rcfw->res->dattr; in bng_re_get_dev_attr() local 70 attr->max_qp = le32_to_cpu(sb->max_qp); in bng_re_get_dev_attr() 72 attr->max_qp += 1; in bng_re_get_dev_attr() 73 attr->max_qp_rd_atom = in bng_re_get_dev_attr() 76 attr->max_qp_init_rd_atom = in bng_re_get_dev_attr() 79 attr->max_qp_wqes = le16_to_cpu(sb->max_qp_wr) - 1; in bng_re_get_dev_attr() 82 attr->max_qp_wqes = min_t(u32, attr->max_qp_wqes, BNG_VAR_MAX_WQE - 1); in bng_re_get_dev_attr() 84 attr->max_qp_sges = min_t(u32, sb->max_sge_var_wqe, BNG_VAR_MAX_SGE); in bng_re_get_dev_attr() 85 attr->max_cq = le32_to_cpu(sb->max_cq); in bng_re_get_dev_attr() 86 attr->max_cq_wqes = le32_to_cpu(sb->max_cqe); in bng_re_get_dev_attr() [all …]
|
| /linux/fs/ntfs3/ |
| H A D | record.c | 38 struct ATTRIB *attr; in mi_new_attt_id() local 52 attr = NULL; in mi_new_attt_id() 55 attr = mi_enum_attr(ni, mi, attr); in mi_new_attt_id() 56 if (!attr) { in mi_new_attt_id() 62 t16 = le16_to_cpu(attr->id); in mi_new_attt_id() 65 attr = NULL; in mi_new_attt_id() 199 struct ATTRIB *attr) in mi_enum_attr() argument 207 if (!attr) { in mi_enum_attr() 225 attr in mi_enum_attr() 388 mi_find_attr(struct ntfs_inode * ni,struct mft_inode * mi,struct ATTRIB * attr,enum ATTR_TYPE type,const __le16 * name,u8 name_len,const __le16 * id) mi_find_attr() argument 508 struct ATTRIB *attr; mi_insert_attr() local 569 mi_remove_attr(struct ntfs_inode * ni,struct mft_inode * mi,struct ATTRIB * attr) mi_remove_attr() argument 598 mi_resize_attr(struct mft_inode * mi,struct ATTRIB * attr,int bytes) mi_resize_attr() argument 651 mi_pack_runs(struct mft_inode * mi,struct ATTRIB * attr,const struct runs_tree * run,CLST len) mi_pack_runs() argument [all...] |
| H A D | frecord.c | 76 const struct ATTRIB *attr; in ni_std() local 78 attr = mi_find_attr(ni, &ni->mi, NULL, ATTR_STD, NULL, 0, NULL); in ni_std() 79 return attr ? resident_data_ex(attr, sizeof(struct ATTR_STD_INFO)) : in ni_std() 90 const struct ATTRIB *attr; in ni_std5() local 92 attr = mi_find_attr(ni, &ni->mi, NULL, ATTR_STD, NULL, 0, NULL); in ni_std5() 94 return attr ? resident_data_ex(attr, sizeof(struct ATTR_STD_INFO5)) : in ni_std5() 201 struct ATTRIB *ni_find_attr(struct ntfs_inode *ni, struct ATTRIB *attr, in ni_find_attr() argument 218 return mi_find_attr(ni, &ni->mi, attr, typ in ni_find_attr() 263 ni_enum_attr_ex(struct ntfs_inode * ni,struct ATTRIB * attr,struct ATTR_LIST_ENTRY ** le,struct mft_inode ** mi) ni_enum_attr_ex() argument 358 struct ATTRIB *attr; ni_remove_attr() local 430 struct ATTRIB *attr; ni_ins_new_attr() local 628 struct ATTRIB *attr, *attr_list, *attr_ins; ni_try_remove_attr_list() local 772 struct ATTRIB *attr; ni_create_attr_list() local 928 struct ATTRIB *attr; ni_ins_attr_ext() local 1082 struct ATTRIB *attr, *eattr; ni_insert_attr() local 1231 struct ATTRIB *attr; ni_expand_mft_list() local 1365 struct ATTRIB *attr, *ins_attr = NULL; ni_expand_list() local 1434 struct ATTRIB *attr; ni_insert_nonresident() local 1511 struct ATTRIB *attr; ni_insert_resident() local 1542 ni_remove_attr_le(struct ntfs_inode * ni,struct ATTRIB * attr,struct mft_inode * mi,struct ATTR_LIST_ENTRY * le) ni_remove_attr_le() argument 1561 struct ATTRIB *attr = NULL; ni_delete_all() local 1645 struct ATTRIB *attr = NULL; ni_fname_name() local 1686 struct ATTRIB *attr = NULL; ni_fname_type() local 1716 struct ATTRIB *attr; ni_new_attr_flags() local 1795 ni_parse_reparse(struct ntfs_inode * ni,struct ATTRIB * attr,struct REPARSE_DATA_BUFFER * buffer) ni_parse_reparse() argument 2023 struct ATTRIB *attr; ni_decompress_file() local 2291 struct ATTRIB *attr; ni_read_frame() local 2548 struct ATTRIB *attr; ni_write_frame() local 2739 struct ATTRIB *attr; ni_remove_name_undo() local 2786 struct ATTRIB *attr; ni_add_name() local 2994 struct ATTRIB *attr = NULL; ni_write_parents() local 3048 struct ATTRIB *attr; ni_update_parent() local 3393 struct ATTRIB *attr; ni_query_ads() local [all...] |
| /linux/tools/perf/tests/ |
| H A D | parse-events.c | 79 return (evsel->core.attr.config & PERF_HW_EVENT_MASK) == expected_config; in test_hw_config() 114 TEST_ASSERT_EVSEL("wrong type", PERF_TYPE_TRACEPOINT == evsel->core.attr.type, evsel); in test__checkevent_tracepoint() 116 PERF_TP_SAMPLE_TYPE == evsel->core.attr.sample_type, evsel); in test__checkevent_tracepoint() 117 TEST_ASSERT_EVSEL("wrong sample_period", 1 == evsel->core.attr.sample_period, evsel); in test__checkevent_tracepoint() 130 PERF_TYPE_TRACEPOINT == evsel->core.attr.type, in test__checkevent_tracepoint_multi() 133 PERF_TP_SAMPLE_TYPE == evsel->core.attr.sample_type, in test__checkevent_tracepoint_multi() 136 1 == evsel->core.attr.sample_period, in test__checkevent_tracepoint_multi() 155 evsel->core.attr.type == PERF_TYPE_RAW, in test__checkevent_raw() 167 if (pmu->type == evsel->core.attr.type) { in test__checkevent_raw() 186 TEST_ASSERT_EVSEL("wrong type", 1 == evsel->core.attr in test__checkevent_numeric() [all...] |
| /linux/drivers/usb/typec/ |
| H A D | pd.c | 37 dual_role_power_show(struct device *dev, struct device_attribute *attr, char *buf) in dual_role_power_show() argument 44 usb_suspend_supported_show(struct device *dev, struct device_attribute *attr, char *buf) in usb_suspend_supported_show() argument 51 higher_capability_show(struct device *dev, struct device_attribute *attr, char *buf) in higher_capability_show() argument 58 unconstrained_power_show(struct device *dev, struct device_attribute *attr, char *buf) in unconstrained_power_show() argument 65 usb_communication_capable_show(struct device *dev, struct device_attribute *attr, char *buf) in usb_communication_capable_show() argument 72 dual_role_data_show(struct device *dev, struct device_attribute *attr, char *buf) in dual_role_data_show() argument 80 struct device_attribute *attr, char *buf) in unchunked_extended_messages_supported_show() argument 87 peak_current_show(struct device *dev, struct device_attribute *attr, char *buf) in peak_current_show() argument 94 fast_role_swap_current_show(struct device *dev, struct device_attribute *attr, char *buf) in fast_role_swap_current_show() argument 100 static ssize_t voltage_show(struct device *dev, struct device_attribute *attr, char *buf) in voltage_show() argument [all …]
|
| /linux/drivers/nvme/host/ |
| H A D | sysfs.c | 15 struct device_attribute *attr, const char *buf, in nvme_sysfs_reset() argument 29 struct device_attribute *attr, const char *buf, in nvme_sysfs_rescan() argument 40 struct device_attribute *attr, char *buf) in nvme_adm_passthru_err_log_enabled_show() argument 49 struct device_attribute *attr, const char *buf, size_t count) in nvme_adm_passthru_err_log_enabled_store() argument 74 struct device_attribute *attr, char *buf) in nvme_io_passthru_err_log_enabled_show() argument 82 struct device_attribute *attr, const char *buf, size_t count) in nvme_io_passthru_err_log_enabled_store() argument 104 static ssize_t wwid_show(struct device *dev, struct device_attribute *attr, in wwid_show() argument 135 static ssize_t nguid_show(struct device *dev, struct device_attribute *attr, in nguid_show() argument 142 static ssize_t uuid_show(struct device *dev, struct device_attribute *attr, in uuid_show() argument 159 static ssize_t eui_show(struct device *dev, struct device_attribute *attr, in eui_show() argument 166 nsid_show(struct device * dev,struct device_attribute * attr,char * buf) nsid_show() argument 173 csi_show(struct device * dev,struct device_attribute * attr,char * buf) csi_show() argument 181 metadata_bytes_show(struct device * dev,struct device_attribute * attr,char * buf) metadata_bytes_show() argument 232 nuse_show(struct device * dev,struct device_attribute * attr,char * buf) nuse_show() argument 351 command_retries_count_show(struct device * dev,struct device_attribute * attr,char * buf) command_retries_count_show() argument 359 command_retries_count_store(struct device * dev,struct device_attribute * attr,const char * buf,size_t count) command_retries_count_store() argument 376 nvme_io_errors_show(struct device * dev,struct device_attribute * attr,char * buf) nvme_io_errors_show() argument 384 nvme_io_errors_store(struct device * dev,struct device_attribute * attr,const char * buf,size_t count) nvme_io_errors_store() argument 491 nvme_sysfs_delete(struct device * dev,struct device_attribute * attr,const char * buf,size_t count) nvme_sysfs_delete() argument 506 nvme_sysfs_show_transport(struct device * dev,struct device_attribute * attr,char * buf) nvme_sysfs_show_transport() argument 516 nvme_sysfs_show_state(struct device * dev,struct device_attribute * attr,char * buf) nvme_sysfs_show_state() argument 540 nvme_sysfs_show_subsysnqn(struct device * dev,struct device_attribute * attr,char * buf) nvme_sysfs_show_subsysnqn() argument 550 nvme_sysfs_show_hostnqn(struct device * dev,struct device_attribute * attr,char * buf) nvme_sysfs_show_hostnqn() argument 560 nvme_sysfs_show_hostid(struct device * dev,struct device_attribute * attr,char * buf) nvme_sysfs_show_hostid() argument 570 nvme_sysfs_show_address(struct device * dev,struct device_attribute * attr,char * buf) nvme_sysfs_show_address() argument 580 nvme_ctrl_loss_tmo_show(struct device * dev,struct device_attribute * attr,char * buf) nvme_ctrl_loss_tmo_show() argument 592 nvme_ctrl_loss_tmo_store(struct device * dev,struct device_attribute * attr,const char * buf,size_t count) nvme_ctrl_loss_tmo_store() argument 613 nvme_ctrl_reconnect_delay_show(struct device * dev,struct device_attribute * attr,char * buf) nvme_ctrl_reconnect_delay_show() argument 623 nvme_ctrl_reconnect_delay_store(struct device * dev,struct device_attribute * attr,const char * buf,size_t count) nvme_ctrl_reconnect_delay_store() argument 640 nvme_ctrl_fast_io_fail_tmo_show(struct device * dev,struct device_attribute * attr,char * buf) nvme_ctrl_fast_io_fail_tmo_show() argument 650 nvme_ctrl_fast_io_fail_tmo_store(struct device * dev,struct device_attribute * attr,const char * buf,size_t count) nvme_ctrl_fast_io_fail_tmo_store() argument 670 cntrltype_show(struct device * dev,struct device_attribute * attr,char * buf) cntrltype_show() argument 687 dctype_show(struct device * dev,struct device_attribute * attr,char * buf) dctype_show() argument 703 quirks_show(struct device * dev,struct device_attribute * attr,char * buf) quirks_show() argument 726 nvme_admin_timeout_show(struct device * dev,struct device_attribute * attr,char * buf) nvme_admin_timeout_show() argument 735 nvme_admin_timeout_store(struct device * dev,struct device_attribute * attr,const char * buf,size_t count) nvme_admin_timeout_store() argument 766 nvme_io_timeout_show(struct device * dev,struct device_attribute * attr,char * buf) nvme_io_timeout_show() argument 774 nvme_io_timeout_store(struct device * dev,struct device_attribute * attr,const char * buf,size_t count) nvme_io_timeout_store() argument 813 nvme_ctrl_dhchap_secret_show(struct device * dev,struct device_attribute * attr,char * buf) nvme_ctrl_dhchap_secret_show() argument 824 nvme_ctrl_dhchap_secret_store(struct device * dev,struct device_attribute * attr,const char * buf,size_t count) nvme_ctrl_dhchap_secret_store() argument 871 nvme_ctrl_dhchap_ctrl_secret_show(struct device * dev,struct device_attribute * attr,char * buf) nvme_ctrl_dhchap_ctrl_secret_show() argument 882 nvme_ctrl_dhchap_ctrl_secret_store(struct device * dev,struct device_attribute * attr,const char * buf,size_t count) nvme_ctrl_dhchap_ctrl_secret_store() argument 1001 tls_key_show(struct device * dev,struct device_attribute * attr,char * buf) tls_key_show() argument 1012 tls_configured_key_show(struct device * dev,struct device_attribute * attr,char * buf) tls_configured_key_show() argument 1021 tls_configured_key_store(struct device * dev,struct device_attribute * attr,const char * buf,size_t count) tls_configured_key_store() argument 1064 tls_keyring_show(struct device * dev,struct device_attribute * attr,char * buf) tls_keyring_show() argument 1074 tls_mode_show(struct device * dev,struct device_attribute * attr,char * buf) tls_mode_show() argument 1128 nvme_adm_errors_show(struct device * dev,struct device_attribute * attr,char * buf) nvme_adm_errors_show() argument 1137 nvme_adm_errors_store(struct device * dev,struct device_attribute * attr,const char * buf,size_t count) nvme_adm_errors_store() argument 1157 reset_count_show(struct device * dev,struct device_attribute * attr,char * buf) reset_count_show() argument 1165 reset_count_store(struct device * dev,struct device_attribute * attr,const char * buf,size_t count) reset_count_store() argument 1181 reconnect_count_show(struct device * dev,struct device_attribute * attr,char * buf) reconnect_count_show() argument 1191 reconnect_count_store(struct device * dev,struct device_attribute * attr,const char * buf,size_t count) reconnect_count_store() argument 1250 nvme_subsys_show_nqn(struct device * dev,struct device_attribute * attr,char * buf) nvme_subsys_show_nqn() argument 1261 nvme_subsys_show_type(struct device * dev,struct device_attribute * attr,char * buf) nvme_subsys_show_type() argument [all...] |
| /linux/drivers/soundwire/ |
| H A D | sysfs_slave.c | 70 struct device_attribute *attr, \ 95 struct device_attribute *attr, char *buf) in modalias_show() argument 104 &dev_attr_modalias.attr, 113 &dev_attr_mipi_revision.attr, 114 &dev_attr_wake_capable.attr, 115 &dev_attr_test_mode_capable.attr, 116 &dev_attr_clk_stop_mode1.attr, 117 &dev_attr_simple_clk_stop_capable.attr, 118 &dev_attr_clk_stop_timeout.attr, 119 &dev_attr_ch_prep_timeout.attr, [all …]
|
| /linux/drivers/net/ethernet/intel/fm10k/ |
| H A D | fm10k_tlv.c | 38 u32 *attr; in fm10k_tlv_attr_put_null_string() local 44 attr = &msg[FM10K_TLV_DWORD_LEN(*msg)]; in fm10k_tlv_attr_put_null_string() 50 attr[len / 4] = attr_data; in fm10k_tlv_attr_put_null_string() 62 attr[(len + 3) / 4] = attr_data; in fm10k_tlv_attr_put_null_string() 66 attr[0] = len | attr_id; in fm10k_tlv_attr_put_null_string() 84 static s32 fm10k_tlv_attr_get_null_string(u32 *attr, unsigned char *string) in fm10k_tlv_attr_get_null_string() argument 89 if (!string || !attr) in fm10k_tlv_attr_get_null_string() 92 len = *attr >> FM10K_TLV_LEN_SHIFT; in fm10k_tlv_attr_get_null_string() 93 attr++; in fm10k_tlv_attr_get_null_string() 96 string[len] = (u8)(attr[len / 4] >> (8 * (len % 4))); in fm10k_tlv_attr_get_null_string() [all …]
|
| /linux/net/core/ |
| H A D | selftests.c | 20 struct net_packet_attrs *attr) in net_test_get_skb() argument 30 size = attr->size + NET_TEST_PKT_SIZE; in net_test_get_skb() 32 if (attr->tcp) in net_test_get_skb() 37 if (attr->max_size && attr->max_size > size) in net_test_get_skb() 38 size = attr->max_size; in net_test_get_skb() 53 if (attr->tcp) in net_test_get_skb() 60 if (attr->src) in net_test_get_skb() 61 ether_addr_copy(ehdr->h_source, attr->src); in net_test_get_skb() 62 if (attr in net_test_get_skb() 234 __net_test_loopback(struct net_device * ndev,struct net_packet_attrs * attr) __net_test_loopback() argument 314 struct net_packet_attrs attr = { }; net_test_phy_loopback_udp() local 322 struct net_packet_attrs attr = { }; net_test_phy_loopback_udp_mtu() local 331 struct net_packet_attrs attr = { }; net_test_phy_loopback_tcp() local 366 struct net_packet_attrs attr = { }; net_test_phy_loopback_tcp_bad_csum() local [all...] |
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | obj_name.c | 25 union bpf_attr attr; in test_obj_name() local 30 ncopy = name_len < sizeof(attr.prog_name) ? in test_obj_name() 31 name_len : sizeof(attr.prog_name); in test_obj_name() 32 bzero(&attr, sizeof(attr)); in test_obj_name() 33 attr.prog_type = BPF_PROG_TYPE_SCHED_CLS; in test_obj_name() 34 attr.insn_cnt = 2; in test_obj_name() 35 attr.insns = ptr_to_u64(prog); in test_obj_name() 36 attr.license = ptr_to_u64(""); in test_obj_name() 37 memcpy(attr.prog_name, tests[i].name, ncopy); in test_obj_name() 39 fd = syscall(__NR_bpf, BPF_PROG_LOAD, &attr, sizeof(attr)); in test_obj_name() [all …]
|
| /linux/drivers/dma/idxd/ |
| H A D | sysfs.c | 21 struct device_attribute *attr, char *buf) in engine_group_id_show() argument 32 struct device_attribute *attr, in engine_group_id_store() argument 74 &dev_attr_engine_group.attr, 116 struct device_attribute *attr, in group_read_buffers_reserved_show() argument 125 struct device_attribute *attr, in group_tokens_reserved_show() argument 129 return group_read_buffers_reserved_show(dev, attr, buf); in group_tokens_reserved_show() 133 struct device_attribute *attr, in group_read_buffers_reserved_store() argument 166 struct device_attribute *attr, in group_tokens_reserved_store() argument 170 return group_read_buffers_reserved_store(dev, attr, buf, count); in group_tokens_reserved_store() 182 struct device_attribute *attr, in group_read_buffers_allowed_show() argument [all …]
|
| /linux/fs/ |
| H A D | attr.c | 162 struct iattr *attr) in setattr_prepare() argument 165 unsigned int ia_valid = attr->ia_valid; in setattr_prepare() 182 error = inode_newsize_ok(inode, attr->ia_size); in setattr_prepare() 193 !chown_ok(idmap, inode, attr->ia_vfsuid)) in setattr_prepare() 198 !chgrp_ok(idmap, inode, attr->ia_vfsgid)) in setattr_prepare() 209 vfsgid = attr->ia_vfsgid; in setattr_prepare() 215 attr->ia_mode &= ~S_ISGID; in setattr_prepare() 294 static void setattr_copy_mgtime(struct inode *inode, const struct iattr *attr) in setattr_copy_mgtime() argument 296 unsigned int ia_valid = attr->ia_valid; in setattr_copy_mgtime() 300 now = inode_set_ctime_deleg(inode, attr->ia_ctime); in setattr_copy_mgtime() [all …]
|