Lines Matching refs:i

302 	int i;  in ioat_dma_self_test()  local
326 for (i = 0; i < IOAT_TEST_SIZE; i++) in ioat_dma_self_test()
327 src[i] = (u8)i; in ioat_dma_self_test()
409 int i, j, msixcnt; in ioat_dma_setup_interrupts() local
425 for (i = 0; i < msixcnt; i++) in ioat_dma_setup_interrupts()
426 ioat_dma->msix_entries[i].entry = i; in ioat_dma_setup_interrupts()
432 for (i = 0; i < msixcnt; i++) { in ioat_dma_setup_interrupts()
433 msix = &ioat_dma->msix_entries[i]; in ioat_dma_setup_interrupts()
434 ioat_chan = ioat_chan_by_index(ioat_dma, i); in ioat_dma_setup_interrupts()
439 for (j = 0; j < i; j++) { in ioat_dma_setup_interrupts()
571 int i; in ioat_enumerate_channels() local
587 for (i = 0; i < dma->chancnt; i++) { in ioat_enumerate_channels()
592 ioat_init_channel(ioat_dma, ioat_chan, i); in ioat_enumerate_channels()
596 i = 0; in ioat_enumerate_channels()
600 dma->chancnt = i; in ioat_enumerate_channels()
614 int i; in ioat_free_chan_resources() local
638 for (i = 0; i < descs; i++) { in ioat_free_chan_resources()
639 desc = ioat_get_ring_ent(ioat_chan, ioat_chan->head + i); in ioat_free_chan_resources()
647 for (i = 0; i < total_descs - descs; i++) { in ioat_free_chan_resources()
648 desc = ioat_get_ring_ent(ioat_chan, ioat_chan->tail + i); in ioat_free_chan_resources()
653 for (i = 0; i < ioat_chan->desc_chunks; i++) { in ioat_free_chan_resources()
655 ioat_chan->descs[i].virt, in ioat_free_chan_resources()
656 ioat_chan->descs[i].hw); in ioat_free_chan_resources()
657 ioat_chan->descs[i].virt = NULL; in ioat_free_chan_resources()
658 ioat_chan->descs[i].hw = 0; in ioat_free_chan_resources()
684 int i = 0; in ioat_alloc_chan_resources() local
751 } while (i++ < 20 && !is_ioat_active(status) && !is_ioat_idle(status)); in ioat_alloc_chan_resources()
785 int i, src_idx; in ioat_xor_val_self_test() local
829 for (i = 0; i < PAGE_SIZE; i++) in ioat_xor_val_self_test()
830 ptr[i] = (1 << src_idx); in ioat_xor_val_self_test()
857 for (i = 0; i < IOAT_NUM_SRC_TEST; i++) { in ioat_xor_val_self_test()
858 dma_srcs[i] = dma_map_page(dev, xor_srcs[i], 0, PAGE_SIZE, in ioat_xor_val_self_test()
860 if (dma_mapping_error(dev, dma_srcs[i])) { in ioat_xor_val_self_test()
896 for (i = 0; i < IOAT_NUM_SRC_TEST; i++) in ioat_xor_val_self_test()
897 dma_unmap_page(dev, dma_srcs[i], PAGE_SIZE, DMA_TO_DEVICE); in ioat_xor_val_self_test()
900 for (i = 0; i < (PAGE_SIZE / sizeof(u32)); i++) { in ioat_xor_val_self_test()
903 if (ptr[i] != cmp_word) { in ioat_xor_val_self_test()
920 for (i = 0; i < IOAT_NUM_SRC_TEST; i++) in ioat_xor_val_self_test()
921 xor_val_srcs[i] = xor_srcs[i]; in ioat_xor_val_self_test()
922 xor_val_srcs[i] = dest; in ioat_xor_val_self_test()
926 for (i = 0; i < IOAT_NUM_SRC_TEST + 1; i++) { in ioat_xor_val_self_test()
927 dma_srcs[i] = dma_map_page(dev, xor_val_srcs[i], 0, PAGE_SIZE, in ioat_xor_val_self_test()
929 if (dma_mapping_error(dev, dma_srcs[i])) { in ioat_xor_val_self_test()
964 for (i = 0; i < IOAT_NUM_SRC_TEST + 1; i++) in ioat_xor_val_self_test()
965 dma_unmap_page(dev, dma_srcs[i], PAGE_SIZE, DMA_TO_DEVICE); in ioat_xor_val_self_test()
979 for (i = 0; i < IOAT_NUM_SRC_TEST + 1; i++) { in ioat_xor_val_self_test()
980 dma_srcs[i] = dma_map_page(dev, xor_val_srcs[i], 0, PAGE_SIZE, in ioat_xor_val_self_test()
982 if (dma_mapping_error(dev, dma_srcs[i])) { in ioat_xor_val_self_test()
1023 for (i = 0; i < IOAT_NUM_SRC_TEST + 1; i++) in ioat_xor_val_self_test()
1024 dma_unmap_page(dev, dma_srcs[i], PAGE_SIZE, DMA_TO_DEVICE); in ioat_xor_val_self_test()
1029 while (--i >= 0) in ioat_xor_val_self_test()
1030 dma_unmap_page(dev, dma_srcs[i], PAGE_SIZE, in ioat_xor_val_self_test()
1034 while (--i >= 0) in ioat_xor_val_self_test()
1035 dma_unmap_page(dev, dma_srcs[i], PAGE_SIZE, in ioat_xor_val_self_test()
1156 int i; in ioat3_dma_probe() local
1158 for (i = 0; i < MAX_SED_POOLS; i++) { in ioat3_dma_probe()
1159 snprintf(pool_name, 14, "ioat_hw%d_sed", i); in ioat3_dma_probe()
1162 ioat_dma->sed_hw_pool[i] = dmam_pool_create(pool_name, in ioat3_dma_probe()
1164 SED_SIZE * (i + 1), 64, 0); in ioat3_dma_probe()
1165 if (!ioat_dma->sed_hw_pool[i]) in ioat3_dma_probe()
1215 int i; in ioat_shutdown() local
1220 for (i = 0; i < IOAT_MAX_CHANS; i++) { in ioat_shutdown()
1221 ioat_chan = ioat_dma->idx[i]; in ioat_shutdown()
1247 int i; in ioat_resume() local
1249 for (i = 0; i < IOAT_MAX_CHANS; i++) { in ioat_resume()
1250 ioat_chan = ioat_dma->idx[i]; in ioat_resume()
1326 int i; in release_ioatdma() local
1328 for (i = 0; i < IOAT_MAX_CHANS; i++) in release_ioatdma()
1329 kfree(d->idx[i]); in release_ioatdma()