/linux-6.1.9/drivers/hid/ |
D | hid-picolcd_debugfs.c | 77 u8 raw_data[3]; in picolcd_debug_eeprom_read() local 86 raw_data[0] = *off & 0xff; in picolcd_debug_eeprom_read() 87 raw_data[1] = (*off >> 8) & 0xff; in picolcd_debug_eeprom_read() 88 raw_data[2] = s < 20 ? s : 20; in picolcd_debug_eeprom_read() 89 if (*off + raw_data[2] > 0xff) in picolcd_debug_eeprom_read() 90 raw_data[2] = 0x100 - *off; in picolcd_debug_eeprom_read() 91 resp = picolcd_send_and_wait(data->hdev, REPORT_EE_READ, raw_data, in picolcd_debug_eeprom_read() 92 sizeof(raw_data)); in picolcd_debug_eeprom_read() 98 ret = resp->raw_data[2]; in picolcd_debug_eeprom_read() 101 if (copy_to_user(u, resp->raw_data+3, ret)) in picolcd_debug_eeprom_read() [all …]
|
D | hid-saitek.c | 94 struct hid_report *report, u8 *raw_data, int size) in saitek_raw_event() argument 101 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() [all …]
|
D | hid-picolcd_core.c | 69 int report_id, const u8 *raw_data, int size) in picolcd_send_and_wait() argument 94 hid_set_field(report->field[i], j, k < size ? raw_data[k] : 0); in picolcd_send_and_wait() 117 struct hid_report *report, u8 *raw_data, int size) in picolcd_raw_keypad() argument 129 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() 139 input_event(data->input_keys, EV_MSC, MSC_SCAN, 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() [all …]
|
D | hid-letsketch.c | 167 u8 *raw_data, int size) in letsketch_raw_event() argument 173 if (size != LETSKETCH_RAW_DATA_LEN || raw_data[0] != LETSKETCH_RAW_REPORT_ID) in letsketch_raw_event() 176 switch (raw_data[1] & 0xf0) { in letsketch_raw_event() 180 input_report_key(input, BTN_TOUCH, raw_data[1] & 0x01); in letsketch_raw_event() 181 input_report_key(input, BTN_STYLUS, raw_data[1] & 0x02); in letsketch_raw_event() 182 input_report_key(input, BTN_STYLUS2, raw_data[1] & 0x04); in letsketch_raw_event() 184 get_unaligned_le16(raw_data + 2)); in letsketch_raw_event() 186 get_unaligned_le16(raw_data + 4)); in letsketch_raw_event() 188 get_unaligned_le16(raw_data + 6)); in letsketch_raw_event() 198 input_report_key(input, BTN_0 + i, raw_data[4] == (i + 1)); in letsketch_raw_event() [all …]
|
D | hid-picolcd.h | 57 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);
|
D | hid-picolcd_cir.c | 34 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()
|
D | hid-sensor-hub.c | 327 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-6.1.9/drivers/staging/greybus/ |
D | raw.c | 29 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() 81 memcpy(&raw_data->data[0], data, len); in receive_data() 83 list_add_tail(&raw_data->entry, &raw->list); in receive_data() 228 struct raw_data *raw_data; in gb_raw_disconnect() local 229 struct raw_data *temp; in gb_raw_disconnect() 239 list_for_each_entry_safe(raw_data, temp, &raw->list, entry) { in gb_raw_disconnect() [all …]
|
/linux-6.1.9/drivers/input/joystick/ |
D | grip_mp.c | 166 u8 raw_data; /* raw data from gameport */ in mp_io() local 176 raw_data = gameport_read(gameport); in mp_io() 177 if (raw_data & 1) in mp_io() 181 raw_data = gameport_read(gameport); in mp_io() 182 portvals |= 1 << ((raw_data >> 4) & 3); /* Demux B4, B5 */ in mp_io() 186 raw_data = gameport_read(gameport); in mp_io() 187 portvals = raw_data & 0xf0; in mp_io() 189 if (raw_data & 0x31) in mp_io() 193 if (!poll_until(0x10, 0, 308, gameport, &raw_data)) in mp_io() 200 if (raw_data & 0x20) { /* 3 data bits/read */ in mp_io() [all …]
|
/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/ |
D | btf_endian.c | 19 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()
|
D | core_autosize.c | 62 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()
|
D | get_stack_raw_tp.c | 38 __u64 *raw_data = data; in get_stack_print_output() local 51 ks = ksym_search(raw_data[i]); in get_stack_print_output()
|
/linux-6.1.9/drivers/rtc/ |
D | rtc-hid-sensor-time.c | 62 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() 101 time_buf->tm_mon = (int)hid_time_value(raw_len, raw_data)-1; 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() [all …]
|
/linux-6.1.9/drivers/hwmon/ |
D | sht4x.c | 80 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()
|
D | aht10.c | 135 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-6.1.9/tools/testing/selftests/bpf/progs/ |
D | test_get_stack_rawtp.c | 63 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-6.1.9/drivers/iio/orientation/ |
D | hid-sensor-rotation.c | 169 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()
|
D | hid-sensor-incl-3d.c | 216 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-6.1.9/drivers/platform/chrome/wilco_ec/ |
D | debugfs.c | 26 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-6.1.9/tools/perf/tests/ |
D | sample-parsing.c | 109 if (memcmp(s1->raw_data, s2->raw_data, s1->raw_size)) { in samples_same() 223 const u32 raw_data[] = {0x12345678, 0x0a0b0c0d, 0x11020304, 0x05060708, 0 }; in do_test() local 237 .raw_size = sizeof(raw_data), in do_test() 240 .raw_data = (void *)raw_data, in do_test()
|
/linux-6.1.9/tools/perf/util/ |
D | amd-sample-raw.c | 194 struct perf_ibs_data *data = sample->raw_data; in amd_dump_ibs_op() 225 struct perf_ibs_data *data = sample->raw_data; in amd_dump_ibs_fetch() 242 struct perf_ibs_data *data = sample->raw_data; in is_valid_ibs_fetch_sample() 253 struct perf_ibs_data *data = sample->raw_data; in is_valid_ibs_op_sample()
|
/linux-6.1.9/tools/lib/bpf/ |
D | linker.c | 117 void *raw_data; member 204 free(sec->raw_data); in bpf_linker__free() 277 syms = libbpf_reallocarray(symtab->raw_data, sym_cnt + 1, sizeof(*sym)); in add_new_sym() 284 symtab->raw_data = syms; in add_new_sym() 1074 if (memcmp(dst_sec->raw_data, src_sec->data->d_buf, dst_sec->sec_sz) != 0) in sec_content_is_same() 1117 tmp = realloc(dst->raw_data, dst_final_sz); in extend_sec() 1120 dst->raw_data = tmp; in extend_sec() 1123 memset(dst->raw_data + dst->sec_sz, 0, dst_align_sz - dst->sec_sz); in extend_sec() 1125 memcpy(dst->raw_data + dst_align_sz, src->data->d_buf, src->shdr->sh_size); in extend_sec() 1245 Elf64_Sym *syms = symtab->raw_data; in get_sym_by_idx() [all …]
|
/linux-6.1.9/kernel/trace/ |
D | trace_event_perf.c | 398 char *raw_data; in perf_trace_buf_alloc() local 414 raw_data = this_cpu_ptr(perf_trace_buf[rctx]); in perf_trace_buf_alloc() 417 memset(&raw_data[size - sizeof(u64)], 0, sizeof(u64)); in perf_trace_buf_alloc() 418 return raw_data; in perf_trace_buf_alloc()
|
/linux-6.1.9/drivers/iio/pressure/ |
D | hid-sensor-press.c | 189 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-6.1.9/include/linux/ |
D | hid-sensor-hub.h | 53 u8 *raw_data; member 92 u32 usage_id, size_t raw_len, char *raw_data,
|