Home
last modified time | relevance | path

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

12345678910>>...98

/linux/tools/lib/bpf/
A Dbpf.c94 memset(&attr, '\0', sizeof(attr)); in libbpf__bpf_create_map_xattr()
268 memset(&attr, 0, sizeof(attr)); in libbpf__bpf_prog_load()
440 memset(&attr, 0, sizeof(attr)); in bpf_verify_program()
462 memset(&attr, 0, sizeof(attr)); in bpf_map_update_elem()
477 memset(&attr, 0, sizeof(attr)); in bpf_map_lookup_elem()
491 memset(&attr, 0, sizeof(attr)); in bpf_map_lookup_elem_flags()
506 memset(&attr, 0, sizeof(attr)); in bpf_map_lookup_and_delete_elem()
520 memset(&attr, 0, sizeof(attr)); in bpf_map_lookup_and_delete_elem_flags()
535 memset(&attr, 0, sizeof(attr)); in bpf_map_delete_elem()
548 memset(&attr, 0, sizeof(attr)); in bpf_map_get_next_key()
[all …]
/linux/drivers/infiniband/hw/hfi1/
A Dsysfs.c196 &hfi1_sc2vl_attr_0.attr.attr,
197 &hfi1_sc2vl_attr_1.attr.attr,
198 &hfi1_sc2vl_attr_2.attr.attr,
199 &hfi1_sc2vl_attr_3.attr.attr,
200 &hfi1_sc2vl_attr_4.attr.attr,
201 &hfi1_sc2vl_attr_5.attr.attr,
202 &hfi1_sc2vl_attr_6.attr.attr,
203 &hfi1_sc2vl_attr_7.attr.attr,
204 &hfi1_sc2vl_attr_8.attr.attr,
205 &hfi1_sc2vl_attr_9.attr.attr,
[all …]
/linux/drivers/infiniband/core/
A Dsysfs.c965 sysfs_attr_init(&attr->attr.attr); in ib_setup_device_attrs()
967 attr->attr.attr.mode = 0444; in ib_setup_device_attrs()
975 sysfs_attr_init(&attr->attr.attr); in ib_setup_device_attrs()
976 attr->attr.attr.name = "lifespan"; in ib_setup_device_attrs()
977 attr->attr.attr.mode = 0644; in ib_setup_device_attrs()
1062 sysfs_attr_init(&attr->attr.attr); in setup_hw_port_stats()
1064 attr->attr.attr.mode = 0444; in setup_hw_port_stats()
1072 sysfs_attr_init(&attr->attr.attr); in setup_hw_port_stats()
1073 attr->attr.attr.name = "lifespan"; in setup_hw_port_stats()
1074 attr->attr.attr.mode = 0644; in setup_hw_port_stats()
[all …]
/linux/fs/orangefs/
A Dorangefs-sysfs.c225 } else if (!strcmp(attr->attr.name, in sysfs_int_show()
232 } else if (!strcmp(attr->attr.name, in sysfs_int_show()
239 } else if (!strcmp(attr->attr.name, in sysfs_int_show()
246 } else if (!strcmp(attr->attr.name, in sysfs_int_show()
287 attr->attr.name, buf); in sysfs_int_store()
367 else if (!strcmp(attr->attr.name, in sysfs_service_op_show()
371 else if (!strcmp(attr->attr.name, in sysfs_service_op_show()
376 else if (!strcmp(attr->attr.name, in sysfs_service_op_show()
381 else if (!strcmp(attr->attr.name, in sysfs_service_op_show()
386 else if (!strcmp(attr->attr.name, in sysfs_service_op_show()
[all …]
/linux/tools/perf/tests/
A Dparse-events.c126 0 == evsel->core.attr.config1); in test__checkevent_symbolic_name_config()
128 1 == evsel->core.attr.config2); in test__checkevent_symbolic_name_config()
161 evsel->core.attr.bp_type); in test__checkevent_breakpoint()
163 evsel->core.attr.bp_len); in test__checkevent_breakpoint()
246 !evsel->core.attr.exclude_user); in test__checkevent_tracepoint_multi_modifier()
1334 evsel->core.attr.bp_type); in test__checkevent_breakpoint_len()
1336 evsel->core.attr.bp_len); in test__checkevent_breakpoint_len()
1349 evsel->core.attr.bp_type); in test__checkevent_breakpoint_len_w()
1351 evsel->core.attr.bp_len); in test__checkevent_breakpoint_len_w()
2261 TEST_ASSERT_VAL("wrong type", evsel1->core.attr.type == evsel2->core.attr.type); in test__checkevent_pmu_events_alias()
[all …]
/linux/drivers/scsi/
A Discsi_boot_sysfs.c38 container_of(attr, struct iscsi_boot_attr, attr); in iscsi_boot_show_attribute()
113 if (attr == &iscsi_boot_attr_tgt_index.attr) in iscsi_boot_tgt_attr_is_visible()
119 else if (attr == &iscsi_boot_attr_tgt_ip.attr) in iscsi_boot_tgt_attr_is_visible()
122 else if (attr == &iscsi_boot_attr_tgt_port.attr) in iscsi_boot_tgt_attr_is_visible()
125 else if (attr == &iscsi_boot_attr_tgt_lun.attr) in iscsi_boot_tgt_attr_is_visible()
131 else if (attr == &iscsi_boot_attr_tgt_nic.attr) in iscsi_boot_tgt_attr_is_visible()
196 if (attr == &iscsi_boot_attr_eth_index.attr) in iscsi_boot_eth_attr_is_visible()
271 if (attr == &iscsi_boot_attr_ini_index.attr) in iscsi_boot_ini_attr_is_visible()
277 if (attr == &iscsi_boot_attr_ini_isns.attr) in iscsi_boot_ini_attr_is_visible()
280 if (attr == &iscsi_boot_attr_ini_slp.attr) in iscsi_boot_ini_attr_is_visible()
[all …]
A Dscsi_transport_iscsi.c458 else if (attr == &dev_attr_iface_erl.attr) in iscsi_iface_attr_is_visible()
484 if (attr == &dev_attr_iface_enabled.attr) in iscsi_iface_attr_is_visible()
486 else if (attr == &dev_attr_iface_vlan_id.attr) in iscsi_iface_attr_is_visible()
492 else if (attr == &dev_attr_iface_mtu.attr) in iscsi_iface_attr_is_visible()
494 else if (attr == &dev_attr_iface_port.attr) in iscsi_iface_attr_is_visible()
504 else if (attr == &dev_attr_iface_tcp_wsf.attr) in iscsi_iface_attr_is_visible()
4177 else if (attr == &dev_attr_conn_port.attr) in iscsi_conn_attr_is_visible()
4446 else if (attr == &dev_attr_sess_erl.attr) in iscsi_session_attr_is_visible()
4450 else if (attr == &dev_attr_sess_tpgt.attr) in iscsi_session_attr_is_visible()
4502 else if (attr == &dev_attr_sess_isid.attr) in iscsi_session_attr_is_visible()
[all …]
/linux/arch/x86/include/asm/
A Dinat.h112 attr &= INAT_PFX_MASK; in inat_is_legacy_prefix()
113 return attr && attr <= INAT_LGCPFX_MAX; in inat_is_legacy_prefix()
141 attr &= INAT_PFX_MASK; in inat_is_vex_prefix()
142 return attr == INAT_PFX_VEX2 || attr == INAT_PFX_VEX3 || in inat_is_vex_prefix()
158 return attr & INAT_ESC_MASK; in inat_is_escape()
193 return attr & INAT_MODRM; in inat_has_modrm()
198 return attr & INAT_FORCE64; in inat_is_force64()
203 return attr & INAT_SCNDIMM; in inat_has_second_immediate()
208 return attr & INAT_MOFFSET; in inat_has_moffset()
213 return attr & INAT_VARIANT; in inat_has_variant()
[all …]
/linux/tools/arch/x86/include/asm/
A Dinat.h112 attr &= INAT_PFX_MASK; in inat_is_legacy_prefix()
113 return attr && attr <= INAT_LGCPFX_MAX; in inat_is_legacy_prefix()
141 attr &= INAT_PFX_MASK; in inat_is_vex_prefix()
142 return attr == INAT_PFX_VEX2 || attr == INAT_PFX_VEX3 || in inat_is_vex_prefix()
158 return attr & INAT_ESC_MASK; in inat_is_escape()
193 return attr & INAT_MODRM; in inat_has_modrm()
198 return attr & INAT_FORCE64; in inat_is_force64()
203 return attr & INAT_SCNDIMM; in inat_has_second_immediate()
208 return attr & INAT_MOFFSET; in inat_has_moffset()
213 return attr & INAT_VARIANT; in inat_has_variant()
[all …]
/linux/drivers/scsi/ufs/
A Dufs-sysfs.c266 &dev_attr_rpm_lvl.attr,
269 &dev_attr_spm_lvl.attr,
273 &dev_attr_wb_on.attr,
618 &dev_attr_protocol.attr,
633 &dev_attr_rtc_update.attr,
645 &dev_attr_wb_type.attr,
782 &dev_attr_eol_info.attr,
962 &dev_attr_oem_id.attr,
1030 &dev_attr_busy_rtc.attr,
1032 &dev_attr_wb_enable.attr,
[all …]
/linux/lib/
A Dfault-inject.c34 attr->interval = interval; in setup_fault_attr()
44 if (attr->verbose > 0 && __ratelimit(&attr->ratelimit_state)) { in fail_dump()
48 attr->interval, attr->probability, in fail_dump()
51 if (attr->verbose > 1) in fail_dump()
72 bool found = (attr->require_start == 0 && attr->require_end == ULONG_MAX); in fail_stacktrace()
122 if (attr->task_filter && !fail_task(attr, current)) in should_fail()
133 if (attr->interval > 1) { in should_fail()
134 attr->count++; in should_fail()
135 if (attr->count % attr->interval) in should_fail()
146 fail_dump(attr); in should_fail()
[all …]
/linux/kernel/
A Dfail_function.c60 attr = kzalloc(sizeof(*attr), GFP_KERNEL); in fei_attr_new()
61 if (attr) { in fei_attr_new()
64 kfree(attr); in fei_attr_new()
72 return attr; in fei_attr_new()
77 if (attr) { in fei_attr_free()
79 kfree(attr); in fei_attr_free()
89 return attr; in fei_attr_lookup()
100 if (attr == _attr) in fei_attr_is_valid()
124 if (attr->kp.addr) { in fei_retval_set()
272 if (!attr) { in fei_write()
[all …]
/linux/drivers/infiniband/hw/qib/
A Dqib_sysfs.c292 return attr->attr.mode; in qib_ccmgta_is_bin_visible()
343 &qib_sl2vl_attr_0.attr.attr,
344 &qib_sl2vl_attr_1.attr.attr,
345 &qib_sl2vl_attr_2.attr.attr,
346 &qib_sl2vl_attr_3.attr.attr,
347 &qib_sl2vl_attr_4.attr.attr,
348 &qib_sl2vl_attr_5.attr.attr,
349 &qib_sl2vl_attr_6.attr.attr,
350 &qib_sl2vl_attr_7.attr.attr,
351 &qib_sl2vl_attr_8.attr.attr,
[all …]
/linux/drivers/base/
A Dsoc.c52 if ((attr == &dev_attr_machine.attr) && soc_dev->attr->machine) in soc_attribute_mode()
53 return attr->mode; in soc_attribute_mode()
54 if ((attr == &dev_attr_family.attr) && soc_dev->attr->family) in soc_attribute_mode()
55 return attr->mode; in soc_attribute_mode()
56 if ((attr == &dev_attr_revision.attr) && soc_dev->attr->revision) in soc_attribute_mode()
57 return attr->mode; in soc_attribute_mode()
58 if ((attr == &dev_attr_serial_number.attr) && soc_dev->attr->serial_number) in soc_attribute_mode()
59 return attr->mode; in soc_attribute_mode()
60 if ((attr == &dev_attr_soc_id.attr) && soc_dev->attr->soc_id) in soc_attribute_mode()
202 (!attr->family || !glob_match(match->family, attr->family))) in soc_device_match_attr()
[all …]
/linux/drivers/staging/iio/meter/
A Dade7854.c25 struct device_attribute *attr, in ade7854_read_8bit() argument
42 struct device_attribute *attr, in ade7854_read_16bit() argument
59 struct device_attribute *attr, in ade7854_read_24bit() argument
76 struct device_attribute *attr, in ade7854_read_32bit() argument
93 struct device_attribute *attr, in ade7854_write_8bit() argument
114 struct device_attribute *attr, in ade7854_write_16bit() argument
135 struct device_attribute *attr, in ade7854_write_24bit() argument
156 struct device_attribute *attr, in ade7854_write_32bit() argument
464 &iio_dev_attr_cfcyc.dev_attr.attr,
491 &iio_dev_attr_avahr.dev_attr.attr,
[all …]
/linux/drivers/hwmon/occ/
A Dcommon.c880 snprintf(attr->name, sizeof(attr->name), in occ_setup_sensor_attrs()
883 snprintf(attr->name, sizeof(attr->name), in occ_setup_sensor_attrs()
892 snprintf(attr->name, sizeof(attr->name), in occ_setup_sensor_attrs()
898 snprintf(attr->name, sizeof(attr->name), in occ_setup_sensor_attrs()
905 snprintf(attr->name, sizeof(attr->name), in occ_setup_sensor_attrs()
978 snprintf(attr->name, sizeof(attr->name), in occ_setup_sensor_attrs()
984 snprintf(attr->name, sizeof(attr->name), in occ_setup_sensor_attrs()
990 snprintf(attr->name, sizeof(attr->name), in occ_setup_sensor_attrs()
996 snprintf(attr->name, sizeof(attr->name), in occ_setup_sensor_attrs()
1022 snprintf(attr->name, sizeof(attr->name), in occ_setup_sensor_attrs()
[all …]
/linux/drivers/infiniband/sw/rxe/
A Drxe.c48 rxe->attr.max_qp = RXE_MAX_QP; in rxe_init_device_param()
54 rxe->attr.max_cq = RXE_MAX_CQ; in rxe_init_device_param()
56 rxe->attr.max_mr = RXE_MAX_MR; in rxe_init_device_param()
129 rxe->attr.max_pd); in rxe_init_pools()
134 rxe->attr.max_ah); in rxe_init_pools()
139 rxe->attr.max_srq); in rxe_init_pools()
144 rxe->attr.max_qp); in rxe_init_pools()
149 rxe->attr.max_cq); in rxe_init_pools()
154 rxe->attr.max_mr); in rxe_init_pools()
159 rxe->attr.max_mw); in rxe_init_pools()
[all …]
/linux/drivers/hwmon/
A Dadt7462.c806 data->temp_min[attr->index] = temp; in temp_min_store()
842 data->temp_max[attr->index] = temp; in temp_max_store()
880 x *= data->volt_max[attr->index]; in volt_max_show()
904 data->volt_max[attr->index] = temp; in volt_max_store()
920 x *= data->volt_min[attr->index]; in volt_min_show()
944 data->volt_min[attr->index] = temp; in volt_min_store()
960 x *= data->voltages[attr->index]; in voltage_show()
1002 temp = data->fan_min[attr->index]; in fan_min_show()
1030 data->fan_min[attr->index] = temp; in fan_min_store()
1106 data->pwm[attr->index] = temp; in pwm_store()
[all …]
A Dnct7802.c144 if (!attr->index) in pwm_show()
186 struct device_attribute *attr, in pwm_enable_store() argument
719 return attr->mode; in nct7802_temp_is_visible()
731 return attr->mode; in nct7802_temp_is_visible()
767 &sensor_dev_attr_in0_min.dev_attr.attr,
804 return attr->mode; in nct7802_in_is_visible()
817 return attr->mode; in nct7802_in_is_visible()
883 return attr->mode; in nct7802_fan_is_visible()
894 &sensor_dev_attr_pwm1.dev_attr.attr,
897 &sensor_dev_attr_pwm2.dev_attr.attr,
[all …]
A Demc1403.c215 &sensor_dev_attr_temp1_min.dev_attr.attr,
216 &sensor_dev_attr_temp1_max.dev_attr.attr,
223 &sensor_dev_attr_temp2_min.dev_attr.attr,
224 &sensor_dev_attr_temp2_max.dev_attr.attr,
305 &emc1402_alarms[0].dev_attr.attr,
306 &emc1402_alarms[1].dev_attr.attr,
307 &emc1402_alarms[2].dev_attr.attr,
308 &emc1402_alarms[3].dev_attr.attr,
309 &emc1402_alarms[4].dev_attr.attr,
310 &emc1402_alarms[5].dev_attr.attr,
[all …]
/linux/tools/testing/selftests/mount_setattr/
A Dmount_setattr_test.c612 memset(&attr, 0, sizeof(attr)); in TEST_F()
815 memset(&attr, 0, sizeof(attr)); in TEST_F()
836 memset(&attr, 0, sizeof(attr)); in TEST_F()
856 memset(&attr, 0, sizeof(attr)); in TEST_F()
875 memset(&attr, 0, sizeof(attr)); in TEST_F()
890 memset(&attr, 0, sizeof(attr)); in TEST_F()
1085 ASSERT_NE(sys_mount_setattr(-1, "/", 0, &attr, sizeof(attr)), 0) { in TEST_F()
1103 ASSERT_NE(sys_mount_setattr(-1, "/", 0, &attr, sizeof(attr)), 0) { in TEST_F()
1325 AT_EMPTY_PATH, &attr, sizeof(attr)), 0); in TEST_F()
1357 AT_EMPTY_PATH, &attr, sizeof(attr)), 0); in TEST_F()
[all …]
/linux/fs/ntfs3/
A Drecord.c52 attr = NULL; in mi_new_attt_id()
55 attr = mi_enum_attr(mi, attr); in mi_new_attt_id()
56 if (!attr) { in mi_new_attt_id()
193 if (!attr) { in mi_enum_attr()
223 attr = Add2Ptr(attr, asize); in mi_enum_attr()
273 if (attr->nres.svcn || !is_attr_ext(attr)) { in mi_enum_attr()
296 attr = mi_enum_attr(mi, attr); in mi_find_attr()
297 if (!attr) in mi_find_attr()
446 while ((attr = mi_enum_attr(mi, attr))) { in mi_insert_attr()
467 memmove(Add2Ptr(attr, asize), attr, tail); in mi_insert_attr()
[all …]
A Dfrecord.c219 if (!attr) in ni_find_attr()
319 if (!attr) in ni_load_attr()
1108 while ((attr = mi_enum_attr(&ni->mi, attr))) { in ni_insert_attr()
1126 attr = mi_enum_attr(&ni->mi, attr); in ni_insert_attr()
1439 attr->nres.data_size = attr->nres.alloc_size; in ni_insert_nonresident()
1440 attr->nres.valid_size = attr->nres.alloc_size; in ni_insert_nonresident()
1445 attr->nres.total_size = attr->nres.alloc_size; in ni_insert_nonresident()
1723 attr->nres.run_off = attr->name_off; in ni_new_attr_flags()
1884 if (!attr || !attr->non_res) { in ni_fiemap()
1887 attr ? le32_to_cpu(attr->res.data_size) : 0, in ni_fiemap()
[all …]
/linux/arch/arm64/kvm/vgic/
A Dvgic-kvm-device.c171 unsigned long type = (unsigned long)attr->attr; in vgic_set_common_attr()
211 switch (attr->attr) { in vgic_set_common_attr()
234 unsigned long type = (unsigned long)attr->attr; in vgic_get_common_attr()
296 cpuid = (attr->attr & KVM_DEV_ARM_VGIC_CPUID_MASK) >> in vgic_v2_parse_attr()
303 reg_attr->addr = attr->attr & KVM_DEV_ARM_VGIC_OFFSET_MASK; in vgic_v2_parse_attr()
454 switch (attr->attr) { in vgic_v2_has_attr()
466 switch (attr->attr) { in vgic_v2_has_attr()
578 intid = attr->attr & in vgic_v3_attr_regs_access()
643 switch (attr->attr) { in vgic_v3_set_attr()
713 switch (attr->attr) { in vgic_v3_has_attr()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
A Dtc_tun.c31 if (attr->n) in mlx5e_tc_tun_route_attr_cleanup()
32 neigh_release(attr->n); in mlx5e_tc_tun_route_attr_cleanup()
33 if (attr->route_dev) in mlx5e_tc_tun_route_attr_cleanup()
153 if (!attr->ttl) in mlx5e_route_lookup_ipv4_get()
164 attr->n = n; in mlx5e_route_lookup_ipv4_get()
266 memcpy(&m_neigh.dst_ip, attr.n->primary_key, attr.n->tbl->key_len); in mlx5e_tc_tun_create_header_ipv4()
292 ip->ttl = attr.ttl; in mlx5e_tc_tun_create_header_ipv4()
460 if (!attr->ttl) in mlx5e_route_lookup_ipv6_get()
477 attr->n = n; in mlx5e_route_lookup_ipv6_get()
535 memcpy(&m_neigh.dst_ip, attr.n->primary_key, attr.n->tbl->key_len); in mlx5e_tc_tun_create_header_ipv6()
[all …]

Completed in 114 milliseconds

12345678910>>...98