Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a member:
Defined in 1 files as a function:
Referenced in 6 files:
- arch/powerpc/kvm/book3s_hv_builtin.c, line 62
- drivers/dma-buf/heaps/cma_heap.c, line 308
- drivers/s390/char/vmcp.c
- kernel/dma/contiguous.c
- mm/cma.c, line 960
- mm/cma_debug.c, line 138
Smatch caller information:
mm/cma_debug.c cma_alloc_mem() -> cma_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | count | 0-s32max,18446744071562067968-u64max |
| PARAM_VALUE | 2 | align | 0 |
| PARAM_VALUE | 3 | no_warn | 0 |
| BUF_SIZE | 0 | cma | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | cma | s32min-(-2),1-s32max |
| DATA_SOURCE | 0 | cma | $0 |
| DATA_SOURCE | 1 | count | $1 |
| USER_DATA | 1 | count | 0-s32max,18446744071562067968-u64max |
| LOCK2 | &attr->mutex | ||
| TYPE_LOCK | (struct simple_attr)->mutex |
kernel/dma/contiguous.c cma_alloc_aligned() -> cma_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cma | 1-u64max |
| PARAM_VALUE | 0 | cma->available_count | 0-s64max |
| PARAM_VALUE | 0 | cma->nranges | s32min-s32max |
| PARAM_VALUE | 1 | count | 0-4503599627370495 |
| PARAM_VALUE | 2 | align | 0-8 |
| CAPPED_DATA | 2 | align | 1 |
| DATA_SOURCE | 0 | cma | $0 |
| BIT_INFO | 3 | no_warn | 0x0,0x2000 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 1 | count | 0-3145729[c] |
| USER_DATA | 1 | count | 0-1048576[c] |
| NO_OVERFLOW_SIMPLE | 0 | cma->available_count | |
| UNITS | 1 | count | unit_page |
kernel/dma/contiguous.c dma_alloc_from_contiguous() -> cma_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cma | 0,4096-ptr_max |
| PARAM_VALUE | 1 | count | 0-4503599627370495,18446744071562067968-u64max |
| PARAM_VALUE | 2 | align | 0-8 |
| DATA_SOURCE | 1 | count | $1 |
| DATA_SOURCE | 2 | align | $2 [m] |
| DATA_SOURCE | 3 | no_warn | $3 |
| FUZZY_MAX | 2 | align | 8 |
| USER_DATA | 1 | count | 0-1572866[c] |
| UNITS | 1 | count | unit_page |
drivers/dma-buf/heaps/cma_heap.c cma_heap_allocate() -> cma_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | count | 0-4503599627370495 |
| PARAM_VALUE | 2 | align | 0-8 |
| PARAM_VALUE | 3 | no_warn | 0 |
| USER_DATA | 1 | count | 0-4503599627370495[c] |
| UNITS | 1 | count | unit_page |