Lines Matching refs:fragments
792 info.fragments = dmap->qlen; in dma_ioctl()
796 info.fragments = 0; in dma_ioctl()
799 info.fragments = DMAbuf_space_in_queue(dev); in dma_ioctl()
803 if (tmp && info.fragments) in dma_ioctl()
807 info.fragments -= tmp; in dma_ioctl()
811 if (info.fragments < 0) in dma_ioctl()
812 info.fragments = 0; in dma_ioctl()
813 else if (info.fragments > dmap->nbufs) in dma_ioctl()
814 info.fragments = dmap->nbufs; 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()