Lines Matching defs:temp

904 	unsigned int temp;
908 temp = ucom_cons_tx_high - ucom_cons_tx_low;
909 temp %= UCOM_CONS_BUFSIZE;
911 if (temp > len)
912 temp = len;
915 if (temp > (UCOM_CONS_BUFSIZE - ucom_cons_tx_low)){
918 usbd_copy_in(pc, offset+fisrt_len, ucom_cons_tx_buf, temp-fisrt_len);
919 PRINTK("len1 : %d ; len2 : %d \n", fisrt_len, temp);
921 usbd_copy_in(pc, offset, ucom_cons_tx_buf + ucom_cons_tx_low, temp);
924 ucom_cons_tx_low += temp;
929 *actlen = temp;
931 return (temp ? 1 : 0);
939 unsigned int temp;
943 temp = (UCOM_CONS_BUFSIZE - 1) - ucom_cons_rx_high + ucom_cons_rx_low;
944 temp %= UCOM_CONS_BUFSIZE;
946 if (temp > len)
947 temp = len;
950 if (temp > (UCOM_CONS_BUFSIZE - ucom_cons_rx_high)){
953 usbd_copy_out(pc, offset+first_len, ucom_cons_rx_buf, temp-first_len);
956 usbd_copy_out(pc, offset, ucom_cons_rx_buf + ucom_cons_rx_high, temp);
959 ucom_cons_rx_high += temp;
1024 unsigned int temp;
1033 temp = (UCOM_CONS_BUFSIZE - 1) - ucom_cons_tx_high + ucom_cons_tx_low;
1034 temp %= UCOM_CONS_BUFSIZE;
1036 if (temp >= len)
1037 temp = len;
1040 if (temp > (UCOM_CONS_BUFSIZE - ucom_cons_tx_high)){
1041 temp = (UCOM_CONS_BUFSIZE - ucom_cons_tx_high);
1043 ret = usbd_copy_from_user(ucom_cons_tx_buf + ucom_cons_tx_high, temp, tx_data, temp);
1050 (const void *)((char *)tx_data + temp), len - temp);
1390 unsigned int temp;
1393 temp = ucom_cons_rx_high - ucom_cons_rx_low;
1394 temp %= UCOM_CONS_BUFSIZE;
1396 if (temp > buflen)
1397 temp = buflen;
1400 if (temp > (UCOM_CONS_BUFSIZE - ucom_cons_rx_low)) {
1409 ucom_cons_rx_buf, temp - fisrt_len);
1415 PRINTK("len1 : %d ; len2 : %d \n", fisrt_len, temp);
1417 ret = usbd_copy_to_user(buffer, buflen, ucom_cons_rx_buf + ucom_cons_rx_low, temp);
1426 ucom_cons_rx_low += temp;
1430 read_len = temp;