Defined in 1 files as a prototype:

Defined in 2 files as a function:

Referenced in 3 files:

Smatch caller information:

drivers/net/ethernet/sfc/siena/mcdi.c efx_siena_mcdi_mtd_write() -> efx_mcdi_nvram_write()

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 &ftl->mutex
HALF_LOCKED2 &master->master.chrdev_lock
HALF_LOCKED2 &mbd->lock

drivers/net/ethernet/sfc/mcdi.c efx_mcdi_mtd_write() -> efx_mcdi_nvram_write()

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 &ftl->mutex
HALF_LOCKED2 &master->master.chrdev_lock
HALF_LOCKED2 &mbd->lock

drivers/net/ethernet/sfc/efx_reflash.c efx_reflash_write_partition() -> efx_mcdi_nvram_write()

Type Parameter Key Value
PARAM_VALUE 0 efx 4096-ptr_max
PARAM_VALUE 0 efx->devlink 4096-ptr_max
PARAM_VALUE 0 efx->mc_bist_for_other_fn 0
PARAM_VALUE 0 efx->mcdi->iface.resprc 0
PARAM_VALUE 0 efx->pci_dev->link_bwctrl->cdev (-22),(-19),(-12),0
PARAM_VALUE 0 efx->reflash_mutex.dep_map->name 0-255
PARAM_VALUE 0 efx->reflash_mutex.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 efx->reflash_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 efx->reflash_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 efx->reflash_mutex.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 efx->reflash_mutex.wait_lock.owner (-1)
PARAM_VALUE 0 efx->reflash_mutex.wait_lock.owner_cpu u32max
PARAM_VALUE 0 efx->reset_work.entry.next->prev 4096-ptr_max
PARAM_VALUE 0 efx->type 4096-ptr_max
PARAM_VALUE 0 efx->type->mcdi_max_ver 1-2
PARAM_VALUE 0 *efx->net_dev->name 0-255
PARAM_VALUE 0 *efx->nic_data->mcdi_buf.addr 0-255
PARAM_VALUE 2 offset (-768)-0,768
PARAM_VALUE 4 length 0,768,18446744073709550848
CAPPED_DATA 2 offset 1
DATA_SOURCE 0 efx $0
DATA_SOURCE 1 type $3
FUZZY_MAX 0 efx->type->mcdi_max_ver 2
RX_PATH
TASK_NOT_RUNNING
UNITS 3 buffer unit_byte
LOCK2 0 &efx->reflash_mutex
HALF_LOCKED2 &devlink->lock
TYPE_LOCK (struct efx_nic)->reflash_mutex

drivers/net/ethernet/sfc/efx_reflash.c efx_reflash_write_partition() -> efx_mcdi_nvram_write()

Type Parameter Key Value
PARAM_VALUE 0 efx 4096-ptr_max
PARAM_VALUE 0 efx->devlink 4096-ptr_max
PARAM_VALUE 0 efx->mc_bist_for_other_fn 0
PARAM_VALUE 0 efx->mcdi->iface.resprc 0
PARAM_VALUE 0 efx->pci_dev->link_bwctrl->cdev (-22),(-19),(-12),0
PARAM_VALUE 0 efx->reflash_mutex.dep_map->name 0-255
PARAM_VALUE 0 efx->reflash_mutex.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 efx->reflash_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 efx->reflash_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 efx->reflash_mutex.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 efx->reflash_mutex.wait_lock.owner (-1)
PARAM_VALUE 0 efx->reflash_mutex.wait_lock.owner_cpu u32max
PARAM_VALUE 0 efx->reset_work.entry.next->prev 4096-ptr_max
PARAM_VALUE 0 efx->type 4096-ptr_max
PARAM_VALUE 0 efx->type->mcdi_max_ver 1-2
PARAM_VALUE 0 *efx->net_dev->name 0-255
PARAM_VALUE 0 *efx->nic_data->mcdi_buf.addr 0-255
PARAM_VALUE 2 offset 0-4294967294
PARAM_VALUE 3 buffer 16,4096-ptr_max
PARAM_VALUE 4 length 0-4000000
BUF_SIZE 3 buffer 0-u64max
CAPPED_DATA 2 offset 1
DATA_SOURCE 0 efx $0
DATA_SOURCE 1 type $3
DATA_SOURCE 3 buffer r _kmalloc_noprof
FUZZY_MAX 0 efx->type->mcdi_max_ver 2
RX_PATH
TASK_NOT_RUNNING
UNITS 2 offset unit_byte
UNITS 4 length unit_byte
LOCK2 0 &efx->reflash_mutex
HALF_LOCKED2 &devlink->lock
TYPE_LOCK (struct efx_nic)->reflash_mutex