Lines Matching defs:len
570 int idx, len;
579 if ((len = usb_string(dev, idx, buf, HID_STRING_SIZE-1)) < 0) {
584 if (copy_to_user(user_arg+sizeof(int), buf, len+1)) {
591 return len;
824 int len = strlen(hid->name) + 1;
825 if (len > _IOC_SIZE(cmd))
826 len = _IOC_SIZE(cmd);
827 r = copy_to_user(user_arg, hid->name, len) ?
828 -EFAULT : len;
833 int len = strlen(hid->phys) + 1;
834 if (len > _IOC_SIZE(cmd))
835 len = _IOC_SIZE(cmd);
836 r = copy_to_user(user_arg, hid->phys, len) ?
837 -EFAULT : len;