Lines Matching refs:avail
288 int avail; member
1109 int avail = SNDRV_CTL_ELEM_ID_NAME_MAXLEN - ret - 2; in wm_adsp_create_control() local
1112 if (subname_len > avail) in wm_adsp_create_control()
1113 skip = subname_len - avail; in wm_adsp_create_control()
2977 int write_index, read_index, avail; in wm_adsp_buffer_update_avail() local
3005 avail = write_index - buf->read_index; in wm_adsp_buffer_update_avail()
3006 if (avail < 0) in wm_adsp_buffer_update_avail()
3007 avail += wm_adsp_buffer_size(buf); in wm_adsp_buffer_update_avail()
3010 buf->read_index, write_index, avail * WM_ADSP_DATA_WORD_SIZE); in wm_adsp_buffer_update_avail()
3012 buf->avail = avail; in wm_adsp_buffer_update_avail()
3117 if (buf->avail < wm_adsp_compr_frag_words(compr)) { in wm_adsp_compr_pointer()
3128 if (buf->avail < wm_adsp_compr_frag_words(compr)) { in wm_adsp_compr_pointer()
3148 tstamp->copied_total += buf->avail * WM_ADSP_DATA_WORD_SIZE; in wm_adsp_compr_pointer()
3184 if (nwords > buf->avail) in wm_adsp_buffer_capture_block()
3185 nwords = buf->avail; in wm_adsp_buffer_capture_block()
3216 buf->avail -= nwords; in wm_adsp_buffer_capture_block()