Searched refs:attr (Results 276 - 300 of 3244) sorted by relevance

<<11121314151617181920>>

/linux-master/drivers/gpu/drm/radeon/
H A Datom.c180 static uint32_t atom_get_src_int(atom_exec_context *ctx, uint8_t attr, argument
185 arg = attr & 7;
186 align = (attr >> 3) & 7;
371 static void atom_skip_src_int(atom_exec_context *ctx, uint8_t attr, int *ptr) argument
373 uint32_t align = (attr >> 3) & 7, arg = attr & 7;
407 static uint32_t atom_get_src(atom_exec_context *ctx, uint8_t attr, int *ptr) argument
409 return atom_get_src_int(ctx, attr, ptr, NULL, 1);
438 static uint32_t atom_get_dst(atom_exec_context *ctx, int arg, uint8_t attr, argument
442 arg | atom_dst_to_src[(attr >>
447 atom_skip_dst(atom_exec_context *ctx, int arg, uint8_t attr, int *ptr) argument
454 atom_put_dst(atom_exec_context *ctx, int arg, uint8_t attr, int *ptr, uint32_t val, uint32_t saved) argument
600 uint8_t attr = U8((*ptr)++); local
614 uint8_t attr = U8((*ptr)++); local
649 uint8_t attr = U8((*ptr)++); local
661 uint8_t attr = U8((*ptr)++); local
687 uint8_t attr = U8((*ptr)++); local
762 uint8_t attr = U8((*ptr)++); local
779 uint8_t attr = U8((*ptr)++); local
796 uint8_t attr = U8((*ptr)++); local
812 uint8_t attr = U8((*ptr)++); local
861 uint8_t attr = U8((*ptr)++); local
902 uint8_t attr = U8((*ptr)++), shift; local
918 uint8_t attr = U8((*ptr)++), shift; local
934 uint8_t attr = U8((*ptr)++), shift; local
953 uint8_t attr = U8((*ptr)++), shift; local
972 uint8_t attr = U8((*ptr)++); local
986 uint8_t attr = U8((*ptr)++); local
1013 uint8_t attr = U8((*ptr)++); local
1025 uint8_t attr = U8((*ptr)++); local
[all...]
/linux-master/drivers/hwtracing/coresight/
H A Dcoresight-etm3x-sysfs.c14 struct device_attribute *attr, char *buf)
25 struct device_attribute *attr, char *buf)
35 struct device_attribute *attr, char *buf)
46 struct device_attribute *attr, char *buf)
66 struct device_attribute *attr,
97 struct device_attribute *attr, char *buf)
108 struct device_attribute *attr,
182 struct device_attribute *attr, char *buf)
193 struct device_attribute *attr,
212 struct device_attribute *attr, cha
13 nr_addr_cmp_show(struct device *dev, struct device_attribute *attr, char *buf) argument
24 nr_cntr_show(struct device *dev, struct device_attribute *attr, char *buf) argument
34 nr_ctxid_cmp_show(struct device *dev, struct device_attribute *attr, char *buf) argument
45 etmsr_show(struct device *dev, struct device_attribute *attr, char *buf) argument
65 reset_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) argument
96 mode_show(struct device *dev, struct device_attribute *attr, char *buf) argument
107 mode_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) argument
181 trigger_event_show(struct device *dev, struct device_attribute *attr, char *buf) argument
192 trigger_event_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) argument
211 enable_event_show(struct device *dev, struct device_attribute *attr, char *buf) argument
222 enable_event_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) argument
241 fifofull_level_show(struct device *dev, struct device_attribute *attr, char *buf) argument
252 fifofull_level_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) argument
271 addr_idx_show(struct device *dev, struct device_attribute *attr, char *buf) argument
282 addr_idx_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) argument
310 addr_single_show(struct device *dev, struct device_attribute *attr, char *buf) argument
332 addr_single_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) argument
362 addr_range_show(struct device *dev, struct device_attribute *attr, char *buf) argument
391 addr_range_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) argument
431 addr_start_show(struct device *dev, struct device_attribute *attr, char *buf) argument
453 addr_start_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) argument
485 addr_stop_show(struct device *dev, struct device_attribute *attr, char *buf) argument
507 addr_stop_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) argument
539 addr_acctype_show(struct device *dev, struct device_attribute *attr, char *buf) argument
553 addr_acctype_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) argument
574 cntr_idx_show(struct device *dev, struct device_attribute *attr, char *buf) argument
585 cntr_idx_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) argument
612 cntr_rld_val_show(struct device *dev, struct device_attribute *attr, char *buf) argument
626 cntr_rld_val_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) argument
647 cntr_event_show(struct device *dev, struct device_attribute *attr, char *buf) argument
661 cntr_event_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) argument
682 cntr_rld_event_show(struct device *dev, struct device_attribute *attr, char *buf) argument
696 cntr_rld_event_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) argument
717 cntr_val_show(struct device *dev, struct device_attribute *attr, char *buf) argument
742 cntr_val_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) argument
763 seq_12_event_show(struct device *dev, struct device_attribute *attr, char *buf) argument
774 seq_12_event_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) argument
792 seq_21_event_show(struct device *dev, struct device_attribute *attr, char *buf) argument
803 seq_21_event_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) argument
821 seq_23_event_show(struct device *dev, struct device_attribute *attr, char *buf) argument
832 seq_23_event_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) argument
850 seq_31_event_show(struct device *dev, struct device_attribute *attr, char *buf) argument
861 seq_31_event_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) argument
879 seq_32_event_show(struct device *dev, struct device_attribute *attr, char *buf) argument
890 seq_32_event_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) argument
908 seq_13_event_show(struct device *dev, struct device_attribute *attr, char *buf) argument
919 seq_13_event_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) argument
937 seq_curr_state_show(struct device *dev, struct device_attribute *attr, char *buf) argument
962 seq_curr_state_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) argument
984 ctxid_idx_show(struct device *dev, struct device_attribute *attr, char *buf) argument
995 ctxid_idx_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) argument
1023 ctxid_pid_show(struct device *dev, struct device_attribute *attr, char *buf) argument
1044 ctxid_pid_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) argument
1077 ctxid_mask_show(struct device *dev, struct device_attribute *attr, char *buf) argument
1095 ctxid_mask_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) argument
1120 sync_freq_show(struct device *dev, struct device_attribute *attr, char *buf) argument
1131 sync_freq_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) argument
1149 timestamp_event_show(struct device *dev, struct device_attribute *attr, char *buf) argument
1160 timestamp_event_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) argument
1178 cpu_show(struct device *dev, struct device_attribute *attr, char *buf) argument
1190 traceid_show(struct device *dev, struct device_attribute *attr, char *buf) argument
[all...]
/linux-master/kernel/bpf/
H A Dsyscall.c339 void bpf_map_init_from_attr(struct bpf_map *map, union bpf_attr *attr) argument
341 map->map_type = attr->map_type;
342 map->key_size = attr->key_size;
343 map->value_size = attr->value_size;
344 map->max_entries = attr->max_entries;
345 map->map_flags = bpf_map_flags_retain_permanent(attr->map_flags);
346 map->numa_node = bpf_map_attr_numa_node(attr);
347 map->map_extra = attr->map_extra;
1026 memchr_inv((void *) &attr->CMD##_LAST_FIELD + \
1027 sizeof(attr
1183 map_create(union bpf_attr *attr) argument
1523 map_lookup_elem(union bpf_attr *attr) argument
1598 map_update_elem(union bpf_attr *attr, bpfptr_t uattr) argument
1656 map_delete_elem(union bpf_attr *attr, bpfptr_t uattr) argument
1712 map_get_next_key(union bpf_attr *attr) argument
1776 generic_map_delete_batch(struct bpf_map *map, const union bpf_attr *attr, union bpf_attr __user *uattr) argument
1832 generic_map_update_batch(struct bpf_map *map, struct file *map_file, const union bpf_attr *attr, union bpf_attr __user *uattr) argument
1895 generic_map_lookup_batch(struct bpf_map *map, const union bpf_attr *attr, union bpf_attr __user *uattr) argument
1997 map_lookup_and_delete_elem(union bpf_attr *attr) argument
2090 map_freeze(const union bpf_attr *attr) argument
2505 bpf_prog_load_fixup_attach_type(union bpf_attr *attr) argument
2683 bpf_prog_load(union bpf_attr *attr, bpfptr_t uattr, u32 uattr_size) argument
2952 bpf_obj_pin(const union bpf_attr *attr) argument
2968 bpf_obj_get(const union bpf_attr *attr) argument
3759 bpf_perf_link_attach(const union bpf_attr *attr, struct bpf_prog *prog) argument
3804 bpf_perf_link_attach(const union bpf_attr *attr, struct bpf_prog *prog) argument
3880 bpf_raw_tracepoint_open(const union bpf_attr *attr) argument
4043 bpf_prog_attach(const union bpf_attr *attr) argument
4118 bpf_prog_detach(const union bpf_attr *attr) argument
4183 bpf_prog_query(const union bpf_attr *attr, union bpf_attr __user *uattr) argument
4247 bpf_prog_test_run(const union bpf_attr *attr, union bpf_attr __user *uattr) argument
4277 bpf_obj_get_next_id(const union bpf_attr *attr, union bpf_attr __user *uattr, struct idr *idr, spinlock_t *lock) argument
4360 bpf_prog_get_fd_by_id(const union bpf_attr *attr) argument
4385 bpf_map_get_fd_by_id(const union bpf_attr *attr) argument
4538 bpf_prog_get_info_by_fd(struct file *file, struct bpf_prog *prog, const union bpf_attr *attr, union bpf_attr __user *uattr) argument
4827 bpf_map_get_info_by_fd(struct file *file, struct bpf_map *map, const union bpf_attr *attr, union bpf_attr __user *uattr) argument
4874 bpf_btf_get_info_by_fd(struct file *file, struct btf *btf, const union bpf_attr *attr, union bpf_attr __user *uattr) argument
4890 bpf_link_get_info_by_fd(struct file *file, struct bpf_link *link, const union bpf_attr *attr, union bpf_attr __user *uattr) argument
4930 bpf_obj_get_info_by_fd(const union bpf_attr *attr, union bpf_attr __user *uattr) argument
4964 bpf_btf_load(const union bpf_attr *attr, bpfptr_t uattr, __u32 uattr_size) argument
4996 bpf_btf_get_fd_by_id(const union bpf_attr *attr) argument
5007 bpf_task_fd_query_copy(const union bpf_attr *attr, union bpf_attr __user *uattr, u32 prog_id, u32 fd_type, const char *buf, u64 probe_offset, u64 probe_addr) argument
5056 bpf_task_fd_query(const union bpf_attr *attr, union bpf_attr __user *uattr) argument
5139 bpf_map_do_batch(const union bpf_attr *attr, union bpf_attr __user *uattr, int cmd) argument
5187 link_create(union bpf_attr *attr, bpfptr_t uattr) argument
5282 link_update_map(struct bpf_link *link, union bpf_attr *attr) argument
5313 link_update(union bpf_attr *attr) argument
5371 link_detach(union bpf_attr *attr) argument
5440 bpf_link_get_fd_by_id(const union bpf_attr *attr) argument
5499 bpf_enable_stats(union bpf_attr *attr) argument
5519 bpf_iter_create(union bpf_attr *attr) argument
5542 bpf_prog_bind_map(union bpf_attr *attr) argument
5609 token_create(union bpf_attr *attr) argument
5623 union bpf_attr attr; local
5809 kern_sys_bpf(int cmd, union bpf_attr *attr, unsigned int size) argument
[all...]
/linux-master/drivers/hwmon/
H A Ddme1737.c799 static ssize_t show_in(struct device *dev, struct device_attribute *attr, argument
804 *sensor_attr_2 = to_sensor_dev_attr_2(attr);
830 static ssize_t set_in(struct device *dev, struct device_attribute *attr, argument
835 *sensor_attr_2 = to_sensor_dev_attr_2(attr);
877 static ssize_t show_temp(struct device *dev, struct device_attribute *attr, argument
882 *sensor_attr_2 = to_sensor_dev_attr_2(attr);
914 static ssize_t set_temp(struct device *dev, struct device_attribute *attr, argument
919 *sensor_attr_2 = to_sensor_dev_attr_2(attr);
965 static ssize_t show_zone(struct device *dev, struct device_attribute *attr, argument
970 *sensor_attr_2 = to_sensor_dev_attr_2(attr);
1006 set_zone(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
1080 show_fan(struct device *dev, struct device_attribute *attr, char *buf) argument
1120 set_fan(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
1196 show_pwm(struct device *dev, struct device_attribute *attr, char *buf) argument
1259 set_pwm(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
1462 vrm_show(struct device *dev, struct device_attribute *attr, char *buf) argument
1471 vrm_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
1489 cpu0_vid_show(struct device *dev, struct device_attribute *attr, char *buf) argument
1497 name_show(struct device *dev, struct device_attribute *attr, char *buf) argument
2043 dme1737_chmod_file(struct device *dev, struct attribute *attr, umode_t mode) argument
2056 struct attribute **attr; local
[all...]
H A Df75375s.c284 static ssize_t set_fan_min(struct device *dev, struct device_attribute *attr, argument
287 int nr = to_sensor_dev_attr(attr)->index;
304 static ssize_t set_fan_target(struct device *dev, struct device_attribute *attr, argument
307 int nr = to_sensor_dev_attr(attr)->index;
329 static ssize_t set_pwm(struct device *dev, struct device_attribute *attr, argument
332 int nr = to_sensor_dev_attr(attr)->index;
354 *attr, char *buf)
356 int nr = to_sensor_dev_attr(attr)->index;
425 static ssize_t set_pwm_enable(struct device *dev, struct device_attribute *attr, argument
428 int nr = to_sensor_dev_attr(attr)
353 show_pwm_enable(struct device *dev, struct device_attribute *attr, char *buf) argument
444 set_pwm_mode(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
488 show_pwm(struct device *dev, struct device_attribute *attr, char *buf) argument
496 show_pwm_mode(struct device *dev, struct device_attribute *attr, char *buf) argument
507 show_in(struct device *dev, struct device_attribute *attr, char *buf) argument
515 show_in_max(struct device *dev, struct device_attribute *attr, char *buf) argument
523 show_in_min(struct device *dev, struct device_attribute *attr, char *buf) argument
531 set_in_max(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
552 set_in_min(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
576 show_temp11(struct device *dev, struct device_attribute *attr, char *buf) argument
584 show_temp_max(struct device *dev, struct device_attribute *attr, char *buf) argument
592 show_temp_max_hyst(struct device *dev, struct device_attribute *attr, char *buf) argument
600 set_temp_max(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
621 set_temp_max_hyst(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
[all...]
H A Dpc87427.c491 &sensor_dev_attr_fan1_input.dev_attr.attr,
492 &sensor_dev_attr_fan1_min.dev_attr.attr,
493 &sensor_dev_attr_fan1_alarm.dev_attr.attr,
494 &sensor_dev_attr_fan1_fault.dev_attr.attr,
497 &sensor_dev_attr_fan2_input.dev_attr.attr,
498 &sensor_dev_attr_fan2_min.dev_attr.attr,
499 &sensor_dev_attr_fan2_alarm.dev_attr.attr,
500 &sensor_dev_attr_fan2_fault.dev_attr.attr,
503 &sensor_dev_attr_fan3_input.dev_attr.attr,
504 &sensor_dev_attr_fan3_min.dev_attr.attr,
[all...]
H A Demc6w201.c353 &sensor_dev_attr_in0_input.dev_attr.attr,
354 &sensor_dev_attr_in0_min.dev_attr.attr,
355 &sensor_dev_attr_in0_max.dev_attr.attr,
356 &sensor_dev_attr_in1_input.dev_attr.attr,
357 &sensor_dev_attr_in1_min.dev_attr.attr,
358 &sensor_dev_attr_in1_max.dev_attr.attr,
359 &sensor_dev_attr_in2_input.dev_attr.attr,
360 &sensor_dev_attr_in2_min.dev_attr.attr,
361 &sensor_dev_attr_in2_max.dev_attr.attr,
362 &sensor_dev_attr_in3_input.dev_attr.attr,
[all...]
H A Dlm92.c140 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); local
143 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[attr->index]));
150 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); local
153 int nr = attr->index;
171 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); local
174 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[attr->index])
179 struct device_attribute *attr, char *buf)
191 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); local
204 TEMP_TO_REG(TEMP_FROM_REG(data->temp[attr->index]) - val);
211 static ssize_t alarms_show(struct device *dev, struct device_attribute *attr, argument
178 temp1_min_hyst_show(struct device *dev, struct device_attribute *attr, char *buf) argument
219 alarm_show(struct device *dev, struct device_attribute *attr, char *buf) argument
[all...]
/linux-master/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_selftests.c60 struct stmmac_packet_attrs *attr)
70 size = attr->size + STMMAC_TEST_PKT_SIZE;
71 if (attr->vlan) {
73 if (attr->vlan > 1)
77 if (attr->tcp)
82 if (attr->max_size && (attr->max_size > size))
83 size = attr->max_size;
91 if (attr->vlan > 1)
93 else if (attr
59 stmmac_test_get_udp_skb(struct stmmac_priv *priv, struct stmmac_packet_attrs *attr) argument
219 stmmac_test_get_arp_skb(struct stmmac_priv *priv, struct stmmac_packet_attrs *attr) argument
320 __stmmac_test_loopback(struct stmmac_priv *priv, struct stmmac_packet_attrs *attr) argument
371 struct stmmac_packet_attrs attr = { }; local
379 struct stmmac_packet_attrs attr = { }; local
536 struct stmmac_packet_attrs attr = { }; local
582 struct stmmac_packet_attrs attr = { }; local
626 struct stmmac_packet_attrs attr = { }; local
672 struct stmmac_packet_attrs attr = { }; local
778 struct stmmac_packet_attrs attr = { }; local
822 struct stmmac_packet_attrs attr = { }; local
896 struct stmmac_packet_attrs attr = { }; local
989 struct stmmac_packet_attrs attr = { }; local
1086 struct stmmac_packet_attrs attr = { }; local
1173 struct stmmac_packet_attrs attr = { }; local
1195 struct stmmac_packet_attrs attr = { }; local
1216 struct stmmac_packet_attrs attr = { }; local
1239 struct stmmac_packet_attrs attr = { }; local
1260 struct stmmac_packet_attrs attr = { }; local
1335 struct stmmac_packet_attrs attr = { }; local
1461 struct stmmac_packet_attrs attr = { }; local
1621 struct stmmac_packet_attrs attr = { }; local
1686 struct stmmac_packet_attrs attr = { }; local
1721 struct stmmac_packet_attrs attr = { }; local
1759 struct stmmac_packet_attrs attr = { }; local
[all...]
/linux-master/arch/arm/plat-orion/include/plat/
H A Daddr-map.h40 const u8 attr; member in struct:orion_addr_map_info
50 const u8 attr, const int remap);
/linux-master/net/ipv4/
H A Dnetlink.c10 int rtm_getroute_parse_ip_proto(struct nlattr *attr, u8 *ip_proto, u8 family, argument
13 *ip_proto = nla_get_u8(attr);
/linux-master/tools/testing/selftests/powerpc/pmu/ebb/
H A Devent_attributes_test.c36 event.attr.exclusive = 0;
43 event.attr.freq = 1;
50 event.attr.sample_period = 1;
57 event.attr.enable_on_exec = 1;
64 event.attr.inherit = 1;
96 leader.attr.config &= ~(1ull << 63);
110 leader.attr.exclusive = 0;
117 leader.attr.pinned = 0;
/linux-master/drivers/soc/versatile/
H A Dsoc-realview.c43 manufacturer_show(struct device *dev, struct device_attribute *attr, char *buf) argument
51 board_show(struct device *dev, struct device_attribute *attr, char *buf) argument
59 fpga_show(struct device *dev, struct device_attribute *attr, char *buf) argument
67 build_show(struct device *dev, struct device_attribute *attr, char *buf) argument
75 &dev_attr_manufacturer.attr,
76 &dev_attr_board.attr,
77 &dev_attr_fpga.attr,
78 &dev_attr_build.attr,
H A Dsoc-integrator.c60 manufacturer_show(struct device *dev, struct device_attribute *attr, char *buf) argument
68 arch_show(struct device *dev, struct device_attribute *attr, char *buf) argument
76 fpga_show(struct device *dev, struct device_attribute *attr, char *buf) argument
84 build_show(struct device *dev, struct device_attribute *attr, char *buf) argument
92 &dev_attr_manufacturer.attr,
93 &dev_attr_arch.attr,
94 &dev_attr_fpga.attr,
95 &dev_attr_build.attr,
/linux-master/arch/x86/events/
H A Dprobe.h19 &attr_##_name.attr.attr, \
/linux-master/drivers/infiniband/hw/usnic/
H A Dusnic_ib_sysfs.c49 struct device_attribute *attr, char *buf)
67 config_show(struct device *device, struct device_attribute *attr, char *buf) argument
119 iface_show(struct device *device, struct device_attribute *attr, char *buf) argument
129 max_vf_show(struct device *device, struct device_attribute *attr, char *buf) argument
139 qp_per_vf_show(struct device *device, struct device_attribute *attr, char *buf) argument
153 cq_per_vf_show(struct device *device, struct device_attribute *attr, char *buf) argument
164 &dev_attr_board_id.attr,
165 &dev_attr_config.attr,
166 &dev_attr_iface.attr,
167 &dev_attr_max_vf.attr,
48 board_id_show(struct device *device, struct device_attribute *attr, char *buf) argument
178 struct attribute attr; member in struct:qpn_attribute
186 usnic_ib_qpn_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) argument
[all...]
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dfind_vma.c27 struct perf_event_attr attr = {0}; local
31 attr.size = sizeof(attr);
32 attr.type = PERF_TYPE_HARDWARE;
33 attr.config = PERF_COUNT_HW_CPU_CYCLES;
34 attr.freq = 1;
35 attr.sample_freq = 1000;
36 pfd = syscall(__NR_perf_event_open, &attr, 0, -1, -1, PERF_FLAG_FD_CLOEXEC);
/linux-master/drivers/infiniband/core/
H A Duverbs_std_types_device.c139 void copy_port_attr_to_resp(struct ib_port_attr *attr, argument
143 resp->state = attr->state;
144 resp->max_mtu = attr->max_mtu;
145 resp->active_mtu = attr->active_mtu;
146 resp->gid_tbl_len = attr->gid_tbl_len;
147 resp->port_cap_flags = make_port_cap_flags(attr);
148 resp->max_msg_sz = attr->max_msg_sz;
149 resp->bad_pkey_cntr = attr->bad_pkey_cntr;
150 resp->qkey_viol_cntr = attr->qkey_viol_cntr;
151 resp->pkey_tbl_len = attr
180 struct ib_port_attr attr = {}; local
276 const struct uverbs_attr *attr; local
[all...]
/linux-master/drivers/staging/iio/frequency/
H A Dad9834.c142 struct device_attribute *attr,
148 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr);
220 struct device_attribute *attr,
226 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr);
280 struct device_attribute *attr,
302 struct device_attribute *attr,
341 &iio_dev_attr_out_altvoltage0_frequency0.dev_attr.attr,
342 &iio_dev_attr_out_altvoltage0_frequency1.dev_attr.attr,
343 &iio_const_attr_out_altvoltage0_frequency_scale.dev_attr.attr,
344 &iio_dev_attr_out_altvoltage0_phase0.dev_attr.attr,
141 ad9834_write(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) argument
219 ad9834_store_wavetype(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) argument
279 ad9834_show_out0_wavetype_available(struct device *dev, struct device_attribute *attr, char *buf) argument
301 ad9834_show_out1_wavetype_available(struct device *dev, struct device_attribute *attr, char *buf) argument
[all...]
/linux-master/drivers/gpu/drm/xe/
H A Dxe_gt_throttle_sysfs.c113 struct device_attribute *attr,
124 struct device_attribute *attr,
135 struct device_attribute *attr,
146 struct device_attribute *attr,
157 struct device_attribute *attr,
168 struct device_attribute *attr,
179 struct device_attribute *attr,
190 struct device_attribute *attr,
201 struct device_attribute *attr,
212 &dev_attr_status.attr,
112 status_show(struct device *dev, struct device_attribute *attr, char *buff) argument
123 reason_pl1_show(struct device *dev, struct device_attribute *attr, char *buff) argument
134 reason_pl2_show(struct device *dev, struct device_attribute *attr, char *buff) argument
145 reason_pl4_show(struct device *dev, struct device_attribute *attr, char *buff) argument
156 reason_thermal_show(struct device *dev, struct device_attribute *attr, char *buff) argument
167 reason_prochot_show(struct device *dev, struct device_attribute *attr, char *buff) argument
178 reason_ratl_show(struct device *dev, struct device_attribute *attr, char *buff) argument
189 reason_vr_thermalert_show(struct device *dev, struct device_attribute *attr, char *buff) argument
200 reason_vr_tdc_show(struct device *dev, struct device_attribute *attr, char *buff) argument
[all...]
/linux-master/sound/soc/intel/avs/
H A Dsysfs.c12 static ssize_t fw_version_show(struct device *dev, struct device_attribute *attr, char *buf) argument
23 &dev_attr_fw_version.attr,
/linux-master/net/core/
H A Dnet-sysfs.c46 struct device_attribute *attr, char *buf,
67 struct device_attribute *attr, char *buf) \
69 return netdev_show(dev, attr, buf, format_##field); \
81 static ssize_t netdev_store(struct device *dev, struct device_attribute *attr, argument
118 static ssize_t iflink_show(struct device *dev, struct device_attribute *attr, argument
133 struct device_attribute *attr,
140 ret = netdev_show(dev, attr, buf, format_name_assign_type);
147 static ssize_t address_show(struct device *dev, struct device_attribute *attr, argument
166 struct device_attribute *attr, char *buf)
186 static ssize_t carrier_store(struct device *dev, struct device_attribute *attr, argument
45 netdev_show(const struct device *dev, struct device_attribute *attr, char *buf, ssize_t (*format)(const struct net_device *, char *)) argument
132 name_assign_type_show(struct device *dev, struct device_attribute *attr, char *buf) argument
165 broadcast_show(struct device *dev, struct device_attribute *attr, char *buf) argument
200 carrier_show(struct device *dev, struct device_attribute *attr, char *buf) argument
223 speed_show(struct device *dev, struct device_attribute *attr, char *buf) argument
249 duplex_show(struct device *dev, struct device_attribute *attr, char *buf) argument
289 testing_show(struct device *dev, struct device_attribute *attr, char *buf) argument
301 dormant_show(struct device *dev, struct device_attribute *attr, char *buf) argument
323 operstate_show(struct device *dev, struct device_attribute *attr, char *buf) argument
340 carrier_changes_show(struct device *dev, struct device_attribute *attr, char *buf) argument
352 carrier_up_count_show(struct device *dev, struct device_attribute *attr, char *buf) argument
362 carrier_down_count_show(struct device *dev, struct device_attribute *attr, char *buf) argument
379 mtu_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) argument
391 flags_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) argument
398 tx_queue_len_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) argument
415 gro_flush_timeout_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) argument
432 napi_defer_hard_irqs_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) argument
443 ifalias_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) argument
474 ifalias_show(struct device *dev, struct device_attribute *attr, char *buf) argument
494 group_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) argument
507 proto_down_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) argument
515 phys_port_id_show(struct device *dev, struct device_attribute *attr, char *buf) argument
543 phys_port_name_show(struct device *dev, struct device_attribute *attr, char *buf) argument
572 phys_switch_id_show(struct device *dev, struct device_attribute *attr, char *buf) argument
602 threaded_show(struct device *dev, struct device_attribute *attr, char *buf) argument
633 threaded_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) argument
679 netstat_show(const struct device *d, struct device_attribute *attr, char *buf, unsigned long offset) argument
800 rx_queue_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) argument
812 rx_queue_attr_store(struct kobject *kobj, struct attribute *attr, const char *buf, size_t count) argument
1211 struct attribute attr; member in struct:netdev_queue_attribute
1221 netdev_queue_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) argument
1234 netdev_queue_attr_store(struct kobject *kobj, struct attribute *attr, const char *buf, size_t count) argument
[all...]
/linux-master/kernel/power/
H A Dmain.c115 static ssize_t pm_async_show(struct kobject *kobj, struct kobj_attribute *attr, argument
121 static ssize_t pm_async_store(struct kobject *kobj, struct kobj_attribute *attr, argument
139 static ssize_t mem_sleep_show(struct kobject *kobj, struct kobj_attribute *attr, argument
184 static ssize_t mem_sleep_store(struct kobject *kobj, struct kobj_attribute *attr, argument
221 struct kobj_attribute *attr, char *buf)
227 struct kobj_attribute *attr,
257 static ssize_t pm_test_show(struct kobject *kobj, struct kobj_attribute *attr, argument
278 static ssize_t pm_test_store(struct kobject *kobj, struct kobj_attribute *attr, argument
391 struct kobj_attribute *attr, char *buf) \
405 struct kobj_attribute *attr, cha
220 sync_on_suspend_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
226 sync_on_suspend_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t n) argument
421 last_failed_dev_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
435 last_failed_errno_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
449 last_failed_step_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
483 suspend_attr_is_visible(struct kobject *kobj, struct attribute *attr, int idx) argument
571 pm_print_times_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
577 pm_print_times_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t n) argument
600 pm_wakeup_irq_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
620 pm_debug_messages_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
626 pm_debug_messages_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t n) argument
668 state_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
715 state_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t n) argument
778 wakeup_count_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
788 wakeup_count_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t n) argument
820 autosleep_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
841 autosleep_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t n) argument
863 wake_lock_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
870 wake_lock_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t n) argument
880 wake_unlock_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
887 wake_unlock_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t n) argument
903 pm_trace_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
910 pm_trace_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t n) argument
928 pm_trace_dev_match_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
940 pm_freeze_timeout_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
946 pm_freeze_timeout_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t n) argument
[all...]
/linux-master/drivers/accel/habanalabs/goya/
H A Dgoya_hwmgr.c38 static ssize_t mme_clk_show(struct device *dev, struct device_attribute *attr, argument
55 static ssize_t mme_clk_store(struct device *dev, struct device_attribute *attr, argument
87 static ssize_t tpc_clk_show(struct device *dev, struct device_attribute *attr, argument
104 static ssize_t tpc_clk_store(struct device *dev, struct device_attribute *attr, argument
136 static ssize_t ic_clk_show(struct device *dev, struct device_attribute *attr, argument
153 static ssize_t ic_clk_store(struct device *dev, struct device_attribute *attr, argument
186 struct device_attribute *attr, char *buf)
203 struct device_attribute *attr, char *buf)
220 struct device_attribute *attr, char *buf)
237 struct device_attribute *attr, cha
185 mme_clk_curr_show(struct device *dev, struct device_attribute *attr, char *buf) argument
202 tpc_clk_curr_show(struct device *dev, struct device_attribute *attr, char *buf) argument
219 ic_clk_curr_show(struct device *dev, struct device_attribute *attr, char *buf) argument
236 pm_mng_profile_show(struct device *dev, struct device_attribute *attr, char *buf) argument
251 pm_mng_profile_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
308 high_pll_show(struct device *dev, struct device_attribute *attr, char *buf) argument
319 high_pll_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
365 infineon_ver_show(struct device *dev, struct device_attribute *attr, char *buf) argument
[all...]
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/
H A Dmirred.c24 struct mlx5_flow_attr *attr,
35 * Input vport was stored attr->in_rep.
39 rep_priv = mlx5e_rep_to_rep_priv(attr->esw_attr->in_rep);
104 struct mlx5_flow_attr *attr)
113 parse_attr = attr->parse_attr;
114 esw_attr = attr->esw_attr;
178 struct mlx5_flow_attr *attr)
180 struct mlx5e_tc_flow_parse_attr *parse_attr = attr->parse_attr;
181 struct mlx5_esw_flow_attr *esw_attr = attr->esw_attr;
200 /* attr
23 verify_uplink_forwarding(struct mlx5e_priv *priv, struct mlx5_flow_attr *attr, struct net_device *out_dev, struct netlink_ext_ack *extack) argument
101 tc_act_can_offload_mirred(struct mlx5e_tc_act_parse_state *parse_state, const struct flow_action_entry *act, int act_index, struct mlx5_flow_attr *attr) argument
176 parse_mirred_encap(struct mlx5e_tc_act_parse_state *parse_state, const struct flow_action_entry *act, struct mlx5_flow_attr *attr) argument
206 parse_mirred(struct mlx5e_tc_act_parse_state *parse_state, const struct flow_action_entry *act, struct mlx5e_priv *priv, struct mlx5_flow_attr *attr) argument
283 parse_mirred_ovs_master(struct mlx5e_tc_act_parse_state *parse_state, const struct flow_action_entry *act, struct mlx5e_priv *priv, struct mlx5_flow_attr *attr) argument
304 tc_act_parse_mirred(struct mlx5e_tc_act_parse_state *parse_state, const struct flow_action_entry *act, struct mlx5e_priv *priv, struct mlx5_flow_attr *attr) argument
[all...]

Completed in 248 milliseconds

<<11121314151617181920>>