Home
last modified time | relevance | path

Searched refs:ref_count (Results 1 – 13 of 13) sorted by relevance

/sound/virtio/
Dvirtio_ctl_msg.c24 refcount_t ref_count; member
35 refcount_inc(&msg->ref_count); in virtsnd_ctl_msg_ref()
48 if (refcount_dec_and_test(&msg->ref_count)) in virtsnd_ctl_msg_unref()
104 refcount_set(&msg->ref_count, 1); in virtsnd_ctl_msg_alloc()
/sound/hda/ext/
Dhdac_ext_controller.c108 hlink->ref_count = 1; in snd_hdac_ext_bus_get_ml_capabilities()
268 if (++link->ref_count == 1) { in snd_hdac_ext_bus_link_get()
311 if (--link->ref_count == 0) { in snd_hdac_ext_bus_link_put()
319 if (hlink->ref_count) { in snd_hdac_ext_bus_link_put()
/sound/core/seq/
Dseq_ports.h32 atomic_t ref_count; member
Dseq_ports.c231 if (atomic_dec_and_test(&subs->ref_count)) in clear_subscriber_list()
508 atomic_inc(&subs->ref_count); in check_and_subscribe_port()
570 atomic_set(&subs->ref_count, 0); in snd_seq_port_connect()
Dseq_clientmgr.c686 if (atomic_read(&subs->ref_count) != 2) in deliver_to_subscribers()
/sound/pci/cs46xx/
Dcs46xx_dsp_spos.h105 int ref_count; member
Ddsp_spos_scb_lib.c93 snd_iprintf(buffer,"index [%d] ref_count [%d]\n",scb->index,scb->ref_count); in cs46xx_dsp_proc_scb_info_read()
1280 ins->pcm_channels[i].src_scb->ref_count ++; in cs46xx_dsp_create_pcm_channel()
1470 pcm_channel->src_scb->ref_count <= 0)) in cs46xx_dsp_destroy_pcm_channel()
1477 pcm_channel->src_scb->ref_count --; in cs46xx_dsp_destroy_pcm_channel()
1483 if (!pcm_channel->src_scb->ref_count) { in cs46xx_dsp_destroy_pcm_channel()
Ddsp_spos.c929 ins->scbs[index].ref_count = 1; in _map_scb()
/sound/soc/sof/intel/
Dhda-dsp.c700 if (!hlink->ref_count) in hda_resume()
739 if (hlink->ref_count) { in hda_dsp_resume()
/sound/soc/intel/skylake/
Dskl.c381 if (hlink->ref_count) in skl_resume()
393 if (!hlink->ref_count) in skl_resume()
Dskl-topology.c3187 static int ref_count; in skl_tplg_fill_str_mfest_tkn() local
3191 if (ref_count > skl->lib_count - 1) { in skl_tplg_fill_str_mfest_tkn()
3192 ref_count = 0; in skl_tplg_fill_str_mfest_tkn()
3196 strncpy(skl->lib_info[ref_count].name, in skl_tplg_fill_str_mfest_tkn()
3198 ARRAY_SIZE(skl->lib_info[ref_count].name)); in skl_tplg_fill_str_mfest_tkn()
3199 ref_count++; in skl_tplg_fill_str_mfest_tkn()
/sound/core/
Dpcm.c933 substream->ref_count++; in snd_pcm_attach_substream()
978 substream->ref_count = 1; in snd_pcm_attach_substream()
Dpcm_native.c2699 substream->ref_count--; in snd_pcm_release_substream()
2700 if (substream->ref_count > 0) in snd_pcm_release_substream()
2730 if (substream->ref_count > 1) { in snd_pcm_open_substream()
2780 if (substream->ref_count == 1) in snd_pcm_open_file()