/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-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()
|
/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 …]
|
/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 …]
|
/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 …]
|
/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()
|
/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()
|
/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()
|
/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()
|
/drivers/tty/ipwireless/ |
D | hardware.c | 426 __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()
|
/drivers/iio/position/ |
D | hid-sensor-custom-intel-hinge.c | 213 char *raw_data, void *priv) in hinge_capture_sample() argument 224 st->scan.hinge_val[offset] = *(u32 *)raw_data; in hinge_capture_sample() 228 *(int64_t *)raw_data); in hinge_capture_sample()
|
/drivers/iio/gyro/ |
D | hid-sensor-gyro-3d.c | 213 size_t raw_len, char *raw_data, in gyro_3d_capture_sample() argument 227 *(u32 *)raw_data; in gyro_3d_capture_sample() 233 *(s64 *)raw_data); in gyro_3d_capture_sample()
|
/drivers/iio/light/ |
D | hid-sensor-als.c | 214 size_t raw_len, char *raw_data, in als_capture_sample() argument 220 u32 sample_data = *(u32 *)raw_data; in als_capture_sample() 230 *(s64 *)raw_data); in als_capture_sample()
|
D | hid-sensor-prox.c | 185 size_t raw_len, char *raw_data, in prox_capture_sample() argument 194 prox_state->human_presence = *(u32 *)raw_data; in prox_capture_sample()
|
/drivers/iio/chemical/ |
D | ccs811.c | 71 __be16 raw_data; member 239 *val = be16_to_cpu(data->buffer.raw_data) & in ccs811_read_raw() 244 *val = be16_to_cpu(data->buffer.raw_data) >> 10; in ccs811_read_raw()
|
/drivers/iio/accel/ |
D | hid-sensor-accel-3d.c | 261 size_t raw_len, char *raw_data, in accel_3d_capture_sample() argument 275 *(u32 *)raw_data; in accel_3d_capture_sample() 282 *(int64_t *)raw_data); in accel_3d_capture_sample()
|
/drivers/iio/temperature/ |
D | hid-sensor-temperature.c | 143 char *raw_data, void *pdev) in temperature_capture_sample() argument 150 temp_st->scan.temperature_data = *(s32 *)raw_data; in temperature_capture_sample()
|
/drivers/iio/humidity/ |
D | hid-sensor-humidity.c | 145 char *raw_data, void *pdev) in humidity_capture_sample() argument 152 humid_st->scan.humidity_data = *(s32 *)raw_data; in humidity_capture_sample()
|
/drivers/iio/magnetometer/ |
D | hid-sensor-magn-3d.c | 306 size_t raw_len, char *raw_data, in magn_3d_capture_sample() argument 332 *(s64 *)raw_data); in magn_3d_capture_sample() 341 *iio_val = *((u32 *)raw_data); in magn_3d_capture_sample()
|