Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_poll_tx_pdma() -> mtk_tx_unmap()

Type Parameter Key Value
PARAM_VALUE 0 eth 4096-ptr_max
PARAM_VALUE 0 eth->soc 4096-ptr_max
PARAM_VALUE 0 eth->soc->reg_map 961921292252930048,1391189395452182528,3453327253449109504,7083459244163440640
PARAM_VALUE 0 eth->soc->version 1-3
PARAM_VALUE 0 eth->tx_ring.buf 4096-ptr_max
PARAM_VALUE 1 tx_buf 4096-ptr_max
PARAM_VALUE 1 tx_buf->data 1-u64max
PARAM_VALUE 2 bq 7481466985633386496
PARAM_VALUE 3 napi 1
DATA_SOURCE 0 eth $0
NOCHECK_CALL

drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_poll_tx_qdma() -> mtk_tx_unmap()

Type Parameter Key Value
PARAM_VALUE 0 eth 4096-ptr_max
PARAM_VALUE 0 eth->soc 4096-ptr_max
PARAM_VALUE 0 eth->soc->reg_map 961921292252930048,1391189395452182528,3453327253449109504,7083459244163440640
PARAM_VALUE 0 eth->soc->version 1-3
PARAM_VALUE 1 tx_buf 4096-ptr_max
PARAM_VALUE 1 tx_buf->data 1-u64max
PARAM_VALUE 2 bq 8961267921766821888
PARAM_VALUE 3 napi 1
DATA_SOURCE 0 eth $0
DATA_SOURCE 1 tx_buf r mtk_desc_to_tx_buf
NOCHECK_CALL

drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_tx_clean() -> mtk_tx_unmap()

Type Parameter Key Value
PARAM_VALUE 0 eth 4096-ptr_max
PARAM_VALUE 0 eth->dma_dev->cma_area->nranges s32min-s32max
PARAM_VALUE 0 eth->netdev 4096-ptr_max
PARAM_VALUE 0 eth->scratch_ring 0
PARAM_VALUE 0 eth->soc 4096-ptr_max
PARAM_VALUE 0 eth->soc->reg_map 4096-ptr_max
PARAM_VALUE 0 eth->soc->reg_map->pdma.glo_cfg 2564,16900,27140
PARAM_VALUE 0 eth->soc->reg_map->qdma.glo_cfg 0,6660,17924
PARAM_VALUE 0 eth->soc->tx.desc_size 16,32
PARAM_VALUE 0 eth->soc->tx.dma_size 2048
PARAM_VALUE 0 eth->soc->tx.fq_dma_size 0,2048,4096
PARAM_VALUE 0 eth->soc->version 1-3
PARAM_VALUE 0 eth->tx_ring.buf 4096-ptr_max
PARAM_VALUE 0 eth->tx_ring.dma_size 1-s32max
PARAM_VALUE 1 tx_buf 4096-ptr_max
PARAM_VALUE 2 bq 0
PARAM_VALUE 3 napi 0
DATA_SOURCE 0 eth $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 global &rtnl_mutex

drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_tx_map() -> mtk_tx_unmap()

Type Parameter Key Value
PARAM_VALUE 0 eth 4096-ptr_max
PARAM_VALUE 0 eth->dma_dev->dma_io_tlb_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 eth->dma_dev->dma_io_tlb_pools.next 4096-ptr_max
PARAM_VALUE 0 eth->dma_dev->dma_io_tlb_pools.next->prev 4096-ptr_max
PARAM_VALUE 0 eth->dma_dev->dma_io_tlb_pools.next->prev->prev 4096-ptr_max
PARAM_VALUE 0 eth->dma_dev->dma_uses_io_tlb 1
PARAM_VALUE 0 eth->dma_dev->iommu->attach_deferred 0-1
PARAM_VALUE 0 eth->dma_dev->iommu->pci_32bit_workaround 0-1
PARAM_VALUE 0 eth->soc 4096-ptr_max
PARAM_VALUE 1 tx_buf 4096-ptr_max
PARAM_VALUE 2 bq 0
PARAM_VALUE 3 napi 0
DATA_SOURCE 1 tx_buf r mtk_desc_to_tx_buf
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &eth->page_lock
HALF_LOCKED2 &dev->tx_global_lock
HALF_LOCKED2 &txq->_xmit_lock
HALF_LOCKED2 bh
HALF_LOCKED2 flags
HALF_LOCKED2 rcu_read
TYPE_LOCK (struct mtk_eth)->page_lock

drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_xdp_submit_frame() -> mtk_tx_unmap()

Type Parameter Key Value
PARAM_VALUE 0 eth 4096-ptr_max
PARAM_VALUE 0 eth->dma_dev->iommu->pci_32bit_workaround 0-1
PARAM_VALUE 0 eth->page_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 eth->soc 4096-ptr_max
PARAM_VALUE 0 eth->soc->caps 9216,537335,369103363,369105923,688017476,2837663972,5276963669,5373350104,7133991668
PARAM_VALUE 0 eth->soc->reg_map 4096-ptr_max
PARAM_VALUE 0 eth->soc->version 1-255
PARAM_VALUE 0 eth->tx_ring.free_count.counter 2-s32max
PARAM_VALUE 1 tx_buf 4096-ptr_max
PARAM_VALUE 2 bq 0
PARAM_VALUE 3 napi 0
DATA_SOURCE 0 eth $0
DATA_SOURCE 1 tx_buf r mtk_desc_to_tx_buf
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 0 &eth->page_lock
HALF_LOCKED2 rcu_read
TYPE_LOCK (struct mtk_eth)->page_lock