Defined in 2 files as a function:
- drivers/net/ethernet/sfc/mcdi.c, line 2198 (as a function)
- drivers/net/ethernet/sfc/siena/mcdi.c, line 2041 (as a function)
Referenced in 2 files:
Smatch caller information:
drivers/net/ethernet/sfc/siena/mcdi.c efx_siena_mcdi_mtd_read() -> efx_mcdi_nvram_read()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | offset | s64min-9223372036854775806 |
| PARAM_VALUE | 4 | length | 1-128 |
| BUF_SIZE | 0 | efx | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | efx | s32min-(-2),1-s32max |
| BUF_SIZE | 3 | buffer | (-1)-s32max |
| BUF_SIZE | 3 | buffer | (-1)-s32max |
| CAPPED_DATA | 2 | offset | 1 |
| CAPPED_DATA | 2 | offset | 1 |
| CAPPED_DATA | 4 | length | 1 |
| CAPPED_DATA | 4 | length | 1 |
| DATA_SOURCE | 3 | buffer | $4 [m] |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 2 | offset | 0-5294967421[c] |
| HOST_DATA | 3 | buffer | 4096-ptr_max[c] |
| HOST_DATA | 4 | length | 1-127[c] |
| USER_DATA | 2 | offset | s64min-(-9223372036854775683),0-9223372036854775806[c] |
| USER_DATA | 3 | buffer | 4096-ptr_max[c][u] |
| USER_DATA | 4 | length | 1-127[c] |
| UNITS | 0 | efx | unit_byte |
| UNITS | 1 | type | unit_array_size |
| UNITS | 2 | offset | unit_byte |
| UNITS | 4 | length | unit_byte |
| USER_PTR | 3 | buffer | |
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &master->master.chrdev_lock | ||
| HALF_LOCKED2 | global &mtd_table_mutex |
drivers/net/ethernet/sfc/mcdi.c efx_mcdi_mtd_read() -> efx_mcdi_nvram_read()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | offset | s64min-9223372036854775806 |
| PARAM_VALUE | 4 | length | 1-128 |
| BUF_SIZE | 0 | efx | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | efx | s32min-(-2),1-s32max |
| BUF_SIZE | 3 | buffer | (-1)-s32max |
| BUF_SIZE | 3 | buffer | (-1)-s32max |
| CAPPED_DATA | 2 | offset | 1 |
| CAPPED_DATA | 2 | offset | 1 |
| CAPPED_DATA | 4 | length | 1 |
| CAPPED_DATA | 4 | length | 1 |
| DATA_SOURCE | 3 | buffer | $4 [m] |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 2 | offset | 0-5294967421[c] |
| HOST_DATA | 3 | buffer | 4096-ptr_max[c] |
| HOST_DATA | 4 | length | 1-127[c] |
| USER_DATA | 2 | offset | s64min-(-9223372036854775683),0-9223372036854775806[c] |
| USER_DATA | 3 | buffer | 4096-ptr_max[c][u] |
| USER_DATA | 4 | length | 1-127[c] |
| UNITS | 0 | efx | unit_byte |
| UNITS | 1 | type | unit_array_size |
| UNITS | 2 | offset | unit_byte |
| UNITS | 4 | length | unit_byte |
| USER_PTR | 3 | buffer | |
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &master->master.chrdev_lock | ||
| HALF_LOCKED2 | global &mtd_table_mutex |