Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 5 files:

Smatch caller information:

drivers/net/thunderbolt/main.c tbnet_open() -> tb_ring_free()

Type Parameter Key Value
PARAM_VALUE 0 ring 1-u64max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 global &rtnl_mutex

drivers/net/thunderbolt/main.c tbnet_open() -> tb_ring_free()

Type Parameter Key Value
PARAM_VALUE 0 ring 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 global &rtnl_mutex

drivers/net/thunderbolt/main.c tbnet_stop() -> tb_ring_free()

Type Parameter Key Value
PARAM_VALUE 0 ring->head 0
PARAM_VALUE 0 ring->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 ring->nhi->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 ring->running 0
PARAM_VALUE 0 ring->tail 0
PARAM_VALUE 0 ring->work.lockdep_map->name 0-255
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &dev->lock
HALF_LOCKED2 &rdev->wiphy.mtx
HALF_LOCKED2 global &rtnl_mutex

drivers/net/thunderbolt/main.c tbnet_stop() -> tb_ring_free()

Type Parameter Key Value
PARAM_VALUE 0 ring->head 0
PARAM_VALUE 0 ring->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 ring->nhi->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 ring->running 0
PARAM_VALUE 0 ring->tail 0
PARAM_VALUE 0 ring->work.lockdep_map->name 0-255
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &dev->lock
HALF_LOCKED2 &rdev->wiphy.mtx
HALF_LOCKED2 global &rtnl_mutex

drivers/thunderbolt/ctl.c tb_ctl_free() -> tb_ring_free()

Type Parameter Key Value
PARAM_VALUE 0 ring 1-u64max
BUF_SIZE 0 ring (-1),360
BUF_SIZE 0 ring (-1),360
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/thunderbolt/ctl.c tb_ctl_free() -> tb_ring_free()

Type Parameter Key Value
PARAM_VALUE 0 ring 1-u64max
BUF_SIZE 0 ring (-1),360
BUF_SIZE 0 ring (-1),360
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 0 ring->nhi->hop_count 0-1023

drivers/thunderbolt/stream.c tbstream_dev_start() -> tb_ring_free()

Type Parameter Key Value
PARAM_VALUE 0 ring->head 0
PARAM_VALUE 0 ring->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 ring->nhi->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 ring->tail 0
PARAM_VALUE 0 ring->work.lockdep_map->name 0-255
CAPPED_DATA 0 ring->size 1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &sdev->lock

drivers/thunderbolt/stream.c tbstream_dev_start() -> tb_ring_free()

Type Parameter Key Value
PARAM_VALUE 0 ring 4096-ptr_max
PARAM_VALUE 0 ring->head 0
PARAM_VALUE 0 ring->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 ring->nhi 4096-ptr_max
PARAM_VALUE 0 ring->nhi->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 ring->tail 0
PARAM_VALUE 0 ring->work.lockdep_map->name 0-255
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &sdev->lock

drivers/thunderbolt/stream.c tbstream_dev_stop() -> tb_ring_free()

Type Parameter Key Value
PARAM_VALUE 0 ring 4096-ptr_max
PARAM_VALUE 0 ring->head 0
PARAM_VALUE 0 ring->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 ring->nhi 4096-ptr_max
PARAM_VALUE 0 ring->nhi->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 ring->running 0
PARAM_VALUE 0 ring->size 0-s32max
PARAM_VALUE 0 ring->tail 0
PARAM_VALUE 0 ring->work.lockdep_map->name 0-255
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &sdev->lock

drivers/thunderbolt/stream.c tbstream_dev_stop() -> tb_ring_free()

Type Parameter Key Value
PARAM_VALUE 0 ring 4096-ptr_max
PARAM_VALUE 0 ring->head 0
PARAM_VALUE 0 ring->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 ring->nhi 4096-ptr_max
PARAM_VALUE 0 ring->nhi->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 ring->running 0
PARAM_VALUE 0 ring->size 0-s32max
PARAM_VALUE 0 ring->tail 0
PARAM_VALUE 0 ring->work.lockdep_map->name 0-255
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &sdev->lock

drivers/thunderbolt/dma_test.c dma_test_free_rings() -> tb_ring_free()

Type Parameter Key Value
PARAM_VALUE 0 ring 1-u64max
NOCHECK_CALL
LOCK2 &attr->mutex
LOCK2 &dt->lock
TYPE_LOCK (struct dma_test)->lock
TYPE_LOCK (struct simple_attr)->mutex

drivers/thunderbolt/dma_test.c dma_test_free_rings() -> tb_ring_free()

Type Parameter Key Value
PARAM_VALUE 0 ring 1-u64max
NOCHECK_CALL
LOCK2 &attr->mutex
LOCK2 &dt->lock
TYPE_LOCK (struct dma_test)->lock
TYPE_LOCK (struct simple_attr)->mutex