Home
last modified time | relevance | path

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

12

/linux-6.12.1/drivers/md/
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 …]
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()
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-6.12.1/sound/soc/
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 …]
Dsoc-topology.c597 struct snd_kcontrol_new *kc, struct snd_soc_tplg_tlv_dbscale *scale) in soc_tplg_create_tlv_db_scale() argument
612 kc->tlv.p = (void *)p; in soc_tplg_create_tlv_db_scale()
617 struct snd_kcontrol_new *kc, struct snd_soc_tplg_ctl_hdr *tc) in soc_tplg_create_tlv() argument
629 return soc_tplg_create_tlv_db_scale(tplg, kc, in soc_tplg_create_tlv()
643 static int soc_tplg_control_dmixer_create(struct soc_tplg *tplg, struct snd_kcontrol_new *kc) in soc_tplg_control_dmixer_create() argument
664 kc->name = devm_kstrdup(tplg->dev, mc->hdr.name, GFP_KERNEL); in soc_tplg_control_dmixer_create()
665 if (!kc->name) in soc_tplg_control_dmixer_create()
667 kc->private_value = (long)sm; in soc_tplg_control_dmixer_create()
668 kc->iface = SNDRV_CTL_ELEM_IFACE_MIXER; in soc_tplg_control_dmixer_create()
669 kc->access = le32_to_cpu(mc->hdr.access); in soc_tplg_control_dmixer_create()
[all …]
/linux-6.12.1/kernel/time/
Dposix-timers.c448 const struct k_clock *kc = clockid_to_kclock(which_clock); in do_timer_create() local
452 if (!kc) in do_timer_create()
454 if (!kc->timer_create) in do_timer_create()
476 new_timer->kclock = kc; in do_timer_create()
512 error = kc->timer_create(new_timer); in do_timer_create()
640 const struct k_clock *kc = timr->kclock; in common_timer_get() local
663 now = kc->clock_get_ktime(timr->it_clock); in common_timer_get()
671 timr->it_overrun += kc->timer_forward(timr, now); in common_timer_get()
673 remaining = kc->timer_remaining(timr, now); in common_timer_get()
699 const struct k_clock *kc; in do_timer_gettime() local
[all …]
/linux-6.12.1/sound/pci/ice1712/
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-6.12.1/include/linux/
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-6.12.1/sound/parisc/
Dharmony.c650 snd_harmony_mixercontrol_info(struct snd_kcontrol *kc, in snd_harmony_mixercontrol_info() argument
653 int mask = (kc->private_value >> 16) & 0xff; in snd_harmony_mixercontrol_info()
654 int left_shift = (kc->private_value) & 0xff; in snd_harmony_mixercontrol_info()
655 int right_shift = (kc->private_value >> 8) & 0xff; in snd_harmony_mixercontrol_info()
667 snd_harmony_volume_get(struct snd_kcontrol *kc, in snd_harmony_volume_get() argument
670 struct snd_harmony *h = snd_kcontrol_chip(kc); in snd_harmony_volume_get()
671 int shift_left = (kc->private_value) & 0xff; in snd_harmony_volume_get()
672 int shift_right = (kc->private_value >> 8) & 0xff; in snd_harmony_volume_get()
673 int mask = (kc->private_value >> 16) & 0xff; in snd_harmony_volume_get()
674 int invert = (kc->private_value >> 24) & 0xff; in snd_harmony_volume_get()
[all …]
/linux-6.12.1/sound/soc/codecs/
Dhdac_hdmi.c771 struct snd_kcontrol *kc, int event) in hdac_hdmi_pin_output_widget_event() argument
816 struct snd_kcontrol *kc, int event) in hdac_hdmi_cvt_output_widget_event() argument
871 struct snd_kcontrol *kc, int event) in hdac_hdmi_pin_mux_widget_event() argument
880 if (!kc) in hdac_hdmi_pin_mux_widget_event()
881 kc = w->kcontrols[0]; in hdac_hdmi_pin_mux_widget_event()
883 mux_idx = dapm_kcontrol_get_value(kc); in hdac_hdmi_pin_mux_widget_event()
970 struct snd_kcontrol_new *kc; in hdac_hdmi_create_pin_port_muxs() local
980 kc = devm_kzalloc(&hdev->dev, sizeof(*kc), GFP_KERNEL); in hdac_hdmi_create_pin_port_muxs()
981 if (!kc) in hdac_hdmi_create_pin_port_muxs()
990 kc->name = devm_kstrdup(&hdev->dev, kc_name, GFP_KERNEL); in hdac_hdmi_create_pin_port_muxs()
[all …]
Dwcd9335.c1256 static int slim_rx_mux_get(struct snd_kcontrol *kc, in slim_rx_mux_get() argument
1259 struct snd_soc_dapm_widget *w = snd_soc_dapm_kcontrol_widget(kc); in slim_rx_mux_get()
1268 static int slim_rx_mux_put(struct snd_kcontrol *kc, in slim_rx_mux_put() argument
1271 struct snd_soc_dapm_widget *w = snd_soc_dapm_kcontrol_widget(kc); in slim_rx_mux_put()
1273 struct soc_enum *e = (struct soc_enum *)kc->private_value; in slim_rx_mux_put()
1310 snd_soc_dapm_mux_update_power(w->dapm, kc, wcd->rx_port_value[port_id], in slim_rx_mux_put()
1318 static int slim_tx_mixer_get(struct snd_kcontrol *kc, in slim_tx_mixer_get() argument
1322 struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_dapm(kc); in slim_tx_mixer_get()
1324 struct snd_soc_dapm_widget *widget = snd_soc_dapm_kcontrol_widget(kc); in slim_tx_mixer_get()
1326 (struct soc_mixer_control *)kc->private_value; in slim_tx_mixer_get()
[all …]
Dwcd934x.c1394 struct snd_kcontrol *kc, int event) in wcd934x_codec_enable_mclk() argument
3218 static int wcd934x_compander_get(struct snd_kcontrol *kc, in wcd934x_compander_get() argument
3221 struct snd_soc_component *component = snd_soc_kcontrol_component(kc); in wcd934x_compander_get()
3222 int comp = ((struct soc_mixer_control *)kc->private_value)->shift; in wcd934x_compander_get()
3230 static int wcd934x_compander_set(struct snd_kcontrol *kc, in wcd934x_compander_set() argument
3233 struct snd_soc_component *component = snd_soc_kcontrol_component(kc); in wcd934x_compander_set()
3235 int comp = ((struct soc_mixer_control *)kc->private_value)->shift; in wcd934x_compander_set()
3271 static int wcd934x_rx_hph_mode_get(struct snd_kcontrol *kc, in wcd934x_rx_hph_mode_get() argument
3274 struct snd_soc_component *component = snd_soc_kcontrol_component(kc); in wcd934x_rx_hph_mode_get()
3282 static int wcd934x_rx_hph_mode_put(struct snd_kcontrol *kc, in wcd934x_rx_hph_mode_put() argument
[all …]
/linux-6.12.1/drivers/media/rc/
Dimon.c132 u32 kc; /* current input keycode */ member
1345 } else if (ictx->kc == KEY_CHANNELUP && (buf[2] & 0x40) != 0x40) { in imon_mouse_event()
1347 } else if (ictx->kc == KEY_CHANNELDOWN && (buf[2] & 0x40) != 0x40) { in imon_mouse_event()
1369 ictx->last_keycode = ictx->kc; in imon_mouse_event()
1419 ictx->kc = KEY_UNKNOWN; in imon_pad_to_keys()
1484 ictx->kc = KEY_UNKNOWN; in imon_pad_to_keys()
1516 ictx->kc = imon_remote_key_lookup(ictx, scancode); in imon_pad_to_keys()
1535 if (ictx->kc == KEY_RESERVED && buf[0] == 0x02 && buf[3] == 0x00) in imon_parse_press_type()
1536 ictx->kc = ictx->last_keycode; in imon_parse_press_type()
1539 else if (ictx->kc == KEY_RESERVED && buf[0] == 0x68 && buf[1] == 0x82 && in imon_parse_press_type()
[all …]
/linux-6.12.1/sound/pci/hda/
Dhda_local.h634 #define get_amp_nid(kc) get_amp_nid_((kc)->private_value) argument
635 #define get_amp_channels(kc) (((kc)->private_value >> 16) & 0x3) argument
637 #define get_amp_direction(kc) get_amp_direction_((kc)->private_value) argument
639 #define get_amp_index(kc) get_amp_index_((kc)->private_value) argument
640 #define get_amp_offset(kc) (((kc)->private_value >> 23) & 0x3f) argument
641 #define get_amp_min_mute(kc) (((kc)->private_value >> 29) & 0x1) argument
/linux-6.12.1/sound/soc/sof/
Dtopology.c820 struct snd_kcontrol_new *kc, in sof_control_load_volume() argument
841 kc->info = snd_sof_volume_info; in sof_control_load_volume()
853 if (!kc->tlv.p || get_tlv_data(kc->tlv.p, tlv) < 0) { in sof_control_load_volume()
881 kc->access &= ~SNDRV_CTL_ELEM_ACCESS_LED_MASK; in sof_control_load_volume()
882 kc->access |= mask; in sof_control_load_volume()
900 struct snd_kcontrol_new *kc, in sof_control_load_enum() argument
922 struct snd_kcontrol_new *kc, in sof_control_load_bytes() argument
928 struct soc_bytes_ext *sbe = (struct soc_bytes_ext *)kc->private_value; in sof_control_load_bytes()
950 struct snd_kcontrol_new *kc, in sof_control_load() argument
975 scontrol->access = kc->access; in sof_control_load()
[all …]
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()
Dipc4-control.c664 struct snd_kcontrol *kc = NULL; in sof_ipc4_control_update() local
770 kc = widget->kcontrols[i]; in sof_ipc4_control_update()
775 if (!kc) in sof_ipc4_control_update()
779 SNDRV_CTL_EVENT_MASK_VALUE, kc, 0); in sof_ipc4_control_update()
/linux-6.12.1/sound/soc/ti/
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-6.12.1/kernel/
Dpid_namespace.c43 struct kmem_cache *kc; in create_pid_cachep() local
47 kc = READ_ONCE(*pkc); in create_pid_cachep()
48 if (kc) in create_pid_cachep()
49 return kc; in create_pid_cachep()
/linux-6.12.1/Documentation/admin-guide/device-mapper/
Dkcopyd.rst32 int kcopyd_copy(struct kcopyd_client *kc, struct io_region *from,
47 void kcopyd_client_destroy(struct kcopyd_client *kc);
/linux-6.12.1/drivers/pps/
DMakefile7 pps_core-$(CONFIG_NTP_PPS) += kc.o
/linux-6.12.1/sound/usb/caiaq/
Dcontrol.c575 struct snd_kcontrol *kc; in add_controls() local
580 kc = snd_ctl_new1(&kcontrol_template, cdev); in add_controls()
581 ret = snd_ctl_add(cdev->chip.card, kc); in add_controls()
/linux-6.12.1/drivers/tty/vt/
Dkeyboard.c1901 int kc = 0; in vt_do_kbkeycode_ioctl() local
1907 kc = getkeycode(tmp.scancode); in vt_do_kbkeycode_ioctl()
1908 if (kc >= 0) in vt_do_kbkeycode_ioctl()
1909 kc = put_user(kc, &user_kbkc->keycode); in vt_do_kbkeycode_ioctl()
1914 kc = setkeycode(tmp.scancode, tmp.keycode); in vt_do_kbkeycode_ioctl()
1917 return kc; in vt_do_kbkeycode_ioctl()
/linux-6.12.1/sound/soc/qcom/qdsp6/
Dtopology.c1185 struct snd_kcontrol_new *kc, in audioreach_control_load_mix() argument
1218 struct snd_kcontrol_new *kc, in audioreach_control_load() argument
1234 sm = (struct soc_mixer_control *)kc->private_value; in audioreach_control_load()
1236 ret = audioreach_control_load_mix(scomp, scontrol, kc, hdr); in audioreach_control_load()
1239 sm = (struct soc_mixer_control *)kc->private_value; in audioreach_control_load()
/linux-6.12.1/drivers/s390/cio/
Dchsc.h102 u32 kc:4; member

12