Lines Matching refs:rpos
465 DSP_StoreData((DSPAddrInARM)&target->rpos, &pipe->rpos, sizeof(target->rpos)); in DSP_FlushPipe()
488 return DSP_BYTE_TO_UNIT(((pipe->wpos - pipe->rpos) + in DSP_GetPipeReadableSize()
489 (((pipe->rpos ^ pipe->wpos) < 0x8000) ? 0 : pipe->length)) & ~0x8000); in DSP_GetPipeReadableSize()
503 return DSP_BYTE_TO_UNIT(((pipe->rpos - pipe->wpos) + in DSP_GetPipeWritableSize()
504 (((pipe->wpos ^ pipe->rpos) < 0x8000) ? 0 : pipe->length)) & ~0x8000); in DSP_GetPipeWritableSize()
528 u16 rpos = pipe->rpos; in DSP_ReadPipe() local
530 u16 phase = (u16)(rpos ^ wpos); in DSP_ReadPipe()
544 u16 pos = (u16)(rpos & ~0x8000); in DSP_ReadPipe()
551 pipe->rpos = (u16)((pos + len < pipe->length) ? (rpos + len) : (~rpos & 0x8000)); in DSP_ReadPipe()
585 u16 rpos = pipe->rpos; in DSP_WritePipe() local
587 u16 phase = (u16)(rpos ^ wpos); in DSP_WritePipe()
602 u16 end = (u16)((phase < 0x8000) ? pipe->length : (rpos & ~0x8000)); in DSP_WritePipe()