Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

drivers/accel/habanalabs/common/hw_queue.c init_signal_cs() -> hl_cs_signal_sob_wraparound_handler()

Type Parameter Key Value
PARAM_VALUE 0 hdev 4096-ptr_max
PARAM_VALUE 0 hdev->asic_funcs 4096-ptr_max
PARAM_VALUE 0 hdev->kernel_queues 4096-ptr_max
PARAM_VALUE 2 hw_sob 3896593410737373184
PARAM_VALUE 2 *hw_sob 4096-ptr_max
PARAM_VALUE 3 count 1
PARAM_VALUE 4 encaps_sig 0
DATA_SOURCE 0 hdev $0
PREEMPT_ADD
UNITS 0 hdev unit_byte
UNITS 1 q_idx unit_array_size
LOCK2 &hdev->asic_specific->hw_queues_lock

drivers/accel/habanalabs/common/command_submission.c cs_ioctl_reserve_signals() -> hl_cs_signal_sob_wraparound_handler()

Type Parameter Key Value
PARAM_VALUE 0 hdev 4096-ptr_max
PARAM_VALUE 0 hdev->asic_funcs 4096-ptr_max
PARAM_VALUE 0 hdev->asic_prop.hw_queues_props 4096-ptr_max
PARAM_VALUE 0 hdev->asic_prop.max_queues 1-u32max
PARAM_VALUE 0 hdev->asic_specific->hw_queues_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 hdev->kernel_queues 4096-ptr_max
PARAM_VALUE 1 q_idx 0-4294967294
PARAM_VALUE 2 hw_sob 2037355851193643008
PARAM_VALUE 3 count 0-s16max
PARAM_VALUE 4 encaps_sig 1
CAPPED_DATA 1 q_idx 1
DATA_SOURCE 1 q_idx $1
DATA_SOURCE 3 count $2
PARAM_COMPARE 0 hdev->asic_prop.max_queues > $1
PARAM_COMPARE 1 q_idx < $0->asic_prop.max_queues
NOSPEC 1 q_idx
NOSPEC 1 q_idx
HARD_MAX 3 count s16max
PREEMPT_ADD <- disables preempt
USER_DATA 1 q_idx 0-s32max[c]
USER_DATA 3 count 0-s16max[u]
UNITS 1 q_idx unit_array_size
LOCK2 0 &hdev->asic_specific->hw_queues_lock