Lines Matching refs:compat
434 struct uhid_create_req_compat *compat; in uhid_event_from_user() local
436 compat = kzalloc(sizeof(*compat), GFP_KERNEL); in uhid_event_from_user()
437 if (!compat) in uhid_event_from_user()
442 if (copy_from_user(compat, buffer, in uhid_event_from_user()
443 min(len, sizeof(*compat)))) { in uhid_event_from_user()
444 kfree(compat); in uhid_event_from_user()
451 memcpy(event->u.create.name, compat->name, in uhid_event_from_user()
452 sizeof(compat->name)); in uhid_event_from_user()
453 memcpy(event->u.create.phys, compat->phys, in uhid_event_from_user()
454 sizeof(compat->phys)); in uhid_event_from_user()
455 memcpy(event->u.create.uniq, compat->uniq, in uhid_event_from_user()
456 sizeof(compat->uniq)); in uhid_event_from_user()
458 event->u.create.rd_data = compat_ptr(compat->rd_data); in uhid_event_from_user()
459 event->u.create.rd_size = compat->rd_size; in uhid_event_from_user()
461 event->u.create.bus = compat->bus; in uhid_event_from_user()
462 event->u.create.vendor = compat->vendor; in uhid_event_from_user()
463 event->u.create.product = compat->product; in uhid_event_from_user()
464 event->u.create.version = compat->version; in uhid_event_from_user()
465 event->u.create.country = compat->country; in uhid_event_from_user()
467 kfree(compat); in uhid_event_from_user()