Home
last modified time | relevance | path

Searched refs:kc (Results 1 – 23 of 23) sorted by relevance

/linux/drivers/md/
H A Ddm-kcopyd.c210 static void wake(struct dm_kcopyd_client *kc) in wake() argument
212 queue_work(kc->kcopyd_wq, &kc->kcopyd_work); in wake()
245 static void kcopyd_put_pages(struct dm_kcopyd_client *kc, struct page_list *pl) in kcopyd_put_pages() argument
252 if (kc->nr_free_pages >= kc->nr_reserved_pages) in kcopyd_put_pages()
255 pl->next = kc->pages; in kcopyd_put_pages()
256 kc->pages = pl; in kcopyd_put_pages()
257 kc->nr_free_pages++; in kcopyd_put_pages()
264 static int kcopyd_get_pages(struct dm_kcopyd_client *kc, in kcopyd_get_pages() argument
275 pl = kc->pages; in kcopyd_get_pages()
278 kc->pages = pl->next; in kcopyd_get_pages()
[all …]
H A Ddm-zoned-reclaim.c20 struct dm_kcopyd_client *kc; member
175 dm_kcopyd_copy(zrc->kc, &src, 1, &dst, flags, in dmz_reclaim_copy()
568 zrc->kc = dm_kcopyd_client_create(&zrc->kc_throttle); in dmz_ctr_reclaim()
569 if (IS_ERR(zrc->kc)) { in dmz_ctr_reclaim()
570 ret = PTR_ERR(zrc->kc); in dmz_ctr_reclaim()
571 zrc->kc = NULL; in dmz_ctr_reclaim()
589 if (zrc->kc) in dmz_ctr_reclaim()
590 dm_kcopyd_client_destroy(zrc->kc); in dmz_ctr_reclaim()
603 dm_kcopyd_client_destroy(zrc->kc); in dmz_dtr_reclaim()
H A Draid5-ppl.c207 struct kmem_cache *kc = pool_data; in ppl_io_pool_alloc() local
210 io = kmem_cache_alloc(kc, gfp_mask); in ppl_io_pool_alloc()
216 kmem_cache_free(kc, io); in ppl_io_pool_alloc()
225 struct kmem_cache *kc = pool_data; in ppl_io_pool_free() local
229 kmem_cache_free(kc, io); in ppl_io_pool_free()
/linux/sound/soc/
H A Dsoc-card-test.c36 struct snd_kcontrol *kc; in test_snd_soc_card_get_kcontrol() local
45 kc = snd_soc_card_get_kcontrol(card, test_card_controls[i].name); in test_snd_soc_card_get_kcontrol()
46 KUNIT_EXPECT_NOT_ERR_OR_NULL_MSG(test, kc, "Failed to find '%s'\n", in test_snd_soc_card_get_kcontrol()
48 if (!kc) in test_snd_soc_card_get_kcontrol()
52 mc = (struct soc_mixer_control *)kc->private_value; in test_snd_soc_card_get_kcontrol()
57 kc = snd_soc_card_get_kcontrol(card, "None"); in test_snd_soc_card_get_kcontrol()
58 KUNIT_EXPECT_NULL(test, kc); in test_snd_soc_card_get_kcontrol()
60 kc = snd_soc_card_get_kcontrol(card, "Left None"); in test_snd_soc_card_get_kcontrol()
61 KUNIT_EXPECT_NULL(test, kc); in test_snd_soc_card_get_kcontrol()
63 kc = snd_soc_card_get_kcontrol(card, "Left"); in test_snd_soc_card_get_kcontrol()
[all …]
H A Dsoc-topology.c595 struct snd_kcontrol_new *kc, struct snd_soc_tplg_tlv_dbscale *scale) in soc_tplg_create_tlv_db_scale()
610 kc->tlv.p = (void *)p; in soc_tplg_create_tlv()
615 struct snd_kcontrol_new *kc, struct snd_soc_tplg_ctl_hdr *tc) in soc_tplg_create_tlv()
627 return soc_tplg_create_tlv_db_scale(tplg, kc, in soc_tplg_create_tlv()
641 static int soc_tplg_control_dmixer_create(struct soc_tplg *tplg, struct snd_kcontrol_new *kc) in soc_tplg_control_dmixer_create()
662 kc->name = devm_kstrdup(tplg->dev, mc->hdr.name, GFP_KERNEL); in soc_tplg_control_dmixer_create()
663 if (!kc->name) in soc_tplg_control_dmixer_create()
665 kc->private_value = (long)sm; in soc_tplg_control_dmixer_create()
666 kc->iface = SNDRV_CTL_ELEM_IFACE_MIXER; in soc_tplg_control_dmixer_create()
667 kc in soc_tplg_control_dmixer_create()
591 soc_tplg_create_tlv_db_scale(struct soc_tplg * tplg,struct snd_kcontrol_new * kc,struct snd_soc_tplg_tlv_dbscale * scale) soc_tplg_create_tlv_db_scale() argument
611 soc_tplg_create_tlv(struct soc_tplg * tplg,struct snd_kcontrol_new * kc,struct snd_soc_tplg_ctl_hdr * tc) soc_tplg_create_tlv() argument
637 soc_tplg_control_dmixer_create(struct soc_tplg * tplg,struct snd_kcontrol_new * kc) soc_tplg_control_dmixer_create() argument
761 soc_tplg_control_denum_create(struct soc_tplg * tplg,struct snd_kcontrol_new * kc) soc_tplg_control_denum_create() argument
830 soc_tplg_control_dbytes_create(struct soc_tplg * tplg,struct snd_kcontrol_new * kc) soc_tplg_control_dbytes_create() argument
873 struct snd_kcontrol_new kc = {0}; soc_tplg_dbytes_create() local
907 struct snd_kcontrol_new kc = {0}; soc_tplg_dmixer_create() local
941 struct snd_kcontrol_new kc = {0}; soc_tplg_denum_create() local
1105 struct snd_kcontrol_new *kc; soc_tplg_dapm_widget_create() local
[all...]
/linux/sound/pci/ice1712/
H A Dse.c420 static int se200pci_cont_volume_info(struct snd_kcontrol *kc, in se200pci_cont_volume_info() argument
432 static int se200pci_cont_enum_info(struct snd_kcontrol *kc, in se200pci_cont_enum_info() argument
437 n = kc->private_value; in se200pci_cont_enum_info()
444 static int se200pci_cont_volume_get(struct snd_kcontrol *kc, in se200pci_cont_volume_get() argument
447 struct snd_ice1712 *ice = snd_kcontrol_chip(kc); in se200pci_cont_volume_get()
449 int n = kc->private_value; in se200pci_cont_volume_get()
455 static int se200pci_cont_boolean_get(struct snd_kcontrol *kc, in se200pci_cont_boolean_get() argument
458 struct snd_ice1712 *ice = snd_kcontrol_chip(kc); in se200pci_cont_boolean_get()
460 int n = kc->private_value; in se200pci_cont_boolean_get()
465 static int se200pci_cont_enum_get(struct snd_kcontrol *kc, in se200pci_cont_enum_get() argument
[all …]
/linux/include/linux/
H A Ddm-kcopyd.h54 void dm_kcopyd_client_destroy(struct dm_kcopyd_client *kc);
55 void dm_kcopyd_client_flush(struct dm_kcopyd_client *kc);
67 void dm_kcopyd_copy(struct dm_kcopyd_client *kc, struct dm_io_region *from,
82 void *dm_kcopyd_prepare_callback(struct dm_kcopyd_client *kc,
86 void dm_kcopyd_zero(struct dm_kcopyd_client *kc,
/linux/sound/parisc/
H A Dharmony.c637 snd_harmony_mixercontrol_info(struct snd_kcontrol *kc, in snd_harmony_mixercontrol_info() argument
640 int mask = (kc->private_value >> 16) & 0xff; in snd_harmony_mixercontrol_info()
641 int left_shift = (kc->private_value) & 0xff; in snd_harmony_mixercontrol_info()
642 int right_shift = (kc->private_value >> 8) & 0xff; in snd_harmony_mixercontrol_info()
654 snd_harmony_volume_get(struct snd_kcontrol *kc, in snd_harmony_volume_get() argument
657 struct snd_harmony *h = snd_kcontrol_chip(kc); in snd_harmony_volume_get()
658 int shift_left = (kc->private_value) & 0xff; in snd_harmony_volume_get()
659 int shift_right = (kc->private_value >> 8) & 0xff; in snd_harmony_volume_get()
660 int mask = (kc->private_value >> 16) & 0xff; in snd_harmony_volume_get()
661 int invert = (kc->private_value >> 24) & 0xff; in snd_harmony_volume_get()
[all …]
/linux/sound/hda/common/
H A Dhda_local.h670 #define get_amp_nid(kc) get_amp_nid_((kc)->private_value) argument
671 #define get_amp_channels(kc) (((kc)->private_value >> 16) & 0x3)
673 #define get_amp_direction(kc) get_amp_direction_((kc)->private_value)
675 #define get_amp_index(kc) get_amp_index_((kc)->private_value) argument
676 #define get_amp_offset(kc) (((kc) argument
669 get_amp_nid(kc) global() argument
672 get_amp_direction(kc) global() argument
674 get_amp_index(kc) global() argument
[all...]
/linux/sound/soc/codecs/
H A Dwcd9335.c1260 static int slim_rx_mux_get(struct snd_kcontrol *kc, in slim_rx_mux_get() argument
1263 struct snd_soc_dapm_widget *w = snd_soc_dapm_kcontrol_to_widget(kc); in slim_rx_mux_get()
1273 static int slim_rx_mux_put(struct snd_kcontrol *kc, in slim_rx_mux_put()
1276 struct snd_soc_dapm_widget *w = snd_soc_dapm_kcontrol_to_widget(kc); in slim_rx_mux_put()
1279 struct soc_enum *e = (struct soc_enum *)kc->private_value; in slim_rx_mux_put()
1316 snd_soc_dapm_mux_update_power(w->dapm, kc, wcd->rx_port_value[port_id], in slim_rx_mux_put()
1324 static int slim_tx_mixer_get(struct snd_kcontrol *kc, in slim_tx_mixer_get()
1328 struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_to_dapm(kc); in slim_tx_mixer_get()
1331 struct snd_soc_dapm_widget *widget = snd_soc_dapm_kcontrol_to_widget(kc); in slim_tx_mixer_get()
1333 (struct soc_mixer_control *)kc in slim_tx_mixer_get()
1272 slim_rx_mux_put(struct snd_kcontrol * kc,struct snd_ctl_elem_value * ucontrol) slim_rx_mux_put() argument
1322 slim_tx_mixer_get(struct snd_kcontrol * kc,struct snd_ctl_elem_value * ucontrol) slim_tx_mixer_get() argument
1339 slim_tx_mixer_put(struct snd_kcontrol * kc,struct snd_ctl_elem_value * ucontrol) slim_tx_mixer_put() argument
1474 wcd9335_put_dec_enum(struct snd_kcontrol * kc,struct snd_ctl_elem_value * ucontrol) wcd9335_put_dec_enum() argument
1525 wcd9335_int_dem_inp_mux_put(struct snd_kcontrol * kc,struct snd_ctl_elem_value * ucontrol) wcd9335_int_dem_inp_mux_put() argument
2176 wcd9335_get_compander(struct snd_kcontrol * kc,struct snd_ctl_elem_value * ucontrol) wcd9335_get_compander() argument
2188 wcd9335_set_compander(struct snd_kcontrol * kc,struct snd_ctl_elem_value * ucontrol) wcd9335_set_compander() argument
2227 wcd9335_rx_hph_mode_get(struct snd_kcontrol * kc,struct snd_ctl_elem_value * ucontrol) wcd9335_rx_hph_mode_get() argument
2238 wcd9335_rx_hph_mode_put(struct snd_kcontrol * kc,struct snd_ctl_elem_value * ucontrol) wcd9335_rx_hph_mode_put() argument
2606 wcd9335_codec_enable_micbias(struct snd_soc_dapm_widget * w,struct snd_kcontrol * kc,int event) wcd9335_codec_enable_micbias() argument
2647 wcd9335_codec_enable_adc(struct snd_soc_dapm_widget * w,struct snd_kcontrol * kc,int event) wcd9335_codec_enable_adc() argument
2717 wcd9335_codec_enable_dec(struct snd_soc_dapm_widget * w,struct snd_kcontrol * kc,int event) wcd9335_codec_enable_dec() argument
2858 wcd9335_codec_enable_dmic(struct snd_soc_dapm_widget * w,struct snd_kcontrol * kc,int event) wcd9335_codec_enable_dmic() argument
2960 wcd9335_codec_enable_slim(struct snd_soc_dapm_widget * w,struct snd_kcontrol * kc,int event) wcd9335_codec_enable_slim() argument
2981 wcd9335_codec_enable_mix_path(struct snd_soc_dapm_widget * w,struct snd_kcontrol * kc,int event) wcd9335_codec_enable_mix_path() argument
3238 wcd9335_codec_enable_interpolator(struct snd_soc_dapm_widget * w,struct snd_kcontrol * kc,int event) wcd9335_codec_enable_interpolator() argument
3471 wcd9335_codec_hphl_dac_event(struct snd_soc_dapm_widget * w,struct snd_kcontrol * kc,int event) wcd9335_codec_hphl_dac_event() argument
3521 wcd9335_codec_lineout_dac_event(struct snd_soc_dapm_widget * w,struct snd_kcontrol * kc,int event) wcd9335_codec_lineout_dac_event() argument
3541 wcd9335_codec_ear_dac_event(struct snd_soc_dapm_widget * w,struct snd_kcontrol * kc,int event) wcd9335_codec_ear_dac_event() argument
3622 wcd9335_codec_hphr_dac_event(struct snd_soc_dapm_widget * w,struct snd_kcontrol * kc,int event) wcd9335_codec_hphr_dac_event() argument
3671 wcd9335_codec_enable_hphl_pa(struct snd_soc_dapm_widget * w,struct snd_kcontrol * kc,int event) wcd9335_codec_enable_hphl_pa() argument
3719 wcd9335_codec_enable_lineout_pa(struct snd_soc_dapm_widget * w,struct snd_kcontrol * kc,int event) wcd9335_codec_enable_lineout_pa() argument
3791 wcd9335_codec_enable_rx_bias(struct snd_soc_dapm_widget * w,struct snd_kcontrol * kc,int event) wcd9335_codec_enable_rx_bias() argument
3821 wcd9335_codec_enable_hphr_pa(struct snd_soc_dapm_widget * w,struct snd_kcontrol * kc,int event) wcd9335_codec_enable_hphr_pa() argument
3867 wcd9335_codec_enable_ear_pa(struct snd_soc_dapm_widget * w,struct snd_kcontrol * kc,int event) wcd9335_codec_enable_ear_pa() argument
4256 wcd9335_codec_enable_mclk(struct snd_soc_dapm_widget * w,struct snd_kcontrol * kc,int event) wcd9335_codec_enable_mclk() argument
[all...]
H A Dhdac_hdmi.c769 struct snd_kcontrol *kc, int event) in hdac_hdmi_pin_output_widget_event() argument
815 struct snd_kcontrol *kc, int event) in hdac_hdmi_cvt_output_widget_event()
871 struct snd_kcontrol *kc, int event) in hdac_hdmi_pin_mux_widget_event()
881 if (!kc) in hdac_hdmi_pin_mux_widget_event()
882 kc = w->kcontrols[0]; in hdac_hdmi_pin_mux_widget_event()
884 mux_idx = snd_soc_dapm_kcontrol_get_value(kc); in hdac_hdmi_pin_mux_widget_event()
972 struct snd_kcontrol_new *kc; in hdac_hdmi_create_pin_port_muxs()
982 kc = devm_kzalloc(&hdev->dev, sizeof(*kc), GFP_KERNEL); in hdac_hdmi_create_pin_port_muxs()
983 if (!kc) in hdac_hdmi_create_pin_port_muxs()
814 hdac_hdmi_cvt_output_widget_event(struct snd_soc_dapm_widget * w,struct snd_kcontrol * kc,int event) hdac_hdmi_cvt_output_widget_event() argument
869 hdac_hdmi_pin_mux_widget_event(struct snd_soc_dapm_widget * w,struct snd_kcontrol * kc,int event) hdac_hdmi_pin_mux_widget_event() argument
968 struct snd_kcontrol_new *kc; hdac_hdmi_create_pin_port_muxs() local
1034 const struct snd_kcontrol_new *kc; hdac_hdmi_add_pinmux_cvt_route() local
[all...]
H A Dwcd934x.c1380 struct snd_kcontrol *kc, int event) in wcd934x_codec_enable_mclk() argument
3165 static int wcd934x_compander_get(struct snd_kcontrol *kc, in wcd934x_compander_get() argument
3168 struct snd_soc_component *component = snd_kcontrol_chip(kc); in wcd934x_compander_get()
3169 int comp = ((struct soc_mixer_control *)kc->private_value)->shift; in wcd934x_compander_get()
3177 static int wcd934x_compander_set(struct snd_kcontrol *kc, in wcd934x_compander_set() argument
3180 struct snd_soc_component *component = snd_kcontrol_chip(kc); in wcd934x_compander_set()
3182 int comp = ((struct soc_mixer_control *)kc->private_value)->shift; in wcd934x_compander_set()
3218 static int wcd934x_rx_hph_mode_get(struct snd_kcontrol *kc, in wcd934x_rx_hph_mode_get() argument
3221 struct snd_soc_component *component = snd_kcontrol_chip(kc); in wcd934x_rx_hph_mode_get()
3229 static int wcd934x_rx_hph_mode_put(struct snd_kcontrol *kc, in wcd934x_rx_hph_mode_put() argument
[all …]
H A Dwsa881x.c744 static int wsa881x_put_pa_gain(struct snd_kcontrol *kc, in wsa881x_put_pa_gain() argument
747 struct snd_soc_component *comp = snd_kcontrol_chip(kc); in wsa881x_put_pa_gain()
749 (struct soc_mixer_control *)kc->private_value; in wsa881x_put_pa_gain()
/linux/sound/soc/sof/
H A Dtopology.c832 struct snd_kcontrol_new *kc, in sof_control_load_volume() argument
853 kc->info = snd_sof_volume_info; in sof_control_load_volume()
865 if (!kc->tlv.p || get_tlv_data(kc->tlv.p, tlv) < 0) { in sof_control_load_volume()
893 kc->access &= ~SNDRV_CTL_ELEM_ACCESS_LED_MASK; in sof_control_load_volume()
894 kc->access |= mask; in sof_control_load_volume()
912 struct snd_kcontrol_new *kc, in sof_control_load_enum() argument
934 struct snd_kcontrol_new *kc, in sof_control_load_bytes() argument
940 struct soc_bytes_ext *sbe = (struct soc_bytes_ext *)kc->private_value; in sof_control_load_bytes()
962 struct snd_kcontrol_new *kc, in sof_control_load() argument
987 scontrol->access = kc->access; in sof_control_load()
[all …]
H A Dipc3-control.c556 struct snd_kcontrol *kc = NULL; in sof_ipc3_control_update() local
603 kc = widget->kcontrols[i]; in sof_ipc3_control_update()
608 if (!kc) in sof_ipc3_control_update()
614 sm = (struct soc_mixer_control *)kc->private_value; in sof_ipc3_control_update()
618 be = (struct soc_bytes_ext *)kc->private_value; in sof_ipc3_control_update()
622 se = (struct soc_enum *)kc->private_value; in sof_ipc3_control_update()
659 snd_ctl_notify_one(swidget->scomp->card->snd_card, SNDRV_CTL_EVENT_MASK_VALUE, kc, 0); in sof_ipc3_control_update()
H A Dipc4-control.c807 struct snd_kcontrol *kc = NULL; in sof_ipc4_widget_kcontrol_setup()
931 kc = widget->kcontrols[i];
936 if (!kc)
940 SNDRV_CTL_EVENT_MASK_VALUE, kc, 0);
673 struct snd_kcontrol *kc = NULL; sof_ipc4_control_update() local
H A Dipc3-topology.c804 const struct snd_kcontrol_new *kc; in sof_get_control_data() local
814 kc = &widget->kcontrol_news[i]; in sof_get_control_data()
818 sm = (struct soc_mixer_control *)kc->private_value; in sof_get_control_data()
822 sbe = (struct soc_bytes_ext *)kc->private_value; in sof_get_control_data()
826 se = (struct soc_enum *)kc->private_value; in sof_get_control_data()
/linux/sound/soc/ti/
H A Domap-mcbsp-st.c387 omap_mcbsp_set_st_ch##channel##_volume(struct snd_kcontrol *kc, \
390 struct snd_soc_dai *cpu_dai = snd_kcontrol_chip(kc); \
393 (struct soc_mixer_control *)kc->private_value; \
406 omap_mcbsp_get_st_ch##channel##_volume(struct snd_kcontrol *kc, \
409 struct snd_soc_dai *cpu_dai = snd_kcontrol_chip(kc); \
/linux/Documentation/admin-guide/device-mapper/
H A Dkcopyd.rst32 int kcopyd_copy(struct kcopyd_client *kc, struct io_region *from,
47 void kcopyd_client_destroy(struct kcopyd_client *kc);
/linux/sound/usb/caiaq/
H A Dcontrol.c596 struct snd_kcontrol *kc; in add_controls() local
601 kc = snd_ctl_new1(&kcontrol_template, cdev); in add_controls()
602 ret = snd_ctl_add(cdev->chip.card, kc); in add_controls()
/linux/sound/soc/qcom/qdsp6/
H A Dtopology.c1210 struct snd_kcontrol_new *kc, in audioreach_control_load_mix()
1243 struct snd_kcontrol_new *kc, in audioreach_control_load()
1259 sm = (struct soc_mixer_control *)kc->private_value; in audioreach_control_load()
1261 ret = audioreach_control_load_mix(scomp, scontrol, kc, hdr); in audioreach_control_load()
1264 sm = (struct soc_mixer_control *)kc->private_value; in audioreach_control_load()
1208 audioreach_control_load_mix(struct snd_soc_component * scomp,struct snd_ar_control * scontrol,struct snd_kcontrol_new * kc,const struct snd_soc_tplg_ctl_hdr * hdr) audioreach_control_load_mix() argument
1241 audioreach_control_load(struct snd_soc_component * scomp,int index,struct snd_kcontrol_new * kc,struct snd_soc_tplg_ctl_hdr * hdr) audioreach_control_load() argument
/linux/tools/testing/selftests/net/ovpn/
H A Dovpn-cli.c1063 struct nlattr *kc; in ovpn_addattr()
1070 kc = nla_nest_start(ctx->nl_msg, OVPN_A_KEYCONF); in ovpn_addattr()
1072 nla_nest_end(ctx->nl_msg, kc); in ovpn_addattr()
1044 struct nlattr *kc; ovpn_swap_keys() local
/linux/sound/usb/
H A Dmixer_quirks.c1230 const struct snd_kcontrol_new *kc, in snd_nativeinstruments_create_mixer() argument
1245 template.name = kc[i].name; in snd_nativeinstruments_create_mixer()
1246 template.private_value = kc[i].private_value; in snd_nativeinstruments_create_mixer()