Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

drivers/net/ethernet/broadcom/bnge/bnge_rmem.c bnge_alloc_ctx_one_lvl() -> bnge_alloc_ring()

Type Parameter Key Value
PARAM_VALUE 0 bd 4096-ptr_max
PARAM_VALUE 0 bd->bar0 4096-ptr_max
PARAM_VALUE 0 bd->ctx 4096-ptr_max
PARAM_VALUE 0 bd->ctx->ctx_arr 4096-ptr_max
PARAM_VALUE 0 bd->dev 4096-ptr_max
PARAM_VALUE 0 bd->dev->bus 0,4096-ptr_max
PARAM_VALUE 0 bd->dev->class 0,4096-ptr_max
PARAM_VALUE 0 bd->dev->driver 0,4096-ptr_max
PARAM_VALUE 0 bd->dev->driver_data 4096-ptr_max
PARAM_VALUE 0 bd->dev->kobj.sd->priv 4096-ptr_max
PARAM_VALUE 0 bd->dev->power.request 0-4
PARAM_VALUE 0 bd->dev->power.runtime_error s32min-(-17),(-15)-(-14),(-12),(-10)-s32max
PARAM_VALUE 0 bd->dev->power.wakeirq 0,4096-ptr_max
PARAM_VALUE 0 bd->dev->type 0,4096-ptr_max
PARAM_VALUE 0 bd->dsn 0
PARAM_VALUE 0 bd->flags 1-u64max
PARAM_VALUE 0 bd->fw_cap 0-1,16-17,64-65,80-81,128-129,144-145,192-193,208-209,1024-1233,65536-66769
PARAM_VALUE 0 bd->hwrm_cmd_lock->first_waiter->task->blocked_lock.owner (-4611686018427387904)-4611686018427387903
PARAM_VALUE 0 bd->hwrm_cmd_lock.dep_map->name 0-255
PARAM_VALUE 0 bd->hwrm_cmd_lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 bd->hwrm_cmd_lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 bd->hwrm_cmd_lock.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 bd->hwrm_cmd_lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 bd->hwrm_cmd_max_timeout 1-65535000
PARAM_VALUE 0 bd->hwrm_cmd_timeout 1-u16max
PARAM_VALUE 0 bd->hwrm_dma_pool 4096-ptr_max
PARAM_VALUE 0 bd->hwrm_dma_pool->dev->cma_area->alloc_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 bd->hwrm_dma_pool->dev->cma_area->alloc_mutex.osq.tail.counter s32min-s32max
PARAM_VALUE 0 bd->hwrm_dma_pool->dev->cma_area->nranges s32min-s32max
PARAM_VALUE 0 bd->hwrm_dma_pool->dev->dma_uses_io_tlb 1
PARAM_VALUE 0 bd->hwrm_dma_pool->dev->iommu->attach_deferred 0-1
PARAM_VALUE 0 bd->hwrm_dma_pool->dev->iommu->pci_32bit_workaround 0-1
PARAM_VALUE 0 bd->hwrm_dma_pool->size 0-s32max
PARAM_VALUE 0 bd->hwrm_max_ext_req_len 128-u16max
PARAM_VALUE 0 bd->hwrm_pending_list->first->pprev 1-u64max
PARAM_VALUE 0 bd->max_q 1-8
PARAM_VALUE 0 bd->max_tc 1-255
PARAM_VALUE 0 bd->pdev 4096-ptr_max
PARAM_VALUE 0 bd->pdev->bus 0,4096-ptr_max
PARAM_VALUE 0 bd->pdev->dev.bus 0,4096-ptr_max
PARAM_VALUE 0 bd->pdev->dev.class 0,4096-ptr_max
PARAM_VALUE 0 bd->pdev->dev.cma_area->nranges s32min-s32max
PARAM_VALUE 0 bd->pdev->dev.driver 0,4096-ptr_max
PARAM_VALUE 0 bd->pdev->dev.driver_data 4096-ptr_max
PARAM_VALUE 0 bd->pdev->dev.kobj.release.work.entry.next->prev 4096-ptr_max
PARAM_VALUE 0 bd->pdev->dev.kobj.release.wq->dfl_pwq 0-s64max
PARAM_VALUE 0 bd->pdev->dev.kobj.release.wq->saved_max_active s32min-s32max
PARAM_VALUE 0 bd->pdev->dev.kobj.release.wq->saved_min_active s32min-s32max
PARAM_VALUE 0 bd->pdev->dev.power.request 0-4
PARAM_VALUE 0 bd->pdev->dev.power.runtime_error s32min-(-17),(-15)-(-14),(-12),(-10)-s32max
PARAM_VALUE 0 bd->pdev->dev.power.wakeirq 0,4096-ptr_max
PARAM_VALUE 0 bd->pdev->dev.type 0,4096-ptr_max
PARAM_VALUE 0 bd->pdev->driver 4096-ptr_max
PARAM_VALUE 0 bd->pdev->error_state 0-2,4-u32max
PARAM_VALUE 0 bd->pdev->hdr_type 0,3-255
PARAM_VALUE 0 bd->pdev->is_busmaster 1
PARAM_VALUE 0 bd->pdev->is_virtfn 0
PARAM_VALUE 0 bd->pdev->msix_cap 1-255
PARAM_VALUE 0 bd->pdev->pcie_cap 0-1
PARAM_VALUE 0 bd->pdev->vpd.lock.first_waiter->list.next 5159360019465732096
PARAM_VALUE 0 bd->pdev->vpd.lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 bd->pdev->vpd.lock.first_waiter->list.prev->prev 0,5159360019465732096
PARAM_VALUE 0 bd->pdev->vpd.lock.first_waiter->magic 5159360019465732096
PARAM_VALUE 0 bd->pdev->vpd.lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 bd->pdev->vpd.lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 bd->pdev->vpd.lock.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 bd->pdev->vpd.lock.first_waiter->task->blocked_on (-1)-0
PARAM_VALUE 0 bd->pdev->vpd.lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 *bd->fw_ver_str 0-255
PARAM_VALUE 0 *bd->hwrm_ver_supp 0-255
PARAM_VALUE 0 *bd->nvm_cfg_ver 0-255
PARAM_VALUE 0 *bd->pf->mac_addr 0-255
PARAM_VALUE 0 *bd->q_ids 0-255
PARAM_VALUE 0 *bd->tc_to_qidx 0-255
PARAM_VALUE 1 rmem 4096-ptr_max
PARAM_VALUE 1 rmem->flags 1,5
PARAM_VALUE 1 rmem->page_size 4096
BUF_SIZE 0 bd->pdev (-1),1-s32max
BUF_SIZE 1 rmem 72
BUF_SIZE 1 rmem->dma_arr 4096
BUF_SIZE 1 rmem->pg_arr 4096
CAPPED_DATA 0 bd->dev->cma_area->nranges 1
CAPPED_DATA 0 bd->hwrm_dma_pool->size 1
DATA_SOURCE 0 bd $0
FUZZY_MAX 1 rmem->flags 1
BIT_INFO 1 rmem->flags 0x1,0x5
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 0 bd->dsn 0[c]
HOST_DATA 0 bd->pdev->acs_capabilities 0-u16max
HOST_DATA 0 bd->pdev->class 0-16777215
HOST_DATA 0 bd->pdev->current_state 0-3[c]
HOST_DATA 0 bd->pdev->devcap 0-u32max
HOST_DATA 0 bd->pdev->devfn 1-503[c]
HOST_DATA 0 bd->pdev->device 0-u16max
HOST_DATA 0 bd->pdev->eetlp_prefix_max 0-7[c]
HOST_DATA 0 bd->pdev->fm_enabled 0-1[c]
HOST_DATA 0 bd->pdev->hdr_type 0,3-255[c]
HOST_DATA 0 bd->pdev->ide_cfg 0-1[c]
HOST_DATA 0 bd->pdev->ide_tee_limit 0-1[c]
HOST_DATA 0 bd->pdev->irq 0-255
HOST_DATA 0 bd->pdev->is_cxl 0-1
HOST_DATA 0 bd->pdev->multifunction 0-1[c]
HOST_DATA 0 bd->pdev->nr_ide_mem 0-255[c]
HOST_DATA 0 bd->pdev->pcie_flags_reg 0-u16max
HOST_DATA 0 bd->pdev->pcie_mpss 0-7[c]
HOST_DATA 0 bd->pdev->pin 0
HOST_DATA 0 bd->pdev->pme_support 0-31[c]
HOST_DATA 0 bd->pdev->ptm_granularity 0-255[c]
HOST_DATA 0 bd->pdev->revision 0-255
HOST_DATA 0 bd->pdev->subsystem_device 0-u16max
HOST_DATA 0 bd->pdev->subsystem_vendor 0-u16max
HOST_DATA 0 bd->pdev->supported_speeds 0,2-254[c]
HOST_DATA 0 bd->pdev->transparent 0[c]
HOST_DATA 0 bd->pdev->vendor 0-u16max

drivers/net/ethernet/broadcom/bnge/bnge_netdev.c alloc_one_cp_ring() -> bnge_alloc_ring()

Type Parameter Key Value
PARAM_VALUE 0 bd 4096-ptr_max
PARAM_VALUE 0 bd->nq_nr_rings 1-u16max
PARAM_VALUE 1 rmem 4096-ptr_max
PARAM_VALUE 1 rmem->dma_arr 16,4096-ptr_max
PARAM_VALUE 1 rmem->flags 2
PARAM_VALUE 1 rmem->nr_pages 0-u16max
PARAM_VALUE 1 rmem->page_size 4096
PARAM_VALUE 1 rmem->pg_arr 16,4096-ptr_max
BUF_SIZE 1 rmem 72
CAPPED_DATA 0 bd->nq_nr_rings 1
CAPPED_DATA 0 bd->rx_nr_rings 1
CAPPED_DATA 0 bd->tx_nr_rings 1
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 1 rmem->nr_pages

drivers/net/ethernet/broadcom/bnge/bnge_netdev.c bnge_alloc_nq_tree() -> bnge_alloc_ring()

Type Parameter Key Value
PARAM_VALUE 0 bd 4096-ptr_max
PARAM_VALUE 0 bd->nq_nr_rings 1-u16max
PARAM_VALUE 0 bd->pdev->dev.cma_area->nranges s32min-s32max
PARAM_VALUE 1 rmem 4096-ptr_max
CAPPED_DATA 0 bd->nq_nr_rings 1
CAPPED_DATA 0 bd->rx_nr_rings 1
CAPPED_DATA 0 bd->tx_nr_rings 1
RX_PATH
TASK_NOT_RUNNING

drivers/net/ethernet/broadcom/bnge/bnge_netdev.c bnge_alloc_rx_rings() -> bnge_alloc_ring()

Type Parameter Key Value
PARAM_VALUE 0 bd 4096-ptr_max
PARAM_VALUE 0 bd->dev 4096-ptr_max
PARAM_VALUE 0 bd->pdev->dev.cma_area->nranges s32min-s32max
PARAM_VALUE 0 bd->rx_nr_rings 1-u16max
PARAM_VALUE 1 rmem 4096-ptr_max
CAPPED_DATA 0 bd->nq_nr_rings 1
RX_PATH
TASK_NOT_RUNNING

drivers/net/ethernet/broadcom/bnge/bnge_netdev.c bnge_alloc_rx_rings() -> bnge_alloc_ring()

Type Parameter Key Value
PARAM_VALUE 0 bd 4096-ptr_max
PARAM_VALUE 0 bd->dev 4096-ptr_max
PARAM_VALUE 0 bd->netdev->priv->priv_flags 1-4294967295
PARAM_VALUE 0 bd->pdev->dev.cma_area->nranges s32min-s32max
PARAM_VALUE 0 bd->rx_nr_rings 1-u16max
PARAM_VALUE 1 rmem 4096-ptr_max
CAPPED_DATA 0 bd->nq_nr_rings 1
RX_PATH
TASK_NOT_RUNNING

drivers/net/ethernet/broadcom/bnge/bnge_netdev.c bnge_alloc_tx_rings() -> bnge_alloc_ring()

Type Parameter Key Value
PARAM_VALUE 0 bd 4096-ptr_max
PARAM_VALUE 0 bd->pdev->dev.cma_area->nranges s32min-s32max
PARAM_VALUE 0 bd->tx_nr_rings 1-u16max
PARAM_VALUE 1 rmem 4096-ptr_max
CAPPED_DATA 0 bd->nq_nr_rings 1
CAPPED_DATA 0 bd->rx_nr_rings 1
RX_PATH
TASK_NOT_RUNNING