Home | History | Annotate | Download | only in ic

Lines Matching defs:LEN

139 #define LEN 1
217 #define SLHCI_FS_DATA_TIME(len) (((u_int)(len)<<3)+(len)+((len)>>1))
218 #define SLHCI_LS_DATA_TIME(len) (((u_int)(len)<<6)+((u_int)(len)<<4))
220 #define SLHCI_FS_DATA_TIME(len) (56*(len)/6)
221 #define SLHCI_LS_DATA_TIME(len) (449*(len)/6)
271 uint8_t tregs[4]; /* ADR, LEN, PID, DEV */
895 spipe->tregs[LEN] = spipe->newlen[1];
896 if (spipe->tregs[LEN])
908 xfer->ux_length > spipe->tregs[LEN])) {
921 spipe->tregs[LEN] = 8;
923 DLOGBUF(D_XFER, spipe->buffer, spipe->tregs[LEN]);
934 spipe->tregs[LEN] == max_packet &&
957 SLHCI_LS_DATA_TIME(spipe->tregs[LEN]);
969 SLHCI_FS_DATA_TIME(spipe->tregs[LEN]);
1155 t->len[0] = t->len[1] = -1;
1946 DLOG(D_MSG, "DONE AB=%jd spipe %#jx len %jd xfer %#jx", ab,
1947 t->spipe[ab], (uintptr_t)t->len[ab],
1954 * function unless halting, else t->len will not be cleared.
2033 unsigned int len = spipe->tregs[LEN];
2034 DLOG(D_XFER, "cont %jd len %jd", cont, len, 0, 0);
2035 if ((status & SL11_EPSTAT_OVERFLOW) || cont > len) {
2036 DDOLOG("overflow - cont %d len %d xfer->ux_length %d "
2037 "xfer->actlen %d", cont, len, xfer->ux_length,
2039 printf("%s: overflow cont %d len %d xfer->ux_length"
2041 len, xfer->ux_length, xfer->ux_actlen);
2042 actlen = len;
2044 actlen = len - cont;
2112 spipe->tregs[LEN] = spipe->newlen[1];
2119 spipe->tregs[LEN] = 0;
2142 if (actlen == spipe->tregs[LEN] &&
2149 spipe->tregs[LEN] = spipe->newlen[0];
2152 spipe->tregs[LEN] == xfer->ux_length, sc,
2210 t->len[ab] = -1;
2249 t->len[A] = -1;
2253 start_cc_time(&t_ab[A], spipe->tregs[LEN]);
2262 t->len[B] = -1;
2266 start_cc_time(&t_ab[B], spipe->tregs[LEN]);
2286 while ((t->len[A] == -1 || t->len[B] == -1) &&
2294 if (t->len[A] + t->len[B] + spipe->tregs[LEN] + 1 >
2297 "len %jd", t->len[A], t->len[B], spipe->tregs[LEN],
2304 if (t->len[A] == -1) {
2310 spipe->tregs[LEN];
2313 t->len[ab] = spipe->tregs[LEN];
2315 if (spipe->tregs[LEN] && (spipe->tregs[PID] & SL11_PID_BITS)
2318 spipe->tregs[LEN]);
2320 spipe->buffer, spipe->tregs[LEN]);
2323 SLHCI_FS_DATA_TIME(spipe->tregs[LEN]);
2327 ab, t->flags, t->len[0], t->len[1]);
2329 if (spipe->tregs[LEN])
2341 DLOG(D_SXFER, "Transfer len %jd pid %#jx dev %jd type %jd",
2342 spipe->tregs[LEN], spipe->tregs[PID], spipe->tregs[DEV],
2617 t->len[A] = -1;
2621 t->len[B] = -1;
2726 t->len[i] = -1;
2849 t->current_tregs[0][LEN] = 0;
2853 t->current_tregs[1][LEN] = 0;
2858 t->len[A] = 0;
3194 uint16_t len, value, index;
3198 len = UGETW(req->wLength);
3271 if (index == 1 /* Port */ && len == /* XXX >=? */
3281 "len = %#.4jx", index, len, 0,0);
3283 if (len == sizeof(usb_hub_status_t)) {
3290 DLOG(D_ROOT, "Get Hub Status bad len %#.4jx",
3291 len, 0,0,0);
3317 buf, len, "SL811HS/T root hub");
3363 DDOLOG("len %d actlen %d short %d", xfer->ux_length,
3372 int req, type, value, index, len;
3378 len = UGETW(r->wLength);
3381 DDOLOG("request: r=%d,v=%d,i=%d,l=%d ", req, value, index, len);
3441 DDOLOG("USBA Buffer: start %u len %u", aaddr, alen, 0,0);
3449 DDOLOG("USBB Buffer: start %u len %u", baddr, blen, 0,0);
3498 DDOLOG("a = %p Alen=%d b = %p Blen=%d", t->spipe[0], t->len[0],
3499 t->spipe[1], t->len[1]);
3524 DDOLOG("len: %u", r->tregs[LEN], 0,0,0);