Home
last modified time | relevance | path

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

12

/drivers/hid/
Dhid-samsung.c63 static __u8 *samsung_irda_report_fixup(struct hid_device *hdev, __u8 *rdesc, in samsung_irda_report_fixup() argument
66 if (*rsize == 184 && rdesc[175] == 0x25 && rdesc[176] == 0x40 && in samsung_irda_report_fixup()
67 rdesc[177] == 0x75 && rdesc[178] == 0x30 && in samsung_irda_report_fixup()
68 rdesc[179] == 0x95 && rdesc[180] == 0x01 && in samsung_irda_report_fixup()
69 rdesc[182] == 0x40) { in samsung_irda_report_fixup()
71 rdesc[176] = 0xff; in samsung_irda_report_fixup()
72 rdesc[178] = 0x08; in samsung_irda_report_fixup()
73 rdesc[180] = 0x06; in samsung_irda_report_fixup()
74 rdesc[182] = 0x42; in samsung_irda_report_fixup()
76 if (*rsize == 203 && rdesc[192] == 0x15 && rdesc[193] == 0x0 && in samsung_irda_report_fixup()
[all …]
Dhid-kye.c402 static __u8 *kye_consumer_control_fixup(struct hid_device *hdev, __u8 *rdesc, in kye_consumer_control_fixup() argument
411 rdesc[offset] == 0x05 && rdesc[offset + 1] == 0x0c && in kye_consumer_control_fixup()
413 rdesc[offset + 2] == 0x09 && rdesc[offset + 3] == 0x01 && in kye_consumer_control_fixup()
415 rdesc[offset + 10] == 0x2a && rdesc[offset + 12] > 0x2f) { in kye_consumer_control_fixup()
417 rdesc[offset + 12] = 0x2f; in kye_consumer_control_fixup()
419 return rdesc; in kye_consumer_control_fixup()
422 static __u8 *kye_report_fixup(struct hid_device *hdev, __u8 *rdesc, in kye_report_fixup() argument
435 rdesc[61] == 0x05 && rdesc[62] == 0x08 && in kye_report_fixup()
436 rdesc[63] == 0x19 && rdesc[64] == 0x08 && in kye_report_fixup()
437 rdesc[65] == 0x29 && rdesc[66] == 0x0f && in kye_report_fixup()
[all …]
Dhid-cypress.c35 static __u8 *cp_rdesc_fixup(struct hid_device *hdev, __u8 *rdesc, in cp_rdesc_fixup() argument
41 return rdesc; in cp_rdesc_fixup()
44 if (rdesc[i] == 0x29 && rdesc[i + 2] == 0x19) { in cp_rdesc_fixup()
45 rdesc[i] = 0x19; in cp_rdesc_fixup()
46 rdesc[i + 2] = 0x29; in cp_rdesc_fixup()
47 swap(rdesc[i + 3], rdesc[i + 1]); in cp_rdesc_fixup()
49 return rdesc; in cp_rdesc_fixup()
52 static __u8 *va_logical_boundary_fixup(struct hid_device *hdev, __u8 *rdesc, in va_logical_boundary_fixup() argument
61 rdesc[0] == 0x05 && rdesc[1] == 0x0c && in va_logical_boundary_fixup()
62 rdesc[2] == 0x09 && rdesc[3] == 0x01 && in va_logical_boundary_fixup()
[all …]
Dhid-holtek-mouse.c35 static __u8 *holtek_mouse_report_fixup(struct hid_device *hdev, __u8 *rdesc, in holtek_mouse_report_fixup() argument
47 if (*rsize >= 122 && rdesc[115] == 0xff && rdesc[116] == 0x7f in holtek_mouse_report_fixup()
48 && rdesc[120] == 0xff && rdesc[121] == 0x7f) { in holtek_mouse_report_fixup()
50 rdesc[116] = rdesc[121] = 0x2f; in holtek_mouse_report_fixup()
56 if (*rsize >= 113 && rdesc[106] == 0xff && rdesc[107] == 0x7f in holtek_mouse_report_fixup()
57 && rdesc[111] == 0xff && rdesc[112] == 0x7f) { in holtek_mouse_report_fixup()
59 rdesc[107] = rdesc[112] = 0x2f; in holtek_mouse_report_fixup()
65 return rdesc; in holtek_mouse_report_fixup()
Dhid-zydacron.c30 static __u8 *zc_report_fixup(struct hid_device *hdev, __u8 *rdesc, in zc_report_fixup() argument
34 rdesc[0x96] == 0xbc && rdesc[0x97] == 0xff && in zc_report_fixup()
35 rdesc[0xca] == 0xbc && rdesc[0xcb] == 0xff && in zc_report_fixup()
36 rdesc[0xe1] == 0xbc && rdesc[0xe2] == 0xff) { in zc_report_fixup()
39 rdesc[0x96] = rdesc[0xca] = rdesc[0xe1] = 0x0c; in zc_report_fixup()
40 rdesc[0x97] = rdesc[0xcb] = rdesc[0xe2] = 0x00; in zc_report_fixup()
42 return rdesc; in zc_report_fixup()
Dhid-uclogic.c627 __u8 *rdesc; member
633 static __u8 *uclogic_report_fixup(struct hid_device *hdev, __u8 *rdesc, in uclogic_report_fixup() argument
643 rdesc = pf1209_rdesc_fixed; in uclogic_report_fixup()
649 rdesc = wp4030u_rdesc_fixed; in uclogic_report_fixup()
655 rdesc = wp5540u_rdesc_fixed; in uclogic_report_fixup()
661 rdesc = wp8060u_rdesc_fixed; in uclogic_report_fixup()
667 rdesc = wp1062_rdesc_fixed; in uclogic_report_fixup()
675 rdesc = twhl850_rdesc_fixed0; in uclogic_report_fixup()
681 rdesc = twhl850_rdesc_fixed1; in uclogic_report_fixup()
687 rdesc = twhl850_rdesc_fixed2; in uclogic_report_fixup()
[all …]
Dhid-sunplus.c24 static __u8 *sp_report_fixup(struct hid_device *hdev, __u8 *rdesc, in sp_report_fixup() argument
27 if (*rsize >= 112 && rdesc[104] == 0x26 && rdesc[105] == 0x80 && in sp_report_fixup()
28 rdesc[106] == 0x03) { in sp_report_fixup()
30 rdesc[105] = rdesc[110] = 0x03; in sp_report_fixup()
31 rdesc[106] = rdesc[111] = 0x21; in sp_report_fixup()
33 return rdesc; in sp_report_fixup()
Dhid-petalynx.c25 static __u8 *pl_report_fixup(struct hid_device *hdev, __u8 *rdesc, in pl_report_fixup() argument
28 if (*rsize >= 62 && rdesc[39] == 0x2a && rdesc[40] == 0xf5 && in pl_report_fixup()
29 rdesc[41] == 0x00 && rdesc[59] == 0x26 && in pl_report_fixup()
30 rdesc[60] == 0xf9 && rdesc[61] == 0x00) { in pl_report_fixup()
32 rdesc[60] = 0xfa; in pl_report_fixup()
33 rdesc[40] = 0xfa; in pl_report_fixup()
35 return rdesc; in pl_report_fixup()
Dhid-lg.c342 static __u8 *lg_report_fixup(struct hid_device *hdev, __u8 *rdesc, in lg_report_fixup() argument
349 if ((drv_data->quirks & LG_RDESC) && *rsize >= 91 && rdesc[83] == 0x26 && in lg_report_fixup()
350 rdesc[84] == 0x8c && rdesc[85] == 0x02) { in lg_report_fixup()
353 rdesc[84] = rdesc[89] = 0x4d; in lg_report_fixup()
354 rdesc[85] = rdesc[90] = 0x10; in lg_report_fixup()
357 rdesc[32] == 0x81 && rdesc[33] == 0x06 && in lg_report_fixup()
358 rdesc[49] == 0x81 && rdesc[50] == 0x06) { in lg_report_fixup()
361 rdesc[33] = rdesc[50] = 0x02; in lg_report_fixup()
382 rdesc = df_rdesc_fixed; in lg_report_fixup()
391 rdesc = momo_rdesc_fixed; in lg_report_fixup()
[all …]
Dhid-ortek.c27 static __u8 *ortek_report_fixup(struct hid_device *hdev, __u8 *rdesc, in ortek_report_fixup() argument
30 if (*rsize >= 56 && rdesc[54] == 0x25 && rdesc[55] == 0x01) { in ortek_report_fixup()
32 rdesc[55] = 0x92; in ortek_report_fixup()
33 } else if (*rsize >= 54 && rdesc[52] == 0x25 && rdesc[53] == 0x01) { in ortek_report_fixup()
35 rdesc[53] = 0x65; in ortek_report_fixup()
37 return rdesc; in ortek_report_fixup()
Dhid-saitek.c73 static __u8 *saitek_report_fixup(struct hid_device *hdev, __u8 *rdesc, in saitek_report_fixup() argument
79 rdesc[20] == 0x09 && rdesc[21] == 0x33 && in saitek_report_fixup()
80 rdesc[94] == 0x81 && rdesc[95] == 0x03 && in saitek_report_fixup()
81 rdesc[110] == 0x81 && rdesc[111] == 0x03) { in saitek_report_fixup()
86 rdesc[20] = 0x15; in saitek_report_fixup()
87 rdesc[21] = 0x00; in saitek_report_fixup()
90 rdesc[95] = 0x02; in saitek_report_fixup()
91 rdesc[111] = 0x02; in saitek_report_fixup()
94 return rdesc; in saitek_report_fixup()
Dhid-cherry.c28 static __u8 *ch_report_fixup(struct hid_device *hdev, __u8 *rdesc, in ch_report_fixup() argument
31 if (*rsize >= 18 && rdesc[11] == 0x3c && rdesc[12] == 0x02) { in ch_report_fixup()
33 rdesc[11] = rdesc[16] = 0xff; in ch_report_fixup()
34 rdesc[12] = rdesc[17] = 0x03; in ch_report_fixup()
36 return rdesc; in ch_report_fixup()
Dhid-chicony.c61 static __u8 *ch_switch12_report_fixup(struct hid_device *hdev, __u8 *rdesc, in ch_switch12_report_fixup() argument
67 return rdesc; in ch_switch12_report_fixup()
75 if (*rsize >= 128 && rdesc[64] == 0xff && rdesc[65] == 0x7f in ch_switch12_report_fixup()
76 && rdesc[69] == 0xff && rdesc[70] == 0x7f) { in ch_switch12_report_fixup()
78 rdesc[65] = rdesc[70] = 0x2f; in ch_switch12_report_fixup()
84 return rdesc; in ch_switch12_report_fixup()
Dhid-gembird.c63 static __u8 *gembird_report_fixup(struct hid_device *hdev, __u8 *rdesc, in gembird_report_fixup() argument
72 if (*rsize >= 31 && !memcmp(&rdesc[GEMBIRD_START_FAULTY_RDESC], in gembird_report_fixup()
77 return rdesc; in gembird_report_fixup()
83 memcpy(new_rdesc + delta_size, rdesc, *rsize); in gembird_report_fixup()
86 memcpy(new_rdesc, rdesc, GEMBIRD_START_FAULTY_RDESC); in gembird_report_fixup()
94 rdesc = new_rdesc; in gembird_report_fixup()
97 return rdesc; in gembird_report_fixup()
Dhid-waltop.c641 static __u8 *waltop_report_fixup(struct hid_device *hdev, __u8 *rdesc, in waltop_report_fixup() argument
647 rdesc = slim_tablet_5_8_inch_rdesc_fixed; in waltop_report_fixup()
653 rdesc = slim_tablet_12_1_inch_rdesc_fixed; in waltop_report_fixup()
659 rdesc = q_pad_rdesc_fixed; in waltop_report_fixup()
665 rdesc = pid_0038_rdesc_fixed; in waltop_report_fixup()
671 rdesc = media_tablet_10_6_inch_rdesc_fixed; in waltop_report_fixup()
677 rdesc = media_tablet_14_1_inch_rdesc_fixed; in waltop_report_fixup()
683 rdesc = sirius_battery_free_tablet_rdesc_fixed; in waltop_report_fixup()
688 return rdesc; in waltop_report_fixup()
Dhid-microsoft.c33 static __u8 *ms_report_fixup(struct hid_device *hdev, __u8 *rdesc, in ms_report_fixup() argument
42 if ((quirks & MS_RDESC) && *rsize == 571 && rdesc[557] == 0x19 && in ms_report_fixup()
43 rdesc[559] == 0x29) { in ms_report_fixup()
45 rdesc[557] = 0x35; in ms_report_fixup()
46 rdesc[559] = 0x45; in ms_report_fixup()
49 if ((quirks & MS_RDESC_3K) && *rsize == 106 && rdesc[94] == 0x19 && in ms_report_fixup()
50 rdesc[95] == 0x00 && rdesc[96] == 0x29 && in ms_report_fixup()
51 rdesc[97] == 0xff) { in ms_report_fixup()
52 rdesc[94] = 0x35; in ms_report_fixup()
53 rdesc[96] = 0x45; in ms_report_fixup()
[all …]
Dhid-sensor-hub.c572 static __u8 *sensor_hub_report_fixup(struct hid_device *hdev, __u8 *rdesc, in sensor_hub_report_fixup() argument
584 return rdesc; in sensor_hub_report_fixup()
590 !memcmp(&rdesc[index], report_block, in sensor_hub_report_fixup()
592 rdesc[index + 4] = 0x01; in sensor_hub_report_fixup()
596 !memcmp(&rdesc[index], power_block, in sensor_hub_report_fixup()
598 rdesc[index + 4] = 0x01; in sensor_hub_report_fixup()
606 *rsize == 2558 && rdesc[913] == 0x17 && rdesc[914] == 0x40 && in sensor_hub_report_fixup()
607 rdesc[915] == 0x81 && rdesc[916] == 0x08 && in sensor_hub_report_fixup()
608 rdesc[917] == 0x00 && rdesc[918] == 0x27 && in sensor_hub_report_fixup()
609 rdesc[921] == 0x07 && rdesc[922] == 0x00) { in sensor_hub_report_fixup()
[all …]
Dhid-elecom.c23 static __u8 *elecom_report_fixup(struct hid_device *hdev, __u8 *rdesc, in elecom_report_fixup() argument
26 if (*rsize >= 48 && rdesc[46] == 0x05 && rdesc[47] == 0x0c) { in elecom_report_fixup()
28 rdesc[47] = 0x00; in elecom_report_fixup()
30 return rdesc; in elecom_report_fixup()
Dhid-aureal.c20 static __u8 *aureal_report_fixup(struct hid_device *hdev, __u8 *rdesc, in aureal_report_fixup() argument
23 if (*rsize >= 54 && rdesc[52] == 0x25 && rdesc[53] == 0x01) { in aureal_report_fixup()
25 rdesc[53] = 0x65; in aureal_report_fixup()
27 return rdesc; in aureal_report_fixup()
Dhid-monterey.c24 static __u8 *mr_report_fixup(struct hid_device *hdev, __u8 *rdesc, in mr_report_fixup() argument
27 if (*rsize >= 31 && rdesc[29] == 0x05 && rdesc[30] == 0x09) { in mr_report_fixup()
29 rdesc[30] = 0x0c; in mr_report_fixup()
31 return rdesc; in mr_report_fixup()
/drivers/regulator/
Danatop-regulator.c53 struct regulator_desc rdesc; member
185 struct regulator_desc *rdesc; in anatop_regulator_probe() local
197 rdesc = &sreg->rdesc; in anatop_regulator_probe()
198 rdesc->name = sreg->name; in anatop_regulator_probe()
199 rdesc->type = REGULATOR_VOLTAGE; in anatop_regulator_probe()
200 rdesc->owner = THIS_MODULE; in anatop_regulator_probe()
202 initdata = of_get_regulator_init_data(dev, np, rdesc); in anatop_regulator_probe()
259 rdesc->n_voltages = (sreg->max_voltage - sreg->min_voltage) / 25000 + 1 in anatop_regulator_probe()
261 rdesc->min_uV = sreg->min_voltage; in anatop_regulator_probe()
262 rdesc->uV_step = 25000; in anatop_regulator_probe()
[all …]
Dfan53555.c281 struct regulator_desc *rdesc = &di->desc; in fan53555_regulator_register() local
283 rdesc->name = "fan53555-reg"; in fan53555_regulator_register()
284 rdesc->supply_name = "vin"; in fan53555_regulator_register()
285 rdesc->ops = &fan53555_regulator_ops; in fan53555_regulator_register()
286 rdesc->type = REGULATOR_VOLTAGE; in fan53555_regulator_register()
287 rdesc->n_voltages = FAN53555_NVOLTAGES; in fan53555_regulator_register()
288 rdesc->enable_reg = di->vol_reg; in fan53555_regulator_register()
289 rdesc->enable_mask = VSEL_BUCK_EN; in fan53555_regulator_register()
290 rdesc->min_uV = di->vsel_min; in fan53555_regulator_register()
291 rdesc->uV_step = di->vsel_step; in fan53555_regulator_register()
[all …]
Dltc3589.c448 static void ltc3589_apply_fb_voltage_divider(struct ltc3589_regulator *rdesc) in ltc3589_apply_fb_voltage_divider() argument
450 struct regulator_desc *desc = &rdesc->desc; in ltc3589_apply_fb_voltage_divider()
452 if (!rdesc->r1 || !rdesc->r2) in ltc3589_apply_fb_voltage_divider()
455 desc->min_uV = ltc3589_scale(desc->min_uV, rdesc->r1, rdesc->r2); in ltc3589_apply_fb_voltage_divider()
456 desc->uV_step = ltc3589_scale(desc->uV_step, rdesc->r1, rdesc->r2); in ltc3589_apply_fb_voltage_divider()
457 desc->fixed_uV = ltc3589_scale(desc->fixed_uV, rdesc->r1, rdesc->r2); in ltc3589_apply_fb_voltage_divider()
498 struct ltc3589_regulator *rdesc = &ltc3589->regulator_descs[i]; in ltc3589_probe() local
499 struct regulator_desc *desc = &rdesc->desc; in ltc3589_probe()
506 ltc3589_apply_fb_voltage_divider(rdesc); in ltc3589_probe()
/drivers/net/ethernet/amd/xgbe/
Dxgbe-dev.c928 static int xgbe_tx_complete(struct xgbe_ring_desc *rdesc) in xgbe_tx_complete() argument
930 return !XGMAC_GET_BITS_LE(rdesc->desc3, TX_NORMAL_DESC3, OWN); in xgbe_tx_complete()
1059 struct xgbe_ring_desc *rdesc = rdata->rdesc; in xgbe_tx_desc_reset() local
1067 rdesc->desc0 = 0; in xgbe_tx_desc_reset()
1068 rdesc->desc1 = 0; in xgbe_tx_desc_reset()
1069 rdesc->desc2 = 0; in xgbe_tx_desc_reset()
1070 rdesc->desc3 = 0; in xgbe_tx_desc_reset()
1109 struct xgbe_ring_desc *rdesc = rdata->rdesc; in xgbe_rx_desc_reset() local
1135 rdesc->desc0 = cpu_to_le32(lower_32_bits(hdr_dma)); in xgbe_rx_desc_reset()
1136 rdesc->desc1 = cpu_to_le32(upper_32_bits(hdr_dma)); in xgbe_rx_desc_reset()
[all …]
Dxgbe-desc.c163 if (ring->rdesc) { in xgbe_free_ring()
167 ring->rdesc, ring->rdesc_dma); in xgbe_free_ring()
168 ring->rdesc = NULL; in xgbe_free_ring()
198 ring->rdesc = dma_alloc_coherent(pdata->dev, in xgbe_init_ring()
202 if (!ring->rdesc) in xgbe_init_ring()
213 ring->rdesc, &ring->rdesc_dma, ring->rdata); in xgbe_init_ring()
360 struct xgbe_ring_desc *rdesc; in xgbe_wrapper_tx_descriptor_init() local
372 rdesc = ring->rdesc; in xgbe_wrapper_tx_descriptor_init()
378 rdata->rdesc = rdesc; in xgbe_wrapper_tx_descriptor_init()
381 rdesc++; in xgbe_wrapper_tx_descriptor_init()
[all …]

12