Searched refs:bar_address (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/accel/habanalabs/common/ |
H A D | memory.c | 1515 static int set_dma_sg(struct scatterlist *sg, u64 bar_address, u64 chunk_size, in set_dma_sg() argument 1521 addr = dma_map_resource(dev, bar_address, chunk_size, dir, in set_dma_sg() 1538 u64 chunk_size, bar_address, dma_max_seg_size, cur_size_to_export, cur_npages; in alloc_sgt_from_device_pages() local 1616 bar_address = hdev->dram_pci_bar_start + cur_device_address; in alloc_sgt_from_device_pages() 1618 rc = set_dma_sg(sg, bar_address, chunk_size, dev, dir); in alloc_sgt_from_device_pages() 1643 bar_address = hdev->dram_pci_bar_start + in alloc_sgt_from_device_pages() 1648 rc = set_dma_sg(sg, bar_address, chunk_size, dev, dir); in alloc_sgt_from_device_pages() 1901 u64 bar_address; in validate_export_params_no_mmu() local 1917 bar_address = hdev->dram_pci_bar_start + (device_addr - prop->dram_base_address); in validate_export_params_no_mmu() 1919 if ((bar_address + size) > (hdev->dram_pci_bar_start + prop->dram_pci_bar_size) || in validate_export_params_no_mmu() [all …]
|