Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
kernel/dma/direct.c dma_direct_alloc() -> __dma_direct_alloc_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->dma_io_tlb_mem | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->dma_io_tlb_mem->for_alloc | 0 |
| PARAM_VALUE | 0 | dev->dma_mem | 0 |
| PARAM_VALUE | 0 | dev->flags | 4096-ptr_max |
| PARAM_VALUE | 1 | size | 0,4096-u64max |
| PARAM_VALUE | 2 | gfp | 0,8-u32max |
| DATA_SOURCE | 0 | dev | $0 |
| BIT_INFO | 1 | size | 0x0,0xfffffffffffff000 |
| BIT_INFO | 1 | size | 0x0,0xfffffffffffff000 |
| BIT_INFO | 2 | gfp | 0x0,0xfffbfef8 |
kernel/dma/direct.c dma_direct_alloc_no_mapping() -> __dma_direct_alloc_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->dma_io_tlb_mem | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->dma_io_tlb_mem->for_alloc | 0 |
| PARAM_VALUE | 0 | dev->dma_mem | 0 |
| PARAM_VALUE | 0 | dev->flags | 4096-ptr_max |
| PARAM_VALUE | 1 | size | 0,4096-u64max |
| PARAM_VALUE | 2 | gfp | 0,8-u32max |
| PARAM_VALUE | 3 | allow_highmem | 1 |
| DATA_SOURCE | 0 | dev | $0 |
| DATA_SOURCE | 1 | size | $1 |
| BIT_INFO | 1 | size | 0x0,0xfffffffffffff000 |
| BIT_INFO | 1 | size | 0x0,0xfffffffffffff000 |
| BIT_INFO | 2 | gfp | 0x0,0xfffbfef8 |
kernel/dma/direct.c dma_direct_alloc_pages() -> __dma_direct_alloc_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->cma_area->available_count | 0-s64max |
| PARAM_VALUE | 0 | dev->cma_area->nranges | s32min-s32max |
| PARAM_VALUE | 0 | dev->coherent_dma_mask | 1-u64max |
| PARAM_VALUE | 0 | dev->dma_io_tlb_mem | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->dma_io_tlb_mem->for_alloc | 0 |
| PARAM_VALUE | 0 | dev->flags | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->iommu_group->default_domain | 0-s64max |
| PARAM_VALUE | 1 | size | 0,4096-u64max |
| PARAM_VALUE | 2 | gfp | 0,64-u32max |
| PARAM_VALUE | 3 | allow_highmem | 0 |
| CAPPED_DATA | 2 | gfp | 1 |
| DATA_SOURCE | 0 | dev | $0 |
| DATA_SOURCE | 1 | size | $1 |
| DATA_SOURCE | 2 | gfp | $4 |
| BIT_INFO | 1 | size | 0x0,0xfffffffffffff000 |
| BIT_INFO | 1 | size | 0x0,0xfffffffffffff000 |
| BIT_INFO | 2 | gfp | 0x0,0xfffbfff8 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 1 | size | 0,4096-12884905984[c] |
| USER_DATA | 1 | size | 0,4096-4294967296[c] |
| NO_OVERFLOW_SIMPLE | 0 | dev->cma_area->available_count | |
| UNITS | 0 | dev | unit_byte |
| UNITS | 1 | size | unit_byte |