Documented in 1 files:
Defined in 1 files as a function:
Referenced in 4 files:
- sound/core/pcm.c
- sound/core/pcm_native.c
- sound/pci/asihpi/asihpi.c, line 628
- sound/soc/intel/avs/pcm.c
Smatch caller information:
sound/core/pcm.c snd_pcm_attach_substream() -> __snd_pcm_set_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | runtime | 4096-ptr_max |
| PARAM_VALUE | 0 | runtime->status | 18379471554275704832,18446612682070032384 |
| PARAM_VALUE | 1 | state | 0 |
| BUF_SIZE | 0 | runtime | 1344 |
| BUF_SIZE | 0 | runtime->control | 4096 |
| BUF_SIZE | 0 | runtime->status | 4096 |
| DATA_SOURCE | 0 | runtime | r _kzalloc_noprof |
| MEM_ZERO | 0 | runtime->control | |
| MEM_ZERO | 0 | runtime->status | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &pcm->open_mutex | ||
| TYPE_LOCK | (struct snd_pcm)->open_mutex |
sound/core/pcm.c snd_pcm_dev_disconnect() -> __snd_pcm_set_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | state | 8 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HOST_DATA | 0 | runtime->private_data->core.tc.cycle_last | s64min-s64max |
| LOCK2 | _T->lock |
sound/core/pcm_native.c snd_pcm_do_drain_init() -> __snd_pcm_set_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | runtime | 4096-ptr_max |
| PARAM_VALUE | 0 | runtime->state | 2 |
| PARAM_VALUE | 1 | state | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| 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/core/pcm_native.c snd_pcm_do_drain_init() -> __snd_pcm_set_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | runtime | 4096-ptr_max |
| PARAM_VALUE | 0 | runtime->state | 3 |
| PARAM_VALUE | 1 | state | 5 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| 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/core/pcm_native.c snd_pcm_do_drain_init() -> __snd_pcm_set_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | runtime | 4096-ptr_max |
| PARAM_VALUE | 0 | runtime->state | 4 |
| PARAM_VALUE | 1 | state | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| 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/core/pcm_native.c snd_pcm_do_start() -> __snd_pcm_set_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | runtime | 4096-ptr_max |
| PARAM_VALUE | 1 | state | 4 |
| CAPPED_DATA | 0 | runtime->trigger_master | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| 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 |
| NO_OVERFLOW_SIMPLE | 0 | runtime->dma_buffer_p->addr | |
| USER_PTR | 0 | runtime->oss.buffer | |
| HALF_LOCKED2 | &substream->self_group.lock | ||
| HALF_LOCKED2 | &substream->self_group.mutex | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | 0 | &runtime->buffer_mutex |
sound/core/pcm_native.c snd_pcm_post_pause() -> __snd_pcm_set_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | runtime | 4096-ptr_max |
| PARAM_VALUE | 1 | state | 6 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| 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/core/pcm_native.c snd_pcm_post_pause() -> __snd_pcm_set_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | runtime | 4096-ptr_max |
| PARAM_VALUE | 1 | state | 3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| 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/core/pcm_native.c snd_pcm_post_resume() -> __snd_pcm_set_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | runtime | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| 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/core/pcm_native.c snd_pcm_post_start() -> __snd_pcm_set_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | runtime | 4096-ptr_max |
| DATA_SOURCE | 1 | state | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| 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/core/pcm_native.c snd_pcm_post_stop() -> __snd_pcm_set_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | runtime | 4096-ptr_max |
| DATA_SOURCE | 1 | state | $1 |
| PARAM_COMPARE | 0 | runtime->state | != $1 |
| PARAM_COMPARE | 1 | state | != $0->state |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| 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/core/pcm_native.c snd_pcm_post_suspend() -> __snd_pcm_set_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | runtime | 4096-ptr_max |
| PARAM_VALUE | 0 | runtime->status | 4096-ptr_max |
| PARAM_VALUE | 1 | state | 7 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| 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/core/pcm_native.c snd_pcm_set_state() -> __snd_pcm_set_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | runtime | 4096-ptr_max |
| PARAM_VALUE | 0 | runtime->state | s32min-7,9-s32max |
| PARAM_VALUE | 1 | state | 0-2 |
| DATA_SOURCE | 1 | state | $1 |
| HARD_MAX | 1 | state | 2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| 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 |
| NO_OVERFLOW_SIMPLE | 0 | runtime->dma_buffer_p->addr | |
| USER_PTR | 0 | runtime->oss.buffer | |
| HALF_LOCKED2 | &runtime->buffer_mutex | ||
| HALF_LOCKED2 | 0 | &runtime->buffer_mutex |
sound/soc/intel/avs/pcm.c avs_component_pm_op() -> __snd_pcm_set_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | state | 8 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pool->lock |
sound/soc/intel/avs/pcm.c avs_component_pm_op() -> __snd_pcm_set_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | state | 8 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pool->lock |
sound/pci/asihpi/asihpi.c snd_card_asihpi_trigger() -> __snd_pcm_set_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | state | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | runtime->trigger_master->f_flags | 0-u32max |
| HALF_LOCKED2 | &substream->runtime->buffer_mutex | ||
| HALF_LOCKED2 | &substream->self_group.lock | ||
| HALF_LOCKED2 | &substream->self_group.mutex | ||
| HALF_LOCKED2 | _T->lock |