Lines Matching refs:create2
480 rd_size = ev->u.create2.rd_size; in uhid_dev_create2()
484 rd_data = kmemdup(ev->u.create2.rd_data, rd_size, GFP_KERNEL); in uhid_dev_create2()
498 len = min(sizeof(hid->name), sizeof(ev->u.create2.name)) - 1; in uhid_dev_create2()
499 strncpy(hid->name, ev->u.create2.name, len); in uhid_dev_create2()
500 len = min(sizeof(hid->phys), sizeof(ev->u.create2.phys)) - 1; in uhid_dev_create2()
501 strncpy(hid->phys, ev->u.create2.phys, len); in uhid_dev_create2()
502 len = min(sizeof(hid->uniq), sizeof(ev->u.create2.uniq)) - 1; in uhid_dev_create2()
503 strncpy(hid->uniq, ev->u.create2.uniq, len); in uhid_dev_create2()
506 hid->bus = ev->u.create2.bus; in uhid_dev_create2()
507 hid->vendor = ev->u.create2.vendor; in uhid_dev_create2()
508 hid->product = ev->u.create2.product; in uhid_dev_create2()
509 hid->version = ev->u.create2.version; in uhid_dev_create2()
510 hid->country = ev->u.create2.country; in uhid_dev_create2()
541 if (copy_from_user(&ev->u.create2.rd_data, orig.rd_data, orig.rd_size)) in uhid_dev_create()
544 memcpy(ev->u.create2.name, orig.name, sizeof(orig.name)); in uhid_dev_create()
545 memcpy(ev->u.create2.phys, orig.phys, sizeof(orig.phys)); in uhid_dev_create()
546 memcpy(ev->u.create2.uniq, orig.uniq, sizeof(orig.uniq)); in uhid_dev_create()
547 ev->u.create2.rd_size = orig.rd_size; in uhid_dev_create()
548 ev->u.create2.bus = orig.bus; in uhid_dev_create()
549 ev->u.create2.vendor = orig.vendor; in uhid_dev_create()
550 ev->u.create2.product = orig.product; in uhid_dev_create()
551 ev->u.create2.version = orig.version; in uhid_dev_create()
552 ev->u.create2.country = orig.country; in uhid_dev_create()