Home
last modified time | relevance | path

Searched refs:raw (Results 1 – 25 of 444) sorted by relevance

12345678910>>...18

/drivers/s390/char/
Dcon3215.c143 static void raw3215_mk_read_req(struct raw3215_info *raw) in raw3215_mk_read_req() argument
149 req = raw->queued_read; in raw3215_mk_read_req()
154 req->info = raw; in raw3215_mk_read_req()
155 raw->queued_read = req; in raw3215_mk_read_req()
162 ccw->cda = (__u32) __pa(raw->inbuf); in raw3215_mk_read_req()
171 static void raw3215_mk_write_req(struct raw3215_info *raw) in raw3215_mk_write_req() argument
177 if (raw->count <= raw->written) in raw3215_mk_write_req()
180 req = raw->queued_write; in raw3215_mk_write_req()
185 req->info = raw; in raw3215_mk_write_req()
186 raw->queued_write = req; in raw3215_mk_write_req()
[all …]
/drivers/video/fbdev/via/
Dvia_modesetting.c20 struct via_display_timing raw; in via_set_primary_timing() local
22 raw.hor_total = timing->hor_total / 8 - 5; in via_set_primary_timing()
23 raw.hor_addr = timing->hor_addr / 8 - 1; in via_set_primary_timing()
24 raw.hor_blank_start = timing->hor_blank_start / 8 - 1; in via_set_primary_timing()
25 raw.hor_blank_end = timing->hor_blank_end / 8 - 1; in via_set_primary_timing()
26 raw.hor_sync_start = timing->hor_sync_start / 8; in via_set_primary_timing()
27 raw.hor_sync_end = timing->hor_sync_end / 8; in via_set_primary_timing()
28 raw.ver_total = timing->ver_total - 2; in via_set_primary_timing()
29 raw.ver_addr = timing->ver_addr - 1; in via_set_primary_timing()
30 raw.ver_blank_start = timing->ver_blank_start - 1; in via_set_primary_timing()
[all …]
/drivers/staging/greybus/
Draw.c55 static int receive_data(struct gb_raw *raw, u32 len, u8 *data) in receive_data() argument
58 struct device *dev = &raw->connection->bundle->dev; in receive_data()
66 mutex_lock(&raw->list_lock); in receive_data()
67 if ((raw->list_data + len) > MAX_DATA_SIZE) { in receive_data()
79 raw->list_data += len; in receive_data()
83 list_add_tail(&raw_data->entry, &raw->list); in receive_data()
85 mutex_unlock(&raw->list_lock); in receive_data()
93 struct gb_raw *raw = greybus_get_drvdata(connection->bundle); in gb_raw_request_handler() local
120 return receive_data(raw, len, receive->data); in gb_raw_request_handler()
123 static int gb_raw_send(struct gb_raw *raw, u32 len, const char __user *data) in gb_raw_send() argument
[all …]
/drivers/media/rc/
Drc-ir-raw.c25 struct ir_raw_event_ctrl *raw = data; in ir_raw_event_thread() local
26 struct rc_dev *dev = raw->dev; in ir_raw_event_thread()
30 while (kfifo_out(&raw->kfifo, &ev, 1)) { in ir_raw_event_thread()
34 if (is_timing_event(raw->prev_ev) && in ir_raw_event_thread()
35 !is_transition(&ev, &raw->prev_ev)) in ir_raw_event_thread()
44 raw->prev_ev = ev; in ir_raw_event_thread()
53 } else if (!kfifo_is_empty(&raw->kfifo)) in ir_raw_event_thread()
74 if (!dev->raw) in ir_raw_event_store()
80 if (!kfifo_put(&dev->raw->kfifo, *ev)) { in ir_raw_event_store()
105 if (!dev->raw) in ir_raw_event_store_edge()
[all …]
Dbpf-lirc.c141 struct ir_raw_event_ctrl *raw; in lirc_bpf_attach() local
151 raw = rcdev->raw; in lirc_bpf_attach()
152 if (!raw) { in lirc_bpf_attach()
157 old_array = lirc_rcu_dereference(raw->progs); in lirc_bpf_attach()
167 rcu_assign_pointer(raw->progs, new_array); in lirc_bpf_attach()
179 struct ir_raw_event_ctrl *raw; in lirc_bpf_detach() local
189 raw = rcdev->raw; in lirc_bpf_detach()
190 if (!raw) { in lirc_bpf_detach()
195 old_array = lirc_rcu_dereference(raw->progs); in lirc_bpf_detach()
205 rcu_assign_pointer(raw->progs, new_array); in lirc_bpf_detach()
[all …]
Dir-mce_kbd-decoder.c112 struct ir_raw_event_ctrl *raw = from_timer(raw, t, mce_kbd.rx_timeout); in mce_kbd_rx_timeout() local
117 dev_dbg(&raw->dev->dev, "timer callback clearing all keys\n"); in mce_kbd_rx_timeout()
119 spin_lock_irqsave(&raw->mce_kbd.keylock, flags); in mce_kbd_rx_timeout()
121 if (time_is_before_eq_jiffies(raw->mce_kbd.rx_timeout.expires)) { in mce_kbd_rx_timeout()
124 input_report_key(raw->dev->input_dev, maskcode, 0); in mce_kbd_rx_timeout()
128 input_report_key(raw->dev->input_dev, kbd_keycodes[i], in mce_kbd_rx_timeout()
131 input_sync(raw->dev->input_dev); in mce_kbd_rx_timeout()
133 spin_unlock_irqrestore(&raw->mce_kbd.keylock, flags); in mce_kbd_rx_timeout()
218 struct mce_kbd_dec *data = &dev->raw->mce_kbd; in ir_mce_kbd_decode()
363 struct mce_kbd_dec *mce_kbd = &dev->raw->mce_kbd; in ir_mce_kbd_register()
[all …]
/drivers/media/rc/img-ir/
Dimg-ir-raw.c20 struct img_ir_priv_raw *raw = &priv->raw; in img_ir_refresh_raw() local
21 struct rc_dev *rc_dev = priv->raw.rdev; in img_ir_refresh_raw()
33 if (multiple && ir_status == raw->last_status) in img_ir_refresh_raw()
35 raw->last_status = ir_status; in img_ir_refresh_raw()
48 struct img_ir_priv_raw *raw = &priv->raw; in img_ir_isr_raw() local
51 if (!raw->rdev) in img_ir_isr_raw()
57 mod_timer(&raw->timer, jiffies + msecs_to_jiffies(ECHO_TIMEOUT_MS)); in img_ir_isr_raw()
68 struct img_ir_priv *priv = from_timer(priv, t, raw.timer); in img_ir_echo_timer()
73 if (priv->raw.rdev) in img_ir_echo_timer()
87 if (!priv->raw.rdev) in img_ir_setup_raw()
[all …]
Dimg-ir-sony.c11 static int img_ir_sony_scancode(int len, u64 raw, u64 enabled_protocols, in img_ir_sony_scancode() argument
20 func = raw & 0x7f; /* first 7 bits */ in img_ir_sony_scancode()
21 raw >>= 7; in img_ir_sony_scancode()
22 dev = raw & 0x1f; /* next 5 bits */ in img_ir_sony_scancode()
29 func = raw & 0x7f; /* first 7 bits */ in img_ir_sony_scancode()
30 raw >>= 7; in img_ir_sony_scancode()
31 dev = raw & 0xff; /* next 8 bits */ in img_ir_sony_scancode()
38 func = raw & 0x7f; /* first 7 bits */ in img_ir_sony_scancode()
39 raw >>= 7; in img_ir_sony_scancode()
40 dev = raw & 0x1f; /* next 5 bits */ in img_ir_sony_scancode()
[all …]
Dimg-ir-rc5.c11 static int img_ir_rc5_scancode(int len, u64 raw, u64 enabled_protocols, in img_ir_rc5_scancode() argument
17 raw >>= 2; in img_ir_rc5_scancode()
19 start = (raw >> 13) & 0x01; in img_ir_rc5_scancode()
20 tgl = (raw >> 11) & 0x01; in img_ir_rc5_scancode()
21 addr = (raw >> 6) & 0x1f; in img_ir_rc5_scancode()
22 cmd = raw & 0x3f; in img_ir_rc5_scancode()
27 cmd += ((raw >> 12) & 0x01) ? 0 : 0x40; in img_ir_rc5_scancode()
Dimg-ir-rc6.c11 static int img_ir_rc6_scancode(int len, u64 raw, u64 enabled_protocols, in img_ir_rc6_scancode() argument
33 raw >>= 27; in img_ir_rc6_scancode()
35 trl1 = (raw >> 17) & 0x01; in img_ir_rc6_scancode()
36 trl2 = (raw >> 16) & 0x01; in img_ir_rc6_scancode()
38 mode = (raw >> 18) & 0x07; in img_ir_rc6_scancode()
39 addr = (raw >> 8) & 0xff; in img_ir_rc6_scancode()
40 cmd = raw & 0xff; in img_ir_rc6_scancode()
/drivers/gpu/drm/amd/display/dc/
Ddc_dp_types.h162 uint8_t raw; member
195 uint8_t raw; member
203 uint8_t raw; member
213 uint8_t raw; member
223 uint8_t raw; member
231 uint8_t raw; member
241 uint8_t raw; member
255 uint8_t raw; member
269 uint8_t raw; member
278 uint8_t raw; member
[all …]
/drivers/acpi/
Dacpi_lpat.c24 int raw) in acpi_lpat_raw_to_temp() argument
30 if ((raw >= lpat[i].raw && raw <= lpat[i+1].raw) || in acpi_lpat_raw_to_temp()
31 (raw <= lpat[i].raw && raw >= lpat[i+1].raw)) in acpi_lpat_raw_to_temp()
39 delta_raw = lpat[i+1].raw - lpat[i].raw; in acpi_lpat_raw_to_temp()
40 temp = lpat[i].temp + (raw - lpat[i].raw) * delta_temp / delta_raw; in acpi_lpat_raw_to_temp()
60 int i, delta_temp, delta_raw, raw; in acpi_lpat_temp_to_raw() local
72 delta_raw = lpat[i+1].raw - lpat[i].raw; in acpi_lpat_temp_to_raw()
73 raw = lpat[i].raw + (temp - lpat[i].temp) * delta_raw / delta_temp; in acpi_lpat_temp_to_raw()
75 return raw; in acpi_lpat_temp_to_raw()
/drivers/input/misc/
Dhp_sdc_rtc.c184 int64_t raw; in hp_sdc_rtc_read_rt() local
188 raw = hp_sdc_rtc_read_i8042timer(HP_SDC_CMD_LOAD_RT, 5); in hp_sdc_rtc_read_rt()
189 if (raw < 0) return -1; in hp_sdc_rtc_read_rt()
191 tenms = (uint32_t)raw & 0xffffff; in hp_sdc_rtc_read_rt()
192 days = (unsigned int)(raw >> 24) & 0xffff; in hp_sdc_rtc_read_rt()
203 int64_t raw; in hp_sdc_rtc_read_fhs() local
206 raw = hp_sdc_rtc_read_i8042timer(HP_SDC_CMD_LOAD_FHS, 2); in hp_sdc_rtc_read_fhs()
207 if (raw < 0) return -1; in hp_sdc_rtc_read_fhs()
209 tenms = (unsigned int)raw & 0xffff; in hp_sdc_rtc_read_fhs()
220 int64_t raw; in hp_sdc_rtc_read_mt() local
[all …]
/drivers/video/console/
Dsticore.c144 .font_start_addr = STI_PTR(font->raw), in sti_putc()
537 cooked_font->raw = nf; in sti_select_fbfont()
556 unsigned char *p = (unsigned char *)font->raw; in sti_dump_font()
561 font->raw->bytes_per_char); in sti_dump_font()
563 for (n = 0; n < 256 * font->raw->bytes_per_char; n += 16, p += 16) { in sti_dump_font()
579 if ((font->raw->width == width) && in sti_search_font()
580 (font->raw->height == height)) in sti_search_font()
615 struct sti_rom *rom = sti->rom->raw; in sti_dump_rom()
635 struct sti_rom_font *f = font_start->raw; in sti_dump_rom()
660 cooked_font->raw = raw_font; in sti_cook_fonts()
[all …]
/drivers/block/
Damiflop.c779 static unsigned long scan_sync(unsigned long raw, unsigned long end) in scan_sync() argument
781 ushort *ptr = (ushort *)raw, *endp = (ushort *)end; in scan_sync()
805 static unsigned long decode (unsigned long *data, unsigned long *raw, in decode() argument
812 odd = raw; in decode()
816 raw += len * 2; in decode()
822 return (ulong)raw; in decode()
837 unsigned long raw; in amiga_read() local
844 raw = (long) raw_buf; in amiga_read()
845 end = raw + unit[drive].type->read_size; in amiga_read()
848 if (!(raw = scan_sync(raw, end))) { in amiga_read()
[all …]
/drivers/power/supply/
Dds2782_battery.c100 s16 raw; in ds278x_get_temp() local
109 err = ds278x_read_reg16(info, DS278x_REG_TEMP_MSB, &raw); in ds278x_get_temp()
112 *temp = ((raw / 32) * 125) / 100; in ds278x_get_temp()
121 s16 raw; in ds2782_get_current() local
138 err = ds278x_read_reg16(info, DS278x_REG_CURRENT_MSB, &raw); in ds2782_get_current()
141 *current_uA = raw * (DS2782_CURRENT_UNITS / sense_res); in ds2782_get_current()
147 s16 raw; in ds2782_get_voltage() local
154 err = ds278x_read_reg16(info, DS278x_REG_VOLT_MSB, &raw); in ds2782_get_voltage()
157 *voltage_uV = (raw / 32) * 4800; in ds2782_get_voltage()
164 u8 raw; in ds2782_get_capacity() local
[all …]
Dds2760_battery.c94 char raw[DS2760_DATA_SIZE]; /* raw DS2760 data */ member
281 ret = w1_ds2760_read(di->dev, di->raw + start, start, count); in ds2760_battery_read_status()
292 di->voltage_raw = (di->raw[DS2760_VOLTAGE_MSB] << 3) | in ds2760_battery_read_status()
293 (di->raw[DS2760_VOLTAGE_LSB] >> 5); in ds2760_battery_read_status()
299 (((signed char)di->raw[DS2760_CURRENT_MSB]) << 5) | in ds2760_battery_read_status()
300 (di->raw[DS2760_CURRENT_LSB] >> 3); in ds2760_battery_read_status()
305 (((signed char)di->raw[DS2760_CURRENT_ACCUM_MSB]) << 8) | in ds2760_battery_read_status()
306 di->raw[DS2760_CURRENT_ACCUM_LSB]; in ds2760_battery_read_status()
312 di->temp_raw = (((signed char)di->raw[DS2760_TEMP_MSB]) << 3) | in ds2760_battery_read_status()
313 (di->raw[DS2760_TEMP_LSB] >> 5); in ds2760_battery_read_status()
[all …]
Drx51_battery.c97 int raw = rx51_battery_read_adc(di->channel_temp); in rx51_battery_read_temperature() local
99 if (raw < 0) in rx51_battery_read_temperature()
100 dev_err(di->dev, "Could not read ADC: %d\n", raw); in rx51_battery_read_temperature()
103 if (raw <= 0) in rx51_battery_read_temperature()
107 if (raw >= (1 << 10)) in rx51_battery_read_temperature()
111 if (raw < ARRAY_SIZE(rx51_temp_table1)) in rx51_battery_read_temperature()
112 return rx51_temp_table1[raw] * 10; in rx51_battery_read_temperature()
117 if (rx51_temp_table2[mid] <= raw) in rx51_battery_read_temperature()
119 else if (rx51_temp_table2[mid] > raw) in rx51_battery_read_temperature()
121 if (rx51_temp_table2[mid] == raw) in rx51_battery_read_temperature()
/drivers/net/dsa/qca/
Dar9331.c610 struct ar9331_sw_stats_raw raw; in ar9331_read_stats() local
615 &raw, sizeof(raw) / sizeof(u32)); in ar9331_read_stats()
624 stats->rx_bytes += raw.rxgoodbyte; in ar9331_read_stats()
625 stats->tx_bytes += raw.txbyte; in ar9331_read_stats()
627 stats->rx_packets += raw.rx64byte + raw.rx128byte + raw.rx256byte + in ar9331_read_stats()
628 raw.rx512byte + raw.rx1024byte + raw.rx1518byte + raw.rxmaxbyte; in ar9331_read_stats()
629 stats->tx_packets += raw.tx64byte + raw.tx128byte + raw.tx256byte + in ar9331_read_stats()
630 raw.tx512byte + raw.tx1024byte + raw.tx1518byte + raw.txmaxbyte; in ar9331_read_stats()
632 stats->rx_length_errors += raw.rxrunt + raw.rxfragment + raw.rxtoolong; in ar9331_read_stats()
633 stats->rx_crc_errors += raw.rxfcserr; in ar9331_read_stats()
[all …]
/drivers/acpi/pmic/
Dintel_pmic_xpower.c297 int raw) in intel_xpower_lpat_raw_to_temp() argument
309 if (first.raw < last.raw) in intel_xpower_lpat_raw_to_temp()
310 raw = clamp(raw, first.raw, last.raw); in intel_xpower_lpat_raw_to_temp()
312 raw = clamp(raw, last.raw, first.raw); in intel_xpower_lpat_raw_to_temp()
314 return acpi_lpat_raw_to_temp(lpat_table, raw); in intel_xpower_lpat_raw_to_temp()
/drivers/iio/dac/
Dds4424.c60 uint8_t raw[DS4424_MAX_DAC_CHANNELS]; member
100 data->raw[chan->channel] = val; in ds4424_set_value()
111 union ds4424_raw_data raw; in ds4424_read_raw() local
122 raw.bits = *val; in ds4424_read_raw()
123 *val = raw.dx; in ds4424_read_raw()
124 if (raw.source_bit == DS4424_SINK_I) in ds4424_read_raw()
137 union ds4424_raw_data raw; in ds4424_write_raw() local
148 raw.source_bit = DS4424_SOURCE_I; in ds4424_write_raw()
149 raw.dx = val; in ds4424_write_raw()
151 raw.source_bit = DS4424_SINK_I; in ds4424_write_raw()
[all …]
/drivers/gpu/drm/amd/display/dc/inc/hw/
Dcursor_reg_cache.h20 uint32_t raw; member
29 uint32_t raw; member
36 uint32_t raw; member
43 uint32_t raw; member
56 uint32_t raw; member
64 uint32_t raw; member
84 uint32_t raw; member
/drivers/macintosh/
Dwindfarm_ad7417_sensor.c40 s16 raw; in wf_ad7417_temp_get() local
56 raw = be16_to_cpup((__le16 *)buf); in wf_ad7417_temp_get()
59 *value = ((s32)raw) << 8; in wf_ad7417_temp_get()
80 int chan, s32 raw, s32 *value) in wf_ad7417_adc_convert() argument
84 *value = (raw * (s32)pv->mpu->mdiode + in wf_ad7417_adc_convert()
88 *value = raw * ADC_12V_CURRENT_SCALE; in wf_ad7417_adc_convert()
91 *value = raw * ADC_CPU_VOLTAGE_SCALE; in wf_ad7417_adc_convert()
94 *value = raw * ADC_CPU_CURRENT_SCALE; in wf_ad7417_adc_convert()
105 u16 raw; in wf_ad7417_adc_get() local
132 raw = be16_to_cpup((__le16 *)buf) >> 6; in wf_ad7417_adc_get()
[all …]
/drivers/gpu/drm/msm/
Dmsm_gpu_devfreq.c93 const struct devfreq_dev_status *raw) in update_average_dev_status() argument
112 if (div_u64(raw->total_time, USEC_PER_MSEC) >= polling_ms || in update_average_dev_status()
114 *avg = *raw; in update_average_dev_status()
126 if (div_u64(avg->total_time + raw->total_time, USEC_PER_MSEC) >= in update_average_dev_status()
129 raw->total_time; in update_average_dev_status()
138 avg_freq += mul_u32_u32(raw->current_frequency, raw->total_time); in update_average_dev_status()
139 do_div(avg_freq, avg->total_time + raw->total_time); in update_average_dev_status()
142 avg->busy_time += raw->busy_time; in update_average_dev_status()
143 avg->total_time += raw->total_time; in update_average_dev_status()
150 struct devfreq_dev_status raw; in msm_devfreq_get_dev_status() local
[all …]
/drivers/gpu/drm/display/
Ddrm_dp_mst_topology.c333 struct drm_dp_sideband_msg_tx *raw) in drm_dp_encode_sideband_req() argument
337 u8 *buf = raw->msg; in drm_dp_encode_sideband_req()
449 raw->cur_len = idx; in drm_dp_encode_sideband_req()
455 drm_dp_decode_sideband_req(const struct drm_dp_sideband_msg_tx *raw, in drm_dp_decode_sideband_req() argument
458 const u8 *buf = raw->msg; in drm_dp_decode_sideband_req()
732 struct drm_dp_sideband_msg_tx *raw) in drm_dp_encode_sideband_reply() argument
735 u8 *buf = raw->msg; in drm_dp_encode_sideband_reply()
739 raw->cur_len = idx; in drm_dp_encode_sideband_reply()
797 struct drm_dp_sideband_msg_rx *raw, in drm_dp_sideband_parse_link_address() argument
803 memcpy(repmsg->u.link_addr.guid, &raw->msg[idx], 16); in drm_dp_sideband_parse_link_address()
[all …]

12345678910>>...18