Lines Matching refs:rd_size
34 uint rd_size; member
158 return hid_parse_report(hid, uhid->rd_data, uhid->rd_size); in uhid_hid_parse()
390 __u16 rd_size; member
439 event->u.create.rd_size = compat->rd_size; in uhid_event_from_user()
473 size_t rd_size, len; in uhid_dev_create2() local
480 rd_size = ev->u.create2.rd_size; in uhid_dev_create2()
481 if (rd_size <= 0 || rd_size > HID_MAX_DESCRIPTOR_SIZE) in uhid_dev_create2()
484 rd_data = kmemdup(ev->u.create2.rd_data, rd_size, GFP_KERNEL); in uhid_dev_create2()
488 uhid->rd_size = rd_size; in uhid_dev_create2()
528 uhid->rd_size = 0; in uhid_dev_create2()
539 if (orig.rd_size <= 0 || orig.rd_size > HID_MAX_DESCRIPTOR_SIZE) in uhid_dev_create()
541 if (copy_from_user(&ev->u.create2.rd_data, orig.rd_data, orig.rd_size)) in uhid_dev_create()
547 ev->u.create2.rd_size = orig.rd_size; in uhid_dev_create()