Lines Matching refs:create2

500 	rd_size = ev->u.create2.rd_size;  in uhid_dev_create2()
504 rd_data = kmemdup(ev->u.create2.rd_data, rd_size, GFP_KERNEL); in uhid_dev_create2()
517 BUILD_BUG_ON(sizeof(hid->name) != sizeof(ev->u.create2.name)); in uhid_dev_create2()
518 strscpy(hid->name, ev->u.create2.name, sizeof(hid->name)); in uhid_dev_create2()
519 BUILD_BUG_ON(sizeof(hid->phys) != sizeof(ev->u.create2.phys)); in uhid_dev_create2()
520 strscpy(hid->phys, ev->u.create2.phys, sizeof(hid->phys)); in uhid_dev_create2()
521 BUILD_BUG_ON(sizeof(hid->uniq) != sizeof(ev->u.create2.uniq)); in uhid_dev_create2()
522 strscpy(hid->uniq, ev->u.create2.uniq, sizeof(hid->uniq)); in uhid_dev_create2()
525 hid->bus = ev->u.create2.bus; in uhid_dev_create2()
526 hid->vendor = ev->u.create2.vendor; in uhid_dev_create2()
527 hid->product = ev->u.create2.product; in uhid_dev_create2()
528 hid->version = ev->u.create2.version; in uhid_dev_create2()
529 hid->country = ev->u.create2.country; in uhid_dev_create2()
560 if (copy_from_user(&ev->u.create2.rd_data, orig.rd_data, orig.rd_size)) in uhid_dev_create()
563 memcpy(ev->u.create2.name, orig.name, sizeof(orig.name)); in uhid_dev_create()
564 memcpy(ev->u.create2.phys, orig.phys, sizeof(orig.phys)); in uhid_dev_create()
565 memcpy(ev->u.create2.uniq, orig.uniq, sizeof(orig.uniq)); in uhid_dev_create()
566 ev->u.create2.rd_size = orig.rd_size; in uhid_dev_create()
567 ev->u.create2.bus = orig.bus; in uhid_dev_create()
568 ev->u.create2.vendor = orig.vendor; in uhid_dev_create()
569 ev->u.create2.product = orig.product; in uhid_dev_create()
570 ev->u.create2.version = orig.version; in uhid_dev_create()
571 ev->u.create2.country = orig.country; in uhid_dev_create()