Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
drivers/net/ethernet/microchip/vcap/vcap_api.c vcap_add_rule() -> vcap_write_counter()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ri | 4096-ptr_max |
| PARAM_VALUE | 0 | ri->admin | 4096-ptr_max |
| PARAM_VALUE | 0 | ri->admin->vctrl->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | ri->admin->vctrl->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | ri->admin->vctrl->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | ri->state | 0-2 |
| PARAM_VALUE | 0 | ri->vctrl | 4096-ptr_max |
| PARAM_VALUE | 0 | ri->vctrl->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | ri->vctrl->ops->cache_erase | 4096-ptr_max |
| PARAM_VALUE | 0 | ri->vctrl->ops->cache_read | 4096-ptr_max |
| PARAM_VALUE | 0 | ri->vctrl->ops->cache_write | 4096-ptr_max |
| PARAM_VALUE | 0 | ri->vctrl->ops->init | 4096-ptr_max |
| PARAM_VALUE | 0 | ri->vctrl->ops->move | 4096-ptr_max |
| PARAM_VALUE | 0 | ri->vctrl->ops->port_info | 4096-ptr_max |
| PARAM_VALUE | 0 | ri->vctrl->ops->update | 4096-ptr_max |
| PARAM_VALUE | 0 | ri->vctrl->vcaps | 4096-ptr_max |
| PARAM_VALUE | 1 | ctr | 128762034967154688 |
| PARAM_VALUE | 1 | ctr->sticky | 0 |
| PARAM_VALUE | 1 | ctr->value | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | 0 | &ri->admin->vctrl->lock | |
| TYPE_LOCK | (struct vcap_control)->lock |
drivers/net/ethernet/microchip/vcap/vcap_api.c vcap_get_rule_count_by_cookie() -> vcap_write_counter()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ri | 4096-ptr_max |
| PARAM_VALUE | 0 | ri->admin | 4096-ptr_max |
| PARAM_VALUE | 0 | ri->vctrl | 4096-ptr_max |
| PARAM_VALUE | 0 | ri->vctrl->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | ri->vctrl->ops->cache_read | 4096-ptr_max |
| PARAM_VALUE | 0 | ri->vctrl->ops->cache_write | 4096-ptr_max |
| PARAM_VALUE | 0 | ri->vctrl->ops->update | 4096-ptr_max |
| PARAM_VALUE | 1 | ctr | 8737013134655995904 |
| PARAM_VALUE | 1 | ctr->sticky | 0 |
| PARAM_VALUE | 1 | ctr->value | 0 |
| CAPPED_DATA | 0 | ri->data.cookie | 1 |
| CAPPED_DATA | 0 | &ri->list | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | ri->admin->cache.counter | 0-u32max |
| HOST_DATA | 0 | ri->admin->cache.sticky | 0-1 |
| LOCK2 | &admin->vctrl->lock | ||
| HALF_LOCKED2 | &block->cb_lock | ||
| HALF_LOCKED2 | &flowtable->flow_block_lock | ||
| TYPE_LOCK | (struct vcap_control)->lock |
drivers/net/ethernet/microchip/vcap/vcap_api.c vcap_mod_rule() -> vcap_write_counter()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ri | 4096-ptr_max |
| PARAM_VALUE | 0 | ri->actionset_sw_regs | s32min-(-1),1-s32max |
| PARAM_VALUE | 0 | ri->admin | 4096-ptr_max |
| PARAM_VALUE | 0 | ri->data.actionset | 0-8 |
| PARAM_VALUE | 0 | ri->data.keyset | 0-30 |
| PARAM_VALUE | 0 | ri->keyset_sw_regs | s32min-(-1),1-s32max |
| PARAM_VALUE | 0 | ri->size | s32min-(-1),1-s32max |
| PARAM_VALUE | 0 | ri->state | 0-1 |
| PARAM_VALUE | 0 | ri->vctrl | 4096-ptr_max |
| PARAM_VALUE | 0 | ri->vctrl->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | ri->vctrl->ops->cache_erase | 4096-ptr_max |
| PARAM_VALUE | 0 | ri->vctrl->ops->cache_read | 4096-ptr_max |
| PARAM_VALUE | 0 | ri->vctrl->ops->cache_write | 4096-ptr_max |
| PARAM_VALUE | 0 | ri->vctrl->ops->init | 4096-ptr_max |
| PARAM_VALUE | 0 | ri->vctrl->ops->move | 4096-ptr_max |
| PARAM_VALUE | 0 | ri->vctrl->ops->port_info | 4096-ptr_max |
| PARAM_VALUE | 0 | ri->vctrl->ops->update | 4096-ptr_max |
| PARAM_VALUE | 0 | ri->vctrl->vcaps | 4096-ptr_max |
| PARAM_VALUE | 1 | ctr | 3688229852160155648 |
| CAPPED_DATA | 0 | ri->data.actionset | 1 |
| CAPPED_DATA | 0 | ri->data.id | 1 |
| CAPPED_DATA | 0 | ri->data.keyset | 1 |
| CAPPED_DATA | 0 | ri->size | 1 |
| PARAM_COMPARE | 0 | &ri->data.keyfields | != $0->data.keyfields.next |
| MEM_ZERO | 1 | ctr | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &admin->vctrl->lock |
drivers/net/ethernet/microchip/vcap/vcap_api.c vcap_rule_set_counter() -> vcap_write_counter()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ri | 3040128114230210560,5730745271258648576 |
| PARAM_VALUE | 0 | ri->admin | 4096-ptr_max |
| PARAM_VALUE | 0 | ri->admin->vctrl->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | ri->admin->vctrl->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | ri->admin->vctrl->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | ri->vctrl | 4096-ptr_max |
| PARAM_VALUE | 0 | ri->vctrl->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | ri->vctrl->ops->cache_erase | 4096-ptr_max |
| PARAM_VALUE | 0 | ri->vctrl->ops->cache_read | 4096-ptr_max |
| PARAM_VALUE | 0 | ri->vctrl->ops->cache_write | 4096-ptr_max |
| PARAM_VALUE | 0 | ri->vctrl->ops->init | 4096-ptr_max |
| PARAM_VALUE | 0 | ri->vctrl->ops->move | 4096-ptr_max |
| PARAM_VALUE | 0 | ri->vctrl->ops->port_info | 4096-ptr_max |
| PARAM_VALUE | 0 | ri->vctrl->ops->update | 4096-ptr_max |
| PARAM_VALUE | 1 | ctr | 1678093478579916800,2344886634515558400 |
| PARAM_VALUE | 1 | ctr->value | 0,101 |
| DATA_SOURCE | 1 | ctr | $1 |
| HARD_MAX | 1 | ctr->value | 101 |
| LOCK2 | 0 | &ri->admin->vctrl->lock | |
| TYPE_LOCK | (struct vcap_control)->lock |