Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 7 files:
- arch/powerpc/kvm/book3s_hv_builtin.c, line 69
- drivers/dma-buf/heaps/cma_heap.c
- drivers/s390/char/vmcp.c, line 92
- include/trace/events/cma.h, line 11
- kernel/dma/contiguous.c
- mm/cma.c, line 1040
- mm/cma_debug.c
Smatch caller information:
mm/cma_debug.c cma_free_mem() -> cma_release()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cma | 4096-ptr_max |
| PARAM_VALUE | 0 | cma->mem_head.first | 1-u64max |
| PARAM_VALUE | 0 | cma->mem_head_lock.rlock.dep_map->name | 0-255 |
| BUF_SIZE | 0 | cma | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | cma | s32min-(-2),1-s32max |
| CAPPED_DATA | 2 | count | 1 |
| CAPPED_DATA | 2 | count | 1 |
| DATA_SOURCE | 0 | cma | $0 |
| NOCHECK_CALL | |||
| UNITS | 2 | count | unit_page |
| LOCK2 | &attr->mutex | ||
| TYPE_LOCK | (struct simple_attr)->mutex |
mm/cma_debug.c cma_free_mem() -> cma_release()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cma | 4096-ptr_max |
| PARAM_VALUE | 0 | cma->mem_head.first | 1-u64max |
| PARAM_VALUE | 0 | cma->mem_head_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | cma->order_per_bit | 0 |
| PARAM_VALUE | 2 | count | 1-s32max,18446744071562067968-18446744073709551614 |
| BUF_SIZE | 0 | cma | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | cma | s32min-(-2),1-s32max |
| CAPPED_DATA | 2 | count | 1 |
| DATA_SOURCE | 0 | cma | $0 |
| DATA_SOURCE | 2 | count | $1 |
| NOCHECK_CALL | |||
| USER_DATA | 2 | count | 1-s32max[c] |
| UNITS | 2 | count | unit_page |
| LOCK2 | &attr->mutex | ||
| TYPE_LOCK | (struct simple_attr)->mutex |
kernel/dma/contiguous.c dma_free_contiguous() -> cma_release()
| 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 |
| DATA_SOURCE | 1 | pages | $1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 2 | count | 0[c] |
| USER_DATA | 2 | count | 0-1048576[c] |
| NO_OVERFLOW_SIMPLE | 0 | cma->available_count | |
| UNITS | 2 | count | unit_page |
kernel/dma/contiguous.c dma_free_contiguous() -> cma_release()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | pages | 4096-ptr_max |
| PARAM_VALUE | 1 | pages->flags.f | 0-18446744073709551614 |
| DATA_SOURCE | 1 | pages | $1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 2 | count | 0[c] |
| USER_DATA | 2 | count | 0-1048576[c] |
| UNITS | 2 | count | unit_page |
kernel/dma/contiguous.c dma_free_contiguous() -> cma_release()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | pages | 4096-ptr_max |
| PARAM_VALUE | 1 | pages->flags.f | 0-18446744073709551614 |
| DATA_SOURCE | 1 | pages | $1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 2 | count | 0[c] |
| USER_DATA | 2 | count | 0-1048576[c] |
| UNITS | 2 | count | unit_page |
kernel/dma/contiguous.c dma_release_from_contiguous() -> cma_release()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cma | 0,4096-ptr_max |
| PARAM_VALUE | 1 | pages | 1-u64max |
| PARAM_VALUE | 2 | count | 0-s32max,18446744071562067968-u64max |
| DATA_SOURCE | 1 | pages | $1 |
| DATA_SOURCE | 2 | count | $2 |
| USER_DATA | 2 | count | 2-1572866[c] |
| UNITS | 2 | count | unit_page |
drivers/dma-buf/heaps/cma_heap.c cma_heap_allocate() -> cma_release()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cma | 4096-ptr_max |
| PARAM_VALUE | 0 | cma->alloc_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | cma->alloc_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | cma->alloc_mutex.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | cma->alloc_mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | cma->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | cma->nranges | 1-s32max |
| PARAM_VALUE | 1 | pages | 1-u64max |
| PARAM_VALUE | 2 | count | 1-4503599627370495 |
| CAPPED_DATA | 0 | cma->nranges | 1 |
| CAPPED_DATA | 2 | count | 1 |
| CAPPED_DATA | 2 | count | 1 |
| DATA_SOURCE | 1 | pages | r cma_alloc |
| NOSPEC | 2 | count | |
| NOCHECK_CALL | |||
| USER_DATA | 0 | cma->available_count | s64min-s64max[c][u] |
| USER_DATA | 2 | count | 1-4503599627370495[c] |
| NO_OVERFLOW_SIMPLE | 2 | count | |
| UNITS | 2 | count | unit_array_size |
drivers/dma-buf/heaps/cma_heap.c cma_heap_dma_buf_release() -> cma_release()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |