Lines Matching refs:total_len
1144 UINT16 total_len = 0;
1157 if ((pbuf_USERIAL_Read->len) <= (len - total_len))
1160 copy_len = (len - total_len);
1162 memcpy((p_data + total_len), current_packet, copy_len);
1164 total_len += copy_len;
1176 if (pbuf_USERIAL_Read == NULL && (total_len < len))
1179 } while ((pbuf_USERIAL_Read != NULL) && (total_len < len));
1182 ALOGD( "%s: returned %d bytes", __func__, total_len);
1184 return total_len;