Function report | 
Source Code:kernel\dma\swiotlb.c | 
Create Date:2022-07-28 10:36:21 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Create a swiotlb mapping for the buffer at @phys, and in case of DMAing* to the device copy the data into it as well.
Proto:bool swiotlb_map(struct device *dev, phys_addr_t *phys, dma_addr_t *dma_addr, size_t size, enum dma_data_direction dir, unsigned long attrs)
Type:bool
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct device * | dev | |
| phys_addr_t * | phys | |
| dma_addr_t * | dma_addr | |
| size_t | size | |
| enum dma_data_direction | dir | |
| unsigned long | attrs | 
| 665 | trace_swiotlb_bounced(dev, * dma_addr, size, swiotlb_force) | 
| 668 | dev_warn_ratelimited(dev, "Cannot do DMA to address %pa\n", phys) | 
| 670 | Return false | 
| 676 | If phys == DMA_MAPPING_ERROR Then Return false | 
| 680 | dma_addr = __phys_to_dma(dev, * phys) | 
| 681 | If Value for the false possibility is greater at compile time(!dma_capable(dev, * dma_addr, size, true)) Then | 
| 684 | Return false | 
| 687 | Return true | 
| 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  |