Lines Matching defs:temp
257 struct usb_ncm_parameters temp;
282 USETW(req.wLength, sizeof(temp));
285 &temp, 0, NULL, 1000 /* ms */);
294 sc->sc_ncm.rx_max = UGETDW(temp.dwNtbInMaxSize);
295 sc->sc_ncm.tx_max = UGETDW(temp.dwNtbOutMaxSize);
296 sc->sc_ncm.tx_remainder = UGETW(temp.wNdpOutPayloadRemainder);
297 sc->sc_ncm.tx_modulus = UGETW(temp.wNdpOutDivisor);
298 sc->sc_ncm.tx_struct_align = UGETW(temp.wNdpOutAlignment);
299 sc->sc_ncm.tx_nframe = UGETW(temp.wNtbOutMaxDatagrams);
301 sc->sc_ncm.rx_max = UGETDW(temp.dwNtbOutMaxSize);
302 sc->sc_ncm.tx_max = UGETDW(temp.dwNtbInMaxSize);
303 sc->sc_ncm.tx_remainder = UGETW(temp.wNdpInPayloadRemainder);
304 sc->sc_ncm.tx_modulus = UGETW(temp.wNdpInDivisor);
305 sc->sc_ncm.tx_struct_align = UGETW(temp.wNdpInAlignment);
306 sc->sc_ncm.tx_nframe = UGETW(temp.wNtbOutMaxDatagrams);
1236 uint8_t temp;
1252 temp = cdce_ncm_fill_tx_frames(xfer, x);
1253 if (temp == 0)
1255 if (temp == 1) {
1294 int temp;
1329 temp = UGETW(sc->sc_ncm.hdr.wBlockLength);
1330 if (temp > sumlen) {
1332 temp, sumlen);
1335 temp = UGETW(sc->sc_ncm.hdr.wDptIndex);
1336 if ((int)(temp + sizeof(sc->sc_ncm.dpt)) > actlen) {
1337 DPRINTFN(1, "invalid DPT index: 0x%04x\n", temp);
1340 usbd_copy_out(pc, temp, &(sc->sc_ncm.dpt),
1365 temp += sizeof(sc->sc_ncm.dpt);
1367 if ((temp + (4 * nframes)) > actlen)
1375 usbd_copy_out(pc, temp, &(sc->sc_ncm.dp), (4 * nframes));
1382 temp = UGETW(sc->sc_ncm.dp[x].wFrameLength);
1385 (temp < (int)sizeof(struct ether_header)) ||
1386 (temp > (MCLBYTES - ETHER_ALIGN))) {
1391 } else if ((offset + temp) > actlen) {
1399 m = pbuf_alloc(PBUF_RAW, temp+ETH_PAD_SIZE, PBUF_RAM);
1403 x, offset, temp);
1411 usbd_copy_out(pc, offset, m->payload, temp);
1418 uether_rxmbuf(&sc->sc_ue, m, temp);
1420 sumdata += temp;