Lines Matching refs:remaining
32 uint32_t remaining, rxlen; in bmi_read_memory() local
59 remaining = length; in bmi_read_memory()
61 while (remaining) { in bmi_read_memory()
62 rxlen = (remaining < BMI_DATASZ_MAX) ? in bmi_read_memory()
63 remaining : BMI_DATASZ_MAX; in bmi_read_memory()
81 if (remaining == rxlen) { in bmi_read_memory()
82 qdf_mem_copy(&buffer[length - remaining + align], in bmi_read_memory()
86 qdf_mem_copy(&buffer[length - remaining + align], in bmi_read_memory()
89 remaining -= rxlen; in bmi_read_memory()
103 uint32_t remaining, txlen; in bmi_write_memory() local
127 remaining = length; in bmi_write_memory()
128 while (remaining) { in bmi_write_memory()
129 src = &buffer[length - remaining]; in bmi_write_memory()
130 if (remaining < (BMI_DATASZ_MAX - header)) { in bmi_write_memory()
131 if (remaining & 3) { in bmi_write_memory()
133 remaining = remaining + (4 - (remaining & 3)); in bmi_write_memory()
134 memcpy(aligned_buffer, src, remaining); in bmi_write_memory()
137 txlen = remaining; in bmi_write_memory()
159 remaining -= txlen; in bmi_write_memory()