/Linux-v4.19/drivers/gpu/drm/msm/disp/mdp5/ |
D | mdp5_ctl.c | 91 void ctl_write(struct mdp5_ctl *ctl, u32 reg, u32 data) in ctl_write() argument 93 struct mdp5_kms *mdp5_kms = get_kms(ctl->ctlm); in ctl_write() 95 (void)ctl->reg_offset; /* TODO use this instead of mdp5_write */ in ctl_write() 100 u32 ctl_read(struct mdp5_ctl *ctl, u32 reg) in ctl_read() argument 102 struct mdp5_kms *mdp5_kms = get_kms(ctl->ctlm); in ctl_read() 104 (void)ctl->reg_offset; /* TODO use this instead of mdp5_write */ in ctl_read() 143 static void set_ctl_op(struct mdp5_ctl *ctl, struct mdp5_pipeline *pipeline) in set_ctl_op() argument 171 spin_lock_irqsave(&ctl->hw_lock, flags); in set_ctl_op() 172 ctl_write(ctl, REG_MDP5_CTL_OP(ctl->id), ctl_op); in set_ctl_op() 173 spin_unlock_irqrestore(&ctl->hw_lock, flags); in set_ctl_op() [all …]
|
/Linux-v4.19/drivers/thunderbolt/ |
D | ctl.c | 40 #define tb_ctl_WARN(ctl, format, arg...) \ argument 41 dev_WARN(&(ctl)->nhi->pdev->dev, format, ## arg) 43 #define tb_ctl_err(ctl, format, arg...) \ argument 44 dev_err(&(ctl)->nhi->pdev->dev, format, ## arg) 46 #define tb_ctl_warn(ctl, format, arg...) \ argument 47 dev_warn(&(ctl)->nhi->pdev->dev, format, ## arg) 49 #define tb_ctl_info(ctl, format, arg...) \ argument 50 dev_info(&(ctl)->nhi->pdev->dev, format, ## arg) 52 #define tb_ctl_dbg(ctl, format, arg...) \ argument 53 dev_dbg(&(ctl)->nhi->pdev->dev, format, ## arg) [all …]
|
D | ctl.h | 24 void tb_ctl_start(struct tb_ctl *ctl); 25 void tb_ctl_stop(struct tb_ctl *ctl); 26 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_error(struct tb_ctl *ctl, u64 route, u32 port, 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 …]
|
D | eeprom.c | 16 static int tb_eeprom_ctl_write(struct tb_switch *sw, struct tb_eeprom_ctl *ctl) in tb_eeprom_ctl_write() argument 18 return tb_sw_write(sw, ctl, TB_CFG_SWITCH, sw->cap_plug_events + 4, 1); in tb_eeprom_ctl_write() 24 static int tb_eeprom_ctl_read(struct tb_switch *sw, struct tb_eeprom_ctl *ctl) in tb_eeprom_ctl_read() argument 26 return tb_sw_read(sw, ctl, TB_CFG_SWITCH, sw->cap_plug_events + 4, 1); in tb_eeprom_ctl_read() 42 struct tb_eeprom_ctl ctl; in tb_eeprom_active() local 43 int res = tb_eeprom_ctl_read(sw, &ctl); in tb_eeprom_active() 47 ctl.access_high = 1; in tb_eeprom_active() 48 res = tb_eeprom_ctl_write(sw, &ctl); in tb_eeprom_active() 51 ctl.access_low = 0; in tb_eeprom_active() 52 return tb_eeprom_ctl_write(sw, &ctl); in tb_eeprom_active() [all …]
|
/Linux-v4.19/sound/pci/ctxfi/ |
D | cthw20k1.c | 86 u16 ctl:1; member 99 unsigned int ctl; member 182 struct src_rsc_ctrl_blk *ctl = blk; in src_set_state() local 184 set_field(&ctl->ctl, SRCCTL_STATE, state); in src_set_state() 185 ctl->dirty.bf.ctl = 1; in src_set_state() 191 struct src_rsc_ctrl_blk *ctl = blk; in src_set_bm() local 193 set_field(&ctl->ctl, SRCCTL_BM, bm); in src_set_bm() 194 ctl->dirty.bf.ctl = 1; in src_set_bm() 200 struct src_rsc_ctrl_blk *ctl = blk; in src_set_rsr() local 202 set_field(&ctl->ctl, SRCCTL_RSR, rsr); in src_set_rsr() [all …]
|
D | cthw20k2.c | 86 u16 ctl:1; member 99 unsigned int ctl; member 182 struct src_rsc_ctrl_blk *ctl = blk; in src_set_state() local 184 set_field(&ctl->ctl, SRCCTL_STATE, state); in src_set_state() 185 ctl->dirty.bf.ctl = 1; in src_set_state() 191 struct src_rsc_ctrl_blk *ctl = blk; in src_set_bm() local 193 set_field(&ctl->ctl, SRCCTL_BM, bm); in src_set_bm() 194 ctl->dirty.bf.ctl = 1; in src_set_bm() 200 struct src_rsc_ctrl_blk *ctl = blk; in src_set_rsr() local 202 set_field(&ctl->ctl, SRCCTL_RSR, rsr); in src_set_rsr() [all …]
|
/Linux-v4.19/sound/pci/ice1712/ |
D | wm8766.c | 161 memcpy(wm->ctl, snd_wm8766_default_ctl, sizeof(wm->ctl)); in snd_wm8766_init() 202 uinfo->count = (wm->ctl[n].flags & WM8766_FLAG_STEREO) ? 2 : 1; in snd_wm8766_volume_info() 203 uinfo->value.integer.min = wm->ctl[n].min; in snd_wm8766_volume_info() 204 uinfo->value.integer.max = wm->ctl[n].max; in snd_wm8766_volume_info() 215 return snd_ctl_enum_info(uinfo, 1, wm->ctl[n].max, in snd_wm8766_enum_info() 216 wm->ctl[n].enum_names); in snd_wm8766_enum_info() 226 if (wm->ctl[n].get) in snd_wm8766_ctl_get() 227 wm->ctl[n].get(wm, &val1, &val2); in snd_wm8766_ctl_get() 229 val1 = wm->regs[wm->ctl[n].reg1] & wm->ctl[n].mask1; in snd_wm8766_ctl_get() 230 val1 >>= __ffs(wm->ctl[n].mask1); in snd_wm8766_ctl_get() [all …]
|
D | wm8776.c | 90 if (wm->ctl[i].flags & flags_off) in snd_wm8776_update_agc_ctl() 91 snd_wm8776_activate_ctl(wm, wm->ctl[i].name, false); in snd_wm8776_update_agc_ctl() 92 else if (wm->ctl[i].flags & flags_on) in snd_wm8776_update_agc_ctl() 93 snd_wm8776_activate_ctl(wm, wm->ctl[i].name, true); in snd_wm8776_update_agc_ctl() 438 memcpy(wm->ctl, snd_wm8776_default_ctl, sizeof(wm->ctl)); in snd_wm8776_init() 476 uinfo->count = (wm->ctl[n].flags & WM8776_FLAG_STEREO) ? 2 : 1; in snd_wm8776_volume_info() 477 uinfo->value.integer.min = wm->ctl[n].min; in snd_wm8776_volume_info() 478 uinfo->value.integer.max = wm->ctl[n].max; in snd_wm8776_volume_info() 489 return snd_ctl_enum_info(uinfo, 1, wm->ctl[n].max, in snd_wm8776_enum_info() 490 wm->ctl[n].enum_names); in snd_wm8776_enum_info() [all …]
|
D | psc724.c | 211 strlcpy(elem_id.name, spec->wm8776.ctl[WM8776_CTL_HP_SW].name, in psc724_set_jack_state() 322 struct snd_kcontrol *ctl; in psc724_add_controls() local 326 spec->wm8776.ctl[WM8776_CTL_DAC_VOL].name = front_volume; in psc724_add_controls() 327 spec->wm8776.ctl[WM8776_CTL_DAC_SW].name = front_switch; in psc724_add_controls() 328 spec->wm8776.ctl[WM8776_CTL_DAC_ZC_SW].name = front_zc; in psc724_add_controls() 329 spec->wm8776.ctl[WM8776_CTL_AUX_SW].name = NULL; in psc724_add_controls() 330 spec->wm8776.ctl[WM8776_CTL_DAC_IZD_SW].name = front_izd; in psc724_add_controls() 331 spec->wm8776.ctl[WM8776_CTL_PHASE_SW].name = front_phase; in psc724_add_controls() 332 spec->wm8776.ctl[WM8776_CTL_DEEMPH_SW].name = front_deemph; in psc724_add_controls() 333 spec->wm8776.ctl[WM8776_CTL_INPUT1_SW].name = ain1_switch; in psc724_add_controls() [all …]
|
/Linux-v4.19/drivers/irqchip/ |
D | irq-meson-gpio.c | 87 static void meson_gpio_irq_update_bits(struct meson_gpio_irq_controller *ctl, in meson_gpio_irq_update_bits() argument 92 tmp = readl_relaxed(ctl->base + reg); in meson_gpio_irq_update_bits() 95 writel_relaxed(tmp, ctl->base + reg); in meson_gpio_irq_update_bits() 104 meson_gpio_irq_request_channel(struct meson_gpio_irq_controller *ctl, in meson_gpio_irq_request_channel() argument 110 spin_lock(&ctl->lock); in meson_gpio_irq_request_channel() 113 idx = find_first_zero_bit(ctl->channel_map, NUM_CHANNEL); in meson_gpio_irq_request_channel() 115 spin_unlock(&ctl->lock); in meson_gpio_irq_request_channel() 121 set_bit(idx, ctl->channel_map); in meson_gpio_irq_request_channel() 128 meson_gpio_irq_update_bits(ctl, reg, in meson_gpio_irq_request_channel() 138 *channel_hwirq = &(ctl->channel_irqs[idx]); in meson_gpio_irq_request_channel() [all …]
|
/Linux-v4.19/fs/btrfs/ |
D | free-space-cache.c | 30 static int link_free_space(struct btrfs_free_space_ctl *ctl, 32 static void unlink_free_space(struct btrfs_free_space_ctl *ctl, 621 static void merge_space_tree(struct btrfs_free_space_ctl *ctl) in merge_space_tree() argument 627 spin_lock(&ctl->tree_lock); in merge_space_tree() 628 for (n = rb_first(&ctl->free_space_offset); n; n = rb_next(n)) { in merge_space_tree() 635 unlink_free_space(ctl, prev); in merge_space_tree() 636 unlink_free_space(ctl, e); in merge_space_tree() 639 link_free_space(ctl, prev); in merge_space_tree() 641 spin_unlock(&ctl->tree_lock); in merge_space_tree() 647 spin_unlock(&ctl->tree_lock); in merge_space_tree() [all …]
|
D | inode-map.c | 19 struct btrfs_free_space_ctl *ctl = root->free_ino_ctl; in caching_kthread() local 93 __btrfs_add_free_space(fs_info, ctl, last + 1, in caching_kthread() 104 __btrfs_add_free_space(fs_info, ctl, last + 1, in caching_kthread() 126 struct btrfs_free_space_ctl *ctl = root->free_ino_ctl; in start_caching() local 160 __btrfs_add_free_space(fs_info, ctl, objectid, in start_caching() 235 struct btrfs_free_space_ctl *ctl = root->free_ino_ctl; in btrfs_unpin_free_ino() local 265 __btrfs_add_free_space(root->fs_info, ctl, in btrfs_unpin_free_ino() 278 static void recalculate_thresholds(struct btrfs_free_space_ctl *ctl) in recalculate_thresholds() argument 285 n = rb_last(&ctl->free_space_offset); in recalculate_thresholds() 287 ctl->extents_thresh = INIT_THRESHOLD; in recalculate_thresholds() [all …]
|
/Linux-v4.19/sound/pci/oxygen/ |
D | oxygen_mixer.c | 28 static int dac_volume_info(struct snd_kcontrol *ctl, in dac_volume_info() argument 31 struct oxygen *chip = ctl->private_data; in dac_volume_info() 40 static int dac_volume_get(struct snd_kcontrol *ctl, in dac_volume_get() argument 43 struct oxygen *chip = ctl->private_data; in dac_volume_get() 53 static int dac_volume_put(struct snd_kcontrol *ctl, in dac_volume_put() argument 56 struct oxygen *chip = ctl->private_data; in dac_volume_put() 73 static int dac_mute_get(struct snd_kcontrol *ctl, in dac_mute_get() argument 76 struct oxygen *chip = ctl->private_data; in dac_mute_get() 84 static int dac_mute_put(struct snd_kcontrol *ctl, in dac_mute_put() argument 87 struct oxygen *chip = ctl->private_data; in dac_mute_put() [all …]
|
D | xonar_wm87x6.c | 508 static int wm8776_bit_switch_get(struct snd_kcontrol *ctl, in wm8776_bit_switch_get() argument 511 struct oxygen *chip = ctl->private_data; in wm8776_bit_switch_get() 513 u16 bit = ctl->private_value & 0xffff; in wm8776_bit_switch_get() 514 unsigned int reg_index = (ctl->private_value >> 16) & 0xff; in wm8776_bit_switch_get() 515 bool invert = (ctl->private_value >> 24) & 1; in wm8776_bit_switch_get() 522 static int wm8776_bit_switch_put(struct snd_kcontrol *ctl, in wm8776_bit_switch_put() argument 525 struct oxygen *chip = ctl->private_data; in wm8776_bit_switch_put() 527 u16 bit = ctl->private_value & 0xffff; in wm8776_bit_switch_put() 529 unsigned int reg_index = (ctl->private_value >> 16) & 0xff; in wm8776_bit_switch_put() 530 bool invert = (ctl->private_value >> 24) & 1; in wm8776_bit_switch_put() [all …]
|
D | xonar_dg_mixer.c | 57 static int output_select_info(struct snd_kcontrol *ctl, in output_select_info() argument 69 static int output_select_get(struct snd_kcontrol *ctl, in output_select_get() argument 72 struct oxygen *chip = ctl->private_data; in output_select_get() 81 static int output_select_put(struct snd_kcontrol *ctl, in output_select_put() argument 84 struct oxygen *chip = ctl->private_data; in output_select_put() 104 static int hp_stereo_volume_info(struct snd_kcontrol *ctl, in hp_stereo_volume_info() argument 114 static int hp_stereo_volume_get(struct snd_kcontrol *ctl, in hp_stereo_volume_get() argument 117 struct oxygen *chip = ctl->private_data; in hp_stereo_volume_get() 130 static int hp_stereo_volume_put(struct snd_kcontrol *ctl, in hp_stereo_volume_put() argument 133 struct oxygen *chip = ctl->private_data; in hp_stereo_volume_put() [all …]
|
/Linux-v4.19/arch/alpha/oprofile/ |
D | op_model_ev5.c | 30 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-v4.19/sound/soc/kirkwood/ |
D | kirkwood-i2s.c | 223 static unsigned kirkwood_i2s_play_mute(unsigned ctl) in kirkwood_i2s_play_mute() argument 225 if (!(ctl & KIRKWOOD_PLAYCTL_I2S_EN)) in kirkwood_i2s_play_mute() 226 ctl |= KIRKWOOD_PLAYCTL_I2S_MUTE; in kirkwood_i2s_play_mute() 227 if (!(ctl & KIRKWOOD_PLAYCTL_SPDIF_EN)) in kirkwood_i2s_play_mute() 228 ctl |= KIRKWOOD_PLAYCTL_SPDIF_MUTE; in kirkwood_i2s_play_mute() 229 return ctl; in kirkwood_i2s_play_mute() 237 uint32_t ctl, value; in kirkwood_i2s_play_trigger() local 239 ctl = readl(priv->io + KIRKWOOD_PLAYCTL); in kirkwood_i2s_play_trigger() 240 if ((ctl & KIRKWOOD_PLAYCTL_ENABLE_MASK) == 0) { in kirkwood_i2s_play_trigger() 248 value = ctl; in kirkwood_i2s_play_trigger() [all …]
|
/Linux-v4.19/sound/soc/samsung/ |
D | pcm.c | 157 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-v4.19/drivers/net/ethernet/chelsio/cxgb/ |
D | mv88e1xxx.c | 50 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-v4.19/sound/soc/codecs/ |
D | wm_adsp.c | 813 static int wm_coeff_base_reg(struct wm_coeff_ctl *ctl, unsigned int *reg) in wm_coeff_base_reg() argument 815 const struct wm_adsp_alg_region *alg_region = &ctl->alg_region; in wm_coeff_base_reg() 816 struct wm_adsp *dsp = ctl->dsp; in wm_coeff_base_reg() 826 *reg = wm_adsp_region_to_reg(mem, ctl->alg_region.base + ctl->offset); in wm_coeff_base_reg() 836 struct wm_coeff_ctl *ctl = bytes_ext_to_ctl(bytes_ext); in wm_coeff_info() local 838 switch (ctl->type) { in wm_coeff_info() 848 uinfo->count = ctl->len; in wm_coeff_info() 855 static int wm_coeff_write_acked_control(struct wm_coeff_ctl *ctl, in wm_coeff_write_acked_control() argument 858 struct wm_adsp *dsp = ctl->dsp; in wm_coeff_write_acked_control() 863 ret = wm_coeff_base_reg(ctl, ®); in wm_coeff_write_acked_control() [all …]
|
/Linux-v4.19/drivers/net/wireless/broadcom/b43/ |
D | pio.c | 331 u16 ctl, in tx_write_2byte_queue() argument 339 ctl |= B43_PIO_TXCTL_WRITELO | B43_PIO_TXCTL_WRITEHI; in tx_write_2byte_queue() 340 b43_piotx_write16(q, B43_PIO_TXCTL, ctl); in tx_write_2byte_queue() 350 ctl &= ~B43_PIO_TXCTL_WRITEHI; in tx_write_2byte_queue() 351 b43_piotx_write16(q, B43_PIO_TXCTL, ctl); in tx_write_2byte_queue() 359 return ctl; in tx_write_2byte_queue() 368 u16 ctl; in pio_tx_frame_2byte_queue() local 370 ctl = b43_piotx_read16(q, B43_PIO_TXCTL); in pio_tx_frame_2byte_queue() 371 ctl |= B43_PIO_TXCTL_FREADY; in pio_tx_frame_2byte_queue() 372 ctl &= ~B43_PIO_TXCTL_EOF; in pio_tx_frame_2byte_queue() [all …]
|
/Linux-v4.19/sound/core/ |
D | control.c | 54 struct snd_ctl_file *ctl; in snd_ctl_open() local 75 ctl = kzalloc(sizeof(*ctl), GFP_KERNEL); in snd_ctl_open() 76 if (ctl == NULL) { in snd_ctl_open() 80 INIT_LIST_HEAD(&ctl->events); in snd_ctl_open() 81 init_waitqueue_head(&ctl->change_sleep); in snd_ctl_open() 82 spin_lock_init(&ctl->read_lock); in snd_ctl_open() 83 ctl->card = card; in snd_ctl_open() 85 ctl->preferred_subdevice[i] = -1; in snd_ctl_open() 86 ctl->pid = get_pid(task_pid(current)); in snd_ctl_open() 87 file->private_data = ctl; in snd_ctl_open() [all …]
|
/Linux-v4.19/arch/x86/include/asm/ |
D | gart.h | 64 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-v4.19/samples/connector/ |
D | cn_test.c | 54 struct cn_ctl_msg *ctl; 62 size0 = sizeof(*msg) + sizeof(*ctl) + 3 * sizeof(*req); 88 ctl = (struct cn_ctl_msg *)(msg + 1); 90 ctl->idx_notify_num = 1; 91 ctl->val_notify_num = 2; 92 ctl->group = group; 93 ctl->len = msg->len - sizeof(*ctl); 95 req = (struct cn_notify_req *)(ctl + 1); 117 NETLINK_CB(skb).dst_group = ctl->group; 121 pr_info("request was sent: group=0x%x\n", ctl->group);
|
/Linux-v4.19/arch/x86/kernel/ |
D | vsmp_64.c | 90 unsigned int cap, ctl, cfg; in set_vsmp_pv_ops() local 96 ctl = readl(address + 4); in set_vsmp_pv_ops() 98 cap, ctl); in set_vsmp_pv_ops() 102 if (cap & ctl & BIT(8)) { in set_vsmp_pv_ops() 103 ctl &= ~BIT(8); in set_vsmp_pv_ops() 112 if (cap & ctl & (1 << 4)) { in set_vsmp_pv_ops() 119 ctl &= ~(1 << 4); in set_vsmp_pv_ops() 121 writel(ctl, address + 4); in set_vsmp_pv_ops() 122 ctl = readl(address + 4); in set_vsmp_pv_ops() 123 pr_info("vSMP CTL: control set to:0x%08x\n", ctl); in set_vsmp_pv_ops()
|