Lines Matching refs:hwptr_done
63 int i, len, lens = 0, hwptr_done = subs->hwptr_done; in usx2y_urb_capt_retire() local
83 if ((hwptr_done + len) > runtime->buffer_size) { in usx2y_urb_capt_retire()
84 cnt = runtime->buffer_size - hwptr_done; in usx2y_urb_capt_retire()
86 memcpy(runtime->dma_area + hwptr_done * usx2y->stride, cp, blen); in usx2y_urb_capt_retire()
89 memcpy(runtime->dma_area + hwptr_done * usx2y->stride, cp, in usx2y_urb_capt_retire()
93 hwptr_done += len; in usx2y_urb_capt_retire()
94 if (hwptr_done >= runtime->buffer_size) in usx2y_urb_capt_retire()
95 hwptr_done -= runtime->buffer_size; in usx2y_urb_capt_retire()
98 subs->hwptr_done = hwptr_done; in usx2y_urb_capt_retire()
181 subs->hwptr_done += len; in usx2y_urb_play_retire()
182 if (subs->hwptr_done >= runtime->buffer_size) in usx2y_urb_play_retire()
183 subs->hwptr_done -= runtime->buffer_size; in usx2y_urb_play_retire()
388 subs->hwptr_done = 0; in usx2y_subs_prepare()
550 return subs->hwptr_done; in snd_usx2y_pcm_pointer()