Home
last modified time | relevance | path

Searched refs:dma_max_seg_size (Results 1 – 1 of 1) sorted by relevance

/Linux-v6.1/drivers/misc/habanalabs/common/
Dmemory.c1551 u64 chunk_size, bar_address, dma_max_seg_size; in alloc_sgt_from_device_pages() local
1559 dma_max_seg_size = dma_get_max_seg_size(dev); in alloc_sgt_from_device_pages()
1565 dma_max_seg_size = ALIGN_DOWN(dma_max_seg_size, PAGE_SIZE); in alloc_sgt_from_device_pages()
1566 if (dma_max_seg_size < PAGE_SIZE) { in alloc_sgt_from_device_pages()
1569 dma_max_seg_size); in alloc_sgt_from_device_pages()
1582 if (page_size > dma_max_seg_size) in alloc_sgt_from_device_pages()
1583 nents = npages * DIV_ROUND_UP_ULL(page_size, dma_max_seg_size); in alloc_sgt_from_device_pages()
1588 chunk_size + page_size > dma_max_seg_size) { in alloc_sgt_from_device_pages()
1603 if (page_size > dma_max_seg_size) { in alloc_sgt_from_device_pages()
1616 cur_device_address += dma_max_seg_size; in alloc_sgt_from_device_pages()
[all …]