Symbol: tm_wheel
drivers/hid/hid-thrustmaster.c
223
struct tm_wheel *tm_wheel = hid_get_drvdata(hdev);
drivers/hid/hid-thrustmaster.c
233
if (tm_wheel->response->type == cpu_to_le16(0x49))
drivers/hid/hid-thrustmaster.c
234
model = le16_to_cpu(tm_wheel->response->data.a.model);
drivers/hid/hid-thrustmaster.c
235
else if (tm_wheel->response->type == cpu_to_le16(0x47))
drivers/hid/hid-thrustmaster.c
236
model = le16_to_cpu(tm_wheel->response->data.b.model);
drivers/hid/hid-thrustmaster.c
238
hid_err(hdev, "Unknown packet type 0x%x, unable to proceed further with wheel init\n", tm_wheel->response->type);
drivers/hid/hid-thrustmaster.c
253
tm_wheel->change_request->wValue = cpu_to_le16(twi->switch_value);
drivers/hid/hid-thrustmaster.c
255
tm_wheel->urb,
drivers/hid/hid-thrustmaster.c
256
tm_wheel->usb_dev,
drivers/hid/hid-thrustmaster.c
257
usb_sndctrlpipe(tm_wheel->usb_dev, 0),
drivers/hid/hid-thrustmaster.c
258
(char *)tm_wheel->change_request,
drivers/hid/hid-thrustmaster.c
264
ret = usb_submit_urb(tm_wheel->urb, GFP_ATOMIC);
drivers/hid/hid-thrustmaster.c
271
struct tm_wheel *tm_wheel = hid_get_drvdata(hdev);
drivers/hid/hid-thrustmaster.c
273
usb_kill_urb(tm_wheel->urb);
drivers/hid/hid-thrustmaster.c
275
kfree(tm_wheel->change_request);
drivers/hid/hid-thrustmaster.c
276
kfree(tm_wheel->response);
drivers/hid/hid-thrustmaster.c
277
kfree(tm_wheel->model_request);
drivers/hid/hid-thrustmaster.c
278
usb_free_urb(tm_wheel->urb);
drivers/hid/hid-thrustmaster.c
279
kfree(tm_wheel);
drivers/hid/hid-thrustmaster.c
293
struct tm_wheel *tm_wheel = NULL;
drivers/hid/hid-thrustmaster.c
311
tm_wheel = kzalloc_obj(struct tm_wheel);
drivers/hid/hid-thrustmaster.c
312
if (!tm_wheel) {
drivers/hid/hid-thrustmaster.c
317
tm_wheel->urb = usb_alloc_urb(0, GFP_ATOMIC);
drivers/hid/hid-thrustmaster.c
318
if (!tm_wheel->urb) {
drivers/hid/hid-thrustmaster.c
323
tm_wheel->model_request = kmemdup(&model_request,
drivers/hid/hid-thrustmaster.c
326
if (!tm_wheel->model_request) {
drivers/hid/hid-thrustmaster.c
331
tm_wheel->response = kzalloc_obj(struct tm_wheel_response);
drivers/hid/hid-thrustmaster.c
332
if (!tm_wheel->response) {
drivers/hid/hid-thrustmaster.c
337
tm_wheel->change_request = kmemdup(&change_request,
drivers/hid/hid-thrustmaster.c
340
if (!tm_wheel->change_request) {
drivers/hid/hid-thrustmaster.c
345
tm_wheel->usb_dev = interface_to_usbdev(to_usb_interface(hdev->dev.parent));
drivers/hid/hid-thrustmaster.c
346
hid_set_drvdata(hdev, tm_wheel);
drivers/hid/hid-thrustmaster.c
351
tm_wheel->urb,
drivers/hid/hid-thrustmaster.c
352
tm_wheel->usb_dev,
drivers/hid/hid-thrustmaster.c
353
usb_rcvctrlpipe(tm_wheel->usb_dev, 0),
drivers/hid/hid-thrustmaster.c
354
(char *)tm_wheel->model_request,
drivers/hid/hid-thrustmaster.c
355
tm_wheel->response,
drivers/hid/hid-thrustmaster.c
361
ret = usb_submit_urb(tm_wheel->urb, GFP_ATOMIC);
drivers/hid/hid-thrustmaster.c
369
error6: kfree(tm_wheel->change_request);
drivers/hid/hid-thrustmaster.c
370
error5: kfree(tm_wheel->response);
drivers/hid/hid-thrustmaster.c
371
error4: kfree(tm_wheel->model_request);
drivers/hid/hid-thrustmaster.c
372
error3: usb_free_urb(tm_wheel->urb);
drivers/hid/hid-thrustmaster.c
373
error2: kfree(tm_wheel);