Lines Matching refs:wpos
467 DSP_StoreData((DSPAddrInARM)&target->wpos, &pipe->wpos, sizeof(target->wpos)); in DSP_FlushPipe()
484 return DSP_BYTE_TO_UNIT(((pipe->wpos - pipe->rpos) + in DSP_GetPipeReadableSize()
485 (((pipe->rpos ^ pipe->wpos) < 0x8000) ? 0 : pipe->length)) & ~0x8000); in DSP_GetPipeReadableSize()
499 return DSP_BYTE_TO_UNIT(((pipe->rpos - pipe->wpos) + in DSP_GetPipeWritableSize()
500 (((pipe->wpos ^ pipe->rpos) < 0x8000) ? 0 : pipe->length)) & ~0x8000); in DSP_GetPipeWritableSize()
525 u16 wpos = pipe->wpos; in DSP_ReadPipe() local
526 u16 phase = (u16)(rpos ^ wpos); in DSP_ReadPipe()
541 u16 end = (u16)((phase < 0x8000) ? (wpos & ~0x8000) : pipe->length); in DSP_ReadPipe()
582 u16 wpos = pipe->wpos; in DSP_WritePipe() local
583 u16 phase = (u16)(rpos ^ wpos); in DSP_WritePipe()
597 u16 pos = (u16)(wpos & ~0x8000); in DSP_WritePipe()
604 pipe->wpos = (u16)((pos + len < pipe->length) ? (wpos + len) : (~wpos & 0x8000)); in DSP_WritePipe()