Lines Matching defs:idev
245 struct input_dev *idev;
247 idev = input_allocate_device();
248 if (!idev)
251 idev->id.bustype = hdev->bus;
252 idev->id.vendor = hdev->vendor;
253 idev->id.product = hdev->product;
254 idev->id.version = hdev->version;
255 idev->uniq = hdev->uniq;
256 idev->name = devm_kasprintf(&hdev->dev, GFP_KERNEL, "%s %s", hdev->name,
258 if (!idev->name)
261 input_set_drvdata(idev, hdev);
263 return idev;
266 input_free_device(idev);
396 static int thunderstrike_play_effect(struct input_dev *idev, void *data,
399 struct hid_device *hdev = input_get_drvdata(idev);