Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c alloc_cmd_buf() -> free_cmd_buf()

Type Parameter Key Value
PARAM_VALUE 0 chain 4096-ptr_max
PARAM_VALUE 0 chain->cell_ctxt 4096-ptr_max
PARAM_VALUE 0 chain->cell_ctxt->api_cmd_paddr 0
PARAM_VALUE 0 chain->cell_ctxt->api_cmd_vaddr 0
PARAM_VALUE 0 chain->cell_ctxt->cell_paddr 0
PARAM_VALUE 0 chain->cell_ctxt->cell_vaddr 0
PARAM_VALUE 0 chain->cell_size 64
PARAM_VALUE 0 chain->cons_idx 0
PARAM_VALUE 0 chain->head_node 0,4096-ptr_max
PARAM_VALUE 0 chain->hwif 4096-ptr_max
PARAM_VALUE 0 chain->hwif->attr.func_idx 0-1023
PARAM_VALUE 0 chain->hwif->attr.func_type 0-2
PARAM_VALUE 0 chain->hwif->attr.global_vf_id_of_pf 0-1023
PARAM_VALUE 0 chain->hwif->attr.pci_intf_idx 0-3
PARAM_VALUE 0 chain->hwif->attr.pf_idx 0-15
PARAM_VALUE 0 chain->hwif->attr.ppf_idx 0-31
PARAM_VALUE 0 chain->hwif->pdev->dev.cma_area->alloc_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 chain->hwif->pdev->dev.cma_area->alloc_mutex.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 chain->hwif->pdev->dev.cma_area->alloc_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 chain->hwif->pdev->dev.cma_area->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 chain->hwif->pdev->dev.cma_area->nranges s32min-s32max
PARAM_VALUE 0 chain->hwif->pdev->dev.dma_io_tlb_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 chain->hwif->pdev->dev.dma_io_tlb_pools.next 4096-ptr_max
PARAM_VALUE 0 chain->hwif->pdev->dev.dma_io_tlb_pools.next->prev 4096-ptr_max
PARAM_VALUE 0 chain->hwif->pdev->dev.dma_io_tlb_pools.next->prev->prev 4096-ptr_max
PARAM_VALUE 0 chain->hwif->pdev->dev.dma_mem->spinlock.rlock.dep_map->name 0-255
PARAM_VALUE 0 chain->hwif->pdev->dev.dma_uses_io_tlb 1
PARAM_VALUE 0 chain->hwif->pdev->dev.iommu->attach_deferred 0-1
PARAM_VALUE 0 chain->num_cells 32
PARAM_VALUE 0 chain->prod_idx 0
PARAM_VALUE 0 chain->wb_status 1-ptr_max
PARAM_VALUE 1 cell_idx 0-31
BUF_SIZE 0 chain->head_node (-1),64
DATA_SOURCE 0 chain $0
DATA_SOURCE 1 cell_idx $2
FUZZY_MAX 1 cell_idx 31
CONSTRAINT 1 cell_idx <1180
HARD_MAX 1 cell_idx 31
MEM_ZERO 0 chain
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 0 chain->num_cells
NO_OVERFLOW_SIMPLE 1 cell_idx
UNITS 1 cell_idx unit_array_size

drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c api_cmd_destroy_cell() -> free_cmd_buf()

Type Parameter Key Value
PARAM_VALUE 0 chain 4096-ptr_max
PARAM_VALUE 0 chain->cell_ctxt 4096-ptr_max
PARAM_VALUE 0 chain->chain_type 2
PARAM_VALUE 0 chain->hwif 4096-ptr_max
PARAM_VALUE 0 chain->hwif->attr.func_idx 0-1023
PARAM_VALUE 0 chain->hwif->attr.func_type 0-2
PARAM_VALUE 0 chain->hwif->attr.global_vf_id_of_pf 0-1023
PARAM_VALUE 0 chain->hwif->attr.pci_intf_idx 0-3
PARAM_VALUE 0 chain->hwif->attr.pf_idx 0-15
PARAM_VALUE 0 chain->hwif->attr.ppf_idx 0-31
PARAM_VALUE 0 chain->hwif->pdev->dev.cma_area->nranges s32min-s32max
PARAM_VALUE 0 chain->wb_status->header 0
PARAM_VALUE 0 chain->wb_status->rsvd0 0
PARAM_VALUE 0 chain->wb_status->rsvd1 0
PARAM_VALUE 0 chain->wb_status->rsvd2 0
PARAM_VALUE 0 chain->wb_status->rsvd3 0
PARAM_VALUE 0 chain->wb_status->status 0
PARAM_VALUE 1 cell_idx 0-s32max
BUF_SIZE 0 chain (-1),176
BUF_SIZE 0 chain (-1),176
CAPPED_DATA 1 cell_idx 1
DATA_SOURCE 0 chain $0
DATA_SOURCE 1 cell_idx $1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 0 chain->num_cells
NO_OVERFLOW_SIMPLE 1 cell_idx
UNITS 1 cell_idx unit_array_size