Lines Matching refs:nwords
1927 int mem_type, nwords, max_read; in wm_adsp_buffer_capture_block() local
1943 nwords = buf->regions[i].cumulative_size - buf->read_index; in wm_adsp_buffer_capture_block()
1945 if (nwords > target) in wm_adsp_buffer_capture_block()
1946 nwords = target; in wm_adsp_buffer_capture_block()
1947 if (nwords > buf->avail) in wm_adsp_buffer_capture_block()
1948 nwords = buf->avail; in wm_adsp_buffer_capture_block()
1949 if (nwords > max_read) in wm_adsp_buffer_capture_block()
1950 nwords = max_read; in wm_adsp_buffer_capture_block()
1951 if (!nwords) in wm_adsp_buffer_capture_block()
1956 nwords, (__be32 *)compr->raw_buf); in wm_adsp_buffer_capture_block()
1960 cs_dsp_remove_padding(compr->raw_buf, nwords); in wm_adsp_buffer_capture_block()
1963 buf->read_index += nwords; in wm_adsp_buffer_capture_block()
1973 buf->avail -= nwords; in wm_adsp_buffer_capture_block()
1975 return nwords; in wm_adsp_buffer_capture_block()
1983 int nwords, nbytes; in wm_adsp_compr_read() local
1995 nwords = wm_adsp_buffer_capture_block(compr, count); in wm_adsp_compr_read()
1996 if (nwords < 0) { in wm_adsp_compr_read()
1998 nwords); in wm_adsp_compr_read()
1999 return nwords; in wm_adsp_compr_read()
2002 nbytes = nwords * CS_DSP_DATA_WORD_SIZE; in wm_adsp_compr_read()
2012 count -= nwords; in wm_adsp_compr_read()
2014 } while (nwords > 0 && count > 0); in wm_adsp_compr_read()