| 1457 | } |
| 1458 | |
| 1459 | int |
| 1460 | iflib_dma_alloc_multi(if_ctx_t ctx, int *sizes, iflib_dma_info_t *dmalist, int mapflags, int count) |
| 1461 | { |
| 1462 | int i, err; |
| 1463 | iflib_dma_info_t *dmaiter; |
| 1464 | |
| 1465 | dmaiter = dmalist; |
| 1466 | for (i = 0; i < count; i++, dmaiter++) { |
| 1467 | if ((err = iflib_dma_alloc(ctx, sizes[i], *dmaiter, mapflags)) != 0) |
| 1468 | break; |
| 1469 | } |
| 1470 | if (err) |
| 1471 | iflib_dma_free_multi(dmalist, i); |
| 1472 | return (err); |
| 1473 | } |
| 1474 | |
| 1475 | void |
| 1476 | iflib_dma_free(iflib_dma_info_t dma) |
nothing calls this directly
no test coverage detected