Home
last modified time | relevance | path

Searched refs:ctl (Results 1 – 25 of 613) sorted by relevance

12345678910>>...25

/linux-6.6.21/tools/testing/selftests/alsa/
Dmixer-test.c62 int card, ctl, err; in find_controls() local
112 for (ctl = 0; ctl < card_data->num_ctls; ctl++) { in find_controls()
119 ctl_data->elem = ctl; in find_controls()
121 ctl); in find_controls()
135 snd_ctl_elem_list_get_id(card_data->ctls, ctl, in find_controls()
187 static int wait_for_event(struct ctl_data *ctl, int timeout) in wait_for_event() argument
198 err = poll(&(ctl->card->pollfd), 1, timeout); in wait_for_event()
201 ctl->name, strerror(errno), errno); in wait_for_event()
208 err = snd_ctl_poll_descriptors_revents(ctl->card->handle, in wait_for_event()
209 &(ctl->card->pollfd), in wait_for_event()
[all …]
/linux-6.6.21/drivers/net/wwan/t7xx/
Dt7xx_state_monitor.c52 struct t7xx_fsm_ctl *ctl = md->fsm_ctl; in t7xx_fsm_notifier_register() local
55 spin_lock_irqsave(&ctl->notifier_lock, flags); in t7xx_fsm_notifier_register()
56 list_add_tail(&notifier->entry, &ctl->notifier_list); in t7xx_fsm_notifier_register()
57 spin_unlock_irqrestore(&ctl->notifier_lock, flags); in t7xx_fsm_notifier_register()
63 struct t7xx_fsm_ctl *ctl = md->fsm_ctl; in t7xx_fsm_notifier_unregister() local
66 spin_lock_irqsave(&ctl->notifier_lock, flags); in t7xx_fsm_notifier_unregister()
67 list_for_each_entry_safe(notifier_cur, notifier_next, &ctl->notifier_list, entry) { in t7xx_fsm_notifier_unregister()
71 spin_unlock_irqrestore(&ctl->notifier_lock, flags); in t7xx_fsm_notifier_unregister()
76 struct t7xx_fsm_ctl *ctl = md->fsm_ctl; in fsm_state_notify() local
80 spin_lock_irqsave(&ctl->notifier_lock, flags); in fsm_state_notify()
[all …]
Dt7xx_modem_ops.c83 struct t7xx_fsm_ctl *ctl; in t7xx_pci_mhccif_isr() local
88 ctl = md->fsm_ctl; in t7xx_pci_mhccif_isr()
89 if (!ctl) { in t7xx_pci_mhccif_isr()
99 if (ctl->md_state == MD_STATE_INVALID || in t7xx_pci_mhccif_isr()
100 ctl->md_state == MD_STATE_WAITING_FOR_HS1 || in t7xx_pci_mhccif_isr()
101 ctl->md_state == MD_STATE_WAITING_FOR_HS2 || in t7xx_pci_mhccif_isr()
102 ctl->md_state == MD_STATE_READY) { in t7xx_pci_mhccif_isr()
104 ret = t7xx_fsm_recv_md_intr(ctl, MD_IRQ_CCIF_EX); in t7xx_pci_mhccif_isr()
109 if (ctl->curr_state == FSM_STATE_INIT || ctl->curr_state == FSM_STATE_PRE_START || in t7xx_pci_mhccif_isr()
110 ctl->curr_state == FSM_STATE_STOPPED) in t7xx_pci_mhccif_isr()
[all …]
/linux-6.6.21/drivers/gpu/drm/msm/disp/mdp5/
Dmdp5_ctl.c83 void ctl_write(struct mdp5_ctl *ctl, u32 reg, u32 data) in ctl_write() argument
85 struct mdp5_kms *mdp5_kms = get_kms(ctl->ctlm); in ctl_write()
87 (void)ctl->reg_offset; /* TODO use this instead of mdp5_write */ in ctl_write()
92 u32 ctl_read(struct mdp5_ctl *ctl, u32 reg) in ctl_read() argument
94 struct mdp5_kms *mdp5_kms = get_kms(ctl->ctlm); in ctl_read()
96 (void)ctl->reg_offset; /* TODO use this instead of mdp5_write */ in ctl_read()
135 static void set_ctl_op(struct mdp5_ctl *ctl, struct mdp5_pipeline *pipeline) in set_ctl_op() argument
163 spin_lock_irqsave(&ctl->hw_lock, flags); in set_ctl_op()
164 ctl_write(ctl, REG_MDP5_CTL_OP(ctl->id), ctl_op); in set_ctl_op()
165 spin_unlock_irqrestore(&ctl->hw_lock, flags); in set_ctl_op()
[all …]
/linux-6.6.21/drivers/irqchip/
Dirq-meson-gpio.c49 static void meson8_gpio_irq_sel_pin(struct meson_gpio_irq_controller *ctl,
51 static void meson_gpio_irq_init_dummy(struct meson_gpio_irq_controller *ctl);
52 static void meson_a1_gpio_irq_sel_pin(struct meson_gpio_irq_controller *ctl,
55 static void meson_a1_gpio_irq_init(struct meson_gpio_irq_controller *ctl);
56 static int meson8_gpio_irq_set_type(struct meson_gpio_irq_controller *ctl,
58 static int meson_s4_gpio_irq_set_type(struct meson_gpio_irq_controller *ctl,
62 void (*gpio_irq_sel_pin)(struct meson_gpio_irq_controller *ctl,
64 void (*gpio_irq_init)(struct meson_gpio_irq_controller *ctl);
65 int (*gpio_irq_set_type)(struct meson_gpio_irq_controller *ctl,
179 static void meson_gpio_irq_update_bits(struct meson_gpio_irq_controller *ctl, in meson_gpio_irq_update_bits() argument
[all …]
/linux-6.6.21/drivers/hwmon/
Daxi-fan-control.c63 const struct axi_fan_control_data *ctl) in axi_iowrite() argument
65 iowrite32(val, ctl->base + reg); in axi_iowrite()
69 const struct axi_fan_control_data *ctl) in axi_ioread() argument
71 return ioread32(ctl->base + reg); in axi_ioread()
80 struct axi_fan_control_data *ctl = dev_get_drvdata(dev); in axi_fan_control_show() local
82 u32 temp = axi_ioread(attr->index, ctl); in axi_fan_control_show()
92 struct axi_fan_control_data *ctl = dev_get_drvdata(dev); in axi_fan_control_store() local
102 axi_iowrite(temp, attr->index, ctl); in axi_fan_control_store()
107 static long axi_fan_control_get_pwm_duty(const struct axi_fan_control_data *ctl) in axi_fan_control_get_pwm_duty() argument
109 u32 pwm_width = axi_ioread(ADI_REG_PWM_WIDTH, ctl); in axi_fan_control_get_pwm_duty()
[all …]
/linux-6.6.21/drivers/thunderbolt/
Dctl.c53 #define tb_ctl_WARN(ctl, format, arg...) \ argument
54 dev_WARN(&(ctl)->nhi->pdev->dev, format, ## arg)
56 #define tb_ctl_err(ctl, format, arg...) \ argument
57 dev_err(&(ctl)->nhi->pdev->dev, format, ## arg)
59 #define tb_ctl_warn(ctl, format, arg...) \ argument
60 dev_warn(&(ctl)->nhi->pdev->dev, format, ## arg)
62 #define tb_ctl_info(ctl, format, arg...) \ argument
63 dev_info(&(ctl)->nhi->pdev->dev, format, ## arg)
65 #define tb_ctl_dbg(ctl, format, arg...) \ argument
66 dev_dbg(&(ctl)->nhi->pdev->dev, format, ## arg)
[all …]
Dctl.h26 void tb_ctl_start(struct tb_ctl *ctl);
27 void tb_ctl_stop(struct tb_ctl *ctl);
28 void tb_ctl_free(struct tb_ctl *ctl);
47 struct tb_ctl *ctl; member
78 struct tb_ctl *ctl; member
103 int tb_cfg_request(struct tb_ctl *ctl, struct tb_cfg_request *req,
106 struct tb_cfg_result tb_cfg_request_sync(struct tb_ctl *ctl,
125 int tb_cfg_ack_notification(struct tb_ctl *ctl, u64 route,
127 int tb_cfg_ack_plug(struct tb_ctl *ctl, u64 route, u32 port, bool unplug);
128 struct tb_cfg_result tb_cfg_reset(struct tb_ctl *ctl, u64 route);
[all …]
/linux-6.6.21/sound/pci/ctxfi/
Dcthw20k1.c82 u16 ctl:1; member
95 unsigned int ctl; member
178 struct src_rsc_ctrl_blk *ctl = blk; in src_set_state() local
180 set_field(&ctl->ctl, SRCCTL_STATE, state); in src_set_state()
181 ctl->dirty.bf.ctl = 1; in src_set_state()
187 struct src_rsc_ctrl_blk *ctl = blk; in src_set_bm() local
189 set_field(&ctl->ctl, SRCCTL_BM, bm); in src_set_bm()
190 ctl->dirty.bf.ctl = 1; in src_set_bm()
196 struct src_rsc_ctrl_blk *ctl = blk; in src_set_rsr() local
198 set_field(&ctl->ctl, SRCCTL_RSR, rsr); in src_set_rsr()
[all …]
Dcthw20k2.c82 u16 ctl:1; member
95 unsigned int ctl; member
178 struct src_rsc_ctrl_blk *ctl = blk; in src_set_state() local
180 set_field(&ctl->ctl, SRCCTL_STATE, state); in src_set_state()
181 ctl->dirty.bf.ctl = 1; in src_set_state()
187 struct src_rsc_ctrl_blk *ctl = blk; in src_set_bm() local
189 set_field(&ctl->ctl, SRCCTL_BM, bm); in src_set_bm()
190 ctl->dirty.bf.ctl = 1; in src_set_bm()
196 struct src_rsc_ctrl_blk *ctl = blk; in src_set_rsr() local
198 set_field(&ctl->ctl, SRCCTL_RSR, rsr); in src_set_rsr()
[all …]
/linux-6.6.21/sound/pci/ice1712/
Dwm8766.c147 memcpy(wm->ctl, snd_wm8766_default_ctl, sizeof(wm->ctl)); in snd_wm8766_init()
188 uinfo->count = (wm->ctl[n].flags & WM8766_FLAG_STEREO) ? 2 : 1; in snd_wm8766_volume_info()
189 uinfo->value.integer.min = wm->ctl[n].min; in snd_wm8766_volume_info()
190 uinfo->value.integer.max = wm->ctl[n].max; in snd_wm8766_volume_info()
201 return snd_ctl_enum_info(uinfo, 1, wm->ctl[n].max, in snd_wm8766_enum_info()
202 wm->ctl[n].enum_names); in snd_wm8766_enum_info()
212 if (wm->ctl[n].get) in snd_wm8766_ctl_get()
213 wm->ctl[n].get(wm, &val1, &val2); in snd_wm8766_ctl_get()
215 val1 = wm->regs[wm->ctl[n].reg1] & wm->ctl[n].mask1; in snd_wm8766_ctl_get()
216 val1 >>= __ffs(wm->ctl[n].mask1); in snd_wm8766_ctl_get()
[all …]
Dwm8776.c72 if (wm->ctl[i].flags & flags_off) in snd_wm8776_update_agc_ctl()
73 snd_wm8776_activate_ctl(wm, wm->ctl[i].name, false); in snd_wm8776_update_agc_ctl()
74 else if (wm->ctl[i].flags & flags_on) in snd_wm8776_update_agc_ctl()
75 snd_wm8776_activate_ctl(wm, wm->ctl[i].name, true); in snd_wm8776_update_agc_ctl()
420 memcpy(wm->ctl, snd_wm8776_default_ctl, sizeof(wm->ctl)); in snd_wm8776_init()
458 uinfo->count = (wm->ctl[n].flags & WM8776_FLAG_STEREO) ? 2 : 1; in snd_wm8776_volume_info()
459 uinfo->value.integer.min = wm->ctl[n].min; in snd_wm8776_volume_info()
460 uinfo->value.integer.max = wm->ctl[n].max; in snd_wm8776_volume_info()
471 return snd_ctl_enum_info(uinfo, 1, wm->ctl[n].max, in snd_wm8776_enum_info()
472 wm->ctl[n].enum_names); in snd_wm8776_enum_info()
[all …]
Dpsc724.c195 spec->wm8776.ctl[WM8776_CTL_HP_SW].name); in psc724_set_jack_state()
305 struct snd_kcontrol *ctl; in psc724_add_controls() local
309 spec->wm8776.ctl[WM8776_CTL_DAC_VOL].name = front_volume; in psc724_add_controls()
310 spec->wm8776.ctl[WM8776_CTL_DAC_SW].name = front_switch; in psc724_add_controls()
311 spec->wm8776.ctl[WM8776_CTL_DAC_ZC_SW].name = front_zc; in psc724_add_controls()
312 spec->wm8776.ctl[WM8776_CTL_AUX_SW].name = NULL; in psc724_add_controls()
313 spec->wm8776.ctl[WM8776_CTL_DAC_IZD_SW].name = front_izd; in psc724_add_controls()
314 spec->wm8776.ctl[WM8776_CTL_PHASE_SW].name = front_phase; in psc724_add_controls()
315 spec->wm8776.ctl[WM8776_CTL_DEEMPH_SW].name = front_deemph; in psc724_add_controls()
316 spec->wm8776.ctl[WM8776_CTL_INPUT1_SW].name = ain1_switch; in psc724_add_controls()
[all …]
/linux-6.6.21/fs/btrfs/
Dfree-space-cache.c47 static int link_free_space(struct btrfs_free_space_ctl *ctl,
49 static void unlink_free_space(struct btrfs_free_space_ctl *ctl,
51 static int search_bitmap(struct btrfs_free_space_ctl *ctl,
54 static void free_bitmap(struct btrfs_free_space_ctl *ctl,
56 static void bitmap_clear_bits(struct btrfs_free_space_ctl *ctl,
60 static void __btrfs_remove_free_space_cache(struct btrfs_free_space_ctl *ctl) in __btrfs_remove_free_space_cache() argument
65 while ((node = rb_last(&ctl->free_space_offset)) != NULL) { in __btrfs_remove_free_space_cache()
68 unlink_free_space(ctl, info, true); in __btrfs_remove_free_space_cache()
71 free_bitmap(ctl, info); in __btrfs_remove_free_space_cache()
74 cond_resched_lock(&ctl->tree_lock); in __btrfs_remove_free_space_cache()
[all …]
/linux-6.6.21/sound/pci/oxygen/
Doxygen_mixer.c16 static int dac_volume_info(struct snd_kcontrol *ctl, in dac_volume_info() argument
19 struct oxygen *chip = ctl->private_data; in dac_volume_info()
28 static int dac_volume_get(struct snd_kcontrol *ctl, in dac_volume_get() argument
31 struct oxygen *chip = ctl->private_data; in dac_volume_get()
41 static int dac_volume_put(struct snd_kcontrol *ctl, in dac_volume_put() argument
44 struct oxygen *chip = ctl->private_data; in dac_volume_put()
61 static int dac_mute_get(struct snd_kcontrol *ctl, in dac_mute_get() argument
64 struct oxygen *chip = ctl->private_data; in dac_mute_get()
72 static int dac_mute_put(struct snd_kcontrol *ctl, in dac_mute_put() argument
75 struct oxygen *chip = ctl->private_data; in dac_mute_put()
[all …]
Dxonar_wm87x6.c499 static int wm8776_bit_switch_get(struct snd_kcontrol *ctl, in wm8776_bit_switch_get() argument
502 struct oxygen *chip = ctl->private_data; in wm8776_bit_switch_get()
504 u16 bit = ctl->private_value & 0xffff; in wm8776_bit_switch_get()
505 unsigned int reg_index = (ctl->private_value >> 16) & 0xff; in wm8776_bit_switch_get()
506 bool invert = (ctl->private_value >> 24) & 1; in wm8776_bit_switch_get()
513 static int wm8776_bit_switch_put(struct snd_kcontrol *ctl, in wm8776_bit_switch_put() argument
516 struct oxygen *chip = ctl->private_data; in wm8776_bit_switch_put()
518 u16 bit = ctl->private_value & 0xffff; in wm8776_bit_switch_put()
520 unsigned int reg_index = (ctl->private_value >> 16) & 0xff; in wm8776_bit_switch_put()
521 bool invert = (ctl->private_value >> 24) & 1; in wm8776_bit_switch_put()
[all …]
Dxonar_dg_mixer.c47 static int output_select_info(struct snd_kcontrol *ctl, in output_select_info() argument
59 static int output_select_get(struct snd_kcontrol *ctl, in output_select_get() argument
62 struct oxygen *chip = ctl->private_data; in output_select_get()
71 static int output_select_put(struct snd_kcontrol *ctl, in output_select_put() argument
74 struct oxygen *chip = ctl->private_data; in output_select_put()
94 static int hp_stereo_volume_info(struct snd_kcontrol *ctl, in hp_stereo_volume_info() argument
104 static int hp_stereo_volume_get(struct snd_kcontrol *ctl, in hp_stereo_volume_get() argument
107 struct oxygen *chip = ctl->private_data; in hp_stereo_volume_get()
120 static int hp_stereo_volume_put(struct snd_kcontrol *ctl, in hp_stereo_volume_put() argument
123 struct oxygen *chip = ctl->private_data; in hp_stereo_volume_put()
[all …]
/linux-6.6.21/drivers/accel/habanalabs/include/gaudi2/
Dgaudi2_packets.h67 __le32 ctl; member
72 __le32 ctl; member
77 __le32 ctl; member
82 __le32 ctl; member
88 __le32 ctl; member
118 __le32 ctl; member
123 __le32 ctl; member
141 __le32 ctl; member
158 __le32 ctl; member
165 __le32 ctl; member
[all …]
/linux-6.6.21/drivers/crypto/caam/
Ddebugfs.c40 debugfs_create_file("qi_congested", 0444, ctrlpriv->ctl, in caam_debugfs_qi_init()
55 ctrlpriv->ctl = debugfs_create_dir("ctl", root); in caam_debugfs_init()
57 debugfs_create_file("rq_dequeued", 0444, ctrlpriv->ctl, in caam_debugfs_init()
59 debugfs_create_file("ob_rq_encrypted", 0444, ctrlpriv->ctl, in caam_debugfs_init()
61 debugfs_create_file("ib_rq_decrypted", 0444, ctrlpriv->ctl, in caam_debugfs_init()
63 debugfs_create_file("ob_bytes_encrypted", 0444, ctrlpriv->ctl, in caam_debugfs_init()
65 debugfs_create_file("ob_bytes_protected", 0444, ctrlpriv->ctl, in caam_debugfs_init()
67 debugfs_create_file("ib_bytes_decrypted", 0444, ctrlpriv->ctl, in caam_debugfs_init()
69 debugfs_create_file("ib_bytes_validated", 0444, ctrlpriv->ctl, in caam_debugfs_init()
73 debugfs_create_file("fault_addr", 0444, ctrlpriv->ctl, in caam_debugfs_init()
[all …]
/linux-6.6.21/sound/pci/hda/
Dhda_cs_dsp_ctl.c40 struct hda_cs_dsp_coeff_ctl *ctl = (struct hda_cs_dsp_coeff_ctl *)snd_kcontrol_chip(kctl); in hda_cs_dsp_coeff_info() local
41 struct cs_dsp_coeff_ctl *cs_ctl = ctl->cs_ctl; in hda_cs_dsp_coeff_info()
51 struct hda_cs_dsp_coeff_ctl *ctl = (struct hda_cs_dsp_coeff_ctl *)snd_kcontrol_chip(kctl); in hda_cs_dsp_coeff_put() local
52 struct cs_dsp_coeff_ctl *cs_ctl = ctl->cs_ctl; in hda_cs_dsp_coeff_put()
65 struct hda_cs_dsp_coeff_ctl *ctl = (struct hda_cs_dsp_coeff_ctl *)snd_kcontrol_chip(kctl); in hda_cs_dsp_coeff_get() local
66 struct cs_dsp_coeff_ctl *cs_ctl = ctl->cs_ctl; in hda_cs_dsp_coeff_get()
100 static void hda_cs_dsp_add_kcontrol(struct hda_cs_dsp_coeff_ctl *ctl, const char *name) in hda_cs_dsp_add_kcontrol() argument
102 struct cs_dsp_coeff_ctl *cs_ctl = ctl->cs_ctl; in hda_cs_dsp_add_kcontrol()
122 kctl = snd_ctl_new1(&kcontrol, (void *)ctl); in hda_cs_dsp_add_kcontrol()
126 ret = snd_ctl_add(ctl->card, kctl); in hda_cs_dsp_add_kcontrol()
[all …]
/linux-6.6.21/drivers/misc/
Dvmw_balloon.c660 struct vmballoon_ctl *ctl, in vmballoon_alloc_page_list() argument
672 if (!list_empty(&ctl->prealloc_pages)) { in vmballoon_alloc_page_list()
673 page = list_first_entry(&ctl->prealloc_pages, in vmballoon_alloc_page_list()
677 if (ctl->page_size == VMW_BALLOON_2M_PAGE) in vmballoon_alloc_page_list()
684 ctl->page_size); in vmballoon_alloc_page_list()
689 list_add(&page->lru, &ctl->pages); in vmballoon_alloc_page_list()
695 ctl->page_size); in vmballoon_alloc_page_list()
699 ctl->n_pages = i; in vmballoon_alloc_page_list()
701 return req_n_pages == ctl->n_pages ? 0 : -ENOMEM; in vmballoon_alloc_page_list()
853 static int vmballoon_lock(struct vmballoon *b, struct vmballoon_ctl *ctl) in vmballoon_lock() argument
[all …]
/linux-6.6.21/drivers/accel/habanalabs/include/gaudi/
Dgaudi_packets.h62 __le32 ctl; member
67 __le32 ctl; member
72 __le32 ctl; member
77 __le32 ctl; member
86 __le32 ctl; member
119 __le32 ctl; member
124 __le32 ctl; member
142 __le32 ctl; member
159 __le32 ctl; member
166 __le32 ctl; member
[all …]
/linux-6.6.21/sound/soc/samsung/
Dpcm.c157 u32 ctl, clkctl; in s3c_pcm_snd_txctrl() local
160 ctl = readl(regs + S3C_PCM_CTL); in s3c_pcm_snd_txctrl()
161 ctl &= ~(S3C_PCM_CTL_TXDIPSTICK_MASK in s3c_pcm_snd_txctrl()
165 ctl |= S3C_PCM_CTL_TXDMA_EN; in s3c_pcm_snd_txctrl()
166 ctl |= S3C_PCM_CTL_TXFIFO_EN; in s3c_pcm_snd_txctrl()
167 ctl |= S3C_PCM_CTL_ENABLE; in s3c_pcm_snd_txctrl()
168 ctl |= (0x4<<S3C_PCM_CTL_TXDIPSTICK_SHIFT); in s3c_pcm_snd_txctrl()
171 ctl &= ~S3C_PCM_CTL_TXDMA_EN; in s3c_pcm_snd_txctrl()
172 ctl &= ~S3C_PCM_CTL_TXFIFO_EN; in s3c_pcm_snd_txctrl()
174 if (!(ctl & S3C_PCM_CTL_RXFIFO_EN)) { in s3c_pcm_snd_txctrl()
[all …]
/linux-6.6.21/drivers/net/ethernet/chelsio/cxgb/
Dmv88e1xxx.c50 u32 ctl; in mv88e1xxx_reset() local
56 (void) simple_mdio_read(cphy, MII_BMCR, &ctl); in mv88e1xxx_reset()
57 ctl &= BMCR_RESET; in mv88e1xxx_reset()
58 if (ctl) in mv88e1xxx_reset()
60 } while (ctl && --time_out); in mv88e1xxx_reset()
62 return ctl ? -1 : 0; in mv88e1xxx_reset()
127 u32 ctl; in mv88e1xxx_set_speed_duplex() local
129 (void) simple_mdio_read(phy, MII_BMCR, &ctl); in mv88e1xxx_set_speed_duplex()
131 ctl &= ~(BMCR_SPEED100 | BMCR_SPEED1000 | BMCR_ANENABLE); in mv88e1xxx_set_speed_duplex()
133 ctl |= BMCR_SPEED100; in mv88e1xxx_set_speed_duplex()
[all …]
/linux-6.6.21/drivers/accel/habanalabs/include/goya/
Dgoya_packets.h58 __le32 ctl; member
63 __le32 ctl; member
71 __le32 ctl; member
76 __le32 ctl; member
82 __le32 ctl; member
88 __le32 ctl; member
93 __le32 ctl; member
99 __le32 ctl; member
119 __le32 ctl; member
126 __le32 ctl; member

12345678910>>...25