Lines Matching refs:nwords
3730 static void wm_adsp_remove_padding(u32 *buf, int nwords, int data_word_size)
3737 for (i = 0; i < nwords; i++) {
4245 int mem_type, nwords, max_read;
4261 nwords = buf->regions[i].cumulative_size - buf->read_index;
4263 if (nwords > target)
4264 nwords = target;
4265 if (nwords > buf->avail)
4266 nwords = buf->avail;
4267 if (nwords > max_read)
4268 nwords = max_read;
4269 if (!nwords)
4274 nwords, compr->raw_buf);
4278 wm_adsp_remove_padding(compr->raw_buf, nwords, WM_ADSP_DATA_WORD_SIZE);
4281 buf->read_index += nwords;
4291 buf->avail -= nwords;
4293 return nwords;
4301 int nwords, nbytes;
4313 nwords = wm_adsp_buffer_capture_block(compr, count);
4314 if (nwords < 0) {
4316 nwords);
4317 return nwords;
4320 nbytes = nwords * WM_ADSP_DATA_WORD_SIZE;
4330 count -= nwords;
4332 } while (nwords > 0 && count > 0);