Home
last modified time | relevance | path

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

12345678910>>...38

/linux/drivers/video/fbdev/via/
H A 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 …]
/linux/drivers/firmware/arm_scmi/
H A Draw_mode.c240 struct scmi_raw_mode_info *raw; member
249 scmi_raw_queue_select(struct scmi_raw_mode_info *raw, unsigned int idx, in scmi_raw_queue_select() argument
253 return raw->q[idx]; in scmi_raw_queue_select()
255 return xa_load(&raw->chans_q, chan_id); in scmi_raw_queue_select()
336 scmi_xfer_raw_waiter_get(struct scmi_raw_mode_info *raw, struct scmi_xfer *xfer, in scmi_xfer_raw_waiter_get() argument
341 mutex_lock(&raw->free_mtx); in scmi_xfer_raw_waiter_get()
342 if (!list_empty(&raw->free_waiters)) { in scmi_xfer_raw_waiter_get()
343 rw = list_first_entry(&raw->free_waiters, in scmi_xfer_raw_waiter_get()
355 mutex_unlock(&raw->free_mtx); in scmi_xfer_raw_waiter_get()
360 static void scmi_xfer_raw_waiter_put(struct scmi_raw_mode_info *raw, in scmi_xfer_raw_waiter_put() argument
[all …]
/linux/drivers/staging/greybus/
H A Draw.c58 static int receive_data(struct gb_raw *raw, u32 len, u8 *data) in receive_data() argument
61 struct device *dev = &raw->connection->bundle->dev; in receive_data()
69 mutex_lock(&raw->list_lock); in receive_data()
70 if ((raw->list_data + len) > MAX_DATA_SIZE) { in receive_data()
82 raw->list_data += len; in receive_data()
86 list_add_tail(&raw_data->entry, &raw->list); in receive_data()
88 mutex_unlock(&raw->list_lock); in receive_data()
96 struct gb_raw *raw = greybus_get_drvdata(connection->bundle); in gb_raw_request_handler() local
123 return receive_data(raw, len, receive->data); in gb_raw_request_handler()
126 static int gb_raw_send(struct gb_raw *raw, u32 len, const char __user *data) in gb_raw_send() argument
[all …]
/linux/drivers/media/rc/
H A 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 …]
H A 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 …]
/linux/drivers/media/rc/img-ir/
H A 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 …]
H A 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 …]
H A 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()
H A 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()
/linux/drivers/gpu/drm/amd/display/dc/
H A Ddc_dp_types.h170 uint8_t raw; member
203 uint8_t raw; member
211 uint8_t raw; member
221 uint8_t raw; member
231 uint8_t raw; member
239 uint8_t raw; member
249 uint8_t raw; member
263 uint8_t raw; member
277 uint8_t raw; member
286 uint8_t raw; member
[all …]
/linux/drivers/acpi/
H A 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()
/linux/fs/jffs2/
H A Dgc.c27 struct jffs2_raw_node_ref *raw);
41 struct jffs2_raw_node_ref *raw, struct jffs2_inode_info *f);
129 struct jffs2_raw_node_ref *raw; in jffs2_garbage_collect_pass() local
290 raw = jeb->gc_node; in jffs2_garbage_collect_pass()
293 while(ref_obsolete(raw)) { in jffs2_garbage_collect_pass()
295 ref_offset(raw)); in jffs2_garbage_collect_pass()
296 raw = ref_next(raw); in jffs2_garbage_collect_pass()
297 if (unlikely(!raw)) { in jffs2_garbage_collect_pass()
302 jeb->gc_node = raw; in jffs2_garbage_collect_pass()
308 jeb->gc_node = raw; in jffs2_garbage_collect_pass()
[all …]
H A Dwbuf.c184 struct jffs2_raw_node_ref *raw, in jffs2_incore_replace_raw() argument
198 if (f->metadata && f->metadata->raw == raw) { in jffs2_incore_replace_raw()
200 return &f->metadata->raw; in jffs2_incore_replace_raw()
205 while (!frag->node || frag->node->raw != raw) { in jffs2_incore_replace_raw()
210 return &frag->node->raw; in jffs2_incore_replace_raw()
214 if (fd->raw == raw) { in jffs2_incore_replace_raw()
216 return &fd->raw; in jffs2_incore_replace_raw()
278 struct jffs2_raw_node_ref *raw, *next, *first_raw = NULL; in jffs2_wbuf_recover() local
298 for (next = raw = jeb->first_node; next; raw = next) { in jffs2_wbuf_recover()
299 next = ref_next(raw); in jffs2_wbuf_recover()
[all …]
/linux/drivers/video/
H A Dsticore.c163 .font_start_addr = (void *)STI_PTR(font->raw), in sti_putc()
567 cooked_font->raw = nf; in sti_select_fbfont()
586 unsigned char *p = (unsigned char *)font->raw; in sti_dump_font()
591 font->raw->bytes_per_char); in sti_dump_font()
593 for (n = 0; n < 256 * font->raw->bytes_per_char; n += 16, p += 16) { in sti_dump_font()
609 if ((font->raw->width == width) && in sti_search_font()
610 (font->raw->height == height)) in sti_search_font()
645 struct sti_rom *rom = sti->rom->raw; in sti_dump_rom()
665 struct sti_rom_font *f = font_start->raw; in sti_dump_rom()
690 cooked_font->raw = raw_font; in sti_cook_fonts()
[all …]
/linux/drivers/input/misc/
H A 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 …]
/linux/drivers/block/
H A Damiflop.c780 static unsigned long scan_sync(unsigned long raw, unsigned long end) in scan_sync() argument
782 ushort *ptr = (ushort *)raw, *endp = (ushort *)end; in scan_sync()
806 static unsigned long decode (unsigned long *data, unsigned long *raw, in decode() argument
813 odd = raw; in decode()
817 raw += len * 2; in decode()
823 return (ulong)raw; in decode()
838 unsigned long raw; in amiga_read() local
845 raw = (long) raw_buf; in amiga_read()
846 end = raw + unit[drive].type->read_size; in amiga_read()
849 if (!(raw = scan_sync(raw, end))) { in amiga_read()
[all …]
/linux/arch/mips/vdso/
H A DMakefile77 $(obj)/%.so.raw: OBJCOPYFLAGS := -S
78 $(obj)/%.so.raw: $(obj)/%.so.dbg.raw FORCE
85 $(foreach file,$(filter %.raw,$^),cp $(file) $(file:%.raw=%) &&) \
86 $(obj)/genvdso $(<:%.raw=%) $(<:%.dbg.raw=%) $@ $(VDSO_NAME)
97 targets += vdso.so.dbg.raw vdso.so.raw
108 $(obj)/vdso.so.dbg.raw: $(obj)/vdso.lds $(obj-vdso) FORCE
111 $(obj)/vdso-image.c: $(obj)/vdso.so.dbg.raw $(obj)/vdso.so.raw \
124 targets += vdso-o32.so.dbg.raw vdso-o32.so.raw
146 $(obj)/vdso-o32.so.dbg.raw: $(obj)/vdso-o32.lds $(obj-vdso-o32) FORCE
150 $(obj)/vdso-o32-image.c: $(obj)/vdso-o32.so.dbg.raw $(obj)/vdso-o32.so.raw \
[all …]
/linux/drivers/power/supply/
H A 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 …]
H A Dds2760_battery.c94 char raw[DS2760_DATA_SIZE]; /* raw DS2760 data */ member
273 ret = w1_ds2760_read(di->dev, di->raw + start, start, count); in ds2760_battery_read_status()
284 di->voltage_raw = (di->raw[DS2760_VOLTAGE_MSB] << 3) | in ds2760_battery_read_status()
285 (di->raw[DS2760_VOLTAGE_LSB] >> 5); in ds2760_battery_read_status()
291 (((signed char)di->raw[DS2760_CURRENT_MSB]) << 5) | in ds2760_battery_read_status()
292 (di->raw[DS2760_CURRENT_LSB] >> 3); in ds2760_battery_read_status()
297 (((signed char)di->raw[DS2760_CURRENT_ACCUM_MSB]) << 8) | in ds2760_battery_read_status()
298 di->raw[DS2760_CURRENT_ACCUM_LSB]; in ds2760_battery_read_status()
304 di->temp_raw = (((signed char)di->raw[DS2760_TEMP_MSB]) << 3) | in ds2760_battery_read_status()
305 (di->raw[DS2760_TEMP_LSB] >> 5); in ds2760_battery_read_status()
[all …]
H A 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()
/linux/drivers/net/dsa/qca/
H A Dar9331.c613 struct ar9331_sw_stats_raw raw; in ar9331_read_stats() local
618 &raw, sizeof(raw) / sizeof(u32)); in ar9331_read_stats()
627 stats->rx_bytes += raw.rxgoodbyte; in ar9331_read_stats()
628 stats->tx_bytes += raw.txbyte; in ar9331_read_stats()
630 stats->rx_packets += raw.rx64byte + raw.rx128byte + raw.rx256byte + in ar9331_read_stats()
631 raw.rx512byte + raw.rx1024byte + raw.rx1518byte + raw.rxmaxbyte; in ar9331_read_stats()
632 stats->tx_packets += raw.tx64byte + raw.tx128byte + raw.tx256byte + in ar9331_read_stats()
633 raw.tx512byte + raw.tx1024byte + raw.tx1518byte + raw.txmaxbyte; in ar9331_read_stats()
635 stats->rx_length_errors += raw.rxrunt + raw.rxfragment + raw.rxtoolong; in ar9331_read_stats()
636 stats->rx_crc_errors += raw.rxfcserr; in ar9331_read_stats()
[all …]
/linux/kernel/bpf/
H A Dinode.c33 static void *bpf_any_get(void *raw, enum bpf_type type) in bpf_any_get() argument
37 bpf_prog_inc(raw); in bpf_any_get()
40 bpf_map_inc_with_uref(raw); in bpf_any_get()
43 bpf_link_inc(raw); in bpf_any_get()
50 return raw; in bpf_any_get()
53 static void bpf_any_put(void *raw, enum bpf_type type) in bpf_any_put() argument
57 bpf_prog_put(raw); in bpf_any_put()
60 bpf_map_put_with_uref(raw); in bpf_any_put()
63 bpf_link_put(raw); in bpf_any_put()
73 void *raw; in bpf_fd_probe_obj() local
[all …]
/linux/arch/x86/lib/
H A Dkaslr.c56 unsigned long raw, random = get_boot_seed(); in kaslr_get_random_long() local
67 if (rdrand_long(&raw)) { in kaslr_get_random_long()
68 random ^= raw; in kaslr_get_random_long()
76 raw = rdtsc(); in kaslr_get_random_long()
78 random ^= raw; in kaslr_get_random_long()
90 : "=a" (random), "=d" (raw) in kaslr_get_random_long()
92 random += raw; in kaslr_get_random_long()
/linux/tools/net/ynl/lib/
H A Dynl.py129 def __init__(self, raw, offset): argument
130 self._len, self._type = struct.unpack("HH", raw[offset : offset + 4])
135 self.raw = raw[offset + 4 : offset + self.payload_len]
147 return format.unpack(self.raw)[0]
150 if len(self.raw) != 4 and len(self.raw) != 8:
152 real_type = attr_type[0] + str(len(self.raw) * 8)
154 return format.unpack(self.raw)[0]
157 return self.raw.decode('ascii')[:-1]
160 return self.raw
164 return [ x[0] for x in format.iter_unpack(self.raw) ]
[all …]
/linux/drivers/acpi/pmic/
H A Dintel_pmic_xpower.c298 int raw) in intel_xpower_lpat_raw_to_temp() argument
310 if (first.raw < last.raw) in intel_xpower_lpat_raw_to_temp()
311 raw = clamp(raw, first.raw, last.raw); in intel_xpower_lpat_raw_to_temp()
313 raw = clamp(raw, last.raw, first.raw); in intel_xpower_lpat_raw_to_temp()
315 return acpi_lpat_raw_to_temp(lpat_table, raw); in intel_xpower_lpat_raw_to_temp()

12345678910>>...38