Lines Matching refs:fragment_size

140 	if (dmap->fragment_size <= 0)  in sync_output()
146 if ((l = dmap->user_counter % dmap->fragment_size) > 0) in sync_output()
151 len = dmap->fragment_size - l; in sync_output()
166 if (((dmap->raw_buf + p * dmap->fragment_size) + dmap->fragment_size) > in sync_output()
170 memset(dmap->raw_buf + p * dmap->fragment_size, in sync_output()
172 dmap->fragment_size); in sync_output()
399 if (audio_devs[dev]->dmap_out->fragment_size == 0) in audio_ioctl()
409 if (audio_devs[dev]->dmap_out->fragment_size == 0) in audio_ioctl()
522 if (count < dmap->fragment_size && dmap->qhead != 0) in audio_ioctl()
584 if (dmap->fragment_size == 0) in reorganize_buffers()
621 dmap->fragment_size = bsz; in reorganize_buffers()
629 if (dmap->fragment_size > (dmap->buffsize / 2)) in reorganize_buffers()
630 dmap->fragment_size = (dmap->buffsize / 2); in reorganize_buffers()
631 bsz = dmap->fragment_size; in reorganize_buffers()
658 dmap->fragment_size = bsz; in reorganize_buffers()
684 if (dmap->subdivision != 0 || dmap->fragment_size) /* Too late to change */ in dma_subdivide()
705 dmap->fragment_size) /* Too late to change */ in dma_set_fragment()
735 dmap->fragment_size = (1 << bytes); in dma_set_fragment()
738 if (dmap->fragment_size > dmap->buffsize) in dma_set_fragment()
739 dmap->fragment_size = dmap->buffsize; in dma_set_fragment()
741 if (dmap->fragment_size == dmap->buffsize && in dma_set_fragment()
743 dmap->fragment_size /= 2; /* Needs at least 2 buffers */ in dma_set_fragment()
816 info.fragsize = dmap->fragment_size; in dma_ioctl()
817 info.bytes = info.fragments * dmap->fragment_size; in dma_ioctl()
823 info.fragments = info.bytes / dmap->fragment_size; in dma_ioctl()
824 info.bytes -= dmap->user_counter % dmap->fragment_size; in dma_ioctl()
846 dmap_in->fragment_size, dmap_in->nbufs)) < 0) { in dma_ioctl()
862 dmap_out->counts[dmap_out->qhead] = dmap_out->fragment_size; in dma_ioctl()
891 if (cinfo.ptr < dmap_in->fragment_size && dmap_in->qtail != 0) in dma_ioctl()
910 if (cinfo.ptr < dmap_out->fragment_size && dmap_out->qhead != 0) in dma_ioctl()
933 if (count < dmap_out->fragment_size && dmap_out->qhead != 0) in dma_ioctl()
960 ret = dmap->fragment_size; in dma_ioctl()