Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
drivers/net/ethernet/broadcom/tg3.c tg3_poll_link() -> tg3_setup_phy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tp | 4096-ptr_max |
| PARAM_VALUE | 0 | tp->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | tp->napi | 4096-ptr_max |
| PARAM_VALUE | 0 | tp->tg3_flags | 4096-ptr_max |
| PARAM_VALUE | 1 | force_reset | 0 |
| DATA_SOURCE | 0 | tp | $0 |
| PREEMPT_ADD | <- disables preempt | ||
| NOCHECK_CALL | |||
| LOCK2 | 0 | &tp->lock | |
| TYPE_LOCK | (struct tg3)->lock |
drivers/net/ethernet/broadcom/tg3.c tg3_power_down_prepare() -> tg3_setup_phy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tp | 4096-ptr_max |
| PARAM_VALUE | 0 | tp->dev | 0,4096-ptr_max |
| PARAM_VALUE | 0 | tp->dev->rtnl_link_ops->priv_size | 0,8,32,40,48,56,88,112,120,144,160,224,240,256,296,616,624,728,736,1056,1128,1336,1616,2176,2240,2272,2560,3296,3720,9688-u64max |
| PARAM_VALUE | 0 | tp->indirect_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | tp->pdev | 4096-ptr_max |
| PARAM_VALUE | 0 | tp->pdev->dev.power.can_wakeup | 1 |
| PARAM_VALUE | 0 | tp->pdev->error_state | 0-2,4-u32max |
| PARAM_VALUE | 0 | tp->tg3_flags | 4096-ptr_max |
| PARAM_VALUE | 0 | *tp->pdev->saved_config_space | 0-4294967295 |
| PARAM_VALUE | 1 | force_reset | 0 |
| DATA_SOURCE | 0 | tp | $0 |
| BIT_INFO | 0 | tp->phy_flags | 0x1,0xffffffcf |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HOST_DATA | 0 | tp->grc_local_ctrl | 0-u32max |
| HOST_DATA | 0 | tp->pci_clock_ctrl | 0-6291487,2147483648-u32max[c] |
| HOST_DATA | 0 | tp->pdev->acs_capabilities | 0-u16max |
| HOST_DATA | 0 | tp->pdev->bus->bridge_ctl | 0-u16max |
| HOST_DATA | 0 | tp->pdev->class | 0-16777215 |
| HOST_DATA | 0 | tp->pdev->current_state | 0-3[c] |
| HOST_DATA | 0 | tp->pdev->devcap | 0-u32max |
| HOST_DATA | 0 | tp->pdev->devfn | 0-503[c] |
| HOST_DATA | 0 | tp->pdev->device | 0-u16max |
| HOST_DATA | 0 | tp->pdev->eetlp_prefix_max | 0-7[c] |
| HOST_DATA | 0 | tp->pdev->fm_enabled | 0-1[c] |
| HOST_DATA | 0 | tp->pdev->hdr_type | 0-255[c] |
| HOST_DATA | 0 | tp->pdev->ide_cfg | 0-1[c] |
| HOST_DATA | 0 | tp->pdev->ide_tee_limit | 0-1[c] |
| HOST_DATA | 0 | tp->pdev->irq | 0-255 |
| HOST_DATA | 0 | tp->pdev->is_cxl | 0-1 |
| HOST_DATA | 0 | tp->pdev->multifunction | 0-1[c] |
| HOST_DATA | 0 | tp->pdev->nr_ide_mem | 0-255[c] |
| HOST_DATA | 0 | tp->pdev->pcie_flags_reg | 0-u16max |
| HOST_DATA | 0 | tp->pdev->pcie_mpss | 0-7[c] |
| HOST_DATA | 0 | tp->pdev->physfn->fm_enabled | 0-1[c] |
| HOST_DATA | 0 | tp->pdev->physfn->irq | 0-255 |
| HOST_DATA | 0 | tp->pdev->pin | 0 |
| HOST_DATA | 0 | tp->pdev->pme_support | 0-31[c] |
| HOST_DATA | 0 | tp->pdev->ptm_granularity | 0-255[c] |
| HOST_DATA | 0 | tp->pdev->revision | 0-255 |
| HOST_DATA | 0 | tp->pdev->subsystem_device | 0-u16max |
| HOST_DATA | 0 | tp->pdev->subsystem_vendor | 0-u16max |
| HOST_DATA | 0 | tp->pdev->supported_speeds | 0,2-254[c] |
| HOST_DATA | 0 | tp->pdev->transparent | 0[c] |
| HOST_DATA | 0 | tp->pdev->vendor | 0-u16max |
| HOST_DATA | 0 | tp->phy_otp | 1-u32max[c] |
| HOST_DATA | 0 | tp->tx_mode | 0-12583170[c] |
| NO_OVERFLOW_SIMPLE | 0 | tp->txq_req | |
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/ethernet/broadcom/tg3.c tg3_set_link_ksettings() -> tg3_setup_phy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tp | 4096-ptr_max |
| PARAM_VALUE | 0 | tp->link_config.advertising | 0,64-127 |
| PARAM_VALUE | 0 | tp->link_config.autoneg | 0-1 |
| PARAM_VALUE | 0 | tp->link_config.duplex | 0-1,255 |
| PARAM_VALUE | 0 | tp->link_config.speed | 10,100,1000,u32max |
| PARAM_VALUE | 0 | tp->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | tp->phy_flags | 0,8-u32max |
| PARAM_VALUE | 0 | tp->tg3_flags | 4096-ptr_max |
| PARAM_VALUE | 0 | *tp->dev->name | 0 |
| PARAM_VALUE | 1 | force_reset | 1 |
| FUZZY_MAX | 0 | tp->link_config.advertising | 0 |
| FUZZY_MAX | 0 | tp->link_config.duplex | 255 |
| FUZZY_MAX | 0 | tp->link_config.speed | u32max |
| BIT_INFO | 0 | tp->phy_flags | 0x8,0xffffffffffffffff |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | tp->link_config.autoneg | 0 |
| USER_DATA | 0 | tp->link_config.duplex | 0 |
| LOCK2 | bh | ||
| LOCK2 | 0 | &tp->lock | |
| TYPE_LOCK | (struct tg3)->lock |
drivers/net/ethernet/broadcom/tg3.c tg3_set_loopback() -> tg3_setup_phy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tp | 4096-ptr_max |
| PARAM_VALUE | 0 | tp->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | tp->mac_mode | 0,4-u32max |
| PARAM_VALUE | 0 | tp->tg3_flags | 4096-ptr_max |
| PARAM_VALUE | 0 | tp->write32 | 4096-ptr_max |
| PARAM_VALUE | 1 | force_reset | 1 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | bh | ||
| LOCK2 | 0 | &tp->lock | |
| TYPE_LOCK | (struct tg3)->lock |
drivers/net/ethernet/broadcom/tg3.c tg3_timer() -> tg3_setup_phy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tp | 4096-ptr_max |
| PARAM_VALUE | 0 | tp->dev->rtnl_link_ops->priv_size | 0,8,32,48,56,88,112,120,144,160,224,240,256,296,616,624,728,736,1056,1128,1336,1616,2176,2240,2272,2560,3296,3720,9688-u64max |
| PARAM_VALUE | 0 | tp->irq_sync | 0 |
| PARAM_VALUE | 0 | tp->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | tp->tg3_flags | 4096-ptr_max |
| PARAM_VALUE | 0 | tp->timer_counter | 0 |
| PARAM_VALUE | 1 | force_reset | 0 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | 0 | &tp->lock | |
| TYPE_LOCK | (struct tg3)->lock |
drivers/net/ethernet/broadcom/tg3.c tg3_timer() -> tg3_setup_phy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tp | 4096-ptr_max |
| PARAM_VALUE | 0 | tp->dev->rtnl_link_ops->priv_size | 0,8,32,48,56,88,112,120,144,160,224,240,256,296,616,624,728,736,1056,1128,1336,1616,2176,2240,2272,2560,3296,3720,9688-u64max |
| PARAM_VALUE | 0 | tp->irq_sync | 0 |
| PARAM_VALUE | 0 | tp->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | tp->tg3_flags | 4096-ptr_max |
| PARAM_VALUE | 0 | tp->timer_counter | 0 |
| PARAM_VALUE | 1 | force_reset | 0 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | 0 | &tp->lock | |
| TYPE_LOCK | (struct tg3)->lock |
drivers/net/ethernet/broadcom/tg3.c tg3_timer() -> tg3_setup_phy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tp | 4096-ptr_max |
| PARAM_VALUE | 0 | tp->dev->rtnl_link_ops->priv_size | 0,8,32,48,56,88,112,120,144,160,224,240,256,296,616,624,728,736,1056,1128,1336,1616,2176,2240,2272,2560,3296,3720,9688-u64max |
| PARAM_VALUE | 0 | tp->irq_sync | 0 |
| PARAM_VALUE | 0 | tp->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | tp->phy_flags | 32-u32max |
| PARAM_VALUE | 0 | tp->tg3_flags | 4096-ptr_max |
| PARAM_VALUE | 0 | tp->timer_counter | 0 |
| PARAM_VALUE | 1 | force_reset | 0 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | 0 | &tp->lock | |
| TYPE_LOCK | (struct tg3)->lock |