Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/pci/controller/pcie-mediatek-gen3.c mtk_pcie_probe() -> mtk_pcie_power_down()

Type Parameter Key Value
PARAM_VALUE 0 pcie 4096-ptr_max
PARAM_VALUE 0 pcie->base 4096-ptr_max
PARAM_VALUE 0 pcie->clks 4096-ptr_max
PARAM_VALUE 0 pcie->dev 4096-ptr_max
PARAM_VALUE 0 pcie->dev->bus 0,4096-ptr_max
PARAM_VALUE 0 pcie->dev->class 0,4096-ptr_max
PARAM_VALUE 0 pcie->dev->devres_head.prev 4096-ptr_max
PARAM_VALUE 0 pcie->dev->devres_head.prev->next 4096-ptr_max
PARAM_VALUE 0 pcie->dev->devres_head.prev->next->next 4096-ptr_max
PARAM_VALUE 0 pcie->dev->dma_mem->pfn_base 0-s64max
PARAM_VALUE 0 pcie->dev->of_node 4096-ptr_max
PARAM_VALUE 0 pcie->dev->power.last_status (-1)
PARAM_VALUE 0 pcie->dev->power.request 0-4
PARAM_VALUE 0 pcie->dev->power.runtime_error s32min-(-17),(-15)-(-14),(-12),(-10)-s32max
PARAM_VALUE 0 pcie->dev->power.wakeirq->status 0-4294967295
PARAM_VALUE 0 pcie->dev->type 0,4096-ptr_max
PARAM_VALUE 0 pcie->intx_domain 4096-ptr_max
PARAM_VALUE 0 pcie->irq 1-s32max
PARAM_VALUE 0 pcie->irq_lock.magic 3735899821
PARAM_VALUE 0 pcie->irq_lock.owner (-1)
PARAM_VALUE 0 pcie->irq_lock.owner_cpu u32max
PARAM_VALUE 0 pcie->lock.dep_map->name 0-255
PARAM_VALUE 0 pcie->lock.first_waiter 0
PARAM_VALUE 0 pcie->lock.magic 4096-ptr_max
PARAM_VALUE 0 pcie->lock.osq.tail.counter 0
PARAM_VALUE 0 pcie->lock.owner.counter 0
PARAM_VALUE 0 pcie->mac_reset 0,4096-ptr_max
PARAM_VALUE 0 pcie->max_link_speed 1-15
PARAM_VALUE 0 pcie->msi_bottom_domain 4096-ptr_max
PARAM_VALUE 0 pcie->msi_bottom_domain->msi_parent_ops 5638028344591183872
PARAM_VALUE 0 pcie->msi_bottom_domain->msi_parent_ops->bus_select_token 3
PARAM_VALUE 0 pcie->num_clks 0-s32max
PARAM_VALUE 0 pcie->num_lanes 1-16
PARAM_VALUE 0 pcie->phy 0,4096-ptr_max
PARAM_VALUE 0 pcie->phy->dev.power.request 0-4
PARAM_VALUE 0 pcie->phy->dev.power.runtime_error s32min-(-17),(-15)-(-14),(-12),(-10)-s32max
PARAM_VALUE 0 pcie->phy->dev.power.wakeirq->status 0-4294967295
PARAM_VALUE 0 pcie->phy->ops 4096-ptr_max
PARAM_VALUE 0 pcie->phy->ops->owner->refcnt.counter 0-s32max
PARAM_VALUE 0 pcie->phy->ops->owner->state 0-1,3-u32max
PARAM_VALUE 0 pcie->phy->pwr->enable_count 0-4294967295
PARAM_VALUE 0 pcie->phy->pwr->rdev->ena_gpio_state 1
PARAM_VALUE 0 pcie->phy->pwr->rdev->ena_pin->enable_count 0-4294967295
PARAM_VALUE 0 pcie->phy->pwr->rdev->reg_data->enabled_updated 0
PARAM_VALUE 0 pcie->phy->pwr->rdev->reg_data->load 0-4294967295
PARAM_VALUE 0 pcie->phy->pwr->rdev->reg_data->load_updated 0-1
PARAM_VALUE 0 pcie->phy->pwr->rdev->reg_data->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 pcie->phy->pwr->rdev->reg_data->lock.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 pcie->phy->pwr->rdev->reg_data->lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 pcie->phy->pwr->rdev->reg_data->lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 pcie->phy->pwr->rdev->reg_data->lock.first_waiter->task->blocked_on 0
PARAM_VALUE 0 pcie->phy->pwr->rdev->reg_data->lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 pcie->phy->pwr->rdev->reg_data->lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 pcie->phy->pwr->rdev->reg_data->regmap->async 0
PARAM_VALUE 0 pcie->phy->pwr->rdev->reg_data->regmap->cache->cached_rbnode->base_reg 0-4294967295
PARAM_VALUE 0 pcie->phy->pwr->rdev->reg_data->regmap->cache->cached_rbnode->blklen 0-4294967295
PARAM_VALUE 0 pcie->phy->pwr->rdev->reg_data->uv_updated 0
PARAM_VALUE 0 pcie->phy->pwr->rdev->regmap->async 0-1
PARAM_VALUE 0 pcie->phy->pwr->rdev->regmap->cache->cached_rbnode->base_reg 0-4294967295
PARAM_VALUE 0 pcie->phy->pwr->rdev->regmap->cache->cached_rbnode->blklen 0-4294967295
PARAM_VALUE 0 pcie->phy->pwr->rdev->regmap->cache->cached_rbnode->node.__rb_parent_color 0-1
PARAM_VALUE 0 pcie->phy->pwr->rdev->regmap->cache_dirty 0-1
PARAM_VALUE 0 pcie->phy->pwr->rdev->supply->enable_count 0-4294967295
PARAM_VALUE 0 pcie->phy->pwr->rdev->use_count 0-4294967295
PARAM_VALUE 0 pcie->soc 4096-ptr_max
PARAM_VALUE 0 pcie->soc->flags 1-u32max
PARAM_VALUE 0 pcie->soc->phy_resets.num_resets 1,3
PARAM_VALUE 0 *pcie->phy->pwr->rdev->reg_data->lp->regmap->cache->data 0-4294967295
BUF_SIZE 0 pcie 0-1080
BUF_SIZE 0 pcie 0-1080
BUF_SIZE 0 pcie->dev 1616
CAPPED_DATA 0 pcie->dev 1
CAPPED_DATA 0 pcie->soc->phy_resets.num_resets 1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/pci/controller/pcie-mediatek-gen3.c mtk_pcie_remove() -> mtk_pcie_power_down()

Type Parameter Key Value
PARAM_VALUE 0 pcie 4096-ptr_max
PARAM_VALUE 0 pcie->dev 4096-ptr_max
PARAM_VALUE 0 pcie->soc 4096-ptr_max
PARAM_VALUE 0 pcie->soc->flags 1-u32max
BUF_SIZE 0 pcie s32min-(-2),1-s32max
BUF_SIZE 0 pcie s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 0 pcie unit_byte
HALF_LOCKED2 &_dev->mutex

drivers/pci/controller/pcie-mediatek-gen3.c mtk_pcie_resume_noirq() -> mtk_pcie_power_down()

Type Parameter Key Value
PARAM_VALUE 0 pcie 4096-ptr_max
PARAM_VALUE 0 pcie->dev->bus 0,4096-ptr_max
PARAM_VALUE 0 pcie->dev->class 0,4096-ptr_max
PARAM_VALUE 0 pcie->dev->driver 0,4096-ptr_max
PARAM_VALUE 0 pcie->dev->power.last_status (-1)
PARAM_VALUE 0 pcie->dev->power.request 0-4
PARAM_VALUE 0 pcie->dev->power.runtime_error s32min-(-17),(-15)-(-14),(-12),(-10)-s32max
PARAM_VALUE 0 pcie->dev->power.wakeirq->status 0-4294967295
PARAM_VALUE 0 pcie->dev->type 0,4096-ptr_max
PARAM_VALUE 0 pcie->phy 0,4096-ptr_max
PARAM_VALUE 0 pcie->phy->dev.power.request 0-4
PARAM_VALUE 0 pcie->phy->dev.power.runtime_error s32min-(-17),(-15)-(-14),(-12),(-10)-s32max
PARAM_VALUE 0 pcie->phy->dev.power.wakeirq->status 0-4294967295
PARAM_VALUE 0 pcie->phy->pwr 0,4096-ptr_max
PARAM_VALUE 0 pcie->phy->pwr->enable_count 0-4294967295
PARAM_VALUE 0 pcie->phy->pwr->rdev->ena_gpio_state 1
PARAM_VALUE 0 pcie->phy->pwr->rdev->ena_pin->enable_count 0-4294967295
PARAM_VALUE 0 pcie->phy->pwr->rdev->notifier.head->priority s32min-s32max
PARAM_VALUE 0 pcie->phy->pwr->rdev->reg_data->enabled_updated 0
PARAM_VALUE 0 pcie->phy->pwr->rdev->reg_data->load 0-4294967295
PARAM_VALUE 0 pcie->phy->pwr->rdev->reg_data->load_updated 0-1
PARAM_VALUE 0 pcie->phy->pwr->rdev->reg_data->lock->first_waiter->task->blocked_lock.owner (-4611686018427387904)-4611686018427387903
PARAM_VALUE 0 pcie->phy->pwr->rdev->reg_data->lock->wait_lock.owner (-4611686018427387904)-4611686018427387903
PARAM_VALUE 0 pcie->phy->pwr->rdev->reg_data->lock.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 pcie->phy->pwr->rdev->reg_data->lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 pcie->phy->pwr->rdev->reg_data->regmap->async 0
PARAM_VALUE 0 pcie->phy->pwr->rdev->reg_data->regmap->cache->cached_rbnode->base_reg 0-4294967295
PARAM_VALUE 0 pcie->phy->pwr->rdev->reg_data->regmap->cache->cached_rbnode->blklen 0-4294967295
PARAM_VALUE 0 pcie->phy->pwr->rdev->reg_data->uv_updated 0
PARAM_VALUE 0 pcie->phy->pwr->rdev->regmap->async 0-1
PARAM_VALUE 0 pcie->phy->pwr->rdev->regmap->cache->cached_rbnode->base_reg 0-4294967295
PARAM_VALUE 0 pcie->phy->pwr->rdev->regmap->cache->cached_rbnode->blklen 0-4294967295
PARAM_VALUE 0 pcie->phy->pwr->rdev->regmap->cache->cached_rbnode->node.__rb_parent_color 0-1
PARAM_VALUE 0 pcie->phy->pwr->rdev->regmap->cache_dirty 0-1
PARAM_VALUE 0 pcie->phy->pwr->rdev->supply->enable_count 0-4294967295
PARAM_VALUE 0 pcie->phy->pwr->rdev->use_count 0-4294967295
PARAM_VALUE 0 pcie->soc 4096-ptr_max
PARAM_VALUE 0 *pcie->phy->pwr->rdev->reg_data->lock.first_waiter->task->blocked_lock.owner (-4611686018427387904)-4611686018427387903
BUF_SIZE 0 pcie s32min-(-2),1-s32max
BUF_SIZE 0 pcie s32min-(-2),1-s32max
CAPPED_DATA 0 pcie->num_clks 1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 0 pcie unit_byte

drivers/pci/controller/pcie-mediatek-gen3.c mtk_pcie_setup() -> mtk_pcie_power_down()

Type Parameter Key Value
PARAM_VALUE 0 pcie 4096-ptr_max
PARAM_VALUE 0 pcie->base 4096-ptr_max
PARAM_VALUE 0 pcie->clks 4096-ptr_max
PARAM_VALUE 0 pcie->dev 4096-ptr_max
PARAM_VALUE 0 pcie->dev->bus 0,4096-ptr_max
PARAM_VALUE 0 pcie->dev->class 0,4096-ptr_max
PARAM_VALUE 0 pcie->dev->devres_head.prev->next 4096-ptr_max
PARAM_VALUE 0 pcie->dev->devres_head.prev->next->next 4096-ptr_max
PARAM_VALUE 0 pcie->dev->driver 0,4096-ptr_max
PARAM_VALUE 0 pcie->dev->of_node 0,4096-ptr_max
PARAM_VALUE 0 pcie->dev->power.last_status (-1)
PARAM_VALUE 0 pcie->dev->power.request 0-4
PARAM_VALUE 0 pcie->dev->power.runtime_error s32min-(-17),(-15)-(-14),(-12),(-10)-s32max
PARAM_VALUE 0 pcie->dev->power.wakeirq->status 0-4294967295
PARAM_VALUE 0 pcie->dev->type 0,4096-ptr_max
PARAM_VALUE 0 pcie->intx_domain 4096-ptr_max
PARAM_VALUE 0 pcie->irq 1-s32max
PARAM_VALUE 0 pcie->irq_lock.magic 3735899821
PARAM_VALUE 0 pcie->irq_lock.owner (-1)
PARAM_VALUE 0 pcie->irq_lock.owner_cpu u32max
PARAM_VALUE 0 pcie->lock.dep_map->name 0-255
PARAM_VALUE 0 pcie->lock.first_waiter 0
PARAM_VALUE 0 pcie->lock.magic 4096-ptr_max
PARAM_VALUE 0 pcie->lock.osq.tail.counter 0
PARAM_VALUE 0 pcie->lock.owner.counter 0
PARAM_VALUE 0 pcie->mac_reset 0,4096-ptr_max
PARAM_VALUE 0 pcie->msi_bottom_domain 4096-ptr_max
PARAM_VALUE 0 pcie->msi_bottom_domain->msi_parent_ops 5638028344591183872
PARAM_VALUE 0 pcie->msi_bottom_domain->msi_parent_ops->bus_select_token 3
PARAM_VALUE 0 pcie->num_clks 0-s32max
PARAM_VALUE 0 pcie->num_lanes 1-16
PARAM_VALUE 0 pcie->phy 0,4096-ptr_max
PARAM_VALUE 0 pcie->phy->dev.power.request 0-4
PARAM_VALUE 0 pcie->phy->dev.power.runtime_error s32min-(-17),(-15)-(-14),(-12),(-10)-s32max
PARAM_VALUE 0 pcie->phy->dev.power.wakeirq->status 0-4294967295
PARAM_VALUE 0 pcie->phy->ops 4096-ptr_max
PARAM_VALUE 0 pcie->phy->ops->owner->refcnt.counter 0-s32max
PARAM_VALUE 0 pcie->phy->ops->owner->state 0-1,3-u32max
PARAM_VALUE 0 pcie->phy->pwr 0,4096-ptr_max
PARAM_VALUE 0 pcie->phy->pwr->enable_count 0-4294967295
PARAM_VALUE 0 pcie->phy->pwr->rdev->ena_gpio_state 1
PARAM_VALUE 0 pcie->phy->pwr->rdev->ena_pin->enable_count 0-4294967295
PARAM_VALUE 0 pcie->phy->pwr->rdev->notifier.head->priority s32min-s32max
PARAM_VALUE 0 pcie->phy->pwr->rdev->reg_data->enabled_updated 0
PARAM_VALUE 0 pcie->phy->pwr->rdev->reg_data->load 0-4294967295
PARAM_VALUE 0 pcie->phy->pwr->rdev->reg_data->load_updated 0-1
PARAM_VALUE 0 pcie->phy->pwr->rdev->reg_data->lock->first_waiter->task->blocked_lock.owner (-4611686018427387904)-4611686018427387903
PARAM_VALUE 0 pcie->phy->pwr->rdev->reg_data->lock->wait_lock.owner (-4611686018427387904)-4611686018427387903
PARAM_VALUE 0 pcie->phy->pwr->rdev->reg_data->lock.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 pcie->phy->pwr->rdev->reg_data->lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 pcie->phy->pwr->rdev->reg_data->regmap->async 0
PARAM_VALUE 0 pcie->phy->pwr->rdev->reg_data->regmap->cache->cached_rbnode->base_reg 0-4294967295
PARAM_VALUE 0 pcie->phy->pwr->rdev->reg_data->regmap->cache->cached_rbnode->blklen 0-4294967295
PARAM_VALUE 0 pcie->phy->pwr->rdev->reg_data->uv_updated 0
PARAM_VALUE 0 pcie->phy->pwr->rdev->regmap->async 0-1
PARAM_VALUE 0 pcie->phy->pwr->rdev->regmap->cache->cached_rbnode->base_reg 0-4294967295
PARAM_VALUE 0 pcie->phy->pwr->rdev->regmap->cache->cached_rbnode->blklen 0-4294967295
PARAM_VALUE 0 pcie->phy->pwr->rdev->regmap->cache->cached_rbnode->node.__rb_parent_color 0-1
PARAM_VALUE 0 pcie->phy->pwr->rdev->regmap->cache_dirty 0-1
PARAM_VALUE 0 pcie->phy->pwr->rdev->supply->enable_count 0-4294967295
PARAM_VALUE 0 pcie->phy->pwr->rdev->use_count 0-4294967295
PARAM_VALUE 0 pcie->soc 4096-ptr_max
PARAM_VALUE 0 *pcie->phy->pwr->rdev->reg_data->lock.first_waiter->task->blocked_lock.owner (-4611686018427387904)-4611686018427387903
BUF_SIZE 0 pcie 0-1080
BUF_SIZE 0 pcie 0-1080
BUF_SIZE 0 pcie->dev 1616
CAPPED_DATA 0 pcie->num_clks 1
CAPPED_DATA 0 pcie->soc->phy_resets.num_resets 1
DATA_SOURCE 0 pcie $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/pci/controller/pcie-mediatek-gen3.c mtk_pcie_shutdown() -> mtk_pcie_power_down()

Type Parameter Key Value
PARAM_VALUE 0 pcie 4096-ptr_max
PARAM_VALUE 0 pcie->dev 4096-ptr_max
PARAM_VALUE 0 pcie->soc 4096-ptr_max
PARAM_VALUE 0 pcie->soc->flags 1-u32max
BUF_SIZE 0 pcie s32min-(-2),1-s32max
BUF_SIZE 0 pcie s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 0 pcie unit_byte
LOCK2 &_dev->mutex
HALF_LOCKED2 &parent->mutex
HALF_LOCKED2 global &system_transition_mutex
TYPE_LOCK (struct device)->mutex

drivers/pci/controller/pcie-mediatek-gen3.c mtk_pcie_suspend_noirq() -> mtk_pcie_power_down()

Type Parameter Key Value
PARAM_VALUE 0 pcie 4096-ptr_max
PARAM_VALUE 0 pcie->dev 4096-ptr_max
PARAM_VALUE 0 pcie->irq_lock.dep_map->name 0-255
PARAM_VALUE 0 pcie->irq_lock.owner (-1)
PARAM_VALUE 0 pcie->irq_lock.owner_cpu u32max
PARAM_VALUE 0 pcie->soc 4096-ptr_max
PARAM_VALUE 0 pcie->soc->flags 1-u32max
BUF_SIZE 0 pcie s32min-(-2),1-s32max
BUF_SIZE 0 pcie s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 0 pcie->irq s32min-s32max
HOST_DATA 0 pcie->irq_lock.magic 0-u32max
HOST_DATA 0 pcie->irq_lock.raw_lock.locked 0-255
HOST_DATA 0 pcie->irq_lock.raw_lock.locked_pending 0-u16max
HOST_DATA 0 pcie->irq_lock.raw_lock.pending 0-255
HOST_DATA 0 pcie->irq_lock.raw_lock.tail 0-u16max
HOST_DATA 0 pcie->irq_lock.raw_lock.val.counter 0-s32max
HOST_DATA 0 pcie->lock.osq.tail.counter s32min-s32max
HOST_DATA 0 pcie->lock.owner.counter s64min-s64max
HOST_DATA 0 pcie->max_link_speed 0-255
HOST_DATA 0 pcie->num_clks s32min-s32max
HOST_DATA 0 pcie->num_lanes 0-255
HOST_DATA 0 pcie->reg_base 0-u64max
HOST_DATA 0 pcie->saved_irq_state 0-u32max
HOST_DATA 0 *pcie s64min-s64max
UNITS 0 pcie unit_byte