Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c bnx2x_get_fc_npiv() -> bnx2x_nvram_read()

Type Parameter Key Value
PARAM_VALUE 0 bp 4096-ptr_max
PARAM_VALUE 0 bp->common.shmem2_base 1-u32max
PARAM_VALUE 1 offset 1-u32max
PARAM_VALUE 2 ret_buf 4096-ptr_max
PARAM_VALUE 3 buf_size 1032
BUF_SIZE 2 ret_buf 1032
BUF_SIZE 2 ret_buf 1032
DATA_SOURCE 1 offset r readl
DATA_SOURCE 2 ret_buf r _kmalloc_noprof
HOST_DATA 1 offset 1-u32max
UNITS 3 buf_size unit_byte

drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c bnx2x_get_eeprom() -> bnx2x_nvram_read()

Type Parameter Key Value
PARAM_VALUE 0 bp 4096-ptr_max
PARAM_VALUE 0 bp->pdev 4096-ptr_max
PARAM_VALUE 2 ret_buf 16,4096-ptr_max
PARAM_VALUE 3 buf_size 0-4000000
BUF_SIZE 2 ret_buf 0-s32max
BUF_SIZE 2 ret_buf 0-s32max
DATA_SOURCE 2 ret_buf $2
NOSPEC 1 offset
NOSPEC 1 offset
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 offset 0-2147487742[c]
USER_DATA 3 buf_size 2-4095[c]
NO_OVERFLOW_SIMPLE 1 offset
NO_OVERFLOW_SIMPLE 3 buf_size
UNITS 1 offset unit_byte
UNITS 3 buf_size unit_byte

drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c bnx2x_nvram_crc() -> bnx2x_nvram_read()

Type Parameter Key Value
PARAM_VALUE 0 bp 4096-ptr_max
PARAM_VALUE 0 bp->pdev 4096-ptr_max
PARAM_VALUE 0 bp->pdev->sriov->num_VFs 0-u16max
PARAM_VALUE 0 bp->recovery_state 0
PARAM_VALUE 2 ret_buf 4096-ptr_max
PARAM_VALUE 3 buf_size 1-256
BUF_SIZE 2 ret_buf 256
BUF_SIZE 2 ret_buf 256
CAPPED_DATA 3 buf_size 1
DATA_SOURCE 0 bp $0
DATA_SOURCE 2 ret_buf $3
BIT_INFO 0 bp->flags 0x0,0xfffffdff
HOST_DATA 2 *ret_buf 0-255

drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c bnx2x_nvram_read32() -> bnx2x_nvram_read()

Type Parameter Key Value
PARAM_VALUE 0 bp 4096-ptr_max
PARAM_VALUE 0 bp->pdev 4096-ptr_max
PARAM_VALUE 0 bp->pdev->sriov->num_VFs 0-u16max
PARAM_VALUE 0 bp->recovery_state 0
PARAM_VALUE 2 ret_buf 3269125344923648000,4626960942986989568,5792040828688289792,6974658030247788544
PARAM_VALUE 3 buf_size 4,12
BUF_SIZE 2 ret_buf (-1),12
BUF_SIZE 2 ret_buf (-1),12
DATA_SOURCE 0 bp $0
DATA_SOURCE 1 offset $1
DATA_SOURCE 2 ret_buf $2
DATA_SOURCE 3 buf_size $3
BIT_INFO 0 bp->flags 0x0,0xfffffdff
HARD_MAX 3 buf_size 12
UNITS 3 buf_size unit_byte