Lines Matching refs:fact
675 static int dma_subdivide(int dev, struct dma_buffparms *dmap, int fact) in dma_subdivide() argument
677 if (fact == 0) in dma_subdivide()
679 fact = dmap->subdivision; in dma_subdivide()
680 if (fact == 0) in dma_subdivide()
681 fact = 1; in dma_subdivide()
682 return fact; in dma_subdivide()
687 if (fact > MAX_REALTIME_FACTOR) in dma_subdivide()
690 if (fact != 1 && fact != 2 && fact != 4 && fact != 8 && fact != 16) in dma_subdivide()
693 dmap->subdivision = fact; in dma_subdivide()
694 return fact; in dma_subdivide()
697 static int dma_set_fragment(int dev, struct dma_buffparms *dmap, int fact) in dma_set_fragment() argument
701 if (fact == 0) in dma_set_fragment()
708 bytes = fact & 0xffff; in dma_set_fragment()
709 count = (fact >> 16) & 0x7fff; in dma_set_fragment()
756 int fact, ret, changed, bits, count, err; in dma_ioctl() local
763 if (get_user(fact, (int *)arg)) in dma_ioctl()
766 ret = dma_subdivide(dev, dmap_out, fact); in dma_ioctl()
772 ret = dma_subdivide(dev, dmap_in, fact); in dma_ioctl()
965 if (get_user(fact, (int *)arg)) in dma_ioctl()
968 ret = dma_set_fragment(dev, dmap_out, fact); in dma_ioctl()
974 ret = dma_set_fragment(dev, dmap_in, fact); in dma_ioctl()