Home
last modified time | relevance | path

Searched refs:rsize (Results 1 – 25 of 56) sorted by relevance

123

/drivers/hid/
Dhid-uclogic.c622 unsigned int rsize; member
629 unsigned int *rsize) in uclogic_report_fixup() argument
637 *rsize = drvdata->rsize; in uclogic_report_fixup()
643 if (*rsize == PF1209_RDESC_ORIG_SIZE) { in uclogic_report_fixup()
645 *rsize = sizeof(pf1209_rdesc_fixed); in uclogic_report_fixup()
649 if (*rsize == WPXXXXU_RDESC_ORIG_SIZE) { in uclogic_report_fixup()
651 *rsize = sizeof(wp4030u_rdesc_fixed); in uclogic_report_fixup()
655 if (*rsize == WPXXXXU_RDESC_ORIG_SIZE) { in uclogic_report_fixup()
657 *rsize = sizeof(wp5540u_rdesc_fixed); in uclogic_report_fixup()
661 if (*rsize == WPXXXXU_RDESC_ORIG_SIZE) { in uclogic_report_fixup()
[all …]
Dhid-waltop.c606 unsigned int *rsize) in waltop_report_fixup() argument
610 if (*rsize == SLIM_TABLET_5_8_INCH_RDESC_ORIG_SIZE) { in waltop_report_fixup()
612 *rsize = sizeof(slim_tablet_5_8_inch_rdesc_fixed); in waltop_report_fixup()
616 if (*rsize == SLIM_TABLET_12_1_INCH_RDESC_ORIG_SIZE) { in waltop_report_fixup()
618 *rsize = sizeof(slim_tablet_12_1_inch_rdesc_fixed); in waltop_report_fixup()
622 if (*rsize == Q_PAD_RDESC_ORIG_SIZE) { in waltop_report_fixup()
624 *rsize = sizeof(q_pad_rdesc_fixed); in waltop_report_fixup()
628 if (*rsize == PID_0038_RDESC_ORIG_SIZE) { in waltop_report_fixup()
630 *rsize = sizeof(pid_0038_rdesc_fixed); in waltop_report_fixup()
634 if (*rsize == MEDIA_TABLET_10_6_INCH_RDESC_ORIG_SIZE) { in waltop_report_fixup()
[all …]
Dhid-kye.c487 unsigned int *rsize, int offset, const char *device_name) { in kye_consumer_control_fixup() argument
493 if (*rsize >= offset + 31 && in kye_consumer_control_fixup()
507 unsigned int *rsize) in kye_report_fixup() argument
518 if (*rsize >= 75 && in kye_report_fixup()
535 if (*rsize == EASYPEN_I405X_RDESC_ORIG_SIZE) { in kye_report_fixup()
537 *rsize = sizeof(easypen_i405x_rdesc_fixed); in kye_report_fixup()
541 if (*rsize == MOUSEPEN_I608X_RDESC_ORIG_SIZE) { in kye_report_fixup()
543 *rsize = sizeof(mousepen_i608x_rdesc_fixed); in kye_report_fixup()
547 if (*rsize == MOUSEPEN_I608X_V2_RDESC_ORIG_SIZE) { in kye_report_fixup()
549 *rsize = sizeof(mousepen_i608x_v2_rdesc_fixed); in kye_report_fixup()
[all …]
Dhid-samsung.c57 unsigned int rsize) in samsung_irda_dev_trace() argument
60 rsize); in samsung_irda_dev_trace()
64 unsigned int *rsize) in samsung_irda_report_fixup() argument
66 if (*rsize == 184 && rdesc[175] == 0x25 && rdesc[176] == 0x40 && in samsung_irda_report_fixup()
76 if (*rsize == 203 && rdesc[192] == 0x15 && rdesc[193] == 0x0 && in samsung_irda_report_fixup()
82 if (*rsize == 135 && rdesc[124] == 0x15 && rdesc[125] == 0x0 && in samsung_irda_report_fixup()
88 if (*rsize == 171 && rdesc[160] == 0x15 && rdesc[161] == 0x0 && in samsung_irda_report_fixup()
134 unsigned int *rsize) in samsung_report_fixup() argument
137 rdesc = samsung_irda_report_fixup(hdev, rdesc, rsize); in samsung_report_fixup()
167 if (hdev->rsize == 184) { in samsung_probe()
Dhid-lg.c390 unsigned int *rsize) in lg_report_fixup() argument
394 if ((drv_data->quirks & LG_RDESC) && *rsize >= 91 && rdesc[83] == 0x26 && in lg_report_fixup()
401 if ((drv_data->quirks & LG_RDESC_REL_ABS) && *rsize >= 51 && in lg_report_fixup()
412 if (*rsize == FFG_RDESC_ORIG_SIZE) { in lg_report_fixup()
416 *rsize = sizeof(ffg_rdesc_fixed); in lg_report_fixup()
422 if (*rsize == DF_RDESC_ORIG_SIZE) { in lg_report_fixup()
426 *rsize = sizeof(df_rdesc_fixed); in lg_report_fixup()
431 if (*rsize == MOMO_RDESC_ORIG_SIZE) { in lg_report_fixup()
435 *rsize = sizeof(momo_rdesc_fixed); in lg_report_fixup()
440 if (*rsize == MOMO2_RDESC_ORIG_SIZE) { in lg_report_fixup()
[all …]
Dhid-gembird.c64 unsigned int *rsize) in gembird_report_fixup() argument
70 size_t new_size = *rsize + delta_size; in gembird_report_fixup()
72 if (*rsize >= 31 && !memcmp(&rdesc[GEMBIRD_START_FAULTY_RDESC], in gembird_report_fixup()
83 memcpy(new_rdesc + delta_size, rdesc, *rsize); in gembird_report_fixup()
93 *rsize = new_size; in gembird_report_fixup()
Dhid-ortek.c28 unsigned int *rsize) in ortek_report_fixup() argument
30 if (*rsize >= 56 && rdesc[54] == 0x25 && rdesc[55] == 0x01) { in ortek_report_fixup()
33 } else if (*rsize >= 54 && rdesc[52] == 0x25 && rdesc[53] == 0x01) { in ortek_report_fixup()
Dhid-holtek-mouse.c36 unsigned int *rsize) in holtek_mouse_report_fixup() argument
47 if (*rsize >= 122 && rdesc[115] == 0xff && rdesc[116] == 0x7f in holtek_mouse_report_fixup()
56 if (*rsize >= 113 && rdesc[106] == 0xff && rdesc[107] == 0x7f in holtek_mouse_report_fixup()
Dhid-logitech-dj.c745 static void rdcat(char *rdesc, unsigned int *rsize, const char *data, unsigned int size) in rdcat() argument
747 memcpy(rdesc + *rsize, data, size); in rdcat()
748 *rsize += size; in rdcat()
754 unsigned int rsize = 0; in logi_dj_ll_parse() local
770 rdcat(rdesc, &rsize, kbd_descriptor, sizeof(kbd_descriptor)); in logi_dj_ll_parse()
776 rdcat(rdesc, &rsize, mse_descriptor, sizeof(mse_descriptor)); in logi_dj_ll_parse()
782 rdcat(rdesc, &rsize, consumer_descriptor, sizeof(consumer_descriptor)); in logi_dj_ll_parse()
788 rdcat(rdesc, &rsize, syscontrol_descriptor, sizeof(syscontrol_descriptor)); in logi_dj_ll_parse()
794 rdcat(rdesc, &rsize, media_descriptor, sizeof(media_descriptor)); in logi_dj_ll_parse()
802 rdcat(rdesc, &rsize, hidpp_descriptor, sizeof(hidpp_descriptor)); in logi_dj_ll_parse()
[all …]
Dhid-cypress.c34 unsigned int *rsize) in cp_report_fixup() argument
42 if (*rsize < 4) in cp_report_fixup()
45 for (i = 0; i < *rsize - 4; i++) in cp_report_fixup()
Dhid-elecom.c24 unsigned int *rsize) in elecom_report_fixup() argument
26 if (*rsize >= 48 && rdesc[46] == 0x05 && rdesc[47] == 0x0c) { in elecom_report_fixup()
Dhid-asus.c30 unsigned int *rsize) in asus_report_fixup() argument
32 if (*rsize >= 56 && rdesc[54] == 0x25 && rdesc[55] == 0x65) { in asus_report_fixup()
Dhid-aureal.c21 unsigned int *rsize) in aureal_report_fixup() argument
23 if (*rsize >= 54 && rdesc[52] == 0x25 && rdesc[53] == 0x01) { in aureal_report_fixup()
Dhid-keytouch.c31 unsigned int *rsize) in keytouch_report_fixup() argument
36 *rsize = sizeof(keytouch_fixed_rdesc); in keytouch_report_fixup()
Dhid-sony.c1071 unsigned int *rsize) in sixaxis_fixup() argument
1073 *rsize = sizeof(sixaxis_rdesc); in sixaxis_fixup()
1078 unsigned int *rsize) in motion_fixup() argument
1080 *rsize = sizeof(motion_rdesc); in motion_fixup()
1085 unsigned int *rsize) in navigation_fixup() argument
1087 *rsize = sizeof(navigation_rdesc); in navigation_fixup()
1092 unsigned int *rsize) in ps3remote_fixup() argument
1094 *rsize = sizeof(ps3remote_rdesc); in ps3remote_fixup()
1133 unsigned int *rsize) in sony_report_fixup() argument
1144 if ((sc->quirks & VAIO_RDESC_CONSTANT) && *rsize >= 56 && in sony_report_fixup()
[all …]
Dhid-sunplus.c25 unsigned int *rsize) in sp_report_fixup() argument
27 if (*rsize >= 112 && rdesc[104] == 0x26 && rdesc[105] == 0x80 && in sp_report_fixup()
Dhid-monterey.c25 unsigned int *rsize) in mr_report_fixup() argument
27 if (*rsize >= 31 && rdesc[29] == 0x05 && rdesc[30] == 0x09) { in mr_report_fixup()
Dhid-cherry.c29 unsigned int *rsize) in ch_report_fixup() argument
31 if (*rsize >= 18 && rdesc[11] == 0x3c && rdesc[12] == 0x02) { in ch_report_fixup()
Dhid-dr.c238 unsigned int *rsize) in dr_report_fixup() argument
242 if (*rsize == PID0011_RDESC_ORIG_SIZE) { in dr_report_fixup()
244 *rsize = sizeof(pid0011_rdesc_fixed); in dr_report_fixup()
Dhid-holtek-kbd.c109 unsigned int *rsize) in holtek_kbd_report_fixup() argument
115 *rsize = sizeof(holtek_kbd_rdesc_fixed); in holtek_kbd_report_fixup()
Dhid-petalynx.c26 unsigned int *rsize) in pl_report_fixup() argument
28 if (*rsize >= 62 && rdesc[39] == 0x2a && rdesc[40] == 0xf5 && in pl_report_fixup()
Dhid-chicony.c62 unsigned int *rsize) in ch_switch12_report_fixup() argument
71 if (*rsize >= 128 && rdesc[64] == 0xff && rdesc[65] == 0x7f in ch_switch12_report_fixup()
/drivers/tty/hvc/
Dhvc_console.c501 int rsize, written = 0; in hvc_write() local
517 while (count > 0 && (rsize = hp->outbuf_size - hp->n_outbuf) > 0) { in hvc_write()
518 if (rsize > count) in hvc_write()
519 rsize = count; in hvc_write()
520 memcpy(hp->outbuf + hp->n_outbuf, buf, rsize); in hvc_write()
521 count -= rsize; in hvc_write()
522 buf += rsize; in hvc_write()
523 hp->n_outbuf += rsize; in hvc_write()
524 written += rsize; in hvc_write()
/drivers/staging/greybus/
Dhid.c284 unsigned int rsize; in gb_hid_parse() local
288 rsize = le16_to_cpu(ghid->hdesc.wReportDescLength); in gb_hid_parse()
289 if (!rsize || rsize > HID_MAX_DESCRIPTOR_SIZE) { in gb_hid_parse()
290 dbg_hid("weird size of report descriptor (%u)\n", rsize); in gb_hid_parse()
294 rdesc = kzalloc(rsize, GFP_KERNEL); in gb_hid_parse()
306 ret = hid_parse_report(hid, rdesc, rsize); in gb_hid_parse()
/drivers/gpu/drm/arm/
Dmalidp_hw.c221 u8 ln_size = (conf >> 4) & 0x3, rsize; in malidp550_query_hw() local
229 rsize = 64; in malidp550_query_hw()
234 rsize = 128; in malidp550_query_hw()
239 rsize = 40; in malidp550_query_hw()
247 hwdev->rotation_memory[0] = hwdev->rotation_memory[1] = rsize * SZ_1K; in malidp550_query_hw()
393 u8 ln_size = (conf >> 4) & 0x3, rsize; in malidp650_query_hw() local
406 rsize = 128; in malidp650_query_hw()
411 rsize = 80; in malidp650_query_hw()
414 hwdev->rotation_memory[0] = hwdev->rotation_memory[1] = rsize * SZ_1K; in malidp650_query_hw()

123