Home
last modified time | relevance | path

Searched refs:new_rdesc (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/hid/
H A Dhid-gembird.c63 __u8 *new_rdesc; in gembird_report_fixup() local
72 new_rdesc = devm_kzalloc(&hdev->dev, new_size, GFP_KERNEL); in gembird_report_fixup()
73 if (new_rdesc == NULL) 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()
86 memcpy(new_rdesc + GEMBIRD_START_FAULTY_RDESC, in gembird_report_fixup()
91 rdesc = new_rdesc; in gembird_report_fixup()
H A Dhid-asus.c1214 __u8 *new_rdesc; in asus_report_fixup() local
1217 new_rdesc = devm_kzalloc(&hdev->dev, new_size, GFP_KERNEL); in asus_report_fixup()
1218 if (new_rdesc == NULL) in asus_report_fixup()
1223 memcpy(new_rdesc, rdesc, 61); in asus_report_fixup()
1225 memcpy(new_rdesc + 61, asus_g752_fixed_rdesc, sizeof(asus_g752_fixed_rdesc)); in asus_report_fixup()
1227 memcpy(new_rdesc + 61 + sizeof(asus_g752_fixed_rdesc), rdesc + 61, *rsize - 61); in asus_report_fixup()
1230 rdesc = new_rdesc; in asus_report_fixup()