Lines Matching +full:report +full:- +full:error

1 // SPDX-License-Identifier: GPL-2.0-or-later
9 * - tested with BTP2185 BFM Mode.
12 * - tested with BTP2185 PC Mode.
15 * - tested with BTP2185 PC Mode with another version.
18 * - tested with BTP2171s.
31 #include "hid-ids.h"
34 struct hid_report *report; member
44 left = effect->u.rumble.strong_magnitude; in hid_betopff_play()
45 right = effect->u.rumble.weak_magnitude; in hid_betopff_play()
47 betopff->report->field[2]->value[0] = left / 256; in hid_betopff_play()
48 betopff->report->field[3]->value[0] = right / 256; in hid_betopff_play()
50 hid_hw_request(hid, betopff->report, HID_REQ_SET_REPORT); in hid_betopff_play()
58 struct hid_report *report; in betopff_init() local
61 &hid->report_enum[HID_OUTPUT_REPORT].report_list; in betopff_init()
64 int error; in betopff_init() local
67 if (list_empty(&hid->inputs)) { in betopff_init()
69 return -ENODEV; in betopff_init()
72 hidinput = list_first_entry(&hid->inputs, struct hid_input, list); in betopff_init()
73 dev = hidinput->input; in betopff_init()
77 return -ENODEV; in betopff_init()
80 report = list_first_entry(report_list, struct hid_report, list); in betopff_init()
83 * ----------------------------------------- in betopff_init()
86 * ----------------------------------------- in betopff_init()
89 for (i = 0; i < report->maxfield; i++) { in betopff_init()
90 for (j = 0; j < report->field[i]->report_count; j++) { in betopff_init()
91 report->field[i]->value[j] = 0x00; in betopff_init()
97 hid_err(hid, "not enough fields in the report: %d\n", in betopff_init()
99 return -ENODEV; in betopff_init()
104 return -ENOMEM; in betopff_init()
106 set_bit(FF_RUMBLE, dev->ffbit); in betopff_init()
108 error = input_ff_create_memless(dev, betopff, hid_betopff_play); in betopff_init()
109 if (error) { in betopff_init()
111 return error; in betopff_init()
114 betopff->report = report; in betopff_init()
115 hid_hw_request(hid, betopff->report, HID_REQ_SET_REPORT); in betopff_init()
126 if (id->driver_data) in betop_probe()
127 hdev->quirks |= HID_QUIRK_MULTI_INPUT; in betop_probe()