Lines Matching refs:redzone

363 	int redzone, redfrags;  in prog_dmabuf()  local
398 redzone = ymf_calc_lend(state->format.rate); in prog_dmabuf()
399 redzone <<= state->format.shift; in prog_dmabuf()
400 redzone *= 3; in prog_dmabuf()
401 redfrags = (redzone + dmabuf->fragsize-1) >> dmabuf->fragshift; in prog_dmabuf()
598 int redzone; in ymf_pcm_interrupt() local
622 redzone = ymf_calc_lend(state->format.rate); in ymf_pcm_interrupt()
623 redzone <<= (state->format.shift + 1); in ymf_pcm_interrupt()
656 if (distance < redzone) { in ymf_pcm_interrupt()
710 int redzone; in ymf_cap_interrupt() local
726 redzone = ymf_calc_lend(state->format.rate); in ymf_cap_interrupt()
727 redzone <<= (state->format.shift + 1); in ymf_cap_interrupt()
747 if (cnt + redzone > dmabuf->dmasize) { in ymf_cap_interrupt()
749 dmabuf->count = dmabuf->dmasize - redzone; in ymf_cap_interrupt()
750 dmabuf->swptr = dmabuf->hwptr + redzone; in ymf_cap_interrupt()
1339 int redzone; in ymf_write() local
1359 redzone = ymf_calc_lend(state->format.rate) << state->format.shift; in ymf_write()
1360 redzone *= 3; /* 2 redzone + 1 possible uncertainty reserve. */ in ymf_write()
1405 if (dmabuf->count + cnt > dmabuf->dmasize - redzone) in ymf_write()
1406 cnt = (dmabuf->dmasize - redzone) - dmabuf->count; in ymf_write()
1483 int redzone; in ymf_poll() local
1499 redzone = ymf_calc_lend(state->format.rate); in ymf_poll()
1500 redzone <<= state->format.shift; in ymf_poll()
1501 redzone *= 3; in ymf_poll()
1512 if (dmabuf->count + redzone + dmabuf->fragsize in ymf_poll()
1560 int redzone; in ymf_ioctl() local
1784 redzone = ymf_calc_lend(state->format.rate); in ymf_ioctl()
1785 redzone <<= state->format.shift; in ymf_ioctl()
1786 redzone *= 3; in ymf_ioctl()
1789 abinfo.bytes = dmabuf->dmasize - dmabuf->count - redzone; in ymf_ioctl()