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()
118 int threads = map->bparam.threads; in do_map_benchmark()
119 int node = map->bparam.node; in do_map_benchmark()
132 map->bparam.node, "dma-map-benchmark/%d", i); in do_map_benchmark()
157 msleep_interruptible(map->bparam.seconds * 1000); in do_map_benchmark()
179 map->bparam.avg_map_100ns = div64_u64(sum_map, loops); in do_map_benchmark()
180 map->bparam.avg_unmap_100ns = div64_u64(sum_unmap, loops); in do_map_benchmark()
184 map->bparam.avg_map_100ns * in do_map_benchmark()
185 map->bparam.avg_map_100ns; in do_map_benchmark()
187 map->bparam.avg_unmap_100ns * in do_map_benchmark()
188 map->bparam.avg_unmap_100ns; in do_map_benchmark()
189 map->bparam.map_stddev = int_sqrt64(map_variance); in do_map_benchmark()
190 map->bparam.unmap_stddev = int_sqrt64(unmap_variance); in do_map_benchmark()
207 if (copy_from_user(&map->bparam, argp, sizeof(map->bparam))) in map_benchmark_ioctl()
212 if (map->bparam.threads == 0 || in map_benchmark_ioctl()
213 map->bparam.threads > DMA_MAP_MAX_THREADS) { in map_benchmark_ioctl()
218 if (map->bparam.seconds == 0 || in map_benchmark_ioctl()
219 map->bparam.seconds > DMA_MAP_MAX_SECONDS) { in map_benchmark_ioctl()
224 if (map->bparam.dma_trans_ns > DMA_MAP_MAX_TRANS_DELAY) { in map_benchmark_ioctl()
229 if (map->bparam.node != NUMA_NO_NODE && in map_benchmark_ioctl()
230 (map->bparam.node < 0 || map->bparam.node >= MAX_NUMNODES || in map_benchmark_ioctl()
231 !node_possible(map->bparam.node))) { in map_benchmark_ioctl()
236 if (map->bparam.granule < 1 || map->bparam.granule > 1024) { in map_benchmark_ioctl()
241 switch (map->bparam.dma_dir) { in map_benchmark_ioctl()
259 DMA_BIT_MASK(map->bparam.dma_bits)); in map_benchmark_ioctl()
283 if (copy_to_user(argp, &map->bparam, sizeof(map->bparam))) in map_benchmark_ioctl()