Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c bnxt_xdp_set() -> bnxt_check_rings()

Type Parameter Key Value
PARAM_VALUE 0 bp 4096-ptr_max
PARAM_VALUE 0 bp->flags 512-u32max
PARAM_VALUE 3 sh 1
PARAM_VALUE 4 tcs 1-255
DATA_SOURCE 0 bp $0
FUZZY_MAX 4 tcs 1
BIT_INFO 0 bp->flags 0x200,0xffffffff
RX_PATH
TASK_NOT_RUNNING
UNITS 1 tx unit_array_size
UNITS 2 rx unit_array_size
UNITS 4 tcs unit_array_size
UNITS 5 tx_xdp unit_array_size

drivers/net/ethernet/broadcom/bnxt/bnxt.c bnxt_setup_mq_tc() -> bnxt_check_rings()

Type Parameter Key Value
PARAM_VALUE 0 bp 4096-ptr_max
CAPPED_DATA 4 tcs 1
DATA_SOURCE 4 tcs $1
PARAM_COMPARE 0 bp->max_tc >= $4
PARAM_COMPARE 0 bp->num_tc != $4
PARAM_COMPARE 4 tcs != $0->num_tc
PARAM_COMPARE 4 tcs <= $0->max_tc
RX_PATH
TASK_NOT_RUNNING
USER_DATA 4 tcs 2-255[c]
UNITS 1 tx unit_array_size
UNITS 2 rx unit_array_size
UNITS 4 tcs unit_array_size
UNITS 5 tx_xdp unit_array_size
HALF_LOCKED2 global &rtnl_mutex

drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c bnxt_set_channels() -> bnxt_check_rings()

Type Parameter Key Value
PARAM_VALUE 0 bp 4096-ptr_max
PARAM_VALUE 0 bp->flags 16777216-u32max
PARAM_VALUE 1 tx 0
PARAM_VALUE 2 rx 0
PARAM_VALUE 4 tcs 0-255
PARAM_VALUE 5 tx_xdp 0
PARAM_COMPARE 1 tx == $2
PARAM_COMPARE 1 tx == $5
PARAM_COMPARE 2 rx == $1
PARAM_COMPARE 2 rx == $5
PARAM_COMPARE 5 tx_xdp == $1
PARAM_COMPARE 5 tx_xdp == $2
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 tx 0
UNITS 1 tx unit_array_size
UNITS 2 rx unit_array_size
UNITS 4 tcs unit_array_size
UNITS 5 tx_xdp unit_array_size