Home
last modified time | relevance | path

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

12345678910>>...23

/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/hwmon/
Daxi-fan-control.c54 const struct axi_fan_control_data *ctl) in axi_iowrite() argument
56 iowrite32(val, ctl->base + reg); in axi_iowrite()
60 const struct axi_fan_control_data *ctl) in axi_ioread() argument
62 return ioread32(ctl->base + reg); in axi_ioread()
65 static long axi_fan_control_get_pwm_duty(const struct axi_fan_control_data *ctl) in axi_fan_control_get_pwm_duty() argument
67 u32 pwm_width = axi_ioread(ADI_REG_PWM_WIDTH, ctl); in axi_fan_control_get_pwm_duty()
68 u32 pwm_period = axi_ioread(ADI_REG_PWM_PERIOD, ctl); in axi_fan_control_get_pwm_duty()
77 struct axi_fan_control_data *ctl) in axi_fan_control_set_pwm_duty() argument
79 u32 pwm_period = axi_ioread(ADI_REG_PWM_PERIOD, ctl); in axi_fan_control_set_pwm_duty()
85 axi_iowrite(new_width, ADI_REG_PWM_WIDTH, ctl); in axi_fan_control_set_pwm_duty()
[all …]
/kernel/linux/linux-5.10/drivers/thunderbolt/
Dctl.c41 #define tb_ctl_WARN(ctl, format, arg...) \ argument
42 dev_WARN(&(ctl)->nhi->pdev->dev, format, ## arg)
44 #define tb_ctl_err(ctl, format, arg...) \ argument
45 dev_err(&(ctl)->nhi->pdev->dev, format, ## arg)
47 #define tb_ctl_warn(ctl, format, arg...) \ argument
48 dev_warn(&(ctl)->nhi->pdev->dev, format, ## arg)
50 #define tb_ctl_info(ctl, format, arg...) \ argument
51 dev_info(&(ctl)->nhi->pdev->dev, format, ## arg)
53 #define tb_ctl_dbg(ctl, format, arg...) \ argument
54 dev_dbg(&(ctl)->nhi->pdev->dev, format, ## arg)
[all …]
Dctl.h25 void tb_ctl_start(struct tb_ctl *ctl);
26 void tb_ctl_stop(struct tb_ctl *ctl);
27 void tb_ctl_free(struct tb_ctl *ctl);
48 struct tb_ctl *ctl; member
79 struct tb_ctl *ctl; member
104 int tb_cfg_request(struct tb_ctl *ctl, struct tb_cfg_request *req,
107 struct tb_cfg_result tb_cfg_request_sync(struct tb_ctl *ctl,
126 int tb_cfg_ack_plug(struct tb_ctl *ctl, u64 route, u32 port, bool unplug);
127 struct tb_cfg_result tb_cfg_reset(struct tb_ctl *ctl, u64 route,
129 struct tb_cfg_result tb_cfg_read_raw(struct tb_ctl *ctl, void *buffer,
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/irqchip/
Dirq-meson-gpio.c47 static void meson8_gpio_irq_sel_pin(struct meson_gpio_irq_controller *ctl,
49 static void meson_gpio_irq_init_dummy(struct meson_gpio_irq_controller *ctl);
50 static void meson_a1_gpio_irq_sel_pin(struct meson_gpio_irq_controller *ctl,
53 static void meson_a1_gpio_irq_init(struct meson_gpio_irq_controller *ctl);
56 void (*gpio_irq_sel_pin)(struct meson_gpio_irq_controller *ctl,
58 void (*gpio_irq_init)(struct meson_gpio_irq_controller *ctl);
144 static void meson_gpio_irq_update_bits(struct meson_gpio_irq_controller *ctl, in meson_gpio_irq_update_bits() argument
150 spin_lock_irqsave(&ctl->lock, flags); in meson_gpio_irq_update_bits()
152 tmp = readl_relaxed(ctl->base + reg); in meson_gpio_irq_update_bits()
155 writel_relaxed(tmp, ctl->base + reg); in meson_gpio_irq_update_bits()
[all …]
/kernel/linux/linux-5.10/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.c76 if (wm->ctl[i].flags & flags_off) in snd_wm8776_update_agc_ctl()
77 snd_wm8776_activate_ctl(wm, wm->ctl[i].name, false); in snd_wm8776_update_agc_ctl()
78 else if (wm->ctl[i].flags & flags_on) in snd_wm8776_update_agc_ctl()
79 snd_wm8776_activate_ctl(wm, wm->ctl[i].name, true); in snd_wm8776_update_agc_ctl()
424 memcpy(wm->ctl, snd_wm8776_default_ctl, sizeof(wm->ctl)); in snd_wm8776_init()
462 uinfo->count = (wm->ctl[n].flags & WM8776_FLAG_STEREO) ? 2 : 1; in snd_wm8776_volume_info()
463 uinfo->value.integer.min = wm->ctl[n].min; in snd_wm8776_volume_info()
464 uinfo->value.integer.max = wm->ctl[n].max; in snd_wm8776_volume_info()
475 return snd_ctl_enum_info(uinfo, 1, wm->ctl[n].max, in snd_wm8776_enum_info()
476 wm->ctl[n].enum_names); in snd_wm8776_enum_info()
[all …]
Dpsc724.c197 strlcpy(elem_id.name, spec->wm8776.ctl[WM8776_CTL_HP_SW].name, in psc724_set_jack_state()
308 struct snd_kcontrol *ctl; in psc724_add_controls() local
312 spec->wm8776.ctl[WM8776_CTL_DAC_VOL].name = front_volume; in psc724_add_controls()
313 spec->wm8776.ctl[WM8776_CTL_DAC_SW].name = front_switch; in psc724_add_controls()
314 spec->wm8776.ctl[WM8776_CTL_DAC_ZC_SW].name = front_zc; in psc724_add_controls()
315 spec->wm8776.ctl[WM8776_CTL_AUX_SW].name = NULL; in psc724_add_controls()
316 spec->wm8776.ctl[WM8776_CTL_DAC_IZD_SW].name = front_izd; in psc724_add_controls()
317 spec->wm8776.ctl[WM8776_CTL_PHASE_SW].name = front_phase; in psc724_add_controls()
318 spec->wm8776.ctl[WM8776_CTL_DEEMPH_SW].name = front_deemph; in psc724_add_controls()
319 spec->wm8776.ctl[WM8776_CTL_INPUT1_SW].name = ain1_switch; in psc724_add_controls()
[all …]
/kernel/linux/linux-5.10/fs/btrfs/
Dfree-space-cache.c36 static int count_bitmap_extents(struct btrfs_free_space_ctl *ctl,
38 static int link_free_space(struct btrfs_free_space_ctl *ctl,
40 static void unlink_free_space(struct btrfs_free_space_ctl *ctl,
637 static void merge_space_tree(struct btrfs_free_space_ctl *ctl) in merge_space_tree() argument
643 spin_lock(&ctl->tree_lock); in merge_space_tree()
644 for (n = rb_first(&ctl->free_space_offset); n; n = rb_next(n)) { in merge_space_tree()
651 unlink_free_space(ctl, prev); in merge_space_tree()
652 unlink_free_space(ctl, e); in merge_space_tree()
655 link_free_space(ctl, prev); in merge_space_tree()
657 spin_unlock(&ctl->tree_lock); in merge_space_tree()
[all …]
Dinode-map.c33 struct btrfs_free_space_ctl *ctl = root->free_ino_ctl; in caching_kthread() local
109 __btrfs_add_free_space(fs_info, ctl, last + 1, in caching_kthread()
120 __btrfs_add_free_space(fs_info, ctl, last + 1, in caching_kthread()
142 struct btrfs_free_space_ctl *ctl = root->free_ino_ctl; in start_caching() local
177 __btrfs_add_free_space(fs_info, ctl, objectid, in start_caching()
254 struct btrfs_free_space_ctl *ctl = root->free_ino_ctl; in btrfs_unpin_free_ino() local
284 __btrfs_add_free_space(root->fs_info, ctl, in btrfs_unpin_free_ino()
297 static void recalculate_thresholds(struct btrfs_free_space_ctl *ctl) in recalculate_thresholds() argument
304 n = rb_last(&ctl->free_space_offset); in recalculate_thresholds()
306 ctl->extents_thresh = INIT_THRESHOLD; in recalculate_thresholds()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/crypto/caam/
Ddebugfs.c40 debugfs_create_file("qi_congested", 0444, ctrlpriv->ctl, in caam_debugfs_qi_init()
56 ctrlpriv->ctl = debugfs_create_dir("ctl", root); in caam_debugfs_init()
58 debugfs_create_file("rq_dequeued", 0444, ctrlpriv->ctl, in caam_debugfs_init()
60 debugfs_create_file("ob_rq_encrypted", 0444, ctrlpriv->ctl, in caam_debugfs_init()
62 debugfs_create_file("ib_rq_decrypted", 0444, ctrlpriv->ctl, in caam_debugfs_init()
64 debugfs_create_file("ob_bytes_encrypted", 0444, ctrlpriv->ctl, in caam_debugfs_init()
66 debugfs_create_file("ob_bytes_protected", 0444, ctrlpriv->ctl, in caam_debugfs_init()
68 debugfs_create_file("ib_bytes_decrypted", 0444, ctrlpriv->ctl, in caam_debugfs_init()
70 debugfs_create_file("ib_bytes_validated", 0444, ctrlpriv->ctl, in caam_debugfs_init()
74 debugfs_create_file("fault_addr", 0444, ctrlpriv->ctl, in caam_debugfs_init()
[all …]
/kernel/linux/linux-5.10/arch/alpha/oprofile/
Dop_model_ev5.c30 int i, ctl, reset, need_reset; in common_reg_setup() local
45 ctl = 0; in common_reg_setup()
61 ctl |= event << 31; in common_reg_setup()
65 ctl |= (event - 24) << 4; in common_reg_setup()
67 ctl |= (event - 40) << cbox1_ofs | 15 << 4; in common_reg_setup()
69 ctl |= event - 48; in common_reg_setup()
71 ctl |= (event - 64) << cbox2_ofs | 15; in common_reg_setup()
73 reg->mux_select = ctl; in common_reg_setup()
78 ctl = 0; in common_reg_setup()
79 ctl |= !sys->enable_pal << 9; in common_reg_setup()
[all …]
/kernel/linux/linux-5.10/drivers/misc/
Dvmw_balloon.c667 struct vmballoon_ctl *ctl, in vmballoon_alloc_page_list() argument
679 if (!list_empty(&ctl->prealloc_pages)) { in vmballoon_alloc_page_list()
680 page = list_first_entry(&ctl->prealloc_pages, in vmballoon_alloc_page_list()
684 if (ctl->page_size == VMW_BALLOON_2M_PAGE) in vmballoon_alloc_page_list()
691 ctl->page_size); in vmballoon_alloc_page_list()
696 list_add(&page->lru, &ctl->pages); in vmballoon_alloc_page_list()
702 ctl->page_size); in vmballoon_alloc_page_list()
706 ctl->n_pages = i; in vmballoon_alloc_page_list()
708 return req_n_pages == ctl->n_pages ? 0 : -ENOMEM; in vmballoon_alloc_page_list()
860 static int vmballoon_lock(struct vmballoon *b, struct vmballoon_ctl *ctl) in vmballoon_lock() argument
[all …]
/kernel/linux/linux-5.10/drivers/misc/habanalabs/include/gaudi/
Dgaudi_packets.h62 __le32 ctl; member
67 __le32 ctl; member
72 __le32 ctl; member
77 __le32 ctl; member
83 __le32 ctl; member
128 __le32 ctl; member
133 __le32 ctl; member
163 __le32 ctl; member
180 __le32 ctl; member
187 __le32 ctl; member
[all …]
/kernel/linux/linux-5.10/sound/soc/kirkwood/
Dkirkwood-i2s.c219 static unsigned kirkwood_i2s_play_mute(unsigned ctl) in kirkwood_i2s_play_mute() argument
221 if (!(ctl & KIRKWOOD_PLAYCTL_I2S_EN)) in kirkwood_i2s_play_mute()
222 ctl |= KIRKWOOD_PLAYCTL_I2S_MUTE; in kirkwood_i2s_play_mute()
223 if (!(ctl & KIRKWOOD_PLAYCTL_SPDIF_EN)) in kirkwood_i2s_play_mute()
224 ctl |= KIRKWOOD_PLAYCTL_SPDIF_MUTE; in kirkwood_i2s_play_mute()
225 return ctl; in kirkwood_i2s_play_mute()
233 uint32_t ctl, value; in kirkwood_i2s_play_trigger() local
235 ctl = readl(priv->io + KIRKWOOD_PLAYCTL); in kirkwood_i2s_play_trigger()
236 if ((ctl & KIRKWOOD_PLAYCTL_ENABLE_MASK) == 0) { in kirkwood_i2s_play_trigger()
244 value = ctl; in kirkwood_i2s_play_trigger()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/misc/habanalabs/include/goya/
Dgoya_packets.h70 __le32 ctl; member
75 __le32 ctl; member
83 __le32 ctl; member
88 __le32 ctl; member
94 __le32 ctl; member
100 __le32 ctl; member
105 __le32 ctl; member
111 __le32 ctl; member
131 __le32 ctl; member
138 __le32 ctl; member
/kernel/linux/linux-5.10/drivers/mmc/host/
Dsdhci-milbeaut.c89 u32 ctl; in sdhci_milbeaut_reset() local
118 ctl = sdhci_readl(host, F_SDH30_ESD_CONTROL); in sdhci_milbeaut_reset()
119 ctl |= F_SDH30_CMD_DAT_DELAY; in sdhci_milbeaut_reset()
120 sdhci_writel(host, ctl, F_SDH30_ESD_CONTROL); in sdhci_milbeaut_reset()
179 u32 ctl; in sdhci_milbeaut_vendor_init() local
181 ctl = sdhci_readl(host, F_SDH30_IO_CONTROL2); in sdhci_milbeaut_vendor_init()
182 ctl |= F_SDH30_CRES_O_DN; in sdhci_milbeaut_vendor_init()
183 sdhci_writel(host, ctl, F_SDH30_IO_CONTROL2); in sdhci_milbeaut_vendor_init()
184 ctl &= ~F_SDH30_MSEL_O_1_8; in sdhci_milbeaut_vendor_init()
185 sdhci_writel(host, ctl, F_SDH30_IO_CONTROL2); in sdhci_milbeaut_vendor_init()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/b43/
Dpio.c318 u16 ctl, in tx_write_2byte_queue() argument
326 ctl |= B43_PIO_TXCTL_WRITELO | B43_PIO_TXCTL_WRITEHI; in tx_write_2byte_queue()
327 b43_piotx_write16(q, B43_PIO_TXCTL, ctl); in tx_write_2byte_queue()
337 ctl &= ~B43_PIO_TXCTL_WRITEHI; in tx_write_2byte_queue()
338 b43_piotx_write16(q, B43_PIO_TXCTL, ctl); in tx_write_2byte_queue()
346 return ctl; in tx_write_2byte_queue()
355 u16 ctl; in pio_tx_frame_2byte_queue() local
357 ctl = b43_piotx_read16(q, B43_PIO_TXCTL); in pio_tx_frame_2byte_queue()
358 ctl |= B43_PIO_TXCTL_FREADY; in pio_tx_frame_2byte_queue()
359 ctl &= ~B43_PIO_TXCTL_EOF; in pio_tx_frame_2byte_queue()
[all …]

12345678910>>...23