Home
last modified time | relevance | path

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

12345678910>>...22

/Linux-v5.4/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-v5.4/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_error(struct tb_ctl *ctl, u64 route, u32 port,
128 struct tb_cfg_result tb_cfg_reset(struct tb_ctl *ctl, u64 route,
130 struct tb_cfg_result tb_cfg_read_raw(struct tb_ctl *ctl, void *buffer,
[all …]
Deeprom.c17 static int tb_eeprom_ctl_write(struct tb_switch *sw, struct tb_eeprom_ctl *ctl) in tb_eeprom_ctl_write() argument
19 return tb_sw_write(sw, ctl, TB_CFG_SWITCH, sw->cap_plug_events + 4, 1); in tb_eeprom_ctl_write()
25 static int tb_eeprom_ctl_read(struct tb_switch *sw, struct tb_eeprom_ctl *ctl) in tb_eeprom_ctl_read() argument
27 return tb_sw_read(sw, ctl, TB_CFG_SWITCH, sw->cap_plug_events + 4, 1); in tb_eeprom_ctl_read()
43 struct tb_eeprom_ctl ctl; in tb_eeprom_active() local
44 int res = tb_eeprom_ctl_read(sw, &ctl); in tb_eeprom_active()
48 ctl.access_high = 1; in tb_eeprom_active()
49 res = tb_eeprom_ctl_write(sw, &ctl); in tb_eeprom_active()
52 ctl.access_low = 0; in tb_eeprom_active()
53 return tb_eeprom_ctl_write(sw, &ctl); in tb_eeprom_active()
[all …]
/Linux-v5.4/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-v5.4/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 …]
/Linux-v5.4/drivers/irqchip/
Dirq-meson-gpio.c92 static void meson_gpio_irq_update_bits(struct meson_gpio_irq_controller *ctl, in meson_gpio_irq_update_bits() argument
97 tmp = readl_relaxed(ctl->base + reg); in meson_gpio_irq_update_bits()
100 writel_relaxed(tmp, ctl->base + reg); in meson_gpio_irq_update_bits()
109 meson_gpio_irq_request_channel(struct meson_gpio_irq_controller *ctl, in meson_gpio_irq_request_channel() argument
115 spin_lock(&ctl->lock); in meson_gpio_irq_request_channel()
118 idx = find_first_zero_bit(ctl->channel_map, NUM_CHANNEL); in meson_gpio_irq_request_channel()
120 spin_unlock(&ctl->lock); in meson_gpio_irq_request_channel()
126 set_bit(idx, ctl->channel_map); in meson_gpio_irq_request_channel()
133 meson_gpio_irq_update_bits(ctl, reg, in meson_gpio_irq_request_channel()
143 *channel_hwirq = &(ctl->channel_irqs[idx]); in meson_gpio_irq_request_channel()
[all …]
/Linux-v5.4/fs/btrfs/
Dfree-space-cache.c34 static int link_free_space(struct btrfs_free_space_ctl *ctl,
36 static void unlink_free_space(struct btrfs_free_space_ctl *ctl,
631 static void merge_space_tree(struct btrfs_free_space_ctl *ctl) in merge_space_tree() argument
637 spin_lock(&ctl->tree_lock); in merge_space_tree()
638 for (n = rb_first(&ctl->free_space_offset); n; n = rb_next(n)) { in merge_space_tree()
645 unlink_free_space(ctl, prev); in merge_space_tree()
646 unlink_free_space(ctl, e); in merge_space_tree()
649 link_free_space(ctl, prev); in merge_space_tree()
651 spin_unlock(&ctl->tree_lock); 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()
253 struct btrfs_free_space_ctl *ctl = root->free_ino_ctl; in btrfs_unpin_free_ino() local
283 __btrfs_add_free_space(root->fs_info, ctl, in btrfs_unpin_free_ino()
296 static void recalculate_thresholds(struct btrfs_free_space_ctl *ctl) in recalculate_thresholds() argument
303 n = rb_last(&ctl->free_space_offset); in recalculate_thresholds()
305 ctl->extents_thresh = INIT_THRESHOLD; in recalculate_thresholds()
[all …]
/Linux-v5.4/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.c497 static int wm8776_bit_switch_get(struct snd_kcontrol *ctl, in wm8776_bit_switch_get() argument
500 struct oxygen *chip = ctl->private_data; in wm8776_bit_switch_get()
502 u16 bit = ctl->private_value & 0xffff; in wm8776_bit_switch_get()
503 unsigned int reg_index = (ctl->private_value >> 16) & 0xff; in wm8776_bit_switch_get()
504 bool invert = (ctl->private_value >> 24) & 1; in wm8776_bit_switch_get()
511 static int wm8776_bit_switch_put(struct snd_kcontrol *ctl, in wm8776_bit_switch_put() argument
514 struct oxygen *chip = ctl->private_data; in wm8776_bit_switch_put()
516 u16 bit = ctl->private_value & 0xffff; in wm8776_bit_switch_put()
518 unsigned int reg_index = (ctl->private_value >> 16) & 0xff; in wm8776_bit_switch_put()
519 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-v5.4/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 …]
/Linux-v5.4/drivers/misc/
Dvmw_balloon.c666 struct vmballoon_ctl *ctl, in vmballoon_alloc_page_list() argument
678 if (!list_empty(&ctl->prealloc_pages)) { in vmballoon_alloc_page_list()
679 page = list_first_entry(&ctl->prealloc_pages, in vmballoon_alloc_page_list()
683 if (ctl->page_size == VMW_BALLOON_2M_PAGE) in vmballoon_alloc_page_list()
690 ctl->page_size); in vmballoon_alloc_page_list()
695 list_add(&page->lru, &ctl->pages); in vmballoon_alloc_page_list()
701 ctl->page_size); in vmballoon_alloc_page_list()
705 ctl->n_pages = i; in vmballoon_alloc_page_list()
707 return req_n_pages == ctl->n_pages ? 0 : -ENOMEM; in vmballoon_alloc_page_list()
859 static int vmballoon_lock(struct vmballoon *b, struct vmballoon_ctl *ctl) in vmballoon_lock() argument
[all …]
/Linux-v5.4/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 …]
/Linux-v5.4/sound/soc/samsung/
Dpcm.c152 u32 ctl, clkctl; in s3c_pcm_snd_txctrl() local
155 ctl = readl(regs + S3C_PCM_CTL); in s3c_pcm_snd_txctrl()
156 ctl &= ~(S3C_PCM_CTL_TXDIPSTICK_MASK in s3c_pcm_snd_txctrl()
160 ctl |= S3C_PCM_CTL_TXDMA_EN; in s3c_pcm_snd_txctrl()
161 ctl |= S3C_PCM_CTL_TXFIFO_EN; in s3c_pcm_snd_txctrl()
162 ctl |= S3C_PCM_CTL_ENABLE; in s3c_pcm_snd_txctrl()
163 ctl |= (0x4<<S3C_PCM_CTL_TXDIPSTICK_SHIFT); in s3c_pcm_snd_txctrl()
166 ctl &= ~S3C_PCM_CTL_TXDMA_EN; in s3c_pcm_snd_txctrl()
167 ctl &= ~S3C_PCM_CTL_TXFIFO_EN; in s3c_pcm_snd_txctrl()
169 if (!(ctl & S3C_PCM_CTL_RXFIFO_EN)) { in s3c_pcm_snd_txctrl()
[all …]
/Linux-v5.4/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-v5.4/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
/Linux-v5.4/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 …]
/Linux-v5.4/sound/core/
Dcontrol.c39 struct snd_ctl_file *ctl; in snd_ctl_open() local
60 ctl = kzalloc(sizeof(*ctl), GFP_KERNEL); in snd_ctl_open()
61 if (ctl == NULL) { in snd_ctl_open()
65 INIT_LIST_HEAD(&ctl->events); in snd_ctl_open()
66 init_waitqueue_head(&ctl->change_sleep); in snd_ctl_open()
67 spin_lock_init(&ctl->read_lock); in snd_ctl_open()
68 ctl->card = card; in snd_ctl_open()
70 ctl->preferred_subdevice[i] = -1; in snd_ctl_open()
71 ctl->pid = get_pid(task_pid(current)); in snd_ctl_open()
72 file->private_data = ctl; in snd_ctl_open()
[all …]
/Linux-v5.4/arch/x86/include/asm/
Dgart.h64 u32 ctl; in gart_set_size_and_enable() local
70 ctl = order << 1; in gart_set_size_and_enable()
72 pci_write_config_dword(dev, AMD64_GARTAPERTURECTL, ctl); in gart_set_size_and_enable()
77 u32 tmp, ctl; in enable_gart_translation() local
86 pci_read_config_dword(dev, AMD64_GARTAPERTURECTL, &ctl); in enable_gart_translation()
87 ctl |= GARTEN | DISTLBWALKPRB; in enable_gart_translation()
88 ctl &= ~(DISGARTCPU | DISGARTIO); in enable_gart_translation()
89 pci_write_config_dword(dev, AMD64_GARTAPERTURECTL, ctl); in enable_gart_translation()
/Linux-v5.4/sound/soc/codecs/
Dwm_adsp.c928 static int wm_coeff_base_reg(struct wm_coeff_ctl *ctl, unsigned int *reg) in wm_coeff_base_reg() argument
930 const struct wm_adsp_alg_region *alg_region = &ctl->alg_region; in wm_coeff_base_reg()
931 struct wm_adsp *dsp = ctl->dsp; in wm_coeff_base_reg()
941 *reg = dsp->ops->region_to_reg(mem, ctl->alg_region.base + ctl->offset); in wm_coeff_base_reg()
951 struct wm_coeff_ctl *ctl = bytes_ext_to_ctl(bytes_ext); in wm_coeff_info() local
953 switch (ctl->type) { in wm_coeff_info()
963 uinfo->count = ctl->len; in wm_coeff_info()
970 static int wm_coeff_write_acked_control(struct wm_coeff_ctl *ctl, in wm_coeff_write_acked_control() argument
973 struct wm_adsp *dsp = ctl->dsp; in wm_coeff_write_acked_control()
978 ret = wm_coeff_base_reg(ctl, &reg); in wm_coeff_write_acked_control()
[all …]

12345678910>>...22