Lines Matching refs:len
324 uint16_t len;
357 len = UGETW(xfer->ureq->wLength);
360 "idx 0x%x, len %u\r\n",
362 xfer->ureq->bRequest, value, index, len));
371 data->blen = len > 0 ? len - 1 : 0;
384 DPRINTF(("umouse: (->UDESC_DEVICE) len %u ?= "
386 len, sizeof(umouse_dev_desc)));
391 if (len > sizeof(umouse_dev_desc)) {
392 data->blen = len - sizeof(umouse_dev_desc);
393 len = sizeof(umouse_dev_desc);
396 memcpy(data->buf, &umouse_dev_desc, len);
397 data->bdone += len;
406 if (len > sizeof(umouse_confd)) {
407 data->blen = len - sizeof(umouse_confd);
408 len = sizeof(umouse_confd);
412 memcpy(data->buf, &umouse_confd, len);
413 data->bdone += len;
427 data->blen = len - 2;
428 len -= 2;
431 if (len >= 2) {
446 if (len > slen) {
447 data->blen = len - slen;
448 len = slen;
451 for (i = 2; i < len; i += 2) {
461 if (len > sizeof(umouse_bosd)) {
462 data->blen = len - sizeof(umouse_bosd);
463 len = sizeof(umouse_bosd);
466 memcpy(udata, &umouse_bosd, len);
467 data->bdone += len;
486 if (len > sizeof(umouse_report_desc)) {
487 data->blen = len - sizeof(umouse_report_desc);
488 len = sizeof(umouse_report_desc);
491 memcpy(data->buf, umouse_report_desc, len);
492 data->bdone += len;
514 if (len > 0) {
516 data->blen = len - 1;
524 if (data != NULL && len > 1) {
529 data->blen = len - 2;
539 if (data != NULL && len > 1) {
541 data->blen = len - 2;
605 if ((value >> 8) == 0x01 && len >= sizeof(sc->um_report)) {
608 if (len > sizeof(sc->um_report)) {
609 data->blen = len - sizeof(sc->um_report);
610 len = sizeof(sc->um_report);
614 memcpy(data->buf, &sc->um_report, len);
615 data->bdone += len;
624 if (data != NULL && len > 0) {
626 data->blen = len - 1;
633 if (data != NULL && len > 0) {
635 data->blen = len - 1;
683 int len, i, idx;
711 len = data->blen;
740 if (len > 0) {
746 data->blen = len - 6;