Lines Matching refs:cnt
225 unsigned int cnt;
513 static void __dmatest_free_test_data(struct dmatest_data *d, unsigned int cnt)
517 for (i = 0; i < cnt; i++)
526 __dmatest_free_test_data(d, d->cnt);
534 d->raw = kcalloc(d->cnt + 1, sizeof(u8 *), GFP_KERNEL);
538 d->aligned = kcalloc(d->cnt + 1, sizeof(u8 *), GFP_KERNEL);
542 for (i = 0; i < d->cnt; i++) {
623 src->cnt = dst->cnt = 1;
627 src->cnt = dst->cnt = 1;
631 src->cnt = min_odd(params->xor_sources | 1, dev->max_xor);
632 dst->cnt = 1;
637 src->cnt = min_odd(params->pq_sources | 1, dma_maxpq(dev, 0));
638 dst->cnt = 2;
646 for (i = 0; i < src->cnt; i++)
652 if ((src->cnt + dst->cnt) >= 255) {
654 src->cnt + dst->cnt);
680 srcs = kcalloc(src->cnt, sizeof(dma_addr_t), GFP_KERNEL);
684 dma_pq = kcalloc(dst->cnt, sizeof(dma_addr_t), GFP_KERNEL);
749 um = dmaengine_get_unmap_data(dma_dev, src->cnt + dst->cnt,
759 for (i = 0; i < src->cnt; i++) {
776 dsts = &um->addr[src->cnt];
777 for (i = 0; i < dst->cnt; i++) {
805 srcs, src->cnt,
808 for (i = 0; i < dst->cnt; i++)
811 src->cnt, pq_coefs,
1026 int cnt;
1045 cnt = dmatest_add_threads(info, dtc, DMA_MEMCPY);
1046 thread_count += cnt > 0 ? cnt : 0;
1052 cnt = dmatest_add_threads(info, dtc, DMA_MEMSET);
1053 thread_count += cnt > 0 ? cnt : 0;
1058 cnt = dmatest_add_threads(info, dtc, DMA_XOR);
1059 thread_count += cnt > 0 ? cnt : 0;
1062 cnt = dmatest_add_threads(info, dtc, DMA_PQ);
1063 thread_count += cnt > 0 ? cnt : 0;