Home
last modified time | relevance | path

Searched refs:rdesc (Results 1 – 25 of 95) sorted by relevance

1234

/linux/drivers/hid/
H A Dhid-kye.c366 static __u8 *kye_consumer_control_fixup(struct hid_device *hdev, __u8 *rdesc, in kye_consumer_control_fixup() argument
376 rdesc[offset] == 0x05 && rdesc[offset + 1] == 0x0c && in kye_consumer_control_fixup()
378 rdesc[offset + 2] == 0x09 && rdesc[offset + 3] == 0x01 && in kye_consumer_control_fixup()
380 rdesc[offset + 10] == 0x2a && rdesc[offset + 12] > 0x2f) { in kye_consumer_control_fixup()
382 rdesc[offset + 12] = 0x2f; in kye_consumer_control_fixup()
384 return rdesc; in kye_consumer_control_fixup()
406 static __u8 *kye_tablet_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) in kye_tablet_fixup() argument
409 __u8 *newdesc = rdesc; in kye_tablet_fixup()
414 return rdesc; in kye_tablet_fixup()
424 return rdesc; in kye_tablet_fixup()
[all …]
H A Dhid-elecom.c38 __u8 *rdesc, unsigned int rsize, in mouse_button_fixup() argument
45 if (rsize < 32 || rdesc[button_bit_count] != 0x95 || in mouse_button_fixup()
46 rdesc[button_report_size] != 0x75 || in mouse_button_fixup()
47 rdesc[button_report_size + 1] != 0x01 || in mouse_button_fixup()
48 rdesc[button_usage_maximum] != 0x29 || rdesc[padding_bit] != 0x75) in mouse_button_fixup()
52 rdesc[button_bit_count + 1] = nbuttons; in mouse_button_fixup()
53 rdesc[button_usage_maximum + 1] = nbuttons; in mouse_button_fixup()
54 rdesc[padding_bit + 1] = MOUSE_BUTTONS_MAX - nbuttons; in mouse_button_fixup()
57 static const __u8 *elecom_report_fixup(struct hid_device *hdev, __u8 *rdesc, in elecom_report_fixup() argument
64 if (*rsize >= 48 && rdesc[46] == 0x05 && rdesc[47] == 0x0c) { in elecom_report_fixup()
[all …]
H A Dhid-topre.c24 static const __u8 *topre_report_fixup(struct hid_device *hdev, __u8 *rdesc, in topre_report_fixup() argument
27 if (*rsize >= 119 && rdesc[69] == 0x29 && rdesc[70] == 0xe7 && in topre_report_fixup()
28 rdesc[71] == 0x81 && rdesc[72] == 0x00) { in topre_report_fixup()
31 rdesc[72] = 0x02; in topre_report_fixup()
32 } else if (*rsize >= 106 && rdesc[28] == 0x29 && rdesc[29] == 0xe7 && in topre_report_fixup()
33 rdesc[30] == 0x81 && rdesc[31] == 0x00) { in topre_report_fixup()
36 rdesc[31] = 0x02; in topre_report_fixup()
38 return rdesc; in topre_report_fixup()
H A Dhid-holtek-mouse.c33 __u8 *rdesc, unsigned int *rsize) in holtek_mouse_report_fixup() argument
44 if (*rsize >= 122 && rdesc[115] == 0xff && rdesc[116] == 0x7f in holtek_mouse_report_fixup()
45 && rdesc[120] == 0xff && rdesc[121] == 0x7f) { in holtek_mouse_report_fixup()
47 rdesc[116] = rdesc[121] = 0x2f; in holtek_mouse_report_fixup()
53 if (*rsize >= 113 && rdesc[106] == 0xff && rdesc[107] == 0x7f in holtek_mouse_report_fixup()
54 && rdesc[111] == 0xff && rdesc[112] == 0x7f) { in holtek_mouse_report_fixup()
56 rdesc[107] = rdesc[112] = 0x2f; in holtek_mouse_report_fixup()
62 return rdesc; in holtek_mouse_report_fixup()
H A Dhid-glorious.c29 static const __u8 *glorious_report_fixup(struct hid_device *hdev, __u8 *rdesc, in glorious_report_fixup() argument
33 rdesc[84] == 129 && rdesc[112] == 129 && rdesc[140] == 129 && in glorious_report_fixup()
34 rdesc[85] == 3 && rdesc[113] == 3 && rdesc[141] == 3) { in glorious_report_fixup()
36 rdesc[85] = rdesc[113] = rdesc[141] = \ in glorious_report_fixup()
39 if (*rsize == 156 && rdesc[41] == 1) { in glorious_report_fixup()
41 rdesc[41] = 0; in glorious_report_fixup()
43 return rdesc; in glorious_report_fixup()
H A Dhid-zydacron.c27 static const __u8 *zc_report_fixup(struct hid_device *hdev, __u8 *rdesc, in zc_report_fixup() argument
31 rdesc[0x96] == 0xbc && rdesc[0x97] == 0xff && in zc_report_fixup()
32 rdesc[0xca] == 0xbc && rdesc[0xcb] == 0xff && in zc_report_fixup()
33 rdesc[0xe1] == 0xbc && rdesc[0xe2] == 0xff) { in zc_report_fixup()
36 rdesc[0x96] = rdesc[0xca] = rdesc[ in zc_report_fixup()
[all...]
H A Dhid-sunplus.c21 static const __u8 *sp_report_fixup(struct hid_device *hdev, __u8 *rdesc, in sp_report_fixup() argument
24 if (*rsize >= 112 && rdesc[104] == 0x26 && rdesc[105] == 0x80 && in sp_report_fixup()
25 rdesc[106] == 0x03) { in sp_report_fixup()
27 rdesc[105] = rdesc[110] = 0x03; in sp_report_fixup()
28 rdesc[106] = rdesc[111] = 0x21; in sp_report_fixup()
30 return rdesc; in sp_report_fixup()
H A Dhid-petalynx.c22 static const __u8 *pl_report_fixup(struct hid_device *hdev, __u8 *rdesc, in pl_report_fixup() argument
25 if (*rsize >= 62 && rdesc[39] == 0x2a && rdesc[40] == 0xf5 && in pl_report_fixup()
26 rdesc[41] == 0x00 && rdesc[59] == 0x26 && in pl_report_fixup()
27 rdesc[60] == 0xf9 && rdesc[61] == 0x00) { in pl_report_fixup()
29 rdesc[60] = 0xfa; in pl_report_fixup()
30 rdesc[40] = 0xfa; in pl_report_fixup()
32 return rdesc; in pl_report_fixup()
H A Dhid-samsung.c58 static __u8 *samsung_irda_report_fixup(struct hid_device *hdev, __u8 *rdesc, in samsung_irda_report_fixup() argument
61 if (*rsize == 184 && !memcmp(&rdesc[175], "\x25\x40\x75\x30\x95\x01", 6) && in samsung_irda_report_fixup()
62 rdesc[182] == 0x40) { in samsung_irda_report_fixup()
64 rdesc[176] = 0xff; in samsung_irda_report_fixup()
65 rdesc[178] = 0x08; in samsung_irda_report_fixup()
66 rdesc[180] = 0x06; in samsung_irda_report_fixup()
67 rdesc[182] = 0x42; in samsung_irda_report_fixup()
68 } else if (*rsize == 203 && !memcmp(&rdesc[192], "\x15\x00\x25\x12", 4)) { in samsung_irda_report_fixup()
70 rdesc[193] = 0x01; in samsung_irda_report_fixup()
71 rdesc[195] = 0x0f; in samsung_irda_report_fixup()
[all …]
H A Dhid-ortek.c25 static const __u8 *ortek_report_fixup(struct hid_device *hdev, __u8 *rdesc, in ortek_report_fixup() argument
28 if (*rsize >= 56 && rdesc[54] == 0x25 && rdesc[55] == 0x01) { in ortek_report_fixup()
30 rdesc[55] = 0x92; in ortek_report_fixup()
31 } else if (*rsize >= 54 && rdesc[52] == 0x25 && rdesc[53] == 0x01) { in ortek_report_fixup()
33 rdesc[53] = 0x65; in ortek_report_fixup()
35 return rdesc; in ortek_report_fixup()
H A Dhid-cherry.c25 static const __u8 *ch_report_fixup(struct hid_device *hdev, __u8 *rdesc, in ch_report_fixup() argument
28 if (*rsize >= 18 && rdesc[11] == 0x3c && rdesc[12] == 0x02) { in ch_report_fixup()
30 rdesc[11] = rdesc[16] = 0xff; in ch_report_fixup()
31 rdesc[12] = rdesc[17] = 0x03; in ch_report_fixup()
33 return rdesc; in ch_report_fixup()
H A Dhid-saitek.c69 static const __u8 *saitek_report_fixup(struct hid_device *hdev, __u8 *rdesc, in saitek_report_fixup() argument
75 rdesc[20] == 0x09 && rdesc[21] == 0x33 && in saitek_report_fixup()
76 rdesc[94] == 0x81 && rdesc[95] == 0x03 && in saitek_report_fixup()
77 rdesc[110] == 0x81 && rdesc[111] == 0x03) { in saitek_report_fixup()
82 rdesc[20] = 0x15; in saitek_report_fixup()
83 rdesc[21] = 0x00; in saitek_report_fixup()
86 rdesc[9 in saitek_report_fixup()
[all...]
H A Dhid-gembird.c60 static const __u8 *gembird_report_fixup(struct hid_device *hdev, __u8 *rdesc, in gembird_report_fixup() argument
69 if (*rsize >= 31 && !memcmp(&rdesc[GEMBIRD_START_FAULTY_RDESC], in gembird_report_fixup()
74 return rdesc; in gembird_report_fixup()
80 memcpy(new_rdesc + delta_size, rdesc, *rsize); in gembird_report_fixup()
83 memcpy(new_rdesc, rdesc, GEMBIRD_START_FAULTY_RDESC); in gembird_report_fixup()
91 rdesc = new_rdesc; in gembird_report_fixup()
94 return rdesc; in gembird_report_fixup()
H A Dhid-lg.c430 static const __u8 *lg_report_fixup(struct hid_device *hdev, __u8 *rdesc, in lg_report_fixup() argument
435 if ((drv_data->quirks & LG_RDESC) && *rsize >= 91 && rdesc[83] == 0x26 && in lg_report_fixup()
436 rdesc[84] == 0x8c && rdesc[85] == 0x02) { in lg_report_fixup()
439 rdesc[84] = rdesc[89] = 0x4d; in lg_report_fixup()
440 rdesc[85] = rdesc[90] = 0x10; in lg_report_fixup()
443 rdesc[32] == 0x81 && rdesc[33] == 0x06 && in lg_report_fixup()
444 rdesc[49] == 0x81 && rdesc[50] == 0x06) { in lg_report_fixup()
447 rdesc[33] = rdesc[50] = 0x02; in lg_report_fixup()
521 if (*rsize >= 101 && rdesc[41] == 0x95 && rdesc[42] == 0x0B && in lg_report_fixup()
522 rdesc[47] == 0x05 && rdesc[48] == 0x09) { in lg_report_fixup()
[all …]
H A Dhid-nti.c32 static const __u8 *nti_usbsun_report_fixup(struct hid_device *hdev, __u8 *rdesc, in nti_usbsun_report_fixup() argument
35 if (*rsize >= 60 && rdesc[53] == 0x65 && rdesc[59] == 0x65) { in nti_usbsun_report_fixup()
37 rdesc[53] = rdesc[59] = 0xe7; in nti_usbsun_report_fixup()
39 return rdesc; in nti_usbsun_report_fixup()
H A Dhid-macally.c21 static const __u8 *macally_report_fixup(struct hid_device *hdev, __u8 *rdesc, in macally_report_fixup() argument
24 if (*rsize >= 60 && rdesc[53] == 0x65 && rdesc[59] == 0x65) { in macally_report_fixup()
27 rdesc[53] = rdesc[59] = 0x67; in macally_report_fixup()
29 return rdesc; in macally_report_fixup()
H A Dhid-chicony.c92 __u8 *rdesc, unsigned int *rsize) in ch_switch12_report_fixup() argument
101 if (*rsize >= 128 && rdesc[64] == 0xff && rdesc[65] == 0x7f in ch_switch12_report_fixup()
102 && rdesc[69] == 0xff && rdesc[70] == 0x7f) { in ch_switch12_report_fixup()
104 rdesc[65] = rdesc[70] = 0x2f; in ch_switch12_report_fixup()
110 return rdesc; in ch_switch12_report_fixup()
H A Dhid-semitek.c14 static const __u8 *semitek_report_fixup(struct hid_device *hdev, __u8 *rdesc, in semitek_report_fixup() argument
20 if (*rsize == 0xcb && rdesc[0x83] == 0x81 && rdesc[0x84] == 0x00) { in semitek_report_fixup()
22 rdesc[0x84] = 0x02; in semitek_report_fixup()
24 return rdesc; in semitek_report_fixup()
H A Dhid-redragon.c36 static const __u8 *redragon_report_fixup(struct hid_device *hdev, __u8 *rdesc, in redragon_report_fixup() argument
39 if (*rsize >= 102 && rdesc[100] == 0x81 && rdesc[101] == 0x00) { in redragon_report_fixup()
41 rdesc[101] = 0x02; in redragon_report_fixup()
44 return rdesc; in redragon_report_fixup()
/linux/drivers/regulator/
H A Danatop-regulator.c29 struct regulator_desc rdesc; member
160 struct regulator_desc *rdesc; in anatop_regulator_probe() local
179 rdesc = &sreg->rdesc; in anatop_regulator_probe()
180 rdesc->type = REGULATOR_VOLTAGE; in anatop_regulator_probe()
181 rdesc->owner = THIS_MODULE; in anatop_regulator_probe()
183 of_property_read_string(np, "regulator-name", &rdesc->name); in anatop_regulator_probe()
184 if (!rdesc->name) { in anatop_regulator_probe()
189 initdata = of_get_regulator_init_data(dev, np, rdesc); in anatop_regulator_probe()
242 rdesc in anatop_regulator_probe()
[all...]
H A Drtq2208-regulator.c110 const struct rtq2208_regulator_desc *rdesc = in rtq2208_set_mode() local
125 shift = ffs(rdesc->mode_mask) - 1; in rtq2208_set_mode()
126 return regmap_update_bits(rdev->regmap, rdesc->mode_reg, in rtq2208_set_mode()
127 rdesc->mode_mask, val << shift); in rtq2208_set_mode()
132 const struct rtq2208_regulator_desc *rdesc = in rtq2208_get_mode() local
137 ret = regmap_read(rdev->regmap, rdesc->mode_reg, &mode_val); in rtq2208_get_mode()
141 return (mode_val & rdesc->mode_mask) ? REGULATOR_MODE_FAST : REGULATOR_MODE_NORMAL; in rtq2208_get_mode()
180 const struct rtq2208_regulator_desc *rdesc = in rtq2208_set_suspend_enable() local
183 return regmap_set_bits(rdev->regmap, rdesc->suspend_config_reg, rdesc in rtq2208_set_suspend_enable()
188 const struct rtq2208_regulator_desc *rdesc = rtq2208_set_suspend_disable() local
196 const struct rtq2208_regulator_desc *rdesc = rtq2208_set_suspend_mode() local
380 rtq2208_init_regulator_desc(struct rtq2208_regulator_desc * rdesc,int mtp_sel,int idx,unsigned int ldo1_fixed,unsigned int ldo2_fixed) rtq2208_init_regulator_desc() argument
600 struct rtq2208_regulator_desc *rdesc[RTQ2208_LDO_MAX]; rtq2208_probe() local
[all...]
H A Dvctrl-regulator.c326 struct regulator_desc *rdesc = &vctrl->desc; in vctrl_init_vtable() local
334 rdesc->n_voltages = n_voltages; in vctrl_init_vtable()
342 rdesc->n_voltages--; in vctrl_init_vtable()
345 if (rdesc->n_voltages == 0) { in vctrl_init_vtable()
352 rdesc->n_voltages); in vctrl_init_vtable()
371 sort(vctrl->vtable, rdesc->n_voltages, in vctrl_init_vtable()
376 for (i = rdesc->n_voltages - 1; i > 0; i--) { in vctrl_init_vtable()
447 struct regulator_desc *rdesc; in vctrl_probe() local
470 rdesc = &vctrl->desc; in vctrl_probe()
471 rdesc in vctrl_probe()
[all...]
/linux/tools/testing/selftests/hid/tests/
H A Dtest_multitouch.py106 rdesc=None, argument
113 super().__init__(name, application, rdesc_str, rdesc, input_info)
182 rdesc = None
185 rdesc = v
187 if rdesc is None:
190 if "Contact Max" not in [f.usage_name for f in rdesc]:
194 r = rdesc.create_report([self], None)
201 rdesc = None
204 rdesc = v
206 if rdesc is None:
[all …]
/linux/drivers/crypto/inside-secure/
H A Dsafexcel_ring.c157 struct safexcel_result_desc *rdesc) in safexcel_ring_rdr_rdesc_index() argument
161 return ((void *)rdesc - rdr->base) / rdr->offset; in safexcel_ring_rdr_rdesc_index()
229 struct safexcel_result_desc *rdesc; in safexcel_add_rdesc() local
232 rdesc = safexcel_ring_next_rwptr(priv, &priv->ring[ring_id].rdr, in safexcel_add_rdesc()
234 if (IS_ERR(rdesc)) in safexcel_add_rdesc()
235 return rdesc; in safexcel_add_rdesc()
237 rdesc->particle_size = len; in safexcel_add_rdesc()
238 rdesc->rsvd0 = 0; in safexcel_add_rdesc()
239 rdesc->descriptor_overflow = 1; /* assume error */ in safexcel_add_rdesc()
240 rdesc->buffer_overflow = 1; /* assume error */ in safexcel_add_rdesc()
[all …]
/linux/drivers/soc/qcom/
H A Dspm.c420 struct regulator_desc *rdesc; in spm_register_regulator() local
428 rdesc = devm_kzalloc_obj(dev, *rdesc); in spm_register_regulator()
429 if (!rdesc) in spm_register_regulator()
432 rdesc->name = "spm"; in spm_register_regulator()
433 rdesc->of_match = of_match_ptr("regulator"); in spm_register_regulator()
434 rdesc->type = REGULATOR_VOLTAGE; in spm_register_regulator()
435 rdesc->owner = THIS_MODULE; in spm_register_regulator()
436 rdesc->ops = &spm_reg_ops; in spm_register_regulator()
438 rdesc in spm_register_regulator()
[all...]

1234