Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 5 files:
- drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c, line 2085
- drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c, line 1205
- drivers/net/ethernet/chelsio/cxgb4/t4_hw.c, line 2734
- drivers/pci/vpd.c
- drivers/vfio/pci/vfio_pci_config.c, line 824
Smatch caller information:
drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c set_eeprom() -> pci_write_vpd()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->dev.kobj.release.wq->dfl_pwq | 0-s64max |
| PARAM_VALUE | 0 | dev->dev.kobj.release.wq->saved_max_active | s32min-s32max |
| PARAM_VALUE | 0 | dev->dev.kobj.release.wq->saved_min_active | s32min-s32max |
| PARAM_VALUE | 0 | dev->vpd.lock->first_waiter->task->blocked_lock.owner | (-4611686018427387904)-4611686018427387903 |
| PARAM_VALUE | 0 | dev->vpd.lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | dev->vpd.lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | dev->vpd.lock.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | dev->vpd.lock.first_waiter->task->blocked_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | dev->vpd.lock.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | dev->vpd.lock.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | dev->vpd.lock.first_waiter->task->blocked_lock.raw_lock.val.counter | 0-s32max |
| PARAM_VALUE | 0 | dev->vpd.lock.first_waiter->task->blocked_on | 0 |
| PARAM_VALUE | 0 | dev->vpd.lock.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | dev->vpd.lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 1 | pos | 0,4-u32max |
| PARAM_VALUE | 2 | count | 0,4-4100 |
| PARAM_VALUE | 3 | buf | 16,4096-ptr_max |
| BUF_SIZE | 3 | buf | 0,4-4100 |
| CAPPED_DATA | 1 | pos | 1 |
| CAPPED_DATA | 2 | count | 1 |
| BIT_INFO | 1 | pos | 0x0,0xfffffffc |
| BIT_INFO | 2 | count | 0x0,0x1ffc |
| NOSPEC | 1 | pos | |
| USER_DATA | 1 | pos | 0,4-2147487740[c] |
| USER_DATA | 2 | count | 0,4-4100[c] |
| UNITS | 1 | pos | unit_byte |
| UNITS | 2 | count | unit_byte |
| USER_PTR | 3 | buf |
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c t4_seeprom_wp() -> pci_write_vpd()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | pos | 31740 |
| PARAM_VALUE | 2 | count | 4 |
| PARAM_VALUE | 3 | buf | 829695635052027904 |
| PARAM_VALUE | 3 | *buf | 0,12 |
| BUF_SIZE | 3 | buf | 4 |
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c eeprom_wr_phys() -> pci_write_vpd()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->vpd.lock->first_waiter->task->blocked_lock.owner | (-4611686018427387904)-4611686018427387903 |
| PARAM_VALUE | 0 | dev->vpd.lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | dev->vpd.lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | dev->vpd.lock.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | dev->vpd.lock.first_waiter->magic | 5159360019465732096 |
| PARAM_VALUE | 0 | dev->vpd.lock.first_waiter->task->blocked_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | dev->vpd.lock.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | dev->vpd.lock.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | dev->vpd.lock.first_waiter->task->blocked_lock.raw_lock.val.counter | s32min-s32max |
| PARAM_VALUE | 0 | dev->vpd.lock.first_waiter->task->blocked_on | 0 |
| PARAM_VALUE | 0 | dev->vpd.lock.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | dev->vpd.lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 1 | pos | 0-s32max |
| PARAM_VALUE | 2 | count | 4 |
| BUF_SIZE | 3 | buf | 4 |
| DATA_SOURCE | 1 | pos | r t4_eeprom_ptov |
| USER_DATA | 1 | pos | 31745-s16max[c] |
| UNITS | 2 | count | unit_byte |
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/vfio/pci/vfio_pci_config.c vfio_vpd_config_write() -> pci_write_vpd()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->cfg_size | 1-s32max |
| PARAM_VALUE | 0 | dev->dev.bus | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->dev.class | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->dev.power.request | 0-4 |
| PARAM_VALUE | 0 | dev->dev.power.runtime_error | s32min-(-17),(-15)-(-14),(-12),(-10)-s32max |
| PARAM_VALUE | 0 | dev->dev.power.wakeirq | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->dev.type | 0,4096-ptr_max |
| PARAM_VALUE | 1 | pos | 0-255 |
| PARAM_VALUE | 2 | count | 4 |
| PARAM_VALUE | 3 | buf | 4635670404402372608 |
| PARAM_VALUE | 3 | *buf | 0-255 |
| BUF_SIZE | 3 | buf | 4 |
| HOST_DATA | 0 | dev->current_state | 0-3[c] |
drivers/pci/vpd.c vpd_write() -> pci_write_vpd()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->dev.parent | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->dev.parent->bus | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->dev.parent->type | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->dev.power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 2 | count | 1-4096 |
| PARAM_VALUE | 3 | buf | 4096-ptr_max |
| CAPPED_DATA | 2 | count | 1 |
| CAPPED_DATA | 2 | count | 1 |
| DATA_SOURCE | 1 | pos | $4 |
| DATA_SOURCE | 2 | count | $5 |
| DATA_SOURCE | 3 | buf | $3 |
| BIT_INFO | 2 | count | 0x0,0x3fffffff |
| NOSPEC | 2 | count | |
| NOSPEC | 2 | count | |
| TERMINATED | 3 | buf | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | pos | 0-4095 |
| USER_DATA | 2 | count | 1-4096[c] |
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |