Lines Matching refs:wpos
469 DSP_StoreData((DSPAddrInARM)&target->wpos, &pipe->wpos, sizeof(target->wpos)); 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()
527 u16 wpos = pipe->wpos; in DSP_ReadPipe() local
528 u16 phase = (u16)(rpos ^ wpos); in DSP_ReadPipe()
543 u16 end = (u16)((phase < 0x8000) ? (wpos & ~0x8000) : pipe->length); in DSP_ReadPipe()
584 u16 wpos = pipe->wpos; in DSP_WritePipe() local
585 u16 phase = (u16)(rpos ^ wpos); in DSP_WritePipe()
599 u16 pos = (u16)(wpos & ~0x8000); in DSP_WritePipe()
606 pipe->wpos = (u16)((pos + len < pipe->length) ? (wpos + len) : (~wpos & 0x8000)); in DSP_WritePipe()