Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c hns_mac_add_uc_addr() -> hns_mac_get_inner_port_num()

Type Parameter Key Value
PARAM_VALUE 0 mac_cb 4096-ptr_max
PARAM_VALUE 0 mac_cb->dsaf_dev 4096-ptr_max
PARAM_VALUE 0 mac_cb->dsaf_dev->dsaf_mode 0-7,9-u32max
PARAM_VALUE 0 mac_cb->mac_type 0
PARAM_VALUE 2 port_num 2767666995357360137
DATA_SOURCE 0 mac_cb $0
DATA_SOURCE 1 vmid $1
MEM_ZERO 2 port_num

drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c hns_mac_change_vf_addr() -> hns_mac_get_inner_port_num()

Type Parameter Key Value
PARAM_VALUE 0 mac_cb 4096-ptr_max
PARAM_VALUE 0 mac_cb->addr_entry_idx 4096-ptr_max
PARAM_VALUE 0 mac_cb->dsaf_dev 4096-ptr_max
PARAM_VALUE 0 mac_cb->dsaf_dev->dsaf_mode 0-7,9-u32max
PARAM_VALUE 2 port_num 6684316530144845833
DATA_SOURCE 0 mac_cb $0
DATA_SOURCE 1 vmid $1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 global &rtnl_mutex

drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c hns_mac_clr_multicast() -> hns_mac_get_inner_port_num()

Type Parameter Key Value
PARAM_VALUE 0 mac_cb 4096-ptr_max
PARAM_VALUE 0 mac_cb->mac_type 0
PARAM_VALUE 2 port_num 4580871096022470656
DATA_SOURCE 0 mac_cb $0
DATA_SOURCE 1 vmid $1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &ndev->addr_list_lock
HALF_LOCKED2 &ndev->ethtool->rss_lock
HALF_LOCKED2 &ndev->lock
HALF_LOCKED2 bh
HALF_LOCKED2 global &rtnl_mutex

drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c hns_mac_rm_uc_addr() -> hns_mac_get_inner_port_num()

Type Parameter Key Value
PARAM_VALUE 0 mac_cb 4096-ptr_max
PARAM_VALUE 0 mac_cb->dsaf_dev 4096-ptr_max
PARAM_VALUE 0 mac_cb->dsaf_dev->dsaf_mode 0-7,9-u32max
PARAM_VALUE 0 mac_cb->mac_type 0
PARAM_VALUE 2 port_num 7911769484312604681
DATA_SOURCE 0 mac_cb $0
DATA_SOURCE 1 vmid $1
MEM_ZERO 2 port_num

drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c hns_mac_vm_config_bc_en() -> hns_mac_get_inner_port_num()

Type Parameter Key Value
PARAM_VALUE 0 mac_cb 4096-ptr_max
PARAM_VALUE 0 mac_cb->addr_entry_idx 4096-ptr_max
PARAM_VALUE 0 mac_cb->dsaf_dev 4096-ptr_max
PARAM_VALUE 0 mac_cb->dsaf_dev->dsaf_mode 0-7,9-u32max
PARAM_VALUE 0 mac_cb->mac_type 0,2-u32max
PARAM_VALUE 1 vmid 0
PARAM_VALUE 2 port_num 2977489827096973312
DATA_SOURCE 0 mac_cb $0
DATA_SOURCE 1 vmid $1
RX_PATH
TASK_NOT_RUNNING

drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c hns_ae_set_multicast_one() -> hns_mac_get_inner_port_num()

Type Parameter Key Value
PARAM_VALUE 0 mac_cb 4096-ptr_max
PARAM_VALUE 0 mac_cb->dsaf_dev 4096-ptr_max
PARAM_VALUE 0 mac_cb->dsaf_dev->dsaf_mode 0-6,8-16
PARAM_VALUE 0 mac_cb->dsaf_dev->tcam_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 mac_cb->dsaf_dev->tcam_max_num 0,506,512
PARAM_VALUE 0 mac_cb->mac_type 0
PARAM_VALUE 2 port_num 2145195534319894528
CAPPED_DATA 0 mac_cb->dsaf_dev->tcam_max_num 1
DATA_SOURCE 0 mac_cb r hns_get_mac_cb
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &ndev->addr_list_lock
HALF_LOCKED2 &ndev->ethtool->rss_lock
HALF_LOCKED2 &ndev->lock
HALF_LOCKED2 bh
HALF_LOCKED2 global &rtnl_mutex

drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c set_promisc_tcam_enable() -> hns_mac_get_inner_port_num()

Type Parameter Key Value
PARAM_VALUE 1 vmid 0
PARAM_VALUE 2 port_num 5531046742774587392
RX_PATH
TASK_NOT_RUNNING