Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 6 files:

Smatch caller information:

drivers/net/wireless/mediatek/mt76/mt76x0/init.c mt76x0_init_hardware() -> mt76x02_mcu_function_select()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->mphy.dev->dma_dev->cma_area->nranges s32min-s32max
PARAM_VALUE 0 dev->mt76->sdio.func->card->host->fail_mmc_request.ratelimit_state.lock.owner (-4611686018427387904)-4611686018427387903
PARAM_VALUE 0 dev->mt76->sdio.func->card->host->ongoing_mrq->cmd_completion.wait.lock.owner (-4611686018427387904)-4611686018427387903
PARAM_VALUE 0 dev->mt76->sdio.func->tmpbuf 0-255
PARAM_VALUE 0 dev->mt76.bus 4096-ptr_max
PARAM_VALUE 0 dev->mt76.bus->rmw 4096-ptr_max
PARAM_VALUE 0 dev->mt76.bus->rr 4096-ptr_max
PARAM_VALUE 0 dev->mt76.bus->wr 4096-ptr_max
PARAM_VALUE 0 dev->mt76.dma_dev->cma_area->available_count 0-s64max
PARAM_VALUE 0 dev->mt76.dma_dev->cma_area->nranges s32min-s32max
PARAM_VALUE 0 dev->mt76.drv->rx_check 0,4096-ptr_max
PARAM_VALUE 0 dev->mt76.drv->sta_ps 0,4096-ptr_max
PARAM_VALUE 0 dev->mt76.mcu.mutex.dep_map->name 0-255
PARAM_VALUE 0 dev->mt76.mcu.mutex.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 dev->mt76.mcu.mutex.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 dev->mt76.mcu_ops->headroom 0,4,32,64,68
PARAM_VALUE 0 dev->mt76.mcu_ops->max_retry 0-1
PARAM_VALUE 0 dev->mt76.mcu_ops->mcu_parse_response 396022216663597056,1798297417732042752,2682928937033089024,4676644736942673920,5981939223276920832,6365575011737792512,8498055563972861952
PARAM_VALUE 0 dev->mt76.mcu_ops->mcu_rd_rp 0,7340797154514407424
PARAM_VALUE 0 dev->mt76.mcu_ops->mcu_restart 0,8319246928040382464
PARAM_VALUE 0 dev->mt76.mcu_ops->mcu_rr 0,1597358527731208192
PARAM_VALUE 0 dev->mt76.mcu_ops->mcu_send_msg 0,4543376461987549184,5414446649499410432
PARAM_VALUE 0 dev->mt76.mcu_ops->mcu_skb_prepare_msg 0,4460907326358106112
PARAM_VALUE 0 dev->mt76.mcu_ops->mcu_skb_send_msg 0,4096-ptr_max
PARAM_VALUE 0 dev->mt76.mcu_ops->mcu_wr 0,7192196457011240960
PARAM_VALUE 0 dev->mt76.mcu_ops->mcu_wr_rp 0,4234968410858758144
PARAM_VALUE 0 dev->mt76.mcu_ops->tailroom 0,4,8
PARAM_VALUE 0 dev->mt76.queue_ops->alloc 0,4096-ptr_max
PARAM_VALUE 0 dev->mt76.queue_ops->dequeue 0
PARAM_VALUE 0 dev->mt76.queue_ops->init 0,5701030900122525696
PARAM_VALUE 0 dev->mt76.queue_ops->kick 5531295452590358528,5670636873677549568,8083338665798123520
PARAM_VALUE 0 dev->mt76.queue_ops->reset_q 0,6914045879458140160
PARAM_VALUE 0 dev->mt76.queue_ops->rx_cleanup 0,1325129280109801472
PARAM_VALUE 0 dev->mt76.queue_ops->rx_queue_init 0,6447196424567136256
PARAM_VALUE 0 dev->mt76.queue_ops->rx_reset 0,3913084583414751232
PARAM_VALUE 0 dev->mt76.queue_ops->tx_cleanup 0,740481638872236032
PARAM_VALUE 0 dev->mt76.queue_ops->tx_queue_skb 291027769529466880,3169668587421933568,3648645348619886592
PARAM_VALUE 0 dev->mt76.queue_ops->tx_queue_skb_raw 0,2076218637392773120,8484283273268027392
PARAM_VALUE 0 dev->mt76.sdio.func->card->host->claim_cnt s32min-s32max
PARAM_VALUE 0 dev->mt76.sdio.func->card->host->cqe_on 0-1
PARAM_VALUE 0 dev->mt76.sdio.func->card->host->doing_retune 0-1
PARAM_VALUE 0 dev->mt76.sdio.func->card->host->fail_mmc_request.ratelimit_state.flags 0-4294967295
PARAM_VALUE 0 dev->mt76.sdio.func->card->host->fail_mmc_request.ratelimit_state.missed.counter s32min-s32max
PARAM_VALUE 0 dev->mt76.sdio.func->card->host->fail_mmc_request.space.counter s32min-s32max
PARAM_VALUE 0 dev->mt76.sdio.func->card->host->fail_mmc_request.times.counter s32min-s32max
PARAM_VALUE 0 dev->mt76.sdio.func->card->host->hold_retune s32min-s32max
PARAM_VALUE 0 dev->mt76.sdio.func->card->host->led->brightness 0-4294967295
PARAM_VALUE 0 dev->mt76.sdio.func->card->host->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 dev->mt76.sdio.func->card->host->need_retune s32min-s32max
PARAM_VALUE 0 dev->mt76.sdio.func->card->host->ongoing_mrq->cmd_completion.done 0-4294967293,4294967295
PARAM_VALUE 0 dev->mt76.sdio.func->card->host->ongoing_mrq->cmd_completion.wait.lock.owner (-1)
PARAM_VALUE 0 dev->mt76.sdio.func->card->host->ongoing_mrq->cmd_completion.wait.lock.owner_cpu 4294967295
PARAM_VALUE 0 dev->mt76.sdio.func->card->host->ongoing_mrq->uhs2_cmd.packet_len 0,4-12
PARAM_VALUE 0 dev->mt76.sdio.func->card->host->ongoing_mrq->uhs2_cmd.payload_len 0-8
PARAM_VALUE 0 dev->mt76.sdio.func->card->host->ongoing_mrq->uhs2_cmd.tmode_half_duplex 0-1
PARAM_VALUE 0 dev->mt76.sdio.func->card->host->ongoing_mrq->uhs2_cmd.uhs2_resp_len 0,4-6,8
PARAM_VALUE 0 dev->mt76.sdio.func->card->host->parent->dma_uses_io_tlb 0-1
PARAM_VALUE 0 dev->mt76.sdio.func->card->host->private->pcr->pci->dev.iommu->attach_deferred 0-1
PARAM_VALUE 0 dev->mt76.sdio.func->card->host->private->pcr->pcr_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 dev->mt76.sdio.func->card->host->private->ucr->dev_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 dev->mt76.sdio.func->card->host->retune_now 0-1
PARAM_VALUE 0 dev->mt76.sdio.func->card->host->uhs2_app_cmd 0-1
PARAM_VALUE 0 dev->mt76.usb.usb_ctrl_mtx.dep_map->name 0-255
PARAM_VALUE 0 dev->mt76.usb.usb_ctrl_mtx.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 dev->mt76.usb.usb_ctrl_mtx.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 dev->mt76.usb.usb_ctrl_mtx.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 dev->mt76.usb.usb_ctrl_mtx.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 dev->mt76.usb.usb_ctrl_mtx.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 dev->mt76.usb.usb_ctrl_mtx.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 dev->mt76.usb.usb_ctrl_mtx.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 dev->mt76.usb.usb_ctrl_mtx.osq.tail.counter 0-s32max
PARAM_VALUE 0 *dev->mt76.hw->wiphy->fw_version 0-255
PARAM_VALUE 0 *dev->mt76.tx_napi_dev->name 0-255
PARAM_VALUE 1 func 1
PARAM_VALUE 2 val 1
BUF_SIZE 0 dev s32min-(-1),1-s32max
BUF_SIZE 0 dev s32min-(-1),1-s32max
DATA_SOURCE 0 dev $0
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 0 dev->mt76->sdio.func->tmpbuf 0-255
UNITS 0 dev unit_byte

drivers/net/wireless/mediatek/mt76/mt76x2/pci_mcu.c mt76x2_mcu_init() -> mt76x02_mcu_function_select()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->mphy.dev->dma_dev->cma_area->nranges s32min-s32max
PARAM_VALUE 0 dev->mt76.bus 4096-ptr_max
PARAM_VALUE 0 dev->mt76.bus->rr 4096-ptr_max
PARAM_VALUE 0 dev->mt76.bus->wr 4096-ptr_max
PARAM_VALUE 0 dev->mt76.dev 0,4096-ptr_max
PARAM_VALUE 0 dev->mt76.dev->bus 0,4096-ptr_max
PARAM_VALUE 0 dev->mt76.dev->class 0,4096-ptr_max
PARAM_VALUE 0 dev->mt76.dev->devres_head.prev 4096-ptr_max
PARAM_VALUE 0 dev->mt76.dev->devres_head.prev->next 4096-ptr_max
PARAM_VALUE 0 dev->mt76.dev->devres_head.prev->next->next 4096-ptr_max
PARAM_VALUE 0 dev->mt76.dev->driver 0,4096-ptr_max
PARAM_VALUE 0 dev->mt76.dma_dev->cma_area->available_count 0-s64max
PARAM_VALUE 0 dev->mt76.dma_dev->cma_area->nranges s32min-s32max
PARAM_VALUE 0 dev->mt76.drv->sta_ps 0,4096-ptr_max
PARAM_VALUE 0 dev->mt76.mcu.mutex->first_waiter->task->blocked_lock.owner (-4611686018427387904)-4611686018427387903
PARAM_VALUE 0 dev->mt76.mcu.mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 dev->mt76.mcu.mutex.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 dev->mt76.mcu.mutex.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 dev->mt76.mcu.mutex.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 dev->mt76.mcu.mutex.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 dev->mt76.mcu_ops 894305749492768768
PARAM_VALUE 0 dev->mt76.mcu_ops->headroom 0
PARAM_VALUE 0 dev->mt76.mcu_ops->max_retry 0
PARAM_VALUE 0 dev->mt76.mcu_ops->mcu_parse_response 396022216663597056
PARAM_VALUE 0 dev->mt76.mcu_ops->mcu_rd_rp 0
PARAM_VALUE 0 dev->mt76.mcu_ops->mcu_restart 8319246928040382464
PARAM_VALUE 0 dev->mt76.mcu_ops->mcu_rr 0
PARAM_VALUE 0 dev->mt76.mcu_ops->mcu_send_msg 5414446649499410432
PARAM_VALUE 0 dev->mt76.mcu_ops->mcu_skb_prepare_msg 0
PARAM_VALUE 0 dev->mt76.mcu_ops->mcu_skb_send_msg 0
PARAM_VALUE 0 dev->mt76.mcu_ops->mcu_wr 0
PARAM_VALUE 0 dev->mt76.mcu_ops->mcu_wr_rp 0
PARAM_VALUE 0 dev->mt76.mcu_ops->tailroom 0
PARAM_VALUE 0 dev->mt76.mmio.irq_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 dev->mt76.mmio.wed->hw->regs->cache->data 0-4294967295
PARAM_VALUE 0 dev->mt76.mmio.wed.hw->regs->cache->cached_rbnode->base_reg 0-4294967295
PARAM_VALUE 0 dev->mt76.mmio.wed.hw->regs->cache->cached_rbnode->blklen 0-4294967295
PARAM_VALUE 0 dev->mt76.mmio.wed.hw->regs->cache->cached_rbnode->node.__rb_parent_color 0-1
PARAM_VALUE 0 dev->mt76.mmio.wed.hw->regs->cache_dirty 0-1
PARAM_VALUE 0 dev->mt76.queue_ops->alloc 0,4096-ptr_max
PARAM_VALUE 0 dev->mt76.queue_ops->dequeue 0
PARAM_VALUE 0 dev->mt76.queue_ops->init 0,5701030900122525696
PARAM_VALUE 0 dev->mt76.queue_ops->kick 5531295452590358528,5670636873677549568,8083338665798123520
PARAM_VALUE 0 dev->mt76.queue_ops->reset_q 0,6914045879458140160
PARAM_VALUE 0 dev->mt76.queue_ops->rx_cleanup 0,1325129280109801472
PARAM_VALUE 0 dev->mt76.queue_ops->rx_queue_init 0,6447196424567136256
PARAM_VALUE 0 dev->mt76.queue_ops->rx_reset 0,3913084583414751232
PARAM_VALUE 0 dev->mt76.queue_ops->tx_cleanup 0,740481638872236032
PARAM_VALUE 0 dev->mt76.queue_ops->tx_queue_skb 291027769529466880,3169668587421933568,3648645348619886592
PARAM_VALUE 0 dev->mt76.queue_ops->tx_queue_skb_raw 0,2076218637392773120,8484283273268027392
PARAM_VALUE 0 dev->mt76.sdio.func->card->host->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 dev->mt76.sdio.func->card->host->ongoing_mrq->cmd_completion.wait.lock.owner (-1)
PARAM_VALUE 0 dev->mt76.sdio.func->card->host->ongoing_mrq->cmd_completion.wait.lock.owner_cpu 4294967295
PARAM_VALUE 0 dev->mt76.usb.usb_ctrl_mtx.dep_map->name 0-255
PARAM_VALUE 0 dev->mt76.usb.usb_ctrl_mtx.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 dev->mt76.usb.usb_ctrl_mtx.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 dev->mt76.usb.usb_ctrl_mtx.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 dev->mt76.usb.usb_ctrl_mtx.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 dev->mt76.usb.usb_ctrl_mtx.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 dev->mt76.usb.usb_ctrl_mtx.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 dev->mt76.usb.usb_ctrl_mtx.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 dev->mt76.usb.usb_ctrl_mtx.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 dev->mt76.usb.usb_ctrl_mtx.osq.tail.counter 0-s32max
PARAM_VALUE 0 dev->reg_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 *dev->mphy.aggr_stats 0-4294967295
PARAM_VALUE 0 *dev->mt76.hw->wiphy->fw_version 0-255
PARAM_VALUE 0 *dev->mt76.tx_napi_dev->name 0-255
PARAM_VALUE 1 func 1
PARAM_VALUE 2 val 1
BUF_SIZE 0 dev->mt76.mcu_ops 88
DATA_SOURCE 0 dev $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 0 dev->mt76->sdio.func->tmpbuf 0-255
HOST_DATA 0 dev->mt76.mmio.irqmask 0-u32max[c]
HOST_DATA 0 dev->mt76.rx_token.idr_rt.xa_flags 0-u32max
HOST_DATA 0 dev->mt76.rxfilter 0-u32max
HOST_DATA 0 dev->mt76.token.idr_rt.xa_flags 0,67108864-u32max
UNITS 0 dev unit_byte

drivers/net/wireless/mediatek/mt76/mt76x2/usb_mcu.c mt76x2u_mcu_init() -> mt76x02_mcu_function_select()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->mt76.bus 4096-ptr_max
PARAM_VALUE 0 dev->mt76.bus->rr 4096-ptr_max
PARAM_VALUE 0 dev->mt76.bus->wr 4096-ptr_max
PARAM_VALUE 0 dev->mt76.dev 0,4096-ptr_max
PARAM_VALUE 0 dev->mt76.dev->bus 0,4096-ptr_max
PARAM_VALUE 0 dev->mt76.dev->class 0,4096-ptr_max
PARAM_VALUE 0 dev->mt76.dev->driver 0,4096-ptr_max
PARAM_VALUE 0 dev->mt76.sdio.func->card->host->ongoing_mrq->cmd_completion.done 0-4294967293,4294967295
PARAM_VALUE 0 dev->mt76.sdio.func->card->host->ongoing_mrq->uhs2_cmd.packet_len 0,4-12
PARAM_VALUE 0 dev->mt76.sdio.func->card->host->ongoing_mrq->uhs2_cmd.payload_len 0-8
PARAM_VALUE 0 dev->mt76.sdio.func->card->host->ongoing_mrq->uhs2_cmd.tmode_half_duplex 0-1
PARAM_VALUE 0 dev->mt76.sdio.func->card->host->ongoing_mrq->uhs2_cmd.uhs2_resp_len 0,4-6,8
PARAM_VALUE 0 dev->mt76.sdio.func->card->host->private->dev->iommu->priv->domain->pd_mode 0-2
PARAM_VALUE 0 dev->mt76.sdio.func->card->host->private->dev->iommu->priv->domain->pscid (-4095)-s32max
PARAM_VALUE 0 dev->mt76.usb.usb_ctrl_mtx->first_waiter->task->blocked_lock.owner (-4611686018427387904)-4611686018427387903
PARAM_VALUE 0 dev->mt76.usb.usb_ctrl_mtx.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 dev->mt76.usb.usb_ctrl_mtx.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 dev->mt76.usb.usb_ctrl_mtx.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 dev->mt76.usb.usb_ctrl_mtx.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 dev->mt76.usb.usb_ctrl_mtx.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 dev->mt76.usb.usb_ctrl_mtx.osq.tail.counter 0-s32max
PARAM_VALUE 0 dev->reg_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 *dev->mt76.hw->wiphy->fw_version 0-255
PARAM_VALUE 1 func 1
PARAM_VALUE 2 val 1
BUF_SIZE 0 dev s32min-(-1),1-s32max
BUF_SIZE 0 dev s32min-(-1),1-s32max
DATA_SOURCE 0 dev $0
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 0 dev->mt76.mmio.irqmask 0-u32max[c]
HOST_DATA 0 dev->mt76.rx_token.idr_rt.xa_flags 0-u32max
HOST_DATA 0 dev->mt76.rxfilter 0-u32max
HOST_DATA 0 dev->mt76.token.idr_rt.xa_flags 0,67108864-u32max
UNITS 0 dev unit_byte

drivers/net/wireless/mediatek/mt76/mt76x0/phy.c mt76x0_phy_bbp_set_bw() -> mt76x02_mcu_function_select()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->beacon_ops 4096-ptr_max
PARAM_VALUE 1 func 2
PARAM_VALUE 2 val 0-2,4
DATA_SOURCE 0 dev $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &dev->mutex
TYPE_LOCK (struct mt76_dev)->mutex