Home
last modified time | relevance | path

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

123

/drivers/hid/
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 && rdesc[175] == 0x25 && rdesc[176] == 0x40 && in samsung_irda_report_fixup()
62 rdesc[177] == 0x75 && rdesc[178] == 0x30 && in samsung_irda_report_fixup()
63 rdesc[179] == 0x95 && rdesc[180] == 0x01 && in samsung_irda_report_fixup()
64 rdesc[182] == 0x40) { in samsung_irda_report_fixup()
66 rdesc[176] = 0xff; in samsung_irda_report_fixup()
67 rdesc[178] = 0x08; in samsung_irda_report_fixup()
68 rdesc[180] = 0x06; in samsung_irda_report_fixup()
69 rdesc[182] = 0x42; in samsung_irda_report_fixup()
71 if (*rsize == 203 && rdesc[192] == 0x15 && rdesc[193] == 0x0 && in samsung_irda_report_fixup()
[all …]
Dhid-kye.c557 static __u8 *kye_consumer_control_fixup(struct hid_device *hdev, __u8 *rdesc, in kye_consumer_control_fixup() argument
566 rdesc[offset] == 0x05 && rdesc[offset + 1] == 0x0c && in kye_consumer_control_fixup()
568 rdesc[offset + 2] == 0x09 && rdesc[offset + 3] == 0x01 && in kye_consumer_control_fixup()
570 rdesc[offset + 10] == 0x2a && rdesc[offset + 12] > 0x2f) { in kye_consumer_control_fixup()
572 rdesc[offset + 12] = 0x2f; in kye_consumer_control_fixup()
574 return rdesc; in kye_consumer_control_fixup()
577 static __u8 *kye_report_fixup(struct hid_device *hdev, __u8 *rdesc, in kye_report_fixup() argument
590 rdesc[61] == 0x05 && rdesc[62] == 0x08 && in kye_report_fixup()
591 rdesc[63] == 0x19 && rdesc[64] == 0x08 && in kye_report_fixup()
592 rdesc[65] == 0x29 && rdesc[66] == 0x0f && in kye_report_fixup()
[all …]
Dhid-elecom.c39 __u8 *rdesc, unsigned int rsize, in mouse_button_fixup() argument
42 if (rsize < 32 || rdesc[12] != 0x95 || in mouse_button_fixup()
43 rdesc[14] != 0x75 || rdesc[15] != 0x01 || in mouse_button_fixup()
44 rdesc[20] != 0x29 || rdesc[30] != 0x75) in mouse_button_fixup()
48 rdesc[13] = nbuttons; in mouse_button_fixup()
49 rdesc[21] = nbuttons; in mouse_button_fixup()
50 rdesc[31] = MOUSE_BUTTONS_MAX - nbuttons; in mouse_button_fixup()
53 static __u8 *elecom_report_fixup(struct hid_device *hdev, __u8 *rdesc, in elecom_report_fixup() argument
60 if (*rsize >= 48 && rdesc[46] == 0x05 && rdesc[47] == 0x0c) { in elecom_report_fixup()
62 rdesc[47] = 0x00; in elecom_report_fixup()
[all …]
Dhid-holtek-mouse.c32 static __u8 *holtek_mouse_report_fixup(struct hid_device *hdev, __u8 *rdesc, 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()
Dhid-zydacron.c27 static __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[0xe1] = 0x0c; in zc_report_fixup()
37 rdesc[0x97] = rdesc[0xcb] = rdesc[0xe2] = 0x00; in zc_report_fixup()
39 return rdesc; in zc_report_fixup()
Dhid-lg.c430 static __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()
456 rdesc = fg_rdesc_fixed; in lg_report_fixup()
469 rdesc = ffg_rdesc_fixed; in lg_report_fixup()
[all …]
Dhid-sunplus.c21 static __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()
Dhid-petalynx.c22 static __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()
Dhid-ortek.c25 static __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()
Dhid-saitek.c69 static __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[95] = 0x02; in saitek_report_fixup()
87 rdesc[111] = 0x02; in saitek_report_fixup()
90 return rdesc; in saitek_report_fixup()
Dhid-cherry.c25 static __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()
Dhid-cypress.c30 static __u8 *cp_report_fixup(struct hid_device *hdev, __u8 *rdesc, in cp_report_fixup() argument
37 return rdesc; in cp_report_fixup()
40 return rdesc; in cp_report_fixup()
43 if (rdesc[i] == 0x29 && rdesc[i + 2] == 0x19) { in cp_report_fixup()
44 rdesc[i] = 0x19; in cp_report_fixup()
45 rdesc[i + 2] = 0x29; in cp_report_fixup()
46 swap(rdesc[i + 3], rdesc[i + 1]); in cp_report_fixup()
48 return rdesc; in cp_report_fixup()
Dhid-chicony.c58 static __u8 *ch_switch12_report_fixup(struct hid_device *hdev, __u8 *rdesc, in ch_switch12_report_fixup() argument
68 if (*rsize >= 128 && rdesc[64] == 0xff && rdesc[65] == 0x7f in ch_switch12_report_fixup()
69 && rdesc[69] == 0xff && rdesc[70] == 0x7f) { in ch_switch12_report_fixup()
71 rdesc[65] = rdesc[70] = 0x2f; in ch_switch12_report_fixup()
77 return rdesc; in ch_switch12_report_fixup()
Dhid-gembird.c60 static __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()
Dhid-waltop.c602 static __u8 *waltop_report_fixup(struct hid_device *hdev, __u8 *rdesc, in waltop_report_fixup() argument
608 rdesc = slim_tablet_5_8_inch_rdesc_fixed; in waltop_report_fixup()
614 rdesc = slim_tablet_12_1_inch_rdesc_fixed; in waltop_report_fixup()
620 rdesc = q_pad_rdesc_fixed; in waltop_report_fixup()
626 rdesc = pid_0038_rdesc_fixed; in waltop_report_fixup()
632 rdesc = media_tablet_10_6_inch_rdesc_fixed; in waltop_report_fixup()
638 rdesc = media_tablet_14_1_inch_rdesc_fixed; in waltop_report_fixup()
644 rdesc = sirius_battery_free_tablet_rdesc_fixed; in waltop_report_fixup()
649 return rdesc; in waltop_report_fixup()
Dhid-nti.c32 static __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()
Dhid-macally.c21 static __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()
Dhid-redragon.c36 static __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()
/drivers/regulator/
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->n_voltages = (max_voltage - min_voltage) / 25000 + 1 in anatop_regulator_probe()
244 rdesc->min_uV = min_voltage; in anatop_regulator_probe()
[all …]
Dsy8824x.c89 struct regulator_desc *rdesc = &di->desc; in sy8824_regulator_register() local
93 rdesc->name = "sy8824-reg"; in sy8824_regulator_register()
94 rdesc->supply_name = "vin"; in sy8824_regulator_register()
95 rdesc->ops = &sy8824_regulator_ops; in sy8824_regulator_register()
96 rdesc->type = REGULATOR_VOLTAGE; in sy8824_regulator_register()
97 rdesc->n_voltages = cfg->vsel_count; in sy8824_regulator_register()
98 rdesc->enable_reg = cfg->enable_reg; in sy8824_regulator_register()
99 rdesc->enable_mask = SY8824C_BUCK_EN; in sy8824_regulator_register()
100 rdesc->min_uV = cfg->vsel_min; in sy8824_regulator_register()
101 rdesc->uV_step = cfg->vsel_step; in sy8824_regulator_register()
[all …]
Dslg51000-regulator.c41 struct regulator_desc *rdesc[SLG51000_MAX_REGULATORS]; member
250 struct regulator_desc *rdesc; in slg51000_regulator_init() local
261 chip->rdesc[id] = &regls_desc[id]; in slg51000_regulator_init()
262 rdesc = chip->rdesc[id]; in slg51000_regulator_init()
291 rdesc->linear_min_sel = vsel_range[0]; in slg51000_regulator_init()
292 rdesc->n_voltages = vsel_range[1] + 1; in slg51000_regulator_init()
294 rdesc->min_uV = SLG51000_LDOHP_HV_MIN in slg51000_regulator_init()
296 * rdesc->uV_step); in slg51000_regulator_init()
298 rdesc->min_uV = SLG51000_LDOHP_LV_MIN in slg51000_regulator_init()
300 * rdesc->uV_step); in slg51000_regulator_init()
[all …]
Dvctrl-regulator.c313 struct regulator_desc *rdesc = &vctrl->desc; in vctrl_init_vtable() local
322 rdesc->n_voltages = n_voltages; in vctrl_init_vtable()
330 rdesc->n_voltages--; in vctrl_init_vtable()
333 if (rdesc->n_voltages == 0) { in vctrl_init_vtable()
338 vctrl->vtable = devm_kcalloc(&pdev->dev, rdesc->n_voltages, in vctrl_init_vtable()
359 sort(vctrl->vtable, rdesc->n_voltages, in vctrl_init_vtable()
364 for (i = rdesc->n_voltages - 1; i > 0; i--) { in vctrl_init_vtable()
439 struct regulator_desc *rdesc; in vctrl_probe() local
458 rdesc = &vctrl->desc; in vctrl_probe()
459 rdesc->name = "vctrl"; in vctrl_probe()
[all …]
Dmax77650-regulator.c69 struct max77650_regulator_desc *rdesc; in max77650_regulator_is_enabled() local
73 rdesc = rdev_get_drvdata(rdev); in max77650_regulator_is_enabled()
76 rv = regmap_read(map, rdesc->regB, &val); in max77650_regulator_is_enabled()
87 struct max77650_regulator_desc *rdesc; in max77650_regulator_enable() local
90 rdesc = rdev_get_drvdata(rdev); in max77650_regulator_enable()
93 return regmap_update_bits(map, rdesc->regB, in max77650_regulator_enable()
100 struct max77650_regulator_desc *rdesc; in max77650_regulator_disable() local
103 rdesc = rdev_get_drvdata(rdev); in max77650_regulator_disable()
106 return regmap_update_bits(map, rdesc->regB, in max77650_regulator_disable()
330 struct max77650_regulator_desc *rdesc; in max77650_regulator_probe() local
[all …]
/drivers/spi/
Dspi-pic32-sqi.c242 struct ring_desc *rdesc; in ring_desc_get() local
247 rdesc = list_first_entry(&sqi->bd_list_free, struct ring_desc, list); in ring_desc_get()
248 list_move_tail(&rdesc->list, &sqi->bd_list_used); in ring_desc_get()
249 return rdesc; in ring_desc_get()
252 static void ring_desc_put(struct pic32_sqi *sqi, struct ring_desc *rdesc) in ring_desc_put() argument
254 list_move(&rdesc->list, &sqi->bd_list_free); in ring_desc_put()
263 struct ring_desc *rdesc; in pic32_sqi_one_transfer() local
298 rdesc = ring_desc_get(sqi); in pic32_sqi_one_transfer()
299 if (!rdesc) in pic32_sqi_one_transfer()
302 bd = rdesc->bd; in pic32_sqi_one_transfer()
[all …]
/drivers/crypto/inside-secure/
Dsafexcel_ring.c96 struct safexcel_result_desc *rdesc) in safexcel_ring_rdr_rdesc_index() argument
100 return ((void *)rdesc - rdr->base) / rdr->offset; in safexcel_ring_rdr_rdesc_index()
173 struct safexcel_result_desc *rdesc; in safexcel_add_rdesc() local
175 rdesc = safexcel_ring_next_wptr(priv, &priv->ring[ring_id].rdr); in safexcel_add_rdesc()
176 if (IS_ERR(rdesc)) in safexcel_add_rdesc()
177 return rdesc; in safexcel_add_rdesc()
179 memset(rdesc, 0, sizeof(struct safexcel_result_desc)); in safexcel_add_rdesc()
181 rdesc->first_seg = first; in safexcel_add_rdesc()
182 rdesc->last_seg = last; in safexcel_add_rdesc()
183 rdesc->particle_size = len; in safexcel_add_rdesc()
[all …]

123