Function report |
Source Code:include\linux\dma-mapping.h |
Create Date:2022-07-28 05:51:44 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:dma_map_resource
Proto:static inline dma_addr_t dma_map_resource(struct device *dev, phys_addr_t phys_addr, size_t size, enum dma_data_direction dir, unsigned long attrs)
Type:dma_addr_t
Parameter:
Type | Parameter | Name |
---|---|---|
struct device * | dev | |
phys_addr_t | phys_addr | |
size_t | size | |
enum dma_data_direction | dir | |
unsigned long | attrs |
346 | ops = get_dma_ops(dev) |
347 | addr = DMA_MAPPING_ERROR |
349 | BUG_ON(!valid_dma_direction(dir)) |
352 | If WARN_ON_ONCE(pfn_valid(PHYS_PFN(phys_addr))) Then Return DMA_MAPPING_ERROR |
355 | If dma_is_direct(ops) Then addr = dma_direct_map_resource(dev, phys_addr, size, dir, attrs) |
357 | Else if map_resource Then addr = map_resource(dev, phys_addr, size, dir, attrs) |
361 | Return addr |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |