Lines Matching refs:rpos
465 DSP_StoreData((DSPAddrInARM)&target->rpos, &pipe->rpos, sizeof(target->rpos)); in DSP_FlushPipe()
486 return DSP_BYTE_TO_UNIT(((pipe->wpos - pipe->rpos) + in DSP_GetPipeReadableSize()
487 (((pipe->rpos ^ pipe->wpos) < 0x8000) ? 0 : pipe->length)) & ~0x8000); in DSP_GetPipeReadableSize()
501 return DSP_BYTE_TO_UNIT(((pipe->rpos - pipe->wpos) + in DSP_GetPipeWritableSize()
502 (((pipe->wpos ^ pipe->rpos) < 0x8000) ? 0 : pipe->length)) & ~0x8000); in DSP_GetPipeWritableSize()
526 u16 rpos = pipe->rpos; in DSP_ReadPipe() local
528 u16 phase = (u16)(rpos ^ wpos); in DSP_ReadPipe()
542 u16 pos = (u16)(rpos & ~0x8000); in DSP_ReadPipe()
549 pipe->rpos = (u16)((pos + len < pipe->length) ? (rpos + len) : (~rpos & 0x8000)); in DSP_ReadPipe()
583 u16 rpos = pipe->rpos; in DSP_WritePipe() local
585 u16 phase = (u16)(rpos ^ wpos); in DSP_WritePipe()
600 u16 end = (u16)((phase < 0x8000) ? pipe->length : (rpos & ~0x8000)); in DSP_WritePipe()