Home
last modified time | relevance | path

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

12

/linux-6.6.21/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.6.21/kernel/time/
Dposix-timers.c447 const struct k_clock *kc = clockid_to_kclock(which_clock); in do_timer_create() local
451 if (!kc) in do_timer_create()
453 if (!kc->timer_create) in do_timer_create()
475 new_timer->kclock = kc; in do_timer_create()
511 error = kc->timer_create(new_timer); in do_timer_create()
639 const struct k_clock *kc = timr->kclock; in common_timer_get() local
662 now = kc->clock_get_ktime(timr->it_clock); in common_timer_get()
670 timr->it_overrun += kc->timer_forward(timr, now); in common_timer_get()
672 remaining = kc->timer_remaining(timr, now); in common_timer_get()
698 const struct k_clock *kc; in do_timer_gettime() local
[all …]
/linux-6.6.21/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.6.21/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,
Dmempool.h65 mempool_init_slab_pool(mempool_t *pool, int min_nr, struct kmem_cache *kc) in mempool_init_slab_pool() argument
68 mempool_free_slab, (void *) kc); in mempool_init_slab_pool()
72 mempool_create_slab_pool(int min_nr, struct kmem_cache *kc) in mempool_create_slab_pool() argument
75 (void *) kc); in mempool_create_slab_pool()
/linux-6.6.21/sound/soc/
Dsoc-topology.c601 struct snd_kcontrol_new *kc, struct snd_soc_tplg_tlv_dbscale *scale) in soc_tplg_create_tlv_db_scale() argument
616 kc->tlv.p = (void *)p; in soc_tplg_create_tlv_db_scale()
621 struct snd_kcontrol_new *kc, struct snd_soc_tplg_ctl_hdr *tc) in soc_tplg_create_tlv() argument
633 return soc_tplg_create_tlv_db_scale(tplg, kc, in soc_tplg_create_tlv()
651 struct snd_kcontrol_new kc; in soc_tplg_dbytes_create() local
677 memset(&kc, 0, sizeof(kc)); in soc_tplg_dbytes_create()
678 kc.name = be->hdr.name; in soc_tplg_dbytes_create()
679 kc.private_value = (long)sbe; in soc_tplg_dbytes_create()
680 kc.iface = SNDRV_CTL_ELEM_IFACE_MIXER; in soc_tplg_dbytes_create()
681 kc.access = le32_to_cpu(be->hdr.access); in soc_tplg_dbytes_create()
[all …]
/linux-6.6.21/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.6.21/sound/soc/codecs/
Dhdac_hdmi.c768 struct snd_kcontrol *kc, int event) in hdac_hdmi_pin_output_widget_event() argument
813 struct snd_kcontrol *kc, int event) in hdac_hdmi_cvt_output_widget_event() argument
868 struct snd_kcontrol *kc, int event) in hdac_hdmi_pin_mux_widget_event() argument
877 if (!kc) in hdac_hdmi_pin_mux_widget_event()
878 kc = w->kcontrols[0]; in hdac_hdmi_pin_mux_widget_event()
880 mux_idx = dapm_kcontrol_get_value(kc); in hdac_hdmi_pin_mux_widget_event()
967 struct snd_kcontrol_new *kc; in hdac_hdmi_create_pin_port_muxs() local
977 kc = devm_kzalloc(&hdev->dev, sizeof(*kc), GFP_KERNEL); in hdac_hdmi_create_pin_port_muxs()
978 if (!kc) in hdac_hdmi_create_pin_port_muxs()
987 kc->name = devm_kstrdup(&hdev->dev, kc_name, GFP_KERNEL); in hdac_hdmi_create_pin_port_muxs()
[all …]
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_widget(kc); in slim_rx_mux_get()
1272 static int slim_rx_mux_put(struct snd_kcontrol *kc, in slim_rx_mux_put() argument
1275 struct snd_soc_dapm_widget *w = snd_soc_dapm_kcontrol_widget(kc); in slim_rx_mux_put()
1277 struct soc_enum *e = (struct soc_enum *)kc->private_value; in slim_rx_mux_put()
1314 snd_soc_dapm_mux_update_power(w->dapm, kc, wcd->rx_port_value[port_id], in slim_rx_mux_put()
1322 static int slim_tx_mixer_get(struct snd_kcontrol *kc, in slim_tx_mixer_get() argument
1326 struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_dapm(kc); in slim_tx_mixer_get()
1328 struct snd_soc_dapm_widget *widget = snd_soc_dapm_kcontrol_widget(kc); in slim_tx_mixer_get()
1330 (struct soc_mixer_control *)kc->private_value; in slim_tx_mixer_get()
[all …]
Dwcd934x.c1402 struct snd_kcontrol *kc, int event) in wcd934x_codec_enable_mclk() argument
3226 static int wcd934x_compander_get(struct snd_kcontrol *kc, in wcd934x_compander_get() argument
3229 struct snd_soc_component *component = snd_soc_kcontrol_component(kc); in wcd934x_compander_get()
3230 int comp = ((struct soc_mixer_control *)kc->private_value)->shift; in wcd934x_compander_get()
3238 static int wcd934x_compander_set(struct snd_kcontrol *kc, in wcd934x_compander_set() argument
3241 struct snd_soc_component *component = snd_soc_kcontrol_component(kc); in wcd934x_compander_set()
3243 int comp = ((struct soc_mixer_control *)kc->private_value)->shift; in wcd934x_compander_set()
3279 static int wcd934x_rx_hph_mode_get(struct snd_kcontrol *kc, in wcd934x_rx_hph_mode_get() argument
3282 struct snd_soc_component *component = snd_soc_kcontrol_component(kc); in wcd934x_rx_hph_mode_get()
3290 static int wcd934x_rx_hph_mode_put(struct snd_kcontrol *kc, in wcd934x_rx_hph_mode_put() argument
[all …]
Dwsa881x.c743 static int wsa881x_put_pa_gain(struct snd_kcontrol *kc, in wsa881x_put_pa_gain() argument
746 struct snd_soc_component *comp = snd_soc_kcontrol_component(kc); in wsa881x_put_pa_gain()
748 (struct soc_mixer_control *)kc->private_value; in wsa881x_put_pa_gain()
/linux-6.6.21/drivers/media/rc/
Dimon.c132 u32 kc; /* current input keycode */ member
1348 } else if (ictx->kc == KEY_CHANNELUP && (buf[2] & 0x40) != 0x40) { in imon_mouse_event()
1350 } else if (ictx->kc == KEY_CHANNELDOWN && (buf[2] & 0x40) != 0x40) { in imon_mouse_event()
1372 ictx->last_keycode = ictx->kc; in imon_mouse_event()
1422 ictx->kc = KEY_UNKNOWN; in imon_pad_to_keys()
1487 ictx->kc = KEY_UNKNOWN; in imon_pad_to_keys()
1519 ictx->kc = imon_remote_key_lookup(ictx, scancode); in imon_pad_to_keys()
1538 if (ictx->kc == KEY_RESERVED && buf[0] == 0x02 && buf[3] == 0x00) in imon_parse_press_type()
1539 ictx->kc = ictx->last_keycode; in imon_parse_press_type()
1542 else if (ictx->kc == KEY_RESERVED && buf[0] == 0x68 && buf[1] == 0x82 && in imon_parse_press_type()
[all …]
/linux-6.6.21/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.6.21/sound/soc/sof/
Dtopology.c818 struct snd_kcontrol_new *kc, in sof_control_load_volume() argument
839 kc->info = snd_sof_volume_info; in sof_control_load_volume()
851 if (!kc->tlv.p || get_tlv_data(kc->tlv.p, tlv) < 0) { in sof_control_load_volume()
879 kc->access &= ~SNDRV_CTL_ELEM_ACCESS_LED_MASK; in sof_control_load_volume()
880 kc->access |= mask; in sof_control_load_volume()
898 struct snd_kcontrol_new *kc, in sof_control_load_enum() argument
920 struct snd_kcontrol_new *kc, in sof_control_load_bytes() argument
926 struct soc_bytes_ext *sbe = (struct soc_bytes_ext *)kc->private_value; in sof_control_load_bytes()
948 struct snd_kcontrol_new *kc, in sof_control_load() argument
973 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()
/linux-6.6.21/kernel/
Dpid_namespace.c42 struct kmem_cache *kc; in create_pid_cachep() local
46 kc = READ_ONCE(*pkc); in create_pid_cachep()
47 if (kc) in create_pid_cachep()
48 return kc; in create_pid_cachep()
/linux-6.6.21/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.6.21/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.6.21/drivers/pps/
DMakefile7 pps_core-$(CONFIG_NTP_PPS) += kc.o
/linux-6.6.21/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.6.21/drivers/tty/vt/
Dkeyboard.c1905 int kc = 0; in vt_do_kbkeycode_ioctl() local
1911 kc = getkeycode(tmp.scancode); in vt_do_kbkeycode_ioctl()
1912 if (kc >= 0) in vt_do_kbkeycode_ioctl()
1913 kc = put_user(kc, &user_kbkc->keycode); in vt_do_kbkeycode_ioctl()
1918 kc = setkeycode(tmp.scancode, tmp.keycode); in vt_do_kbkeycode_ioctl()
1921 return kc; in vt_do_kbkeycode_ioctl()
/linux-6.6.21/sound/soc/qcom/qdsp6/
Dtopology.c1157 struct snd_kcontrol_new *kc, in audioreach_control_load_mix() argument
1190 struct snd_kcontrol_new *kc, in audioreach_control_load() argument
1206 sm = (struct soc_mixer_control *)kc->private_value; in audioreach_control_load()
1208 ret = audioreach_control_load_mix(scomp, scontrol, kc, hdr); in audioreach_control_load()
1211 sm = (struct soc_mixer_control *)kc->private_value; in audioreach_control_load()
/linux-6.6.21/drivers/s390/cio/
Dchsc.h97 u32 kc:4; member

12