Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 21 files:
- arch/arm/mm/dma-mapping.c
- arch/x86/coco/sev/core.c, line 749
- arch/x86/kvm/svm/sev.c, line 5006
- drivers/gpu/drm/ttm/ttm_pool.c, line 501
- drivers/hv/hv_balloon.c, line 1233
- drivers/hv/hv_proc.c, line 68
- drivers/hwtracing/intel_th/msu.c, line 940
- drivers/iommu/dma-iommu.c, line 922
- drivers/media/common/videobuf2/videobuf2-dma-sg.c, line 91
- drivers/media/pci/intel/ipu6/ipu6-dma.c, line 81
- drivers/misc/vmw_balloon.c, line 1083
- drivers/staging/media/ipu3/ipu3-dmamap.c, line 65
- drivers/staging/media/ipu7/ipu7-dma.c, line 81
- drivers/usb/gadget/function/f_uac1.c
- drivers/usb/gadget/function/f_uac2.c
- fs/ramfs/file-nommu.c, line 95
- kernel/events/ring_buffer.c, line 636
- lib/vdso/datastore.c, line 51
- mm/hugetlb_vmemmap.c, line 83
- mm/page_alloc.c, line 3130
- mm/vmalloc.c
Smatch caller information:
drivers/staging/media/ipu3/ipu3-dmamap.c imgu_dmamap_alloc_buffer() -> split_page()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | page | 4096-ptr_max |
| PARAM_VALUE | 0 | page->_refcount.counter | 1 |
| PARAM_VALUE | 1 | order | 1 |
| DATA_SOURCE | 0 | page | r alloc_pages_noprof |
| DATA_SOURCE | 1 | order | r __fls |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/media/pci/intel/ipu6/ipu6-dma.c __alloc_buffer() -> split_page()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | page | 4096-ptr_max |
| PARAM_VALUE | 1 | order | 1-32,2147483648-u32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &isys->mutex |
drivers/hv/hv_balloon.c alloc_balloon_pages() -> split_page()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | page | 4096-ptr_max |
| PARAM_VALUE | 0 | page->_refcount.counter | 1 |
| PARAM_VALUE | 0 | page->flags.f | 0-18446744073709551614 |
| PARAM_VALUE | 1 | order | 9 |
| DATA_SOURCE | 0 | page | r alloc_pages_noprof |
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pool->lock |
drivers/misc/vmw_balloon.c vmballoon_split_refused_pages() -> split_page()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | page | 4096-ptr_max |
| PARAM_VALUE | 1 | order | 0,9 |
| DATA_SOURCE | 1 | order | r vmballoon_page_order |
| NOCHECK_CALL | |||
| LOCK2 | &b->conf_sem | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct vmballoon)->conf_sem |
drivers/iommu/dma-iommu.c __iommu_dma_alloc_pages() -> split_page()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | page | 4096-ptr_max |
| PARAM_VALUE | 1 | order | 1-10 |
| DATA_SOURCE | 0 | page | r alloc_pages_node_noprof |
| DATA_SOURCE | 1 | order | r __fls |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HOST_DATA | 1 | order | 1-10[c] |
| USER_DATA | 1 | order | 1-10[c] |
arch/x86/kvm/svm/sev.c snp_safe_alloc_page_node() -> split_page()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | page | 4096-ptr_max |
| PARAM_VALUE | 1 | order | 1 |
| DATA_SOURCE | 0 | page | r alloc_pages_node_noprof |
| NOCHECK_CALL | |||
| HALF_LOCKED2 | _T->lock |
drivers/media/common/videobuf2/videobuf2-dma-sg.c vb2_dma_sg_alloc_compacted() -> split_page()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | page | 4096-ptr_max |
| PARAM_VALUE | 0 | page->_refcount.counter | 1 |
| PARAM_VALUE | 1 | order | 0-31,2147483648-u32max |
| DATA_SOURCE | 0 | page | r alloc_pages_noprof |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/gpu/drm/ttm/ttm_pool.c ttm_pool_split_for_swap() -> split_page()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | page | 4096-ptr_max |
| PARAM_VALUE | 1 | order | 1-u32max |
| DATA_SOURCE | 0 | page | $1 |
| DATA_SOURCE | 1 | order | r ttm_pool_page_order |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
arch/x86/coco/sev/core.c snp_alloc_vmsa_page() -> split_page()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | page | 4096-ptr_max |
| PARAM_VALUE | 1 | order | 1 |
| DATA_SOURCE | 0 | page | r alloc_pages_node_noprof |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | global &cpuhp_state_mutex | ||
| HALF_LOCKED2 | irq |
lib/vdso/datastore.c vdso_setup_data_pages() -> split_page()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | page | 4096-ptr_max |
| PARAM_VALUE | 0 | page->_refcount.counter | 1 |
| PARAM_VALUE | 1 | order | 2 |
| DATA_SOURCE | 0 | page | r alloc_pages_noprof |
| DATA_SOURCE | 1 | order | r get_order |
| NOCHECK_CALL | |||
| LOCK2 | irq |
kernel/events/ring_buffer.c rb_alloc_aux_page() -> split_page()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | page | 4096-ptr_max |
| PARAM_VALUE | 1 | order | 1-10 |
| DATA_SOURCE | 0 | page | r alloc_pages_node_noprof |
| DATA_SOURCE | 1 | order | $1 [m] |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | &ipcp->lock |
mm/vmalloc.c vm_area_alloc_pages() -> split_page()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | page | 4096-ptr_max |
| PARAM_VALUE | 1 | order | 1-10 |
| CAPPED_DATA | 0 | page | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | page->_flags_1 | s64min-s64max[c] |
mm/vmalloc.c vm_area_alloc_pages() -> split_page()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | page | 4096-ptr_max |
| PARAM_VALUE | 1 | order | 9 |
| CAPPED_DATA | 0 | page | 1 |
| DATA_SOURCE | 1 | order | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | page->_flags_1 | s64min-s64max[c] |
drivers/staging/media/ipu7/ipu7-dma.c __alloc_buffer() -> split_page()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | page | 4096-ptr_max |
| PARAM_VALUE | 1 | order | 1-32,2147483648-u32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
mm/hugetlb_vmemmap.c vmemmap_split_pmd() -> split_page()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | page | 4096-ptr_max |
| PARAM_VALUE | 0 | page->flags.f | 0-18446744073709551614 |
| PARAM_VALUE | 1 | order | 9 |
| DATA_SOURCE | 0 | page | $1 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | global &init_mm.page_table_lock | ||
| HALF_LOCKED2 | &mm->mmap_lock | ||
| TYPE_LOCK | (struct mm_struct)->page_table_lock |
drivers/hwtracing/intel_th/msu.c msc_buffer_contig_alloc() -> split_page()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | page | 4096-ptr_max |
| PARAM_VALUE | 0 | page->_refcount.counter | 1 |
| PARAM_VALUE | 1 | order | 0-10 |
| DATA_SOURCE | 0 | page | r alloc_pages_noprof |
| DATA_SOURCE | 1 | order | r get_order |
| CAPABLE | 0 | 17 | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &msc->buf_mutex | ||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex | ||
| TYPE_LOCK | (struct msc)->buf_mutex |