Defined in 2 files as a function:

Referenced in 2 files:

Smatch caller information:

drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_phy_module_eeprom() -> (struct xgbe_phy_impl_if)->module_eeprom()

Type Parameter Key Value
PARAM_VALUE 0 pdata 4096-ptr_max
PARAM_VALUE 0 pdata->phy_if.phy_impl.module_eeprom 1-u64max
PARAM_VALUE 1 eeprom 6609599417395372032
PARAM_VALUE 1 eeprom->len 1-4096
PARAM_VALUE 2 data 4096-ptr_max
BUF_SIZE 2 data 4096
BUF_SIZE 2 data 4096
CAPPED_DATA 1 eeprom->len 1
DATA_SOURCE 0 pdata $0
DATA_SOURCE 1 eeprom $1
DATA_SOURCE 2 data $2
CONTAINER 0 -168-88-1184+0 $(-1)
NOSPEC 1 eeprom->offset
RX_PATH
USER_DATA 1 eeprom->cmd 0-u32max
USER_DATA 1 eeprom->len 1-4095[c]
USER_DATA 1 eeprom->magic 0-u32max
USER_DATA 1 eeprom->offset 0-2147487742[c]
NO_OVERFLOW_SIMPLE 1 eeprom->len
NO_OVERFLOW_SIMPLE 1 eeprom->offset
USER_PTR 1 eeprom->data
HALF_LOCKED2 global &rtnl_mutex

drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c xgbe_get_module_eeprom() -> (struct xgbe_phy_if)->module_eeprom()

Type Parameter Key Value
PARAM_VALUE 0 pdata 4096-ptr_max
PARAM_VALUE 1 eeprom 6609599417395372032
PARAM_VALUE 1 eeprom->len 1-4096
PARAM_VALUE 2 data 4096-ptr_max
BUF_SIZE 2 data 4096
BUF_SIZE 2 data 4096
DATA_SOURCE 1 eeprom $1
DATA_SOURCE 2 data $2
CONTAINER 0 -80-1184+0 $(-1)
NOSPEC 1 eeprom->offset
RX_PATH
USER_DATA 1 eeprom->cmd 0-u32max
USER_DATA 1 eeprom->len 1-4095[c]
USER_DATA 1 eeprom->magic 0-u32max
USER_DATA 1 eeprom->offset 0-2147487742[c]
NO_OVERFLOW_SIMPLE 1 eeprom->len
NO_OVERFLOW_SIMPLE 1 eeprom->offset
USER_PTR 1 eeprom->data