Lines Matching defs:dma
7 #include <linux/dma-mapping.h>
1615 static void *__test_alloc(struct nfit_test *t, size_t size, dma_addr_t *dma,
1623 if (!buf || !nfit_res || !*dma)
1632 nfit_res->res.start = *dma;
1633 nfit_res->res.end = *dma + size - 1;
1643 if (*dma && size >= DIMM_SIZE)
1644 gen_pool_free(nfit_pool, *dma, size);
1651 static void *test_alloc(struct nfit_test *t, size_t size, dma_addr_t *dma)
1659 *dma = gen_pool_alloc_algo(nfit_pool, size,
1662 *dma = (unsigned long) buf;
1663 return __test_alloc(t, size, dma, buf);