Lines Matching refs:bparam

23 	struct map_benchmark bparam;  member
39 int npages = map->bparam.granule; in map_benchmark_thread()
73 ndelay(map->bparam.dma_trans_ns); in map_benchmark_thread()
102 int threads = map->bparam.threads; in do_map_benchmark()
103 int node = map->bparam.node; in do_map_benchmark()
117 map->bparam.node, "dma-map-benchmark/%d", i); in do_map_benchmark()
140 msleep_interruptible(map->bparam.seconds * 1000); in do_map_benchmark()
158 map->bparam.avg_map_100ns = div64_u64(sum_map, loops); in do_map_benchmark()
159 map->bparam.avg_unmap_100ns = div64_u64(sum_unmap, loops); in do_map_benchmark()
163 map->bparam.avg_map_100ns * in do_map_benchmark()
164 map->bparam.avg_map_100ns; in do_map_benchmark()
166 map->bparam.avg_unmap_100ns * in do_map_benchmark()
167 map->bparam.avg_unmap_100ns; in do_map_benchmark()
168 map->bparam.map_stddev = int_sqrt64(map_variance); in do_map_benchmark()
169 map->bparam.unmap_stddev = int_sqrt64(unmap_variance); in do_map_benchmark()
188 if (copy_from_user(&map->bparam, argp, sizeof(map->bparam))) in map_benchmark_ioctl()
193 if (map->bparam.threads == 0 || in map_benchmark_ioctl()
194 map->bparam.threads > DMA_MAP_MAX_THREADS) { in map_benchmark_ioctl()
199 if (map->bparam.seconds == 0 || in map_benchmark_ioctl()
200 map->bparam.seconds > DMA_MAP_MAX_SECONDS) { in map_benchmark_ioctl()
205 if (map->bparam.dma_trans_ns > DMA_MAP_MAX_TRANS_DELAY) { in map_benchmark_ioctl()
210 if (map->bparam.node != NUMA_NO_NODE && in map_benchmark_ioctl()
211 !node_possible(map->bparam.node)) { in map_benchmark_ioctl()
216 if (map->bparam.granule < 1 || map->bparam.granule > 1024) { in map_benchmark_ioctl()
221 switch (map->bparam.dma_dir) { in map_benchmark_ioctl()
239 DMA_BIT_MASK(map->bparam.dma_bits)); in map_benchmark_ioctl()
260 if (copy_to_user(argp, &map->bparam, sizeof(map->bparam))) in map_benchmark_ioctl()