Documented in 1 files:
Defined in 1 files as a function:
Referenced in 8 files:
- include/sound/pcm.h
- sound/core/oss/pcm_oss.c, line 2835
- sound/core/pcm_local.h, line 41
- sound/core/pcm_native.c
- sound/core/pcm_trace.h, line 127
- sound/core/sound_kunit.c, line 252
- sound/drivers/vx/vx_pcm.c, line 993
- sound/soc/mediatek/mt8186/mt8186-afe-pcm.c, line 224
Smatch caller information:
sound/soc/mediatek/mt8186/mt8186-afe-pcm.c mt8186_fe_trigger() -> snd_pcm_capture_avail()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | runtime | 4096-ptr_max |
sound/core/sound_kunit.c test_capture_avail() -> snd_pcm_capture_avail()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | runtime | 4096-ptr_max |
| PARAM_VALUE | 0 | runtime->control | 4096-ptr_max |
| PARAM_VALUE | 0 | runtime->status | 4096-ptr_max |
| BUF_SIZE | 0 | runtime | 1344 |
| BUF_SIZE | 0 | runtime->control | 16 |
| BUF_SIZE | 0 | runtime->status | 56 |
| DATA_SOURCE | 0 | runtime | r kunit_kzalloc |
| MEM_ZERO | 0 | runtime | |
| MEM_ZERO | 0 | runtime->control | |
| MEM_ZERO | 0 | runtime->status |
sound/soc/fsl/imx-pcm-rpmsg.c snd_pcm_capture_hw_avail() -> snd_pcm_capture_avail()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | runtime | 4096-ptr_max |
| PARAM_VALUE | 0 | runtime->control | 4096-ptr_max |
| DATA_SOURCE | 0 | runtime | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | runtime->no_period_wakeup | 0-1 |
| USER_DATA | 0 | runtime->rate_den | 0-u32max |
| USER_DATA | 0 | runtime->rate_num | 0-u32max |
| USER_PTR | 0 | runtime->oss.buffer | |
| HALF_LOCKED2 | &substream->runtime->buffer_mutex | ||
| HALF_LOCKED2 | &substream->self_group.lock | ||
| HALF_LOCKED2 | &substream->self_group.mutex |
sound/core/pcm_lib.c snd_pcm_avail() -> snd_pcm_capture_avail()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | runtime->dma_buffer_p->addr | 9223372036854788096-9223372036855042047[c] |
| USER_DATA | 0 | runtime->dma_buffer_p->bytes | 0,4096-4294967296[c] |
| USER_DATA | 0 | runtime->no_period_wakeup | 0-1 |
| USER_DATA | 0 | runtime->rate_den | 0-u32max |
| USER_DATA | 0 | runtime->rate_num | 0-u32max |
| USER_DATA | 0 | runtime->trigger_master->f_flags | 0-u32max |
| USER_DATA | 0 | *runtime->oss.buffer | 0-255 |
| USER_PTR | 0 | runtime->oss.buffer | |
| HALF_LOCKED2 | 0 | &runtime->buffer_mutex |
sound/core/pcm_native.c snd_pcm_avail() -> snd_pcm_capture_avail()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING |
sound/core/pcm_native.c snd_pcm_calc_delay() -> snd_pcm_capture_avail()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING |
sound/core/pcm_native.c snd_pcm_capture_hw_avail() -> snd_pcm_capture_avail()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | runtime | 4096-ptr_max |
| DATA_SOURCE | 0 | runtime | $0 |
sound/core/pcm_native.c snd_pcm_do_drain_init() -> snd_pcm_capture_avail()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | runtime | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | runtime->no_period_wakeup | 0-1 |
| USER_DATA | 0 | runtime->rate_den | 0-u32max |
| USER_DATA | 0 | runtime->rate_num | 0-u32max |
| USER_PTR | 0 | runtime->oss.buffer | |
| HALF_LOCKED2 | &substream->runtime->buffer_mutex | ||
| HALF_LOCKED2 | &substream->self_group.lock | ||
| HALF_LOCKED2 | &substream->self_group.mutex | ||
| HALF_LOCKED2 | _T->lock |
sound/drivers/vx/vx_pcm.c vx_pcm_capture_update() -> snd_pcm_capture_avail()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | runtime | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | _T->lock |
sound/core/oss/pcm_oss.c snd_pcm_oss_capture_ready() -> snd_pcm_capture_avail()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | runtime | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &kvm->irq_srcu | ||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | &vm->irqfds_lock | ||
| HALF_LOCKED2 | global &irqfds_srcu |