Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\dma\debug.c Create Date:2022-07-28 10:35:26
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:debug_dma_map_resource

Proto:void debug_dma_map_resource(struct device *dev, phys_addr_t addr, size_t size, int direction, dma_addr_t dma_addr)

Type:void

Parameter:

TypeParameterName
struct device *dev
phys_addr_taddr
size_tsize
intdirection
dma_addr_tdma_addr
1497  If Value for the false possibility is greater at compile time(dma_debug_disabled()) Then Return
1500  entry = struct dma_entry allocator* The next two functions implement the allocator for* struct dma_debug_entries.
1501  If Not entry Then Return
1504  type = dma_debug_resource
1505  dev = dev
1506  pfn = PHYS_PFN(addr)
1507  offset = offset_in_page(addr)
1508  size = size
1509  dev_addr = dma_addr
1510  direction = direction
1511  map_err_type = MAP_ERR_NOT_CHECKED
1513  Wrapper function for adding an entry to the hash.* This function takes care of locking itself.