Lines Matching defs:user_dev
347 struct uinput_user_dev *user_dev;
364 user_dev = kmalloc(sizeof(struct uinput_user_dev), GFP_KERNEL);
365 if (!user_dev)
368 if (copy_from_user(user_dev, buffer, sizeof(struct uinput_user_dev))) {
373 udev->ff_effects_max = user_dev->ff_effects_max;
375 size = strnlen(user_dev->name, UINPUT_MAX_NAME_SIZE) + 1;
387 strlcpy(name, user_dev->name, size);
389 dev->id.bustype = user_dev->id.bustype;
390 dev->id.vendor = user_dev->id.vendor;
391 dev->id.product = user_dev->id.product;
392 dev->id.version = user_dev->id.version;
395 input_abs_set_max(dev, i, user_dev->absmax[i]);
396 input_abs_set_min(dev, i, user_dev->absmin[i]);
397 input_abs_set_fuzz(dev, i, user_dev->absfuzz[i]);
398 input_abs_set_flat(dev, i, user_dev->absflat[i]);
420 kfree(user_dev);