Documented in 1 files:
Defined in 1 files as a function:
Referenced in 11 files:
- sound/core/pcm_memory.c
- sound/pci/cs46xx/cs46xx_lib.c
- sound/pci/es1968.c, line 1440
- sound/pci/korg1212/korg1212.c
- sound/pci/rme9652/hdsp.c
- sound/pci/rme9652/rme9652.c
- sound/soc/google/chv3-i2s.c, line 196
- sound/soc/loongson/loongson_dma.c, line 159
- sound/soc/mediatek/mt8365/mt8365-afe-pcm.c
- sound/soc/qcom/lpass-platform.c
- sound/soc/samsung/idma.c
Smatch caller information:
sound/soc/samsung/idma.c idma_hw_free() -> snd_pcm_set_runtime_buffer()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | substream | 4096-ptr_max |
| PARAM_VALUE | 1 | bufp | 0 |
| CAPPED_DATA | 0 | substream | 1 |
| DATA_SOURCE | 0 | substream | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | substream->f_flags | 0-u32max |
| USER_DATA | 0 | substream->runtime->dma_buffer_p->addr | 9223372036854788096-9223372036855042047[c] |
| USER_DATA | 0 | substream->runtime->dma_buffer_p->bytes | 0,4096-4294967296[c] |
| USER_DATA | 0 | substream->runtime->no_period_wakeup | 0-1 |
| USER_DATA | 0 | substream->runtime->rate_den | 0-u32max |
| USER_DATA | 0 | substream->runtime->rate_num | 0-u32max |
| USER_DATA | 0 | substream->runtime->trigger_master->f_flags | 0-u32max |
| USER_DATA | 0 | *substream->runtime->oss.buffer | 0-255 |
| USER_PTR | 0 | substream->runtime->oss.buffer |
sound/soc/samsung/idma.c idma_hw_params() -> snd_pcm_set_runtime_buffer()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | substream | 4096-ptr_max |
| PARAM_VALUE | 0 | substream->runtime | 4096-ptr_max |
| PARAM_VALUE | 1 | bufp | 4096-ptr_max |
| DATA_SOURCE | 0 | substream | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | substream->runtime->dma_buffer_p->addr | 9223372036854788096-9223372036855042047[c] |
| USER_DATA | 0 | substream->runtime->dma_buffer_p->bytes | 0,4096-4294967296[c] |
| USER_DATA | 0 | substream->runtime->trigger_master->f_flags | 0-u32max |
| USER_DATA | 0 | *substream->runtime->oss.buffer | 0-255 |
| USER_PTR | 0 | substream->runtime->oss.buffer | |
| HALF_LOCKED2 | &runtime->buffer_mutex |
sound/soc/loongson/loongson_dma.c loongson_idma_pcm_hw_params() -> snd_pcm_set_runtime_buffer()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | substream | 4096-ptr_max |
| PARAM_VALUE | 0 | substream->runtime | 4096-ptr_max |
| PARAM_VALUE | 1 | bufp | 4096-ptr_max |
| DATA_SOURCE | 0 | substream | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | substream->runtime->dma_buffer_p->addr | 9223372036854788096-9223372036855042047[c] |
| USER_DATA | 0 | substream->runtime->dma_buffer_p->bytes | 0,4096-4294967296[c] |
| USER_DATA | 0 | substream->runtime->trigger_master->f_flags | 0-u32max |
| USER_DATA | 0 | *substream->runtime->oss.buffer | 0-255 |
| USER_PTR | 0 | substream->runtime->oss.buffer | |
| HALF_LOCKED2 | &runtime->buffer_mutex |
sound/core/pcm_memory.c snd_pcm_lib_free_pages() -> snd_pcm_set_runtime_buffer()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | substream | 4096-ptr_max |
| PARAM_VALUE | 0 | substream->runtime | 4096-ptr_max |
| PARAM_VALUE | 0 | substream->runtime->dma_area | 1-u64max |
| PARAM_VALUE | 0 | substream->runtime->dma_buffer_p | 4096-ptr_max |
| PARAM_VALUE | 1 | bufp | 0 |
| BUF_SIZE | 0 | substream->runtime | (-1),1344 |
| CAPPED_DATA | 0 | substream | 1 |
| DATA_SOURCE | 0 | substream | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | substream->f_flags | 0-u32max |
| USER_DATA | 0 | substream->runtime->dma_buffer_p->addr | 9223372036854788096-9223372036855042047[c] |
| USER_DATA | 0 | substream->runtime->dma_buffer_p->bytes | 0,4096-4294967296[c] |
| USER_DATA | 0 | substream->runtime->no_period_wakeup | 0-1 |
| USER_DATA | 0 | substream->runtime->rate_den | 0-u32max |
| USER_DATA | 0 | substream->runtime->rate_num | 0-u32max |
| USER_DATA | 0 | substream->runtime->trigger_master->f_flags | 0-u32max |
| USER_DATA | 0 | *substream->runtime->oss.buffer | 0-255 |
| USER_PTR | 0 | substream->runtime->oss.buffer | |
| HALF_LOCKED2 | &runtime->buffer_mutex | ||
| HALF_LOCKED2 | _T->lock |
sound/core/pcm_memory.c snd_pcm_lib_malloc_pages() -> snd_pcm_set_runtime_buffer()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | substream | 4096-ptr_max |
| PARAM_VALUE | 0 | substream->runtime | 4096-ptr_max |
| PARAM_VALUE | 0 | substream->runtime->dma_buffer_p | 0,4096-ptr_max |
| PARAM_VALUE | 1 | bufp | 4096-ptr_max |
| PARAM_VALUE | 1 | bufp->area | 1-u64max |
| BUF_SIZE | 0 | substream->runtime | (-1),1344 |
| BUF_SIZE | 1 | bufp | 56 |
| DATA_SOURCE | 0 | substream | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | substream->runtime->dma_buffer_p->addr | 9223372036854788096-9223372036855042047[c] |
| USER_DATA | 0 | substream->runtime->dma_buffer_p->bytes | 0,4096-4294967296[c] |
| USER_DATA | 0 | substream->runtime->no_period_wakeup | 0-1 |
| USER_DATA | 0 | substream->runtime->rate_den | 0-u32max |
| USER_DATA | 0 | substream->runtime->rate_num | 0-u32max |
| USER_DATA | 0 | substream->runtime->trigger_master->f_flags | 0-u32max |
| USER_DATA | 0 | *substream->runtime->oss.buffer | 0-255 |
| USER_DATA | 1 | bufp->addr | 9223372036854788096-9223372036855042047[c] |
| USER_DATA | 1 | bufp->bytes | 0,4096-4294967296[c] |
| USER_PTR | 0 | substream->runtime->oss.buffer | |
| HALF_LOCKED2 | &runtime->buffer_mutex | ||
| HALF_LOCKED2 | _T->lock |
sound/soc/google/chv3-i2s.c chv3_dma_hw_params() -> snd_pcm_set_runtime_buffer()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | substream | 4096-ptr_max |
| PARAM_VALUE | 1 | bufp | 4096-ptr_max |
| DATA_SOURCE | 0 | substream | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | substream->runtime->dma_buffer_p->addr | 9223372036854788096-9223372036855042047[c] |
| USER_DATA | 0 | substream->runtime->dma_buffer_p->bytes | 0,4096-4294967296[c] |
| USER_DATA | 0 | substream->runtime->trigger_master->f_flags | 0-u32max |
| USER_DATA | 0 | *substream->runtime->oss.buffer | 0-255 |
| USER_PTR | 0 | substream->runtime->oss.buffer | |
| HALF_LOCKED2 | &runtime->buffer_mutex |
sound/pci/cs46xx/cs46xx_lib.c snd_cs46xx_capture_hw_free() -> snd_pcm_set_runtime_buffer()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | substream | 4096-ptr_max |
| PARAM_VALUE | 0 | substream->runtime | 4096-ptr_max |
| PARAM_VALUE | 1 | bufp | 0 |
| CAPPED_DATA | 0 | substream | 1 |
| DATA_SOURCE | 0 | substream | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | substream->f_flags | 0-u32max |
| HALF_LOCKED2 | &runtime->buffer_mutex |
sound/pci/cs46xx/cs46xx_lib.c snd_cs46xx_capture_hw_params() -> snd_pcm_set_runtime_buffer()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | substream | 4096-ptr_max |
| PARAM_VALUE | 0 | substream->runtime | 4096-ptr_max |
| PARAM_VALUE | 1 | bufp | 4096-ptr_max |
| CAPPED_DATA | 0 | substream->runtime->hw_constraints.rules_num | 1 |
| DATA_SOURCE | 0 | substream | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &runtime->buffer_mutex | ||
| TYPE_LOCK | (struct snd_pcm_runtime)->buffer_mutex |
sound/pci/cs46xx/cs46xx_lib.c snd_cs46xx_capture_hw_params() -> snd_pcm_set_runtime_buffer()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | substream | 4096-ptr_max |
| PARAM_VALUE | 0 | substream->runtime | 4096-ptr_max |
| PARAM_VALUE | 1 | bufp | 0 |
| CAPPED_DATA | 0 | substream->runtime->hw_constraints.rules_num | 1 |
| DATA_SOURCE | 0 | substream | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &runtime->buffer_mutex | ||
| TYPE_LOCK | (struct snd_pcm_runtime)->buffer_mutex |
sound/pci/cs46xx/cs46xx_lib.c snd_cs46xx_playback_hw_free() -> snd_pcm_set_runtime_buffer()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | substream | 4096-ptr_max |
| PARAM_VALUE | 0 | substream->runtime | 4096-ptr_max |
| PARAM_VALUE | 1 | bufp | 0 |
| CAPPED_DATA | 0 | substream | 1 |
| DATA_SOURCE | 0 | substream | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | substream->f_flags | 0-u32max |
| HALF_LOCKED2 | &runtime->buffer_mutex |
sound/pci/cs46xx/cs46xx_lib.c snd_cs46xx_playback_hw_params() -> snd_pcm_set_runtime_buffer()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | substream | 4096-ptr_max |
| PARAM_VALUE | 0 | substream->runtime | 4096-ptr_max |
| PARAM_VALUE | 1 | bufp | 4096-ptr_max |
| CAPPED_DATA | 0 | substream->runtime->hw_constraints.rules_num | 1 |
| DATA_SOURCE | 0 | substream | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &runtime->buffer_mutex | ||
| LOCK2 | _T->lock | ||
| TYPE_LOCK | (struct snd_pcm_runtime)->buffer_mutex |
sound/pci/cs46xx/cs46xx_lib.c snd_cs46xx_playback_hw_params() -> snd_pcm_set_runtime_buffer()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | substream | 4096-ptr_max |
| PARAM_VALUE | 0 | substream->runtime | 4096-ptr_max |
| PARAM_VALUE | 1 | bufp | 0 |
| CAPPED_DATA | 0 | substream->runtime->hw_constraints.rules_num | 1 |
| DATA_SOURCE | 0 | substream | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &runtime->buffer_mutex | ||
| LOCK2 | _T->lock | ||
| TYPE_LOCK | (struct snd_pcm_runtime)->buffer_mutex |
sound/pci/korg1212/korg1212.c snd_korg1212_capture_open() -> snd_pcm_set_runtime_buffer()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | substream | 4096-ptr_max |
| PARAM_VALUE | 0 | substream->runtime | 4096-ptr_max |
| DATA_SOURCE | 0 | substream | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | substream->f_flags | 0-u32max |
| HALF_LOCKED2 | &pcm->open_mutex |
sound/pci/korg1212/korg1212.c snd_korg1212_playback_open() -> snd_pcm_set_runtime_buffer()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | substream | 4096-ptr_max |
| PARAM_VALUE | 0 | substream->runtime | 4096-ptr_max |
| DATA_SOURCE | 0 | substream | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | substream->f_flags | 0-u32max |
| HALF_LOCKED2 | &pcm->open_mutex |
sound/pci/es1968.c snd_es1968_hw_params() -> snd_pcm_set_runtime_buffer()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | substream | 4096-ptr_max |
| PARAM_VALUE | 0 | substream->runtime | 4096-ptr_max |
| PARAM_VALUE | 1 | bufp | 4096-ptr_max |
| CAPPED_DATA | 0 | substream->runtime->hw_constraints.rules_num | 1 |
| DATA_SOURCE | 0 | substream | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &runtime->buffer_mutex | ||
| TYPE_LOCK | (struct snd_pcm_runtime)->buffer_mutex |
sound/soc/mediatek/mt8365/mt8365-afe-pcm.c mt8365_afe_fe_hw_free() -> snd_pcm_set_runtime_buffer()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | substream | 4096-ptr_max |
| PARAM_VALUE | 1 | bufp | 0 |
| DATA_SOURCE | 0 | substream | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | substream->f_flags | 0-u32max |
| USER_DATA | 0 | substream->runtime->dma_buffer_p->addr | 9223372036854788096-9223372036855042047[c] |
| USER_DATA | 0 | substream->runtime->dma_buffer_p->bytes | 0,4096-4294967296[c] |
| USER_DATA | 0 | substream->runtime->no_period_wakeup | 0-1 |
| USER_DATA | 0 | substream->runtime->rate_den | 0-u32max |
| USER_DATA | 0 | substream->runtime->rate_num | 0-u32max |
| USER_DATA | 0 | substream->runtime->trigger_master->f_flags | 0-u32max |
| USER_DATA | 0 | *substream->runtime->oss.buffer | 0-255 |
| USER_PTR | 0 | substream->runtime->oss.buffer |
sound/soc/mediatek/mt8365/mt8365-afe-pcm.c mt8365_afe_fe_hw_params() -> snd_pcm_set_runtime_buffer()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | substream | 4096-ptr_max |
| PARAM_VALUE | 1 | bufp | 4096-ptr_max |
| PARAM_VALUE | 1 | bufp->addr | 0-u32max |
| PARAM_VALUE | 1 | bufp->bytes | 0-u32max |
| BUF_SIZE | 0 | substream->runtime | (-1),1344 |
| BUF_SIZE | 1 | bufp | 56 |
| CAPPED_DATA | 1 | bufp->bytes | 1 |
| DATA_SOURCE | 0 | substream | $0 |
| PARAM_COMPARE | 0 | &substream->dma_buffer | == $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | substream->runtime->dma_buffer_p->addr | 9223372036854788096-9223372036855042047[c] |
| USER_DATA | 0 | substream->runtime->dma_buffer_p->bytes | 0,4096-4294967296[c] |
| USER_DATA | 0 | substream->runtime->trigger_master->f_flags | 0-u32max |
| USER_DATA | 0 | *substream->runtime->oss.buffer | 0-255 |
| USER_PTR | 0 | substream->runtime->oss.buffer |
sound/soc/qcom/lpass-platform.c lpass_platform_pcmops_open() -> snd_pcm_set_runtime_buffer()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | substream | 4096-ptr_max |
| PARAM_VALUE | 0 | substream->runtime | 4096-ptr_max |
| PARAM_VALUE | 0 | substream->runtime->dma_bytes | 8192 |
| PARAM_VALUE | 1 | bufp | 4096-ptr_max |
| DATA_SOURCE | 0 | substream | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | substream->f_flags | 0-u32max |
sound/soc/qcom/lpass-platform.c lpass_platform_pcmops_open() -> snd_pcm_set_runtime_buffer()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | substream | 4096-ptr_max |
| PARAM_VALUE | 0 | substream->runtime | 4096-ptr_max |
| PARAM_VALUE | 0 | substream->runtime->dma_bytes | 12288 |
| PARAM_VALUE | 1 | bufp | 4096-ptr_max |
| DATA_SOURCE | 0 | substream | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | substream->f_flags | 0-u32max |
sound/pci/rme9652/hdsp.c snd_hdsp_capture_open() -> snd_pcm_set_runtime_buffer()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | substream | 4096-ptr_max |
| PARAM_VALUE | 0 | substream->runtime | 4096-ptr_max |
| PARAM_VALUE | 1 | bufp | 4096-ptr_max |
| DATA_SOURCE | 0 | substream | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | substream->f_flags | 0-u32max |
| LOCK2 | &hdsp->lock | ||
| LOCK2 | irq | ||
| HALF_LOCKED2 | &pcm->open_mutex | ||
| TYPE_LOCK | (struct hdsp)->lock |
sound/pci/rme9652/hdsp.c snd_hdsp_playback_open() -> snd_pcm_set_runtime_buffer()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | substream | 4096-ptr_max |
| PARAM_VALUE | 0 | substream->runtime | 4096-ptr_max |
| PARAM_VALUE | 1 | bufp | 4096-ptr_max |
| DATA_SOURCE | 0 | substream | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | substream->f_flags | 0-u32max |
| LOCK2 | &hdsp->lock | ||
| LOCK2 | irq | ||
| HALF_LOCKED2 | &pcm->open_mutex | ||
| TYPE_LOCK | (struct hdsp)->lock |
sound/pci/rme9652/rme9652.c snd_rme9652_capture_open() -> snd_pcm_set_runtime_buffer()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | substream | 4096-ptr_max |
| PARAM_VALUE | 0 | substream->runtime | 4096-ptr_max |
| PARAM_VALUE | 1 | bufp | 4096-ptr_max |
| DATA_SOURCE | 0 | substream | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | substream->f_flags | 0-u32max |
| LOCK2 | &rme9652->lock | ||
| LOCK2 | irq | ||
| HALF_LOCKED2 | &pcm->open_mutex | ||
| TYPE_LOCK | (struct snd_rme9652)->lock |
sound/pci/rme9652/rme9652.c snd_rme9652_playback_open() -> snd_pcm_set_runtime_buffer()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | substream | 4096-ptr_max |
| PARAM_VALUE | 0 | substream->runtime | 4096-ptr_max |
| PARAM_VALUE | 1 | bufp | 4096-ptr_max |
| DATA_SOURCE | 0 | substream | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | substream->f_flags | 0-u32max |
| LOCK2 | &rme9652->lock | ||
| LOCK2 | irq | ||
| HALF_LOCKED2 | &pcm->open_mutex | ||
| TYPE_LOCK | (struct snd_rme9652)->lock |