Home
last modified time | relevance | path

Searched refs:raw_data (Results 1 – 25 of 104) sorted by relevance

12345

/linux/drivers/hid/
A Dhid-picolcd_debugfs.c141 if (memcmp(raw_data, resp->raw_data, 3+raw_data[2]) == 0) { in picolcd_debug_eeprom_write()
445 raw_data[2], raw_data[1], raw_data[2] << 8 | raw_data[1]); in picolcd_debug_out_report()
475 raw_data[2], raw_data[1]); in picolcd_debug_out_report()
486 raw_data[2], raw_data[1]); in picolcd_debug_out_report()
514 raw_data[3], raw_data[2], raw_data[1]); in picolcd_debug_out_report()
536 raw_data[3], raw_data[2], raw_data[1]); in picolcd_debug_out_report()
570 raw_data[3], raw_data[2], raw_data[1]); in picolcd_debug_out_report()
664 raw_data[2], error_codes[raw_data[2]], raw_data[1]); in picolcd_debug_raw_event()
682 raw_data[1], raw_data[1], raw_data[2], raw_data[2]); in picolcd_debug_raw_event()
752 raw_data[3], raw_data[2], raw_data[1]); in picolcd_debug_raw_event()
[all …]
A Dhid-saitek.c101 if (raw_data[1] & 0x01) in saitek_raw_event()
103 else if (raw_data[1] & 0x02) in saitek_raw_event()
105 else if (raw_data[1] & 0x04) in saitek_raw_event()
109 raw_data[1] &= ~0x07; in saitek_raw_event()
115 raw_data[1] |= 0x04; in saitek_raw_event()
123 if (raw_data[1] & 0x80) in saitek_raw_event()
125 else if (raw_data[2] & 0x01) in saitek_raw_event()
127 else if (raw_data[2] & 0x02) in saitek_raw_event()
131 raw_data[1] &= ~0x80; in saitek_raw_event()
132 raw_data[2] &= ~0x03; in saitek_raw_event()
[all …]
A Dhid-picolcd_core.c129 if (raw_data[i] == 0) in picolcd_raw_keypad()
132 if (data->pressed_keys[j] == raw_data[i]) in picolcd_raw_keypad()
136 data->pressed_keys[j] = raw_data[i]; in picolcd_raw_keypad()
140 if (raw_data[i] < PICOLCD_KEYS) in picolcd_raw_keypad()
141 key_code = data->keycode[raw_data[i]]; in picolcd_raw_keypad()
146 raw_data[i], key_code); in picolcd_raw_keypad()
196 data->version[0] = verinfo->raw_data[1]; in picolcd_check_version()
197 data->version[1] = verinfo->raw_data[0]; in picolcd_check_version()
200 verinfo->raw_data[1], verinfo->raw_data[0]); in picolcd_check_version()
203 verinfo->raw_data[1], verinfo->raw_data[0]); in picolcd_check_version()
[all …]
A Dhid-picolcd.h57 u8 raw_data[64]; member
143 u8 *raw_data, int size);
158 u8 *raw_data, int size) in picolcd_debug_raw_event() argument
277 struct hid_report *report, u8 *raw_data, int size);
284 struct hid_report *report, u8 *raw_data, int size) in picolcd_raw_cir() argument
299 int report_id, const u8 *raw_data, int size);
A Dhid-picolcd_cir.c34 struct hid_report *report, u8 *raw_data, int size) in picolcd_raw_cir() argument
58 sz = size > 0 ? min((int)raw_data[0], size-1) : 0; in picolcd_raw_cir()
60 w = (raw_data[i] << 8) | (raw_data[i+1]); in picolcd_raw_cir()
A Dhid-sensor-hub.c327 ret_val = *(s8 *)hsdev->pending.raw_data; in sensor_hub_input_attr_get_raw_value()
329 ret_val = *(u8 *)hsdev->pending.raw_data; in sensor_hub_input_attr_get_raw_value()
333 ret_val = *(s16 *)hsdev->pending.raw_data; in sensor_hub_input_attr_get_raw_value()
335 ret_val = *(u16 *)hsdev->pending.raw_data; in sensor_hub_input_attr_get_raw_value()
338 ret_val = *(u32 *)hsdev->pending.raw_data; in sensor_hub_input_attr_get_raw_value()
343 kfree(hsdev->pending.raw_data); in sensor_hub_input_attr_get_raw_value()
471 struct hid_report *report, u8 *raw_data, int size) in sensor_hub_raw_event() argument
489 ptr = raw_data; in sensor_hub_raw_event()
521 hsdev->pending.raw_data = kmemdup(ptr, sz, GFP_ATOMIC); in sensor_hub_raw_event()
522 if (hsdev->pending.raw_data) in sensor_hub_raw_event()
/linux/drivers/staging/greybus/
A Draw.c29 struct raw_data { struct
57 struct raw_data *raw_data; in receive_data() local
73 raw_data = kmalloc(sizeof(*raw_data) + len, GFP_KERNEL); in receive_data()
74 if (!raw_data) { in receive_data()
80 raw_data->len = len; in receive_data()
228 struct raw_data *raw_data; in gb_raw_disconnect() local
241 kfree(raw_data); in gb_raw_disconnect()
290 struct raw_data *raw_data; in raw_read() local
296 raw_data = list_first_entry(&raw->list, struct raw_data, entry); in raw_read()
302 if (copy_to_user(buf, &raw_data->data[0], raw_data->len)) { in raw_read()
[all …]
/linux/drivers/input/joystick/
A Dgrip_mp.c176 raw_data = gameport_read(gameport); in mp_io()
177 if (raw_data & 1) in mp_io()
187 portvals = raw_data & 0xf0; in mp_io()
189 if (raw_data & 0x31) in mp_io()
219 raw_data = (raw_data >> 5) & data_mask; in mp_io()
229 if (raw_data) in mp_io()
247 raw_data = gameport_read(gameport); in mp_io()
249 if (raw_data & 1) in mp_io()
271 raw_data = gameport_read(gameport); in mp_io()
272 if (raw_data & 1) in mp_io()
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
A Dbtf_endian.c19 const void *raw_data, *swap_raw_data; in test_btf_endian() local
35 raw_data = btf__raw_data(btf, &raw_sz); in test_btf_endian()
36 if (!ASSERT_OK_PTR(raw_data, "raw_data_inverted")) in test_btf_endian()
40 swap_btf = btf__new(raw_data, raw_sz); in test_btf_endian()
52 ASSERT_OK(memcmp(raw_data, swap_raw_data, raw_sz), "mem_identical"); in test_btf_endian()
78 raw_data = btf__raw_data(btf, &raw_sz); in test_btf_endian()
79 if (!ASSERT_OK_PTR(raw_data, "raw_data_inverted")) in test_btf_endian()
83 swap_btf = btf__new(raw_data, raw_sz); in test_btf_endian()
A Dcore_autosize.c62 const void *raw_data; in test_core_autosize() local
115 raw_data = btf__raw_data(btf, &raw_sz); in test_core_autosize()
116 if (!ASSERT_OK_PTR(raw_data, "raw_data")) in test_core_autosize()
118 written = fwrite(raw_data, 1, raw_sz, f); in test_core_autosize()
A Dget_stack_raw_tp.c35 __u64 *raw_data = data; in get_stack_print_output() local
48 ks = ksym_search(raw_data[i]); in get_stack_print_output()
/linux/drivers/rtc/
A Drtc-hid-sensor-time.c62 static u32 hid_time_value(size_t raw_len, char *raw_data) in hid_time_value() argument
66 return *(u8 *)raw_data; in hid_time_value()
68 return *(u16 *)raw_data; in hid_time_value()
70 return *(u32 *)raw_data; in hid_time_value()
78 char *raw_data, void *priv) in hid_time_capture_sample() argument
91 time_buf->tm_year = *(u8 *)raw_data; in hid_time_capture_sample()
97 (int)hid_time_value(raw_len, raw_data)-1900; in hid_time_capture_sample()
104 time_buf->tm_mday = (int)hid_time_value(raw_len, raw_data); in hid_time_capture_sample()
107 time_buf->tm_hour = (int)hid_time_value(raw_len, raw_data); in hid_time_capture_sample()
110 time_buf->tm_min = (int)hid_time_value(raw_len, raw_data); in hid_time_capture_sample()
[all …]
/linux/drivers/hwmon/
A Dsht4x.c80 u8 raw_data[SHT4X_RESPONSE_LENGTH]; in sht4x_read_values() local
95 ret = i2c_master_recv(client, raw_data, SHT4X_RESPONSE_LENGTH); in sht4x_read_values()
102 t_ticks = raw_data[0] << 8 | raw_data[1]; in sht4x_read_values()
103 rh_ticks = raw_data[3] << 8 | raw_data[4]; in sht4x_read_values()
105 crc = crc8(sht4x_crc8_table, &raw_data[0], SHT4X_WORD_LEN, CRC8_INIT_VALUE); in sht4x_read_values()
106 if (crc != raw_data[2]) { in sht4x_read_values()
112 crc = crc8(sht4x_crc8_table, &raw_data[3], SHT4X_WORD_LEN, CRC8_INIT_VALUE); in sht4x_read_values()
113 if (crc != raw_data[5]) { in sht4x_read_values()
A Daht10.c135 u8 raw_data[AHT10_MEAS_SIZE]; in aht10_read_values() local
149 res = i2c_master_recv(client, raw_data, AHT10_MEAS_SIZE); in aht10_read_values()
158 hum = ((u32)raw_data[1] << 12u) | in aht10_read_values()
159 ((u32)raw_data[2] << 4u) | in aht10_read_values()
160 ((raw_data[3] & 0xF0u) >> 4u); in aht10_read_values()
162 temp = ((u32)(raw_data[3] & 0x0Fu) << 16u) | in aht10_read_values()
163 ((u32)raw_data[4] << 8u) | in aht10_read_values()
164 raw_data[5]; in aht10_read_values()
/linux/tools/testing/selftests/bpf/progs/
A Dtest_get_stack_rawtp.c63 void *raw_data; in bpf_prog1() local
83 raw_data = bpf_map_lookup_elem(&rawdata_map, &key); in bpf_prog1()
84 if (!raw_data) in bpf_prog1()
87 usize = bpf_get_stack(ctx, raw_data, max_len, BPF_F_USER_STACK); in bpf_prog1()
91 ksize = bpf_get_stack(ctx, raw_data + usize, max_len - usize, 0); in bpf_prog1()
97 bpf_perf_event_output(ctx, &perfmap, 0, raw_data, total_size); in bpf_prog1()
/linux/drivers/iio/orientation/
A Dhid-sensor-rotation.c169 size_t raw_len, char *raw_data, in dev_rot_capture_sample() argument
177 rot_state->scan.sampled_vals[0] = ((s16 *)raw_data)[0]; in dev_rot_capture_sample()
178 rot_state->scan.sampled_vals[1] = ((s16 *)raw_data)[1]; in dev_rot_capture_sample()
179 rot_state->scan.sampled_vals[2] = ((s16 *)raw_data)[2]; in dev_rot_capture_sample()
180 rot_state->scan.sampled_vals[3] = ((s16 *)raw_data)[3]; in dev_rot_capture_sample()
182 memcpy(&rot_state->scan.sampled_vals, raw_data, in dev_rot_capture_sample()
190 *(s64 *)raw_data); in dev_rot_capture_sample()
A Dhid-sensor-incl-3d.c216 size_t raw_len, char *raw_data, in incl_3d_capture_sample() argument
225 incl_state->scan.incl_val[CHANNEL_SCAN_INDEX_X] = *(u32 *)raw_data; in incl_3d_capture_sample()
228 incl_state->scan.incl_val[CHANNEL_SCAN_INDEX_Y] = *(u32 *)raw_data; in incl_3d_capture_sample()
231 incl_state->scan.incl_val[CHANNEL_SCAN_INDEX_Z] = *(u32 *)raw_data; in incl_3d_capture_sample()
236 *(s64 *)raw_data); in incl_3d_capture_sample()
/linux/drivers/platform/chrome/wilco_ec/
A Ddebugfs.c26 u8 raw_data[EC_MAILBOX_DATA_SIZE]; member
123 memset(debug_info->raw_data, 0, sizeof(debug_info->raw_data)); in raw_write()
124 msg.response_data = debug_info->raw_data; in raw_write()
141 fmt_len = hex_dump_to_buffer(debug_info->raw_data, in raw_read()
/linux/tools/perf/tests/
A Dsample-parsing.c104 if (memcmp(s1->raw_data, s2->raw_data, s1->raw_size)) { in samples_same()
218 const u32 raw_data[] = {0x12345678, 0x0a0b0c0d, 0x11020304, 0x05060708, 0 }; in do_test() local
232 .raw_size = sizeof(raw_data), in do_test()
235 .raw_data = (void *)raw_data, in do_test()
/linux/tools/perf/util/
A Damd-sample-raw.c145 struct perf_ibs_data *data = sample->raw_data; in amd_dump_ibs_op()
176 struct perf_ibs_data *data = sample->raw_data; in amd_dump_ibs_fetch()
193 struct perf_ibs_data *data = sample->raw_data; in is_valid_ibs_fetch_sample()
204 struct perf_ibs_data *data = sample->raw_data; in is_valid_ibs_op_sample()
/linux/tools/lib/bpf/
A Dlinker.c117 void *raw_data; member
204 free(sec->raw_data); in bpf_linker__free()
283 symtab->raw_data = syms; in add_new_sym()
1121 tmp = realloc(dst->raw_data, dst_final_sz); in extend_sec()
1124 dst->raw_data = tmp; in extend_sec()
1249 Elf64_Sym *syms = symtab->raw_data; in get_sym_by_idx()
2585 sec->data->d_buf = sec->raw_data; in bpf_linker__finalize()
2644 data->d_buf = (void *)raw_data; in emit_elf_data_sec()
2654 const void *raw_data; in finalize_btf() local
2697 if (!raw_data) in finalize_btf()
[all …]
/linux/kernel/trace/
A Dtrace_event_perf.c397 char *raw_data; in perf_trace_buf_alloc() local
413 raw_data = this_cpu_ptr(perf_trace_buf[rctx]); in perf_trace_buf_alloc()
416 memset(&raw_data[size - sizeof(u64)], 0, sizeof(u64)); in perf_trace_buf_alloc()
417 return raw_data; in perf_trace_buf_alloc()
/linux/drivers/iio/pressure/
A Dhid-sensor-press.c189 size_t raw_len, char *raw_data, in press_capture_sample() argument
198 press_state->scan.press_data = *(u32 *)raw_data; in press_capture_sample()
203 &press_state->common_attributes, *(s64 *)raw_data); in press_capture_sample()
/linux/drivers/tty/ipwireless/
A Dhardware.c426 __le16 raw_data; in do_send_fragment() local
430 raw_data = cpu_to_le16(d); in do_send_fragment()
431 outw(raw_data, hw->base_port + IODWR); in do_send_fragment()
440 __le16 raw_data; in do_send_fragment() local
444 raw_data = cpu_to_le16(d); in do_send_fragment()
445 outw(raw_data, hw->base_port); in do_send_fragment()
872 __le16 raw_data = inw(hw->base_port + IODRR); in do_receive_packet() local
873 unsigned short data = le16_to_cpu(raw_data); in do_receive_packet()
889 __le16 raw_data = inw(hw->base_port); in do_receive_packet() local
890 unsigned short data = le16_to_cpu(raw_data); in do_receive_packet()
/linux/include/linux/
A Dhid-sensor-hub.h53 u8 *raw_data; member
92 u32 usage_id, size_t raw_len, char *raw_data,

Completed in 49 milliseconds

12345