Lines Matching refs:temp
1278 unsigned int temp;
1282 temp = ucom_cons_tx_high - ucom_cons_tx_low;
1283 temp %= UCOM_CONS_BUFSIZE;
1287 if (temp > (UCOM_CONS_BUFSIZE - ucom_cons_tx_low))
1288 temp = (UCOM_CONS_BUFSIZE - ucom_cons_tx_low);
1290 if (temp > len)
1291 temp = len;
1295 usbd_copy_in(pc, offset, ucom_cons_tx_buf + ucom_cons_tx_low, temp);
1299 ucom_cons_tx_low += temp;
1304 *actlen = temp;
1306 return (temp ? 1 : 0);
1357 unsigned int temp;
1361 temp = (UCOM_CONS_BUFSIZE - 1) - ucom_cons_rx_high + ucom_cons_rx_low;
1362 temp %= UCOM_CONS_BUFSIZE;
1366 if (temp > (UCOM_CONS_BUFSIZE - ucom_cons_rx_high))
1367 temp = (UCOM_CONS_BUFSIZE - ucom_cons_rx_high);
1369 if (temp > len)
1370 temp = len;
1374 usbd_copy_out(pc, offset, ucom_cons_rx_buf + ucom_cons_rx_high, temp);
1378 ucom_cons_rx_high += temp;
1549 unsigned int temp;
1560 temp = (UCOM_CONS_BUFSIZE - 1) - ucom_cons_tx_high + ucom_cons_tx_low;
1561 temp %= UCOM_CONS_BUFSIZE;
1563 if (temp) {
1578 if (temp == 0)