Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_init_fq_dma() -> mtk_dma_ring_alloc()

Type Parameter Key Value
PARAM_VALUE 0 eth 4096-ptr_max
PARAM_VALUE 0 eth->dma_refcnt.refs.counter 0
PARAM_VALUE 0 eth->soc 4096-ptr_max
PARAM_VALUE 0 eth->soc->reg_map 961921292252930048,1391189395452182528,3453327253449109504,7083459244163440640
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 1 size 0
PARAM_VALUE 2 dma_handle 4096-ptr_max
PARAM_VALUE 3 use_sram 1
DATA_SOURCE 0 eth $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 global &rtnl_mutex

drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_rx_alloc() -> mtk_dma_ring_alloc()

Type Parameter Key Value
PARAM_VALUE 0 eth 4096-ptr_max
PARAM_VALUE 0 eth->dma_dev->cma_area->alloc_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 eth->dma_dev->cma_area->alloc_mutex.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 eth->dma_dev->cma_area->alloc_mutex.osq.tail.counter s32min-s32max
PARAM_VALUE 0 eth->dma_dev->cma_area->nranges s32min-s32max
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_mem->spinlock.rlock.dep_map->name 0-255
PARAM_VALUE 0 eth->dma_dev->dma_uses_io_tlb 1
PARAM_VALUE 0 eth->dma_refcnt.refs.counter 0
PARAM_VALUE 0 eth->dummy_dev->rtnl_link_ops->maxtype 0-6,8-10,15,18,20,22,24,34,50
PARAM_VALUE 0 eth->dummy_dev->rtnl_link_ops->priv_size 0,8,32,48,56,88,112,120,144,160,224,240,256,296,616,624,728,736,744,1056,1128,1336,1616,2176,2240,2272,2560,3296,3720,9688-u64max
PARAM_VALUE 0 eth->rx_ring 4096-ptr_max
PARAM_VALUE 0 eth->soc 4096-ptr_max
PARAM_VALUE 0 eth->soc->ppe_num 0-3
PARAM_VALUE 0 eth->soc->reg_map 961921292252930048,1391189395452182528,3453327253449109504,7083459244163440640
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->rx.dma_size 2048
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_pdma 0-ptr_max
PARAM_VALUE 0 eth->tx_ring.dma_pdma->txd1 0
PARAM_VALUE 0 eth->tx_ring.dma_pdma->txd2 0
PARAM_VALUE 0 eth->tx_ring.dma_pdma->txd3 0
PARAM_VALUE 0 eth->tx_ring.dma_pdma->txd4 0
PARAM_VALUE 0 eth->tx_ring.dma_size 2048
PARAM_VALUE 0 eth->tx_ring.free_count.counter 2046
PARAM_VALUE 0 eth->tx_ring.last_free 4096-ptr_max
PARAM_VALUE 0 eth->tx_ring.next_free 1-u64max
PARAM_VALUE 0 eth->tx_ring.thresh 17
PARAM_VALUE 1 size 128,256,32768,65536
PARAM_VALUE 2 dma_handle 4096-ptr_max
CAPPED_DATA 0 eth->soc->tx.fq_dma_size 1
DATA_SOURCE 0 eth $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 global &rtnl_mutex

drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_tx_alloc() -> mtk_dma_ring_alloc()

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->dma_refcnt.refs.counter 0
PARAM_VALUE 0 eth->soc 4096-ptr_max
PARAM_VALUE 0 eth->soc->ppe_num 0-3
PARAM_VALUE 0 eth->soc->reg_map 961921292252930048,1391189395452182528,3453327253449109504,7083459244163440640
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.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 1 size 32768,65536
PARAM_VALUE 2 dma_handle 4096-ptr_max
PARAM_VALUE 3 use_sram 1
DATA_SOURCE 0 eth $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 global &rtnl_mutex