Lines Matching refs:total_len
1106 uint16_t total_len = 0;
1119 if ((pbuf_USERIAL_Read->len) <= (len - total_len))
1122 copy_len = (len - total_len);
1124 memcpy((p_data + total_len), current_packet, copy_len);
1126 total_len += copy_len;
1137 if (pbuf_USERIAL_Read == NULL && (total_len < len))
1140 } while ((pbuf_USERIAL_Read != NULL) && (total_len < len));
1143 ALOGD("%s: returned %d bytes", __func__, total_len);
1145 return total_len;