/linux-4.1.27/drivers/gpu/drm/msm/mdp/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_interface *intf) in set_ctl_op() argument 166 spin_lock_irqsave(&ctl->hw_lock, flags); in set_ctl_op() 167 ctl_write(ctl, REG_MDP5_CTL_OP(ctl->id), ctl_op); in set_ctl_op() 168 spin_unlock_irqrestore(&ctl->hw_lock, flags); in set_ctl_op() [all …]
|
D | mdp5_ctl.h | 36 int mdp5_ctl_get_ctl_id(struct mdp5_ctl *ctl); 39 int mdp5_ctl_set_intf(struct mdp5_ctl *ctl, struct mdp5_interface *intf); 40 int mdp5_ctl_set_encoder_state(struct mdp5_ctl *ctl, bool enabled); 42 int mdp5_ctl_set_cursor(struct mdp5_ctl *ctl, int cursor_id, bool enable); 77 int mdp5_ctl_blend(struct mdp5_ctl *ctl, u32 lm, u32 blend_cfg); 91 int mdp5_ctl_commit(struct mdp5_ctl *ctl, u32 flush_mask); 93 void mdp5_ctl_release(struct mdp5_ctl *ctl);
|
D | mdp5_crtc.c | 44 struct mdp5_ctl *ctl; member 90 mdp5_ctl_commit(mdp5_crtc->ctl, flush_mask); in crtc_flush() 105 if (WARN_ON(!mdp5_crtc->ctl)) in crtc_flush_all() 145 if (mdp5_crtc->ctl && !crtc->state->enable) { in complete_flip() 146 mdp5_ctl_release(mdp5_crtc->ctl); in complete_flip() 147 mdp5_crtc->ctl = NULL; in complete_flip() 204 if (!mdp5_crtc->ctl) in blend_setup() 233 mdp5_ctl_blend(mdp5_crtc->ctl, lm, blend_cfg); in blend_setup() 278 mdp5_ctl_blend(mdp5_crtc->ctl, mdp5_crtc->lm, 0x00000000); in mdp5_crtc_disable() 327 if (state->enable && !mdp5_crtc->ctl) { in mdp5_crtc_atomic_check() [all …]
|
D | mdp5_cmd_encoder.c | 220 struct mdp5_ctl *ctl = mdp5_crtc_get_ctl(encoder->crtc); in mdp5_cmd_encoder_disable() local 231 mdp5_ctl_set_encoder_state(ctl, false); in mdp5_cmd_encoder_disable() 232 mdp5_ctl_commit(ctl, mdp_ctl_flush_mask_encoder(intf)); in mdp5_cmd_encoder_disable() 242 struct mdp5_ctl *ctl = mdp5_crtc_get_ctl(encoder->crtc); in mdp5_cmd_encoder_enable() local 252 mdp5_ctl_commit(ctl, mdp_ctl_flush_mask_encoder(intf)); in mdp5_cmd_encoder_enable() 254 mdp5_ctl_set_encoder_state(ctl, true); in mdp5_cmd_encoder_enable()
|
D | mdp5_encoder.c | 228 struct mdp5_ctl *ctl = mdp5_crtc_get_ctl(encoder->crtc); in mdp5_encoder_disable() local 237 mdp5_ctl_set_encoder_state(ctl, false); in mdp5_encoder_disable() 242 mdp5_ctl_commit(ctl, mdp_ctl_flush_mask_encoder(intf)); in mdp5_encoder_disable() 263 struct mdp5_ctl *ctl = mdp5_crtc_get_ctl(encoder->crtc); in mdp5_encoder_enable() local 275 mdp5_ctl_commit(ctl, mdp_ctl_flush_mask_encoder(intf)); in mdp5_encoder_enable() 277 mdp5_ctl_set_encoder_state(ctl, true); in mdp5_encoder_enable()
|
D | mdp5_cfg.c | 40 .ctl = { 108 .ctl = { 169 .ctl = {
|
D | mdp5_cfg.h | 72 struct mdp5_ctl_block ctl; member
|
/linux-4.1.27/drivers/thunderbolt/ |
D | ctl.c | 18 struct tb_ctl *ctl; member 43 #define tb_ctl_WARN(ctl, format, arg...) \ argument 44 dev_WARN(&(ctl)->nhi->pdev->dev, format, ## arg) 46 #define tb_ctl_err(ctl, format, arg...) \ argument 47 dev_err(&(ctl)->nhi->pdev->dev, format, ## arg) 49 #define tb_ctl_warn(ctl, format, arg...) \ argument 50 dev_warn(&(ctl)->nhi->pdev->dev, format, ## arg) 52 #define tb_ctl_info(ctl, format, arg...) \ argument 53 dev_info(&(ctl)->nhi->pdev->dev, format, ## arg) 237 static void tb_cfg_print_error(struct tb_ctl *ctl, in tb_cfg_print_error() argument [all …]
|
D | eeprom.c | 14 static int tb_eeprom_ctl_write(struct tb_switch *sw, struct tb_eeprom_ctl *ctl) in tb_eeprom_ctl_write() argument 16 return tb_sw_write(sw, ctl, TB_CFG_SWITCH, sw->cap_plug_events + 4, 1); in tb_eeprom_ctl_write() 22 static int tb_eeprom_ctl_read(struct tb_switch *sw, struct tb_eeprom_ctl *ctl) in tb_eeprom_ctl_read() argument 24 return tb_sw_read(sw, ctl, TB_CFG_SWITCH, sw->cap_plug_events + 4, 1); in tb_eeprom_ctl_read() 40 struct tb_eeprom_ctl ctl; in tb_eeprom_active() local 41 int res = tb_eeprom_ctl_read(sw, &ctl); in tb_eeprom_active() 45 ctl.access_high = 1; in tb_eeprom_active() 46 res = tb_eeprom_ctl_write(sw, &ctl); in tb_eeprom_active() 49 ctl.access_low = 0; in tb_eeprom_active() 50 return tb_eeprom_ctl_write(sw, &ctl); in tb_eeprom_active() [all …]
|
D | ctl.h | 18 void tb_ctl_start(struct tb_ctl *ctl); 19 void tb_ctl_stop(struct tb_ctl *ctl); 20 void tb_ctl_free(struct tb_ctl *ctl); 56 int tb_cfg_error(struct tb_ctl *ctl, u64 route, u32 port, 58 struct tb_cfg_result tb_cfg_reset(struct tb_ctl *ctl, u64 route, 60 struct tb_cfg_result tb_cfg_read_raw(struct tb_ctl *ctl, void *buffer, 64 struct tb_cfg_result tb_cfg_write_raw(struct tb_ctl *ctl, void *buffer, 68 int tb_cfg_read(struct tb_ctl *ctl, void *buffer, u64 route, u32 port, 70 int tb_cfg_write(struct tb_ctl *ctl, void *buffer, u64 route, u32 port, 72 int tb_cfg_get_upstream_port(struct tb_ctl *ctl, u64 route);
|
D | tb.c | 323 if (tb->ctl) { in thunderbolt_shutdown_and_free() 324 tb_ctl_stop(tb->ctl); in thunderbolt_shutdown_and_free() 325 tb_ctl_free(tb->ctl); in thunderbolt_shutdown_and_free() 327 tb->ctl = NULL; in thunderbolt_shutdown_and_free() 370 tb->ctl = tb_ctl_alloc(tb->nhi, tb_schedule_hotplug_handler, tb); in thunderbolt_alloc_and_start() 371 if (!tb->ctl) in thunderbolt_alloc_and_start() 377 tb_ctl_start(tb->ctl); in thunderbolt_alloc_and_start() 403 tb_ctl_stop(tb->ctl); in thunderbolt_suspend() 414 tb_ctl_start(tb->ctl); in thunderbolt_resume()
|
D | tb.h | 105 struct tb_ctl *ctl; member 143 return tb_cfg_read(sw->tb->ctl, in tb_sw_read() 155 return tb_cfg_write(sw->tb->ctl, in tb_sw_write() 167 return tb_cfg_read(port->sw->tb->ctl, in tb_port_read() 179 return tb_cfg_write(port->sw->tb->ctl, in tb_port_write()
|
D | switch.c | 244 res.err = tb_cfg_write(tb->ctl, ((u32 *) &header) + 2, route, in tb_switch_reset() 248 res = tb_cfg_reset(tb->ctl, route, TB_CFG_DEFAULT_TIMEOUT); in tb_switch_reset() 344 int upstream_port = tb_cfg_get_upstream_port(tb->ctl, route); in tb_switch_alloc() 353 if (tb_cfg_read(tb->ctl, &sw->config, route, 0, 2, 0, 5)) in tb_switch_alloc()
|
D | Makefile | 2 thunderbolt-objs := nhi.o ctl.o tb.o switch.o cap.o path.o tunnel_pci.o eeprom.o
|
/linux-4.1.27/sound/pci/ctxfi/ |
D | cthw20k1.c | 92 u16 ctl:1; member 105 unsigned int ctl; member 188 struct src_rsc_ctrl_blk *ctl = blk; in src_set_state() local 190 set_field(&ctl->ctl, SRCCTL_STATE, state); in src_set_state() 191 ctl->dirty.bf.ctl = 1; in src_set_state() 197 struct src_rsc_ctrl_blk *ctl = blk; in src_set_bm() local 199 set_field(&ctl->ctl, SRCCTL_BM, bm); in src_set_bm() 200 ctl->dirty.bf.ctl = 1; in src_set_bm() 206 struct src_rsc_ctrl_blk *ctl = blk; in src_set_rsr() local 208 set_field(&ctl->ctl, SRCCTL_RSR, rsr); in src_set_rsr() [all …]
|
D | cthw20k2.c | 92 u16 ctl:1; member 105 unsigned int ctl; member 188 struct src_rsc_ctrl_blk *ctl = blk; in src_set_state() local 190 set_field(&ctl->ctl, SRCCTL_STATE, state); in src_set_state() 191 ctl->dirty.bf.ctl = 1; in src_set_state() 197 struct src_rsc_ctrl_blk *ctl = blk; in src_set_bm() local 199 set_field(&ctl->ctl, SRCCTL_BM, bm); in src_set_bm() 200 ctl->dirty.bf.ctl = 1; in src_set_bm() 206 struct src_rsc_ctrl_blk *ctl = blk; in src_set_rsr() local 208 set_field(&ctl->ctl, SRCCTL_RSR, rsr); in src_set_rsr() [all …]
|
D | ctmixer.c | 114 unsigned char ctl; member 121 .ctl = 1, 125 .ctl = 1, 129 .ctl = 1, 133 .ctl = 1, 137 .ctl = 1, 141 .ctl = 1, 145 .ctl = 1, 149 .ctl = 1, 153 .ctl = 1, [all …]
|
/linux-4.1.27/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-4.1.27/fs/btrfs/ |
D | free-space-cache.c | 41 static int link_free_space(struct btrfs_free_space_ctl *ctl, 43 static void unlink_free_space(struct btrfs_free_space_ctl *ctl, 641 static void merge_space_tree(struct btrfs_free_space_ctl *ctl) in merge_space_tree() argument 647 spin_lock(&ctl->tree_lock); in merge_space_tree() 648 for (n = rb_first(&ctl->free_space_offset); n; n = rb_next(n)) { in merge_space_tree() 655 unlink_free_space(ctl, prev); in merge_space_tree() 656 unlink_free_space(ctl, e); in merge_space_tree() 659 link_free_space(ctl, prev); in merge_space_tree() 661 spin_unlock(&ctl->tree_lock); in merge_space_tree() 667 spin_unlock(&ctl->tree_lock); in merge_space_tree() [all …]
|
D | inode-map.c | 33 struct btrfs_free_space_ctl *ctl = root->free_ino_ctl; in caching_kthread() local 107 __btrfs_add_free_space(ctl, last + 1, in caching_kthread() 118 __btrfs_add_free_space(ctl, last + 1, in caching_kthread() 139 struct btrfs_free_space_ctl *ctl = root->free_ino_ctl; in start_caching() local 173 __btrfs_add_free_space(ctl, objectid, in start_caching() 247 struct btrfs_free_space_ctl *ctl = root->free_ino_ctl; in btrfs_unpin_free_ino() local 280 __btrfs_add_free_space(ctl, info->offset, count); in btrfs_unpin_free_ino() 292 static void recalculate_thresholds(struct btrfs_free_space_ctl *ctl) in recalculate_thresholds() argument 299 n = rb_last(&ctl->free_space_offset); in recalculate_thresholds() 301 ctl->extents_thresh = INIT_THRESHOLD; in recalculate_thresholds() [all …]
|
D | free-space-cache.h | 46 void (*recalc_thresholds)(struct btrfs_free_space_ctl *ctl); 47 bool (*use_bitmap)(struct btrfs_free_space_ctl *ctl, 91 int __btrfs_add_free_space(struct btrfs_free_space_ctl *ctl, 102 void __btrfs_remove_free_space_cache(struct btrfs_free_space_ctl *ctl);
|
/linux-4.1.27/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 …]
|
D | xonar_lib.c | 102 int xonar_gpio_bit_switch_get(struct snd_kcontrol *ctl, in xonar_gpio_bit_switch_get() argument 105 struct oxygen *chip = ctl->private_data; in xonar_gpio_bit_switch_get() 106 u16 bit = ctl->private_value; in xonar_gpio_bit_switch_get() 107 bool invert = ctl->private_value & XONAR_GPIO_BIT_INVERT; in xonar_gpio_bit_switch_get() 114 int xonar_gpio_bit_switch_put(struct snd_kcontrol *ctl, in xonar_gpio_bit_switch_put() argument 117 struct oxygen *chip = ctl->private_data; in xonar_gpio_bit_switch_put() 118 u16 bit = ctl->private_value; in xonar_gpio_bit_switch_put() 119 bool invert = ctl->private_value & XONAR_GPIO_BIT_INVERT; in xonar_gpio_bit_switch_put()
|
D | oxygen.c | 438 static int rolloff_info(struct snd_kcontrol *ctl, in rolloff_info() argument 448 static int rolloff_get(struct snd_kcontrol *ctl, in rolloff_get() argument 451 struct oxygen *chip = ctl->private_data; in rolloff_get() 459 static int rolloff_put(struct snd_kcontrol *ctl, in rolloff_put() argument 462 struct oxygen *chip = ctl->private_data; in rolloff_put() 491 static int hpf_info(struct snd_kcontrol *ctl, struct snd_ctl_elem_info *info) in hpf_info() argument 500 static int hpf_get(struct snd_kcontrol *ctl, struct snd_ctl_elem_value *value) in hpf_get() argument 502 struct oxygen *chip = ctl->private_data; in hpf_get() 510 static int hpf_put(struct snd_kcontrol *ctl, struct snd_ctl_elem_value *value) in hpf_put() argument 512 struct oxygen *chip = ctl->private_data; in hpf_put() [all …]
|
D | xonar_pcm179x.c | 725 static int rolloff_info(struct snd_kcontrol *ctl, in rolloff_info() argument 735 static int rolloff_get(struct snd_kcontrol *ctl, in rolloff_get() argument 738 struct oxygen *chip = ctl->private_data; in rolloff_get() 747 static int rolloff_put(struct snd_kcontrol *ctl, in rolloff_put() argument 750 struct oxygen *chip = ctl->private_data; in rolloff_put() 789 static int st_output_switch_info(struct snd_kcontrol *ctl, in st_output_switch_info() argument 799 static int st_output_switch_get(struct snd_kcontrol *ctl, in st_output_switch_get() argument 802 struct oxygen *chip = ctl->private_data; in st_output_switch_get() 816 static int st_output_switch_put(struct snd_kcontrol *ctl, in st_output_switch_put() argument 819 struct oxygen *chip = ctl->private_data; in st_output_switch_put() [all …]
|
D | xonar.h | 29 int xonar_gpio_bit_switch_get(struct snd_kcontrol *ctl, 31 int xonar_gpio_bit_switch_put(struct snd_kcontrol *ctl,
|
D | xonar_cs43xx.c | 294 static int rolloff_info(struct snd_kcontrol *ctl, in rolloff_info() argument 304 static int rolloff_get(struct snd_kcontrol *ctl, in rolloff_get() argument 307 struct oxygen *chip = ctl->private_data; in rolloff_get() 315 static int rolloff_put(struct snd_kcontrol *ctl, in rolloff_put() argument 318 struct oxygen *chip = ctl->private_data; in rolloff_put()
|
/linux-4.1.27/fs/ncpfs/ |
D | dir.c | 425 struct ncp_cache_control ctl; in ncp_readdir() local 429 ctl.page = NULL; in ncp_readdir() 430 ctl.cache = NULL; in ncp_readdir() 447 ctl.cache = cache = kmap(page); in ncp_readdir() 448 ctl.head = cache->head; in ncp_readdir() 450 if (!PageUptodate(page) || !ctl.head.eof) in ncp_readdir() 454 if (jiffies - ctl.head.time >= NCP_MAX_AGE(server)) in ncp_readdir() 459 if ((!mtime) || (mtime != ctl.head.mtime)) in ncp_readdir() 463 if (ctx->pos > ctl.head.end) in ncp_readdir() 466 ctl.fpos = ctx->pos + (NCP_DIRCACHE_START - 2); in ncp_readdir() [all …]
|
/linux-4.1.27/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 …]
|
D | op_model_ev4.c | 24 unsigned long ctl = 0, count, hilo; in ev4_reg_setup() local 39 ctl |= (ctr[0].enabled ? ctr[0].event << 8 : 14 << 8); in ev4_reg_setup() 40 ctl |= (ctr[1].enabled ? (ctr[1].event - 16) << 32 : 7ul << 32); in ev4_reg_setup() 54 ctl |= (ctr[0].enabled && hilo) << 3; in ev4_reg_setup() 62 ctl |= (ctr[1].enabled && hilo); in ev4_reg_setup() 64 reg->mux_select = ctl; in ev4_reg_setup()
|
D | op_model_ev6.c | 24 unsigned long ctl, reset, need_reset, i; in ev6_reg_setup() local 28 ctl = 0; in ev6_reg_setup() 30 ctl |= (ctr[0].event & 1) << 4; in ev6_reg_setup() 32 ctl |= (ctr[1].event - 2) & 15; in ev6_reg_setup() 33 reg->mux_select = ctl; in ev6_reg_setup()
|
D | op_model_ev67.c | 25 unsigned long ctl, reset, need_reset, i; in ev67_reg_setup() local 28 ctl = 1UL << 4; /* Enable ProfileMe mode. */ in ev67_reg_setup() 33 ctl |= (ctr[1].event & 3) << 2; in ev67_reg_setup() 36 ctl |= 1UL << 2; in ev67_reg_setup() 38 reg->mux_select = ctl; in ev67_reg_setup()
|
/linux-4.1.27/drivers/net/wireless/ath/wcn36xx/ |
D | dxe.c | 66 struct wcn36xx_dxe_ctl *ctl = ch->head_blk_ctl, *next; in wcn36xx_dxe_free_ctl_block() local 69 for (i = 0; i < ch->desc_num && ctl; i++) { in wcn36xx_dxe_free_ctl_block() 70 next = ctl->next; in wcn36xx_dxe_free_ctl_block() 71 kfree(ctl); in wcn36xx_dxe_free_ctl_block() 72 ctl = next; in wcn36xx_dxe_free_ctl_block() 273 static int wcn36xx_dxe_fill_skb(struct wcn36xx_dxe_ctl *ctl) in wcn36xx_dxe_fill_skb() argument 275 struct wcn36xx_dxe_desc *dxe = ctl->desc; in wcn36xx_dxe_fill_skb() 286 ctl->skb = skb; in wcn36xx_dxe_fill_skb() 348 struct wcn36xx_dxe_ctl *ctl = ch->tail_blk_ctl; in reap_tx_dxes() local 358 if (ctl->desc->ctrl & WCN36XX_DXE_CTRL_VALID_MASK) in reap_tx_dxes() [all …]
|
/linux-4.1.27/sound/soc/kirkwood/ |
D | kirkwood-i2s.c | 225 static unsigned kirkwood_i2s_play_mute(unsigned ctl) in kirkwood_i2s_play_mute() argument 227 if (!(ctl & KIRKWOOD_PLAYCTL_I2S_EN)) in kirkwood_i2s_play_mute() 228 ctl |= KIRKWOOD_PLAYCTL_I2S_MUTE; in kirkwood_i2s_play_mute() 229 if (!(ctl & KIRKWOOD_PLAYCTL_SPDIF_EN)) in kirkwood_i2s_play_mute() 230 ctl |= KIRKWOOD_PLAYCTL_SPDIF_MUTE; in kirkwood_i2s_play_mute() 231 return ctl; in kirkwood_i2s_play_mute() 239 uint32_t ctl, value; in kirkwood_i2s_play_trigger() local 241 ctl = readl(priv->io + KIRKWOOD_PLAYCTL); in kirkwood_i2s_play_trigger() 242 if ((ctl & KIRKWOOD_PLAYCTL_ENABLE_MASK) == 0) { in kirkwood_i2s_play_trigger() 250 value = ctl; in kirkwood_i2s_play_trigger() [all …]
|
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb/ |
D | mv88e1xxx.c | 49 u32 ctl; in mv88e1xxx_reset() local 55 (void) simple_mdio_read(cphy, MII_BMCR, &ctl); in mv88e1xxx_reset() 56 ctl &= BMCR_RESET; in mv88e1xxx_reset() 57 if (ctl) in mv88e1xxx_reset() 59 } while (ctl && --time_out); in mv88e1xxx_reset() 61 return ctl ? -1 : 0; in mv88e1xxx_reset() 126 u32 ctl; in mv88e1xxx_set_speed_duplex() local 128 (void) simple_mdio_read(phy, MII_BMCR, &ctl); in mv88e1xxx_set_speed_duplex() 130 ctl &= ~(BMCR_SPEED100 | BMCR_SPEED1000 | BMCR_ANENABLE); in mv88e1xxx_set_speed_duplex() 132 ctl |= BMCR_SPEED100; in mv88e1xxx_set_speed_duplex() [all …]
|
/linux-4.1.27/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-4.1.27/drivers/net/wireless/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 …]
|
D | leds.c | 37 u16 ctl; in b43_led_turn_on() local 39 ctl = b43_read16(dev, B43_MMIO_GPIO_CONTROL); in b43_led_turn_on() 41 ctl &= ~(1 << led_index); in b43_led_turn_on() 43 ctl |= (1 << led_index); in b43_led_turn_on() 44 b43_write16(dev, B43_MMIO_GPIO_CONTROL, ctl); in b43_led_turn_on() 50 u16 ctl; in b43_led_turn_off() local 52 ctl = b43_read16(dev, B43_MMIO_GPIO_CONTROL); in b43_led_turn_off() 54 ctl |= (1 << led_index); in b43_led_turn_off() 56 ctl &= ~(1 << led_index); in b43_led_turn_off() 57 b43_write16(dev, B43_MMIO_GPIO_CONTROL, ctl); in b43_led_turn_off()
|
D | dma.c | 105 u32 ctl; in op32_fill_descriptor() local 115 ctl = bufsize & B43_DMA32_DCTL_BYTECNT; in op32_fill_descriptor() 117 ctl |= B43_DMA32_DCTL_DTABLEEND; in op32_fill_descriptor() 119 ctl |= B43_DMA32_DCTL_FRAMESTART; in op32_fill_descriptor() 121 ctl |= B43_DMA32_DCTL_FRAMEEND; in op32_fill_descriptor() 123 ctl |= B43_DMA32_DCTL_IRQ; in op32_fill_descriptor() 124 ctl |= (addrext << B43_DMA32_DCTL_ADDREXT_SHIFT) in op32_fill_descriptor() 127 desc->dma32.control = cpu_to_le32(ctl); in op32_fill_descriptor() 1802 u32 ctl; in direct_fifo_rx() local 1805 ctl = b43_read32(dev, mmio_base + B43_DMA64_RXCTL); in direct_fifo_rx() [all …]
|
D | lo.c | 789 memcpy(&cal->ctl, &loctl, sizeof(loctl)); in b43_calibrate_lo_setting() 863 val = (u8)(cal->ctl.q); in b43_gphy_dc_lt_init() 864 val |= ((u8)(cal->ctl.i)) << 4; in b43_gphy_dc_lt_init() 911 b43_lo_write(dev, &cal->ctl); in b43_lo_g_adjust() 929 b43_lo_write(dev, &cal->ctl); in b43_lo_g_adjust_to() 978 cal->ctl.i, cal->ctl.q); in b43_lo_g_maintanance_work() 990 b43_lo_write(dev, &cal->ctl); in b43_lo_g_maintanance_work()
|
D | main.c | 1619 u16 ctl; in b43_write_beacon_template() local 1648 ctl = b43_shm_read16(dev, B43_SHM_SHARED, B43_SHM_SH_BEACPHYCTL); in b43_write_beacon_template() 1650 ctl &= ~B43_TXH_PHY_SHORTPRMBL; in b43_write_beacon_template() 1651 ctl &= ~B43_TXH_PHY_ANT; in b43_write_beacon_template() 1652 ctl &= ~B43_TXH_PHY_ENC; in b43_write_beacon_template() 1653 ctl |= antenna; in b43_write_beacon_template() 1655 ctl |= B43_TXH_PHY_ENC_CCK; in b43_write_beacon_template() 1657 ctl |= B43_TXH_PHY_ENC_OFDM; in b43_write_beacon_template() 1658 b43_shm_write16(dev, B43_SHM_SHARED, B43_SHM_SH_BEACPHYCTL, ctl); in b43_write_beacon_template() 3109 u32 ctl; in b43_adjust_opmode() local [all …]
|
D | lo.h | 27 struct b43_loctl ctl; member
|
/linux-4.1.27/sound/soc/codecs/ |
D | wm_adsp.c | 368 struct wm_coeff_ctl *ctl = (struct wm_coeff_ctl *)kcontrol->private_value; in wm_coeff_info() local 371 uinfo->count = ctl->len; in wm_coeff_info() 378 struct wm_coeff_ctl *ctl = (struct wm_coeff_ctl *)kcontrol->private_value; in wm_coeff_write_control() local 379 struct wm_adsp_alg_region *region = &ctl->region; in wm_coeff_write_control() 381 struct wm_adsp *adsp = ctl->adsp; in wm_coeff_write_control() 393 reg = ctl->region.base; in wm_coeff_write_control() 396 scratch = kmemdup(buf, ctl->len, GFP_KERNEL | GFP_DMA); in wm_coeff_write_control() 401 ctl->len); in wm_coeff_write_control() 404 ctl->len, reg, ret); in wm_coeff_write_control() 408 adsp_dbg(adsp, "Wrote %zu bytes to %x\n", ctl->len, reg); in wm_coeff_write_control() [all …]
|
/linux-4.1.27/arch/x86/include/asm/ |
D | gart.h | 63 u32 ctl; in gart_set_size_and_enable() local 69 ctl = order << 1; in gart_set_size_and_enable() 71 pci_write_config_dword(dev, AMD64_GARTAPERTURECTL, ctl); in gart_set_size_and_enable() 76 u32 tmp, ctl; in enable_gart_translation() local 85 pci_read_config_dword(dev, AMD64_GARTAPERTURECTL, &ctl); in enable_gart_translation() 86 ctl |= GARTEN | DISTLBWALKPRB; in enable_gart_translation() 87 ctl &= ~(DISGARTCPU | DISGARTIO); in enable_gart_translation() 88 pci_write_config_dword(dev, AMD64_GARTAPERTURECTL, ctl); in enable_gart_translation()
|
/linux-4.1.27/sound/core/ |
D | control.c | 52 struct snd_ctl_file *ctl; in snd_ctl_open() local 73 ctl = kzalloc(sizeof(*ctl), GFP_KERNEL); in snd_ctl_open() 74 if (ctl == NULL) { in snd_ctl_open() 78 INIT_LIST_HEAD(&ctl->events); in snd_ctl_open() 79 init_waitqueue_head(&ctl->change_sleep); in snd_ctl_open() 80 spin_lock_init(&ctl->read_lock); in snd_ctl_open() 81 ctl->card = card; in snd_ctl_open() 83 ctl->preferred_subdevice[i] = -1; in snd_ctl_open() 84 ctl->pid = get_pid(task_pid(current)); in snd_ctl_open() 85 file->private_data = ctl; in snd_ctl_open() [all …]
|
D | control_compat.c | 94 static int snd_ctl_elem_info_compat(struct snd_ctl_file *ctl, in snd_ctl_elem_info_compat() argument 114 snd_power_lock(ctl->card); in snd_ctl_elem_info_compat() 115 err = snd_power_wait(ctl->card, SNDRV_CTL_POWER_D0); in snd_ctl_elem_info_compat() 117 err = snd_ctl_elem_info(ctl, data); in snd_ctl_elem_info_compat() 118 snd_power_unlock(ctl->card); in snd_ctl_elem_info_compat() 452 struct snd_ctl_file *ctl; in snd_ctl_ioctl_compat() local 457 ctl = file->private_data; in snd_ctl_ioctl_compat() 458 if (snd_BUG_ON(!ctl || !ctl->card)) in snd_ctl_ioctl_compat() 475 return snd_ctl_elem_list_compat(ctl->card, argp); in snd_ctl_ioctl_compat() 477 return snd_ctl_elem_info_compat(ctl, argp); in snd_ctl_ioctl_compat() [all …]
|
/linux-4.1.27/drivers/net/ethernet/apm/xgene/ |
D | xgene_enet_sgmac.c | 42 static bool xgene_enet_wr_indirect(struct xgene_indirect_ctl *ctl, in xgene_enet_wr_indirect() argument 47 iowrite32(wr_addr, ctl->addr); in xgene_enet_wr_indirect() 48 iowrite32(wr_data, ctl->ctl); in xgene_enet_wr_indirect() 49 iowrite32(XGENE_ENET_WR_CMD, ctl->cmd); in xgene_enet_wr_indirect() 53 if (ioread32(ctl->cmd_done)) { in xgene_enet_wr_indirect() 54 iowrite32(0, ctl->cmd); in xgene_enet_wr_indirect() 66 struct xgene_indirect_ctl ctl = { in xgene_enet_wr_mac() local 68 .ctl = p->mcx_mac_addr + MAC_WRITE_REG_OFFSET, in xgene_enet_wr_mac() 73 if (!xgene_enet_wr_indirect(&ctl, wr_addr, wr_data)) in xgene_enet_wr_mac() 87 static u32 xgene_enet_rd_indirect(struct xgene_indirect_ctl *ctl, u32 rd_addr) in xgene_enet_rd_indirect() argument [all …]
|
/linux-4.1.27/Documentation/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-4.1.27/arch/x86/kernel/ |
D | vsmp_64.c | 93 unsigned int cap, ctl, cfg; in set_vsmp_pv_ops() local 99 ctl = readl(address + 4); in set_vsmp_pv_ops() 101 cap, ctl); in set_vsmp_pv_ops() 105 if (cap & ctl & BIT(8)) { in set_vsmp_pv_ops() 106 ctl &= ~BIT(8); in set_vsmp_pv_ops() 118 if (cap & ctl & (1 << 4)) { in set_vsmp_pv_ops() 125 ctl &= ~(1 << 4); in set_vsmp_pv_ops() 127 writel(ctl, address + 4); in set_vsmp_pv_ops() 128 ctl = readl(address + 4); in set_vsmp_pv_ops() 129 pr_info("vSMP CTL: control set to:0x%08x\n", ctl); in set_vsmp_pv_ops()
|
D | aperture_64.c | 260 u32 ctl; in early_gart_iommu_check() local 284 ctl = read_pci_config(bus, slot, 3, AMD64_GARTAPERTURECTL); in early_gart_iommu_check() 285 aper_enabled = ctl & GARTEN; in early_gart_iommu_check() 286 aper_order = (ctl >> 1) & 7; in early_gart_iommu_check() 340 ctl = read_pci_config(bus, slot, 3, AMD64_GARTAPERTURECTL); in early_gart_iommu_check() 341 ctl &= ~GARTEN; in early_gart_iommu_check() 342 write_pci_config(bus, slot, 3, AMD64_GARTAPERTURECTL, ctl); in early_gart_iommu_check() 372 u32 ctl; in gart_iommu_hole_init() local 386 ctl = read_pci_config(bus, slot, 3, in gart_iommu_hole_init() 395 ctl &= ~GARTEN; in gart_iommu_hole_init() [all …]
|
/linux-4.1.27/drivers/char/hw_random/ |
D | octeon-rng.c | 30 union cvmx_rnm_ctl_status ctl; in octeon_rng_init() local 33 ctl.u64 = 0; in octeon_rng_init() 34 ctl.s.ent_en = 1; /* Enable the entropy source. */ in octeon_rng_init() 35 ctl.s.rng_en = 1; /* Enable the RNG hardware. */ in octeon_rng_init() 36 cvmx_write_csr((u64)p->control_status, ctl.u64); in octeon_rng_init() 42 union cvmx_rnm_ctl_status ctl; in octeon_rng_cleanup() local 45 ctl.u64 = 0; in octeon_rng_cleanup() 47 cvmx_write_csr((u64)p->control_status, ctl.u64); in octeon_rng_cleanup()
|
D | pasemi-rng.c | 71 u32 ctl; in pasemi_rng_init() local 73 ctl = SDCRNG_CTL_DR | SDCRNG_CTL_SELECT_RRG_RNG | SDCRNG_CTL_KSZ; in pasemi_rng_init() 74 out_le32(rng_regs + SDCRNG_CTL_REG, ctl); in pasemi_rng_init() 75 out_le32(rng_regs + SDCRNG_CTL_REG, ctl & ~SDCRNG_CTL_DR); in pasemi_rng_init() 83 u32 ctl; in pasemi_rng_cleanup() local 85 ctl = SDCRNG_CTL_RE | SDCRNG_CTL_CE; in pasemi_rng_cleanup() 87 in_le32(rng_regs + SDCRNG_CTL_REG) & ~ctl); in pasemi_rng_cleanup()
|
/linux-4.1.27/sound/pci/emu10k1/ |
D | emufx.c | 334 struct snd_emu10k1_fx8010_ctl *ctl = in snd_emu10k1_gpr_ctl_info() local 337 if (ctl->min == 0 && ctl->max == 1) in snd_emu10k1_gpr_ctl_info() 341 uinfo->count = ctl->vcount; in snd_emu10k1_gpr_ctl_info() 342 uinfo->value.integer.min = ctl->min; in snd_emu10k1_gpr_ctl_info() 343 uinfo->value.integer.max = ctl->max; in snd_emu10k1_gpr_ctl_info() 350 struct snd_emu10k1_fx8010_ctl *ctl = in snd_emu10k1_gpr_ctl_get() local 356 for (i = 0; i < ctl->vcount; i++) in snd_emu10k1_gpr_ctl_get() 357 ucontrol->value.integer.value[i] = ctl->value[i]; in snd_emu10k1_gpr_ctl_get() 365 struct snd_emu10k1_fx8010_ctl *ctl = in snd_emu10k1_gpr_ctl_put() local 373 for (i = 0; i < ctl->vcount; i++) { in snd_emu10k1_gpr_ctl_put() [all …]
|
/linux-4.1.27/arch/mips/ath25/ |
D | ar5312.c | 186 u32 ctl; in ar5312_flash_init() local 191 ctl = __raw_readl(flashctl_base + AR5312_FLASHCTL0); in ar5312_flash_init() 192 ctl &= AR5312_FLASHCTL_MW; in ar5312_flash_init() 195 switch (ctl) { in ar5312_flash_init() 209 ctl |= AR5312_FLASHCTL_E | AR5312_FLASHCTL_AC_8M | AR5312_FLASHCTL_RBLE; in ar5312_flash_init() 210 ctl |= 0x01 << AR5312_FLASHCTL_IDCY_S; in ar5312_flash_init() 211 ctl |= 0x07 << AR5312_FLASHCTL_WST1_S; in ar5312_flash_init() 212 ctl |= 0x07 << AR5312_FLASHCTL_WST2_S; in ar5312_flash_init() 213 __raw_writel(ctl, flashctl_base + AR5312_FLASHCTL0); in ar5312_flash_init() 216 ctl = __raw_readl(flashctl_base + AR5312_FLASHCTL1); in ar5312_flash_init() [all …]
|
/linux-4.1.27/drivers/ide/ |
D | ide-legacy.c | 9 unsigned long base, ctl; in ide_legacy_init_one() local 14 ctl = 0x3f6; in ide_legacy_init_one() 18 ctl = 0x376; in ide_legacy_init_one() 28 if (!request_region(ctl, 1, d->name)) { in ide_legacy_init_one() 30 d->name, ctl); in ide_legacy_init_one() 35 ide_std_init_ports(hw, base, ctl); in ide_legacy_init_one()
|
D | ide-pnp.c | 39 unsigned long base, ctl; in idepnp_probe() local 49 ctl = pnp_port_start(dev, 1); in idepnp_probe() 57 if (!request_region(ctl, 1, DRV_NAME)) { in idepnp_probe() 59 DRV_NAME, ctl); in idepnp_probe() 65 ide_std_init_ports(&hw, base, ctl); in idepnp_probe() 76 release_region(ctl, 1); in idepnp_probe()
|
D | tx4939ide.c | 152 u16 ctl = tx4939ide_readw(base, TX4939IDE_Int_Ctl); in tx4939ide_check_error_ints() local 154 if (ctl & TX4939IDE_INT_BUSERR) { in tx4939ide_check_error_ints() 164 if (ctl & (TX4939IDE_INT_ADDRERR | in tx4939ide_check_error_ints() 167 hwif->name, ctl, in tx4939ide_check_error_ints() 168 ctl & TX4939IDE_INT_ADDRERR ? " Address-Error" : "", in tx4939ide_check_error_ints() 169 ctl & TX4939IDE_INT_DEVTIMING ? " DEV-Timing" : "", in tx4939ide_check_error_ints() 170 ctl & TX4939IDE_INT_BUSERR ? " Bus-Error" : ""); in tx4939ide_check_error_ints() 171 return ctl; in tx4939ide_check_error_ints() 178 u16 ctl; in tx4939ide_clear_irq() local 188 ctl = tx4939ide_check_error_ints(hwif); in tx4939ide_clear_irq() [all …]
|
D | ide-4drives.c | 33 unsigned long base = 0x1f0, ctl = 0x3f6; in ide_4drives_init() local 45 if (!request_region(ctl, 1, DRV_NAME)) { in ide_4drives_init() 47 DRV_NAME, ctl); in ide_4drives_init() 54 ide_std_init_ports(&hw, base, ctl); in ide_4drives_init()
|
D | buddha.c | 122 unsigned long ctl, unsigned long irq_port) in buddha_setup_ports() argument 133 hw->io_ports.ctl_addr = ctl; in buddha_setup_ports() 212 unsigned long base, ctl, irq_port; in buddha_init() local 216 ctl = base + BUDDHA_CONTROL; in buddha_init() 221 ctl = 0; in buddha_init() 225 buddha_setup_ports(&hw[i], base, ctl, irq_port); in buddha_init()
|
D | ide-cs.c | 115 static struct ide_host *idecs_register(unsigned long io, unsigned long ctl, in idecs_register() argument 129 if (!request_region(ctl, 1, DRV_NAME)) { in idecs_register() 131 DRV_NAME, ctl); in idecs_register() 137 ide_std_init_ports(&hw, io, ctl); in idecs_register() 161 release_region(ctl, 1); in idecs_register()
|
D | tx4938ide.c | 162 unsigned long ctl = mapctl; in tx4938ide_probe() local 167 ctl++; in tx4938ide_probe() 172 hw.io_ports.ctl_addr = ctl; in tx4938ide_probe()
|
D | setup-pci.c | 321 unsigned long ctl = 0, base = 0; in ide_hw_configure() local 332 ctl = pci_resource_start(dev, 2*port+1); in ide_hw_configure() 336 ctl = port ? 0x374 : 0x3f4; in ide_hw_configure() 340 if (!base || !ctl) { in ide_hw_configure() 348 ide_std_init_ports(hw, base, ctl | 2); in ide_hw_configure()
|
D | gayle.c | 80 unsigned long ctl, unsigned long irq_port) in gayle_setup_ports() argument 91 hw->io_ports.ctl_addr = ctl; in gayle_setup_ports()
|
D | ide-io-std.c | 68 void ide_write_devctl(ide_hwif_t *hwif, u8 ctl) in ide_write_devctl() argument 71 writeb(ctl, (void __iomem *)hwif->io_ports.ctl_addr); in ide_write_devctl() 73 outb(ctl, hwif->io_ports.ctl_addr); in ide_write_devctl()
|
/linux-4.1.27/drivers/net/ethernet/ibm/emac/ |
D | phy.c | 111 int ctl, adv; in genmii_setup_aneg() local 119 ctl = phy_read(phy, MII_BMCR); in genmii_setup_aneg() 120 if (ctl < 0) in genmii_setup_aneg() 121 return ctl; in genmii_setup_aneg() 122 ctl &= ~(BMCR_FULLDPLX | BMCR_SPEED100 | BMCR_SPEED1000 | BMCR_ANENABLE); in genmii_setup_aneg() 125 phy_write(phy, MII_BMCR, ctl); in genmii_setup_aneg() 161 ctl = phy_read(phy, MII_BMCR); in genmii_setup_aneg() 162 ctl |= (BMCR_ANENABLE | BMCR_ANRESTART); in genmii_setup_aneg() 163 phy_write(phy, MII_BMCR, ctl); in genmii_setup_aneg() 170 int ctl; in genmii_setup_forced() local [all …]
|
/linux-4.1.27/drivers/net/phy/ |
D | et1011c.c | 54 int ctl = 0; in et1011c_config_aneg() local 55 ctl = phy_read(phydev, MII_BMCR); in et1011c_config_aneg() 56 if (ctl < 0) in et1011c_config_aneg() 57 return ctl; in et1011c_config_aneg() 58 ctl &= ~(BMCR_FULLDPLX | BMCR_SPEED100 | BMCR_SPEED1000 | in et1011c_config_aneg() 61 phy_write(phydev, MII_BMCR, ctl | BMCR_RESET); in et1011c_config_aneg()
|
D | phy_device.c | 821 int ctl = 0; in genphy_setup_forced() local 827 ctl |= BMCR_SPEED1000; in genphy_setup_forced() 829 ctl |= BMCR_SPEED100; in genphy_setup_forced() 832 ctl |= BMCR_FULLDPLX; in genphy_setup_forced() 834 return phy_write(phydev, MII_BMCR, ctl); in genphy_setup_forced() 844 int ctl = phy_read(phydev, MII_BMCR); in genphy_restart_aneg() local 846 if (ctl < 0) in genphy_restart_aneg() 847 return ctl; in genphy_restart_aneg() 849 ctl |= BMCR_ANENABLE | BMCR_ANRESTART; in genphy_restart_aneg() 852 ctl &= ~BMCR_ISOLATE; in genphy_restart_aneg() [all …]
|
/linux-4.1.27/drivers/net/ |
D | sungem_phy.c | 315 u16 ctl, adv; in genmii_setup_aneg() local 337 ctl = sungem_phy_read(phy, MII_BMCR); in genmii_setup_aneg() 338 ctl |= (BMCR_ANENABLE | BMCR_ANRESTART); in genmii_setup_aneg() 339 sungem_phy_write(phy, MII_BMCR, ctl); in genmii_setup_aneg() 346 u16 ctl; in genmii_setup_forced() local 353 ctl = sungem_phy_read(phy, MII_BMCR); in genmii_setup_forced() 354 ctl &= ~(BMCR_FULLDPLX|BMCR_SPEED100|BMCR_ANENABLE); in genmii_setup_forced() 357 sungem_phy_write(phy, MII_BMCR, ctl | BMCR_RESET); in genmii_setup_forced() 364 ctl |= BMCR_SPEED100; in genmii_setup_forced() 371 ctl |= BMCR_FULLDPLX; in genmii_setup_forced() [all …]
|
/linux-4.1.27/drivers/video/fbdev/ |
D | n411.c | 46 static unsigned char ctl; variable 54 ctl &= ~(HCB_CD_BIT); in n411_set_ctl() 56 ctl |= HCB_CD_BIT; in n411_set_ctl() 60 ctl &= ~(HCB_DS_BIT); in n411_set_ctl() 62 ctl |= HCB_DS_BIT; in n411_set_ctl() 65 outb(ctl, cio_addr); in n411_set_ctl() 107 ctl = HCB_WUP_BIT | HCB_RW_BIT | HCB_CD_BIT ; in n411_init_control()
|
D | bfin-lq035q1-fb.c | 143 struct spi_control *ctl; in lq035q1_spidev_probe() local 148 ctl = kzalloc(sizeof(*ctl), GFP_KERNEL); in lq035q1_spidev_probe() 150 if (!ctl) in lq035q1_spidev_probe() 153 ctl->mode = (info->disp_info->mode & in lq035q1_spidev_probe() 157 ret |= lq035q1_control(spi, LQ035_DRIVER_OUTPUT_CTL, ctl->mode); in lq035q1_spidev_probe() 159 kfree(ctl); in lq035q1_spidev_probe() 163 spi_set_drvdata(spi, ctl); in lq035q1_spidev_probe() 184 struct spi_control *ctl = spi_get_drvdata(spi); in lq035q1_spidev_resume() local 187 ret = lq035q1_control(spi, LQ035_DRIVER_OUTPUT_CTL, ctl->mode); in lq035q1_spidev_resume()
|
/linux-4.1.27/drivers/net/ethernet/micrel/ |
D | ks8842.c | 434 struct ks8842_tx_dma_ctl *ctl = &adapter->dma_tx; in ks8842_tx_frame_dma() local 435 u8 *buf = ctl->buf; in ks8842_tx_frame_dma() 437 if (ctl->adesc) { in ks8842_tx_frame_dma() 443 sg_dma_len(&ctl->sg) = skb->len + sizeof(u32); in ks8842_tx_frame_dma() 454 sg_dma_address(&ctl->sg), 0, sg_dma_len(&ctl->sg), in ks8842_tx_frame_dma() 458 if (sg_dma_len(&ctl->sg) % 4) in ks8842_tx_frame_dma() 459 sg_dma_len(&ctl->sg) += 4 - sg_dma_len(&ctl->sg) % 4; in ks8842_tx_frame_dma() 461 ctl->adesc = dmaengine_prep_slave_sg(ctl->chan, in ks8842_tx_frame_dma() 462 &ctl->sg, 1, DMA_MEM_TO_DEV, DMA_PREP_INTERRUPT); in ks8842_tx_frame_dma() 463 if (!ctl->adesc) in ks8842_tx_frame_dma() [all …]
|
/linux-4.1.27/sound/aoa/fabrics/ |
D | layout.c | 892 struct snd_kcontrol *ctl; in layout_attached_codec() local 906 ctl = snd_ctl_new1(&master_ctl, codec->gpio); in layout_attached_codec() 907 ldev->master_ctrl = ctl; in layout_attached_codec() 908 aoa_snd_ctl_add(ctl); in layout_attached_codec() 914 ctl = snd_ctl_new1(&speakers_ctl, codec->gpio); in layout_attached_codec() 915 ldev->speaker_ctrl = ctl; in layout_attached_codec() 916 aoa_snd_ctl_add(ctl); in layout_attached_codec() 921 ctl = snd_ctl_new1(&headphone_ctl, codec->gpio); in layout_attached_codec() 922 ldev->headphone_ctrl = ctl; in layout_attached_codec() 923 aoa_snd_ctl_add(ctl); in layout_attached_codec() [all …]
|
/linux-4.1.27/drivers/mmc/host/ |
D | tmio_mmc.h | 52 void __iomem *ctl; member 171 return readw(host->ctl + (addr << host->bus_shift)); in sd_ctrl_read16() 177 readsw(host->ctl + (addr << host->bus_shift), buf, count); in sd_ctrl_read16_rep() 182 return readw(host->ctl + (addr << host->bus_shift)) | in sd_ctrl_read32() 183 readw(host->ctl + ((addr + 2) << host->bus_shift)) << 16; in sd_ctrl_read32() 193 writew(val, host->ctl + (addr << host->bus_shift)); in sd_ctrl_write16() 199 writesw(host->ctl + (addr << host->bus_shift), buf, count); in sd_ctrl_write16_rep() 204 writew(val, host->ctl + (addr << host->bus_shift)); in sd_ctrl_write32() 205 writew(val >> 16, host->ctl + ((addr + 2) << host->bus_shift)); in sd_ctrl_write32()
|
/linux-4.1.27/arch/alpha/kernel/ |
D | sys_marvel.c | 73 volatile unsigned long *ctl; in io7_get_irq_ctl() local 96 ctl = &io7->csrs->PO7_LSI_CTL[irq & 0xff].csr; /* assume LSI */ in io7_get_irq_ctl() 98 ctl = &io7->csrs->PO7_MSI_CTL[((irq - 0x80) >> 5) & 0x0f].csr; in io7_get_irq_ctl() 101 return ctl; in io7_get_irq_ctl() 107 volatile unsigned long *ctl; in io7_enable_irq() local 111 ctl = io7_get_irq_ctl(irq, &io7); in io7_enable_irq() 112 if (!ctl || !io7) { in io7_enable_irq() 119 *ctl |= 1UL << 24; in io7_enable_irq() 121 *ctl; in io7_enable_irq() 128 volatile unsigned long *ctl; in io7_disable_irq() local [all …]
|
/linux-4.1.27/drivers/net/wireless/b43legacy/ |
D | leds.c | 39 u16 ctl; in b43legacy_led_turn_on() local 42 ctl = b43legacy_read16(dev, B43legacy_MMIO_GPIO_CONTROL); in b43legacy_led_turn_on() 44 ctl &= ~(1 << led_index); in b43legacy_led_turn_on() 46 ctl |= (1 << led_index); in b43legacy_led_turn_on() 47 b43legacy_write16(dev, B43legacy_MMIO_GPIO_CONTROL, ctl); in b43legacy_led_turn_on() 56 u16 ctl; in b43legacy_led_turn_off() local 59 ctl = b43legacy_read16(dev, B43legacy_MMIO_GPIO_CONTROL); in b43legacy_led_turn_off() 61 ctl |= (1 << led_index); in b43legacy_led_turn_off() 63 ctl &= ~(1 << led_index); in b43legacy_led_turn_off() 64 b43legacy_write16(dev, B43legacy_MMIO_GPIO_CONTROL, ctl); in b43legacy_led_turn_off()
|
D | main.c | 976 u16 ctl; in b43legacy_write_beacon_template() local 991 ctl = b43legacy_shm_read16(dev, B43legacy_SHM_SHARED, in b43legacy_write_beacon_template() 994 ctl &= ~B43legacy_TX4_PHY_SHORTPRMBL; in b43legacy_write_beacon_template() 995 ctl &= ~B43legacy_TX4_PHY_ANT; in b43legacy_write_beacon_template() 996 ctl &= ~B43legacy_TX4_PHY_ENC; in b43legacy_write_beacon_template() 997 ctl |= antenna; in b43legacy_write_beacon_template() 998 ctl |= B43legacy_TX4_PHY_ENC_CCK; in b43legacy_write_beacon_template() 1000 B43legacy_SHM_SH_BEACPHYCTL, ctl); in b43legacy_write_beacon_template() 2034 u32 ctl; in b43legacy_adjust_opmode() local 2037 ctl = b43legacy_read32(dev, B43legacy_MMIO_MACCTL); in b43legacy_adjust_opmode() [all …]
|
D | dma.c | 65 u32 ctl; in op32_fill_descriptor() local 76 ctl = (bufsize - ring->frameoffset) in op32_fill_descriptor() 79 ctl |= B43legacy_DMA32_DCTL_DTABLEEND; in op32_fill_descriptor() 81 ctl |= B43legacy_DMA32_DCTL_FRAMESTART; in op32_fill_descriptor() 83 ctl |= B43legacy_DMA32_DCTL_FRAMEEND; in op32_fill_descriptor() 85 ctl |= B43legacy_DMA32_DCTL_IRQ; in op32_fill_descriptor() 86 ctl |= (addrext << B43legacy_DMA32_DCTL_ADDREXT_SHIFT) in op32_fill_descriptor() 89 desc->control = cpu_to_le32(ctl); in op32_fill_descriptor()
|
/linux-4.1.27/drivers/media/pci/ttpci/ |
D | budget.c | 643 struct stv6110x_devctl *ctl; in frontend_init() local 656 ctl = dvb_attach(stv6110x_attach, in frontend_init() 661 if (ctl) { in frontend_init() 662 tt1600_stv090x_config.tuner_init = ctl->tuner_init; in frontend_init() 663 tt1600_stv090x_config.tuner_sleep = ctl->tuner_sleep; in frontend_init() 664 tt1600_stv090x_config.tuner_set_mode = ctl->tuner_set_mode; in frontend_init() 665 tt1600_stv090x_config.tuner_set_frequency = ctl->tuner_set_frequency; in frontend_init() 666 tt1600_stv090x_config.tuner_get_frequency = ctl->tuner_get_frequency; in frontend_init() 667 tt1600_stv090x_config.tuner_set_bandwidth = ctl->tuner_set_bandwidth; in frontend_init() 668 tt1600_stv090x_config.tuner_get_bandwidth = ctl->tuner_get_bandwidth; in frontend_init() [all …]
|
/linux-4.1.27/drivers/net/wan/lmc/ |
D | lmc_media.c | 193 lmc_hssi_set_status (lmc_softc_t * const sc, lmc_ctl_t * ctl) in lmc_hssi_set_status() argument 195 if (ctl == NULL) in lmc_hssi_set_status() 206 if (ctl->clock_source && !sc->ictl.clock_source) in lmc_hssi_set_status() 211 else if (!ctl->clock_source && sc->ictl.clock_source) in lmc_hssi_set_status() 217 lmc_set_protocol (sc, ctl); in lmc_hssi_set_status() 338 lmc_ds3_set_status (lmc_softc_t * const sc, lmc_ctl_t * ctl) in lmc_ds3_set_status() argument 340 if (ctl == NULL) in lmc_ds3_set_status() 352 if (ctl->cable_length && !sc->ictl.cable_length) in lmc_ds3_set_status() 354 else if (!ctl->cable_length && sc->ictl.cable_length) in lmc_ds3_set_status() 360 if (ctl->scrambler_onoff && !sc->ictl.scrambler_onoff) in lmc_ds3_set_status() [all …]
|
/linux-4.1.27/net/sctp/ |
D | sysctl.c | 61 static int proc_sctp_do_hmac_alg(struct ctl_table *ctl, int write, 64 static int proc_sctp_do_rto_min(struct ctl_table *ctl, int write, 67 static int proc_sctp_do_rto_max(struct ctl_table *ctl, int write, 70 static int proc_sctp_do_alpha_beta(struct ctl_table *ctl, int write, 73 static int proc_sctp_do_auth(struct ctl_table *ctl, int write, 315 static int proc_sctp_do_hmac_alg(struct ctl_table *ctl, int write, in proc_sctp_do_hmac_alg() argument 361 static int proc_sctp_do_rto_min(struct ctl_table *ctl, int write, in proc_sctp_do_rto_min() argument 366 unsigned int min = *(unsigned int *) ctl->extra1; in proc_sctp_do_rto_min() 367 unsigned int max = *(unsigned int *) ctl->extra2; in proc_sctp_do_rto_min() 390 static int proc_sctp_do_rto_max(struct ctl_table *ctl, int write, in proc_sctp_do_rto_max() argument [all …]
|
/linux-4.1.27/arch/c6x/platforms/ |
D | dscr.c | 96 struct devstate_ctl_reg *ctl; member 192 struct devstate_ctl_reg *ctl; in dscr_set_devstate() local 206 ctl = info->ctl; in dscr_set_devstate() 209 if (ctl == NULL) in dscr_set_devstate() 212 ctl_shift = ctl->shift + ctl->nbits * (id - ctl->start_id); in dscr_set_devstate() 213 ctl_mask = ((1 << ctl->nbits) - 1) << ctl_shift; in dscr_set_devstate() 217 ctl_val = ctl->enable << ctl_shift; in dscr_set_devstate() 220 if (ctl->enable_only) in dscr_set_devstate() 222 ctl_val = ctl->disable << ctl_shift; in dscr_set_devstate() 230 val = soc_readl(dscr.base + ctl->reg); in dscr_set_devstate() [all …]
|
/linux-4.1.27/drivers/i2c/busses/ |
D | i2c-pnx.c | 285 u32 ctl = 0; in i2c_pnx_master_rcv() local 311 ctl = ioread32(I2C_REG_CTL(alg_data)); in i2c_pnx_master_rcv() 312 ctl |= mcntrl_rffie | mcntrl_daie; in i2c_pnx_master_rcv() 313 ctl &= ~mcntrl_drmie; in i2c_pnx_master_rcv() 314 iowrite32(ctl, I2C_REG_CTL(alg_data)); in i2c_pnx_master_rcv() 344 ctl = ioread32(I2C_REG_CTL(alg_data)); in i2c_pnx_master_rcv() 345 ctl &= ~(mcntrl_afie | mcntrl_naie | mcntrl_rffie | in i2c_pnx_master_rcv() 347 iowrite32(ctl, I2C_REG_CTL(alg_data)); in i2c_pnx_master_rcv() 364 u32 stat, ctl; in i2c_pnx_interrupt() local 380 ctl = ioread32(I2C_REG_CTL(alg_data)); in i2c_pnx_interrupt() [all …]
|
D | i2c-elektor.c | 65 static void pcf_isa_setbyte(void *data, int ctl, int val) in pcf_isa_setbyte() argument 67 u8 __iomem *address = ctl ? (base_iomem + 1) : base_iomem; in pcf_isa_setbyte() 70 if (ctl && irq && (val & I2C_PCF_ESO)) { in pcf_isa_setbyte() 82 static int pcf_isa_getbyte(void *data, int ctl) in pcf_isa_getbyte() argument 84 u8 __iomem *address = ctl ? (base_iomem + 1) : base_iomem; in pcf_isa_getbyte()
|
/linux-4.1.27/drivers/usb/gadget/udc/ |
D | amd5536udc.c | 182 DBG(dev, "dev control = %08x\n", readl(&dev->regs->ctl)); in print_regs() 300 if (readl(&ep->regs->ctl) & AMD_BIT(UDC_EPCTL_NAK)) { in UDC_QUEUE_CNAK() 340 tmp = readl(&dev->ep[ep->num].regs->ctl); in udc_ep_enable() 342 writel(tmp, &dev->ep[ep->num].regs->ctl); in udc_ep_enable() 371 tmp = readl(&ep->regs->ctl); in udc_ep_enable() 373 writel(tmp, &ep->regs->ctl); in udc_ep_enable() 425 tmp = readl(&ep->regs->ctl); in udc_ep_enable() 427 writel(tmp, &ep->regs->ctl); in udc_ep_enable() 450 tmp = readl(&ep->regs->ctl); in ep_init() 452 writel(tmp, &ep->regs->ctl); in ep_init() [all …]
|
/linux-4.1.27/arch/frv/kernel/ |
D | pm.c | 153 static int sysctl_pm_do_suspend(struct ctl_table *ctl, int write, in sysctl_pm_do_suspend() argument 200 static int cmode_procctl(struct ctl_table *ctl, int write, in cmode_procctl() argument 206 return proc_dointvec(ctl, write, buffer, lenp, fpos); in cmode_procctl() 272 static int p0_procctl(struct ctl_table *ctl, int write, in p0_procctl() argument 278 return proc_dointvec(ctl, write, buffer, lenp, fpos); in p0_procctl() 285 static int cm_procctl(struct ctl_table *ctl, int write, in cm_procctl() argument 291 return proc_dointvec(ctl, write, buffer, lenp, fpos); in cm_procctl()
|
/linux-4.1.27/net/unix/ |
D | sysctl_net_unix.c | 42 net->unx.ctl = register_net_sysctl(net, "net/unix", table); in unix_sysctl_register() 43 if (net->unx.ctl == NULL) in unix_sysctl_register() 58 table = net->unx.ctl->ctl_table_arg; in unix_sysctl_unregister() 59 unregister_net_sysctl_table(net->unx.ctl); in unix_sysctl_unregister()
|
/linux-4.1.27/drivers/rtc/ |
D | rtc-tx4939.c | 34 __raw_writel(cmd, &rtcreg->ctl); in tx4939_rtc_cmd() 36 while (__raw_readl(&rtcreg->ctl) & TX4939_RTCCTL_BUSY) { in tx4939_rtc_cmd() 64 (__raw_readl(&rtcreg->ctl) & TX4939_RTCCTL_ALME)); in tx4939_rtc_set_mmss() 80 (__raw_readl(&rtcreg->ctl) & TX4939_RTCCTL_ALME)); in tx4939_rtc_read_time() 133 u32 ctl; in tx4939_rtc_read_alarm() local 138 (__raw_readl(&rtcreg->ctl) & TX4939_RTCCTL_ALME)); in tx4939_rtc_read_alarm() 146 ctl = __raw_readl(&rtcreg->ctl); in tx4939_rtc_read_alarm() 147 alrm->enabled = (ctl & TX4939_RTCCTL_ALME) ? 1 : 0; in tx4939_rtc_read_alarm() 148 alrm->pending = (ctl & TX4939_RTCCTL_ALMD) ? 1 : 0; in tx4939_rtc_read_alarm() 174 if (__raw_readl(&rtcreg->ctl) & TX4939_RTCCTL_ALMD) { in tx4939_rtc_interrupt()
|
/linux-4.1.27/drivers/isdn/mISDN/ |
D | clock.c | 78 lastclock->ctl(lastclock->priv, 0); in select_iclock() 85 bestclock->ctl(bestclock->priv, 1); in select_iclock() 95 *mISDN_register_clock(char *name, int pri, clockctl_func_t *ctl, void *priv) in mISDN_register_clock() argument 110 iclock->ctl = ctl; in mISDN_register_clock() 133 iclock->ctl(iclock->priv, 0); in mISDN_unregister_clock() 155 iclock->ctl(iclock->priv, 0); in mISDN_clock_update()
|
/linux-4.1.27/drivers/media/pci/saa7164/ |
D | saa7164-vbi.c | 372 struct v4l2_control *ctl) in vidioc_g_ctrl() argument 379 ctl->id, ctl->value); in vidioc_g_ctrl() 381 switch (ctl->id) { in vidioc_g_ctrl() 383 ctl->value = port->ctl_brightness; in vidioc_g_ctrl() 386 ctl->value = port->ctl_contrast; in vidioc_g_ctrl() 389 ctl->value = port->ctl_saturation; in vidioc_g_ctrl() 392 ctl->value = port->ctl_hue; in vidioc_g_ctrl() 395 ctl->value = port->ctl_sharpness; in vidioc_g_ctrl() 398 ctl->value = port->ctl_volume; in vidioc_g_ctrl() 408 struct v4l2_control *ctl) in vidioc_s_ctrl() argument [all …]
|
D | saa7164-encoder.c | 400 struct v4l2_control *ctl) in vidioc_g_ctrl() argument 407 ctl->id, ctl->value); in vidioc_g_ctrl() 409 switch (ctl->id) { in vidioc_g_ctrl() 411 ctl->value = port->ctl_brightness; in vidioc_g_ctrl() 414 ctl->value = port->ctl_contrast; in vidioc_g_ctrl() 417 ctl->value = port->ctl_saturation; in vidioc_g_ctrl() 420 ctl->value = port->ctl_hue; in vidioc_g_ctrl() 423 ctl->value = port->ctl_sharpness; in vidioc_g_ctrl() 426 ctl->value = port->ctl_volume; in vidioc_g_ctrl() 436 struct v4l2_control *ctl) in vidioc_s_ctrl() argument [all …]
|
D | saa7164-api.c | 368 int saa7164_api_set_usercontrol(struct saa7164_port *port, u8 ctl) in saa7164_api_set_usercontrol() argument 374 if (ctl == PU_BRIGHTNESS_CONTROL) in saa7164_api_set_usercontrol() 377 if (ctl == PU_CONTRAST_CONTROL) in saa7164_api_set_usercontrol() 380 if (ctl == PU_HUE_CONTROL) in saa7164_api_set_usercontrol() 383 if (ctl == PU_SATURATION_CONTROL) in saa7164_api_set_usercontrol() 386 if (ctl == PU_SHARPNESS_CONTROL) in saa7164_api_set_usercontrol() 392 __func__, port->encunit.vsourceid, ctl, val); in saa7164_api_set_usercontrol() 395 ctl, sizeof(u16), &val); in saa7164_api_set_usercontrol() 402 int saa7164_api_get_usercontrol(struct saa7164_port *port, u8 ctl) in saa7164_api_get_usercontrol() argument 409 ctl, sizeof(u16), &val); in saa7164_api_get_usercontrol() [all …]
|
/linux-4.1.27/net/sched/ |
D | sch_red.c | 183 struct tc_red_qopt *ctl; in red_change() local 201 ctl = nla_data(tb[TCA_RED_PARMS]); in red_change() 203 if (ctl->limit > 0) { in red_change() 204 child = fifo_create_dflt(sch, &bfifo_qdisc_ops, ctl->limit); in red_change() 210 q->flags = ctl->flags; in red_change() 211 q->limit = ctl->limit; in red_change() 219 ctl->qth_min, ctl->qth_max, ctl->Wlog, in red_change() 220 ctl->Plog, ctl->Scell_log, in red_change() 226 if (ctl->flags & TC_RED_ADAPTATIVE) in red_change()
|
D | sch_gred.c | 384 struct tc_gred_qopt *ctl, int prio, in gred_change_vq() argument 400 q->limit = ctl->limit; in gred_change_vq() 406 ctl->qth_min, ctl->qth_max, ctl->Wlog, ctl->Plog, in gred_change_vq() 407 ctl->Scell_log, stab, max_P); in gred_change_vq() 422 struct tc_gred_qopt *ctl; in gred_change() local 446 ctl = nla_data(tb[TCA_GRED_PARMS]); in gred_change() 449 if (ctl->DP >= table->DPs) in gred_change() 453 if (ctl->prio == 0) { in gred_change() 460 "setting default to %d\n", ctl->DP, def_prio); in gred_change() 464 prio = ctl->prio; in gred_change() [all …]
|
D | sch_choke.c | 413 const struct tc_red_qopt *ctl; in choke_change() local 432 ctl = nla_data(tb[TCA_CHOKE_PARMS]); in choke_change() 434 if (ctl->limit > CHOKE_MAX_QUEUE) in choke_change() 437 mask = roundup_pow_of_two(ctl->limit + 1) - 1; in choke_change() 477 q->flags = ctl->flags; in choke_change() 478 q->limit = ctl->limit; in choke_change() 480 red_set_parms(&q->parms, ctl->qth_min, ctl->qth_max, ctl->Wlog, in choke_change() 481 ctl->Plog, ctl->Scell_log, in choke_change()
|
D | sch_sfb.c | 496 const struct tc_sfb_qopt *ctl = &sfb_default_ops; in sfb_change() local 508 ctl = nla_data(tb[TCA_SFB_PARMS]); in sfb_change() 511 limit = ctl->limit; in sfb_change() 525 q->rehash_interval = msecs_to_jiffies(ctl->rehash_interval); in sfb_change() 526 q->warmup_time = msecs_to_jiffies(ctl->warmup_time); in sfb_change() 529 q->increment = ctl->increment; in sfb_change() 530 q->decrement = ctl->decrement; in sfb_change() 531 q->max = ctl->max; in sfb_change() 532 q->bin_size = ctl->bin_size; in sfb_change() 533 q->penalty_rate = ctl->penalty_rate; in sfb_change() [all …]
|
D | sch_sfq.c | 642 struct tc_sfq_qopt *ctl = nla_data(opt); in sfq_change() local 647 if (opt->nla_len < nla_attr_size(sizeof(*ctl))) in sfq_change() 651 if (ctl->divisor && in sfq_change() 652 (!is_power_of_2(ctl->divisor) || ctl->divisor > 65536)) in sfq_change() 660 if (ctl->quantum) { in sfq_change() 661 q->quantum = ctl->quantum; in sfq_change() 664 q->perturb_period = ctl->perturb_period * HZ; in sfq_change() 665 if (ctl->flows) in sfq_change() 666 q->maxflows = min_t(u32, ctl->flows, SFQ_MAX_FLOWS); in sfq_change() 667 if (ctl->divisor) { in sfq_change() [all …]
|
D | sch_plug.c | 140 struct tc_plug_qopt *ctl = nla_data(opt); in plug_init() local 142 if (nla_len(opt) < sizeof(*ctl)) in plug_init() 145 q->limit = ctl->limit; in plug_init()
|
D | sch_fifo.c | 64 struct tc_fifo_qopt *ctl = nla_data(opt); in fifo_init() local 66 if (nla_len(opt) < sizeof(*ctl)) in fifo_init() 69 sch->limit = ctl->limit; in fifo_init()
|
/linux-4.1.27/drivers/isdn/pcbit/ |
D | drv.c | 46 static int pcbit_ioctl(isdn_ctrl *ctl); 59 static int pcbit_command(isdn_ctrl *ctl); 236 static int pcbit_command(isdn_ctrl *ctl) in pcbit_command() argument 242 dev = finddev(ctl->driver); in pcbit_command() 250 chan = (ctl->arg & 0x0F) ? dev->b2 : dev->b1; in pcbit_command() 253 switch (ctl->command) { in pcbit_command() 255 return pcbit_ioctl(ctl); in pcbit_command() 259 info.data.setup.CalledPN = (char *) &ctl->parm.setup.phone; in pcbit_command() 272 chan->proto = (ctl->arg >> 8); in pcbit_command() 278 pcbit_set_msn(dev, ctl->parm.num); in pcbit_command() [all …]
|
/linux-4.1.27/arch/x86/oprofile/ |
D | op_model_amd.c | 136 u64 val, ctl; in op_amd_handle_ibs() local 143 rdmsrl(MSR_AMD64_IBSFETCHCTL, ctl); in op_amd_handle_ibs() 144 if (ctl & IBS_FETCH_VAL) { in op_amd_handle_ibs() 149 oprofile_add_data64(&entry, ctl); in op_amd_handle_ibs() 155 ctl &= ~(IBS_FETCH_VAL | IBS_FETCH_CNT); in op_amd_handle_ibs() 156 ctl |= IBS_FETCH_ENABLE; in op_amd_handle_ibs() 157 wrmsrl(MSR_AMD64_IBSFETCHCTL, ctl); in op_amd_handle_ibs() 162 rdmsrl(MSR_AMD64_IBSOPCTL, ctl); in op_amd_handle_ibs() 163 if (ctl & IBS_OP_VAL) { in op_amd_handle_ibs() 185 ctl = op_amd_randomize_ibs_op(ibs_state.ibs_op_ctl); in op_amd_handle_ibs() [all …]
|
/linux-4.1.27/tools/virtio/virtio-trace/ |
D | README | 31 trace-agent-ctl.c: includes controller function for read/write threads 46 # mkfifo /tmp/virtio-trace/agent-ctl-path.{in,out} 51 agent-ctl-path.{in,out}. 59 -chardev pipe,id=charchannel0,path=/tmp/virtio-trace/agent-ctl-path\ 61 id=channel0,name=agent-ctl-path\ 72 <source path='/tmp/virtio-trace/agent-ctl-path'/> 73 <target type='virtio' name='agent-ctl-path'/> 82 Here, chardev names are restricted to trace-path-cpuX and agent-ctl-path. For 84 trace-path-cpu1, trace-path-cpu2, and agent-ctl-path. 114 # echo 1 > /tmp/virtio-trace/agent-ctl-path.in [all …]
|
D | Makefile | 9 trace-agent: trace-agent.o trace-agent-ctl.o trace-agent-rw.o
|
/linux-4.1.27/drivers/watchdog/ |
D | via_wdt.c | 77 unsigned int ctl = readl(wdt_mem); in wdt_reset() local 79 writel(ctl | VIA_WDT_TRIGGER, wdt_mem); in wdt_reset() 110 unsigned int ctl = readl(wdt_mem); in wdt_start() local 113 writel(ctl | VIA_WDT_RUNNING | VIA_WDT_TRIGGER, wdt_mem); in wdt_start() 121 unsigned int ctl = readl(wdt_mem); in wdt_stop() local 123 writel(ctl & ~VIA_WDT_RUNNING, wdt_mem); in wdt_stop()
|
D | bcm_kona_wdt.c | 119 int ctl, cur, ctl_sec, cur_sec, res; in bcm_kona_wdt_dbg_show() local 121 ctl = ctl_val & SECWDOG_COUNT_MASK; in bcm_kona_wdt_dbg_show() 124 ctl_sec = TICKS_TO_SECS(ctl, wdt); in bcm_kona_wdt_dbg_show() 132 ctl_sec, ctl, ctl, in bcm_kona_wdt_dbg_show()
|
/linux-4.1.27/drivers/crypto/caam/ |
D | ctrl.c | 631 ctrlpriv->ctl = debugfs_create_dir("ctl", ctrlpriv->dfs_root); in caam_probe() 637 ctrlpriv->ctl, &perfmon->req_dequeued); in caam_probe() 641 ctrlpriv->ctl, &perfmon->ob_enc_req); in caam_probe() 645 ctrlpriv->ctl, &perfmon->ib_dec_req); in caam_probe() 649 ctrlpriv->ctl, &perfmon->ob_enc_bytes); in caam_probe() 653 ctrlpriv->ctl, &perfmon->ob_prot_bytes); in caam_probe() 657 ctrlpriv->ctl, &perfmon->ib_dec_bytes); in caam_probe() 661 ctrlpriv->ctl, &perfmon->ib_valid_bytes); in caam_probe() 667 ctrlpriv->ctl, &perfmon->faultaddr); in caam_probe() 671 ctrlpriv->ctl, &perfmon->faultdetail); in caam_probe() [all …]
|
D | intern.h | 100 struct dentry *ctl; /* controller dir */ member
|
/linux-4.1.27/drivers/tty/serial/ |
D | bcm63xx_uart.c | 206 static void bcm_uart_break_ctl(struct uart_port *port, int ctl) in bcm_uart_break_ctl() argument 214 if (ctl) in bcm_uart_break_ctl() 508 unsigned int ctl, baud, quot, ier; in bcm_uart_set_termios() local 518 ctl = bcm_uart_readl(port, UART_CTL_REG); in bcm_uart_set_termios() 519 ctl &= ~UART_CTL_BITSPERSYM_MASK; in bcm_uart_set_termios() 523 ctl |= (0 << UART_CTL_BITSPERSYM_SHIFT); in bcm_uart_set_termios() 526 ctl |= (1 << UART_CTL_BITSPERSYM_SHIFT); in bcm_uart_set_termios() 529 ctl |= (2 << UART_CTL_BITSPERSYM_SHIFT); in bcm_uart_set_termios() 532 ctl |= (3 << UART_CTL_BITSPERSYM_SHIFT); in bcm_uart_set_termios() 536 ctl &= ~UART_CTL_STOPBITS_MASK; in bcm_uart_set_termios() [all …]
|
D | timbuart.c | 84 u8 ctl = ioread8(port->membase + TIMBUART_CTRL) | in timbuart_flush_buffer() local 87 iowrite8(ctl, port->membase + TIMBUART_CTRL); in timbuart_flush_buffer() 170 u8 ctl = ioread8(port->membase + TIMBUART_CTRL) | in timbuart_handle_rx_port() local 172 iowrite8(ctl, port->membase + TIMBUART_CTRL); in timbuart_handle_rx_port() 247 static void timbuart_break_ctl(struct uart_port *port, int ctl) in timbuart_break_ctl() argument
|
/linux-4.1.27/arch/powerpc/sysdev/ |
D | fsl_85xx_l2ctlr.c | 127 clrsetbits_be32(&l2ctlr->ctl, L2CR_L2E, L2CR_L2FI); in mpc85xx_l2ctlr_of_probe() 131 setbits32(&l2ctlr->ctl, in mpc85xx_l2ctlr_of_probe() 136 setbits32(&l2ctlr->ctl, in mpc85xx_l2ctlr_of_probe() 141 setbits32(&l2ctlr->ctl, in mpc85xx_l2ctlr_of_probe() 147 setbits32(&l2ctlr->ctl, in mpc85xx_l2ctlr_of_probe()
|
D | fsl_85xx_cache_ctlr.h | 51 u32 ctl; /* 0x000 - L2 control */ member
|
/linux-4.1.27/drivers/media/usb/dvb-usb/ |
D | technisat-usb2.c | 515 struct stv6110x_devctl *ctl; in technisat_usb2_frontend_attach() local 517 ctl = dvb_attach(stv6110x_attach, in technisat_usb2_frontend_attach() 522 if (ctl) { in technisat_usb2_frontend_attach() 523 technisat_usb2_stv090x_config.tuner_init = ctl->tuner_init; in technisat_usb2_frontend_attach() 524 technisat_usb2_stv090x_config.tuner_sleep = ctl->tuner_sleep; in technisat_usb2_frontend_attach() 525 technisat_usb2_stv090x_config.tuner_set_mode = ctl->tuner_set_mode; in technisat_usb2_frontend_attach() 526 technisat_usb2_stv090x_config.tuner_set_frequency = ctl->tuner_set_frequency; in technisat_usb2_frontend_attach() 527 technisat_usb2_stv090x_config.tuner_get_frequency = ctl->tuner_get_frequency; in technisat_usb2_frontend_attach() 528 technisat_usb2_stv090x_config.tuner_set_bandwidth = ctl->tuner_set_bandwidth; in technisat_usb2_frontend_attach() 529 technisat_usb2_stv090x_config.tuner_get_bandwidth = ctl->tuner_get_bandwidth; in technisat_usb2_frontend_attach() [all …]
|
/linux-4.1.27/arch/blackfin/mach-bf609/ |
D | clock.c | 142 u32 ctl = bfin_read32(CGU0_CTL); in pll_get_rate() local 146 msel = (ctl & CGU0_CTL_MSEL_MASK) >> CGU0_CTL_MSEL_SHIFT; in pll_get_rate() 147 df = (ctl & CGU0_CTL_DF); in pll_get_rate() 189 u32 ctl = bfin_read32(CGU0_CTL); in sys_clk_get_rate() local 192 msel = (ctl & CGU0_CTL_MSEL_MASK) >> CGU0_CTL_MSEL_SHIFT; in sys_clk_get_rate() 193 df = (ctl & CGU0_CTL_DF); in sys_clk_get_rate() 219 u32 ctl = bfin_read32(CGU0_CTL); in sys_clk_round_rate() local 221 msel = (ctl & CGU0_CTL_MSEL_MASK) >> CGU0_CTL_MSEL_SHIFT; in sys_clk_round_rate() 222 df = (ctl & CGU0_CTL_DF); in sys_clk_round_rate()
|
/linux-4.1.27/drivers/net/wireless/ath/ath9k/ |
D | ar9003_wow.c | 71 u32 ctl[13] = {0}; in ath9k_wow_create_keep_alive_pattern() local 80 ctl[0] = (KAL_FRAME_LEN | (MAX_RATE_POWER << 16)); in ath9k_wow_create_keep_alive_pattern() 81 ctl[1] = 0; in ath9k_wow_create_keep_alive_pattern() 82 ctl[4] = 0; in ath9k_wow_create_keep_alive_pattern() 83 ctl[7] = (ah->txchainmask) << 2; in ath9k_wow_create_keep_alive_pattern() 84 ctl[2] = 0xf << 16; /* tx_tries 0 */ in ath9k_wow_create_keep_alive_pattern() 87 ctl[3] = 0x1b; /* CCK_1M */ in ath9k_wow_create_keep_alive_pattern() 89 ctl[3] = 0xb; /* OFDM_6M */ in ath9k_wow_create_keep_alive_pattern() 92 REG_WRITE(ah, (AR_WOW_KA_DESC_WORD2 + i * 4), ctl[i]); in ath9k_wow_create_keep_alive_pattern()
|
/linux-4.1.27/drivers/ata/ |
D | pata_mpiix.c | 158 int cmd, ctl, irq; in mpiix_init_one() local 178 ctl = 0x3F6; in mpiix_init_one() 182 ctl = 0x376; in mpiix_init_one() 187 ctl_addr = devm_ioport_map(&dev->dev, ctl, 1); in mpiix_init_one() 191 ata_port_desc(ap, "cmd 0x%x ctl 0x%x", cmd, ctl); in mpiix_init_one()
|
D | pata_samsung_cf.c | 183 if (tf->ctl != ap->last_ctl) { in pata_s3c_tf_load() 184 ata_outb(ap->host, tf->ctl, ioaddr->ctl_addr); in pata_s3c_tf_load() 185 ap->last_ctl = tf->ctl; in pata_s3c_tf_load() 226 ata_outb(ap->host, tf->ctl | ATA_HOB, ioaddr->ctl_addr); in pata_s3c_tf_read() 232 ata_outb(ap->host, tf->ctl, ioaddr->ctl_addr); in pata_s3c_tf_read() 233 ap->last_ctl = tf->ctl; in pata_s3c_tf_read() 369 ata_outb(ap->host, ap->ctl, ioaddr->ctl_addr); in pata_s3c_bus_softreset() 371 ata_outb(ap->host, ap->ctl | ATA_SRST, ioaddr->ctl_addr); in pata_s3c_bus_softreset() 373 ata_outb(ap->host, ap->ctl, ioaddr->ctl_addr); in pata_s3c_bus_softreset() 374 ap->last_ctl = ap->ctl; in pata_s3c_bus_softreset() [all …]
|
D | pata_ep93xx.c | 378 if (tf->ctl != ap->last_ctl) { in ep93xx_pata_tf_load() 379 ep93xx_pata_write_reg(drv_data, tf->ctl, IDECTRL_ADDR_CTL); in ep93xx_pata_tf_load() 380 ap->last_ctl = tf->ctl; in ep93xx_pata_tf_load() 427 ep93xx_pata_write_reg(drv_data, tf->ctl | ATA_HOB, in ep93xx_pata_tf_read() 439 ep93xx_pata_write_reg(drv_data, tf->ctl, IDECTRL_ADDR_CTL); in ep93xx_pata_tf_read() 440 ap->last_ctl = tf->ctl; in ep93xx_pata_tf_read() 469 static void ep93xx_pata_set_devctl(struct ata_port *ap, u8 ctl) in ep93xx_pata_set_devctl() argument 473 ep93xx_pata_write_reg(drv_data, ctl, IDECTRL_ADDR_CTL); in ep93xx_pata_set_devctl() 616 ep93xx_pata_write_reg(drv_data, ap->ctl, IDECTRL_ADDR_CTL); in ep93xx_pata_bus_softreset() 618 ep93xx_pata_write_reg(drv_data, ap->ctl | ATA_SRST, IDECTRL_ADDR_CTL); in ep93xx_pata_bus_softreset() [all …]
|
D | sata_rcar.c | 276 static void sata_rcar_set_devctl(struct ata_port *ap, u8 ctl) in sata_rcar_set_devctl() argument 278 iowrite32(ctl, ap->ioaddr.ctl_addr); in sata_rcar_set_devctl() 330 iowrite32(ap->ctl, ioaddr->ctl_addr); in sata_rcar_bus_softreset() 332 iowrite32(ap->ctl | ATA_SRST, ioaddr->ctl_addr); in sata_rcar_bus_softreset() 334 iowrite32(ap->ctl, ioaddr->ctl_addr); in sata_rcar_bus_softreset() 335 ap->last_ctl = ap->ctl; in sata_rcar_bus_softreset() 375 if (tf->ctl != ap->last_ctl) { in sata_rcar_tf_load() 376 iowrite32(tf->ctl, ioaddr->ctl_addr); in sata_rcar_tf_load() 377 ap->last_ctl = tf->ctl; in sata_rcar_tf_load() 430 iowrite32(tf->ctl | ATA_HOB, ioaddr->ctl_addr); in sata_rcar_tf_read() [all …]
|
D | sata_vsc.c | 142 static void vsc_intr_mask_update(struct ata_port *ap, u8 ctl) in vsc_intr_mask_update() argument 150 if (ctl & ATA_NIEN) in vsc_intr_mask_update() 169 if ((tf->ctl & ATA_NIEN) != (ap->last_ctl & ATA_NIEN)) { in vsc_sata_tf_load() 170 ap->last_ctl = tf->ctl; in vsc_sata_tf_load() 171 vsc_intr_mask_update(ap, tf->ctl & ATA_NIEN); in vsc_sata_tf_load()
|
D | libata-sff.c | 296 static void ata_sff_set_devctl(struct ata_port *ap, u8 ctl) in ata_sff_set_devctl() argument 299 ap->ops->sff_set_devctl(ap, ctl); in ata_sff_set_devctl() 301 iowrite8(ctl, ap->ioaddr.ctl_addr); in ata_sff_set_devctl() 391 ap->ctl &= ~ATA_NIEN; in ata_sff_irq_on() 392 ap->last_ctl = ap->ctl; in ata_sff_irq_on() 395 ata_sff_set_devctl(ap, ap->ctl); in ata_sff_irq_on() 418 if (tf->ctl != ap->last_ctl) { in ata_sff_tf_load() 420 iowrite8(tf->ctl, ioaddr->ctl_addr); in ata_sff_tf_load() 421 ap->last_ctl = tf->ctl; in ata_sff_tf_load() 490 iowrite8(tf->ctl | ATA_HOB, ioaddr->ctl_addr); in ata_sff_tf_read() [all …]
|
D | pata_octeon_cf.c | 414 iowrite8(tf->ctl | ATA_HOB, ap->ioaddr.ctl_addr); in octeon_cf_tf_read16() 427 iowrite8(tf->ctl, ap->ioaddr.ctl_addr); in octeon_cf_tf_read16() 428 ap->last_ctl = tf->ctl; in octeon_cf_tf_read16() 453 __raw_writew(ap->ctl, base + 0xe); in octeon_cf_softreset16() 455 __raw_writew(ap->ctl | ATA_SRST, base + 0xe); in octeon_cf_softreset16() 457 __raw_writew(ap->ctl, base + 0xe); in octeon_cf_softreset16() 482 if (tf->ctl != ap->last_ctl) { in octeon_cf_tf_load16() 483 iowrite8(tf->ctl, ap->ioaddr.ctl_addr); in octeon_cf_tf_load16() 484 ap->last_ctl = tf->ctl; in octeon_cf_tf_load16()
|
D | pata_ns87415.c | 276 iowrite8(tf->ctl | ATA_HOB, ioaddr->ctl_addr); in ns87560_tf_read() 282 iowrite8(tf->ctl, ioaddr->ctl_addr); in ns87560_tf_read() 283 ap->last_ctl = tf->ctl; in ns87560_tf_read()
|
D | acard-ahci.c | 133 u32 ctl; in acard_ahci_pci_device_suspend() local 147 ctl = readl(mmio + HOST_CTL); in acard_ahci_pci_device_suspend() 148 ctl &= ~HOST_IRQ_EN; in acard_ahci_pci_device_suspend() 149 writel(ctl, mmio + HOST_CTL); in acard_ahci_pci_device_suspend()
|
D | pata_bf54x.c | 674 if (tf->ctl != ap->last_ctl) { in bfin_tf_load() 675 write_atapi_register(base, ATA_REG_CTRL, tf->ctl); in bfin_tf_load() 676 ap->last_ctl = tf->ctl; in bfin_tf_load() 753 write_atapi_register(base, ATA_REG_CTRL, tf->ctl | ATA_HOB); in bfin_tf_read() 819 static void bfin_set_devctl(struct ata_port *ap, u8 ctl) in bfin_set_devctl() argument 822 write_atapi_register(base, ATA_REG_CTRL, ctl); in bfin_set_devctl() 1051 write_atapi_register(base, ATA_REG_CTRL, ap->ctl); in bfin_bus_softreset() 1053 write_atapi_register(base, ATA_REG_CTRL, ap->ctl | ATA_SRST); in bfin_bus_softreset() 1055 write_atapi_register(base, ATA_REG_CTRL, ap->ctl); in bfin_bus_softreset() 1245 write_atapi_register(base, ATA_REG_CTRL, ap->ctl); in bfin_postreset()
|
D | libahci_platform.c | 619 u32 ctl; in ahci_platform_suspend_host() local 631 ctl = readl(mmio + HOST_CTL); in ahci_platform_suspend_host() 632 ctl &= ~HOST_IRQ_EN; in ahci_platform_suspend_host() 633 writel(ctl, mmio + HOST_CTL); in ahci_platform_suspend_host()
|
D | sata_svw.c | 179 if (tf->ctl != ap->last_ctl) { in k2_sata_tf_load() 180 writeb(tf->ctl, ioaddr->ctl_addr); in k2_sata_tf_load() 181 ap->last_ctl = tf->ctl; in k2_sata_tf_load()
|
D | sata_highbank.c | 586 u32 ctl; in ahci_highbank_suspend() local 599 ctl = readl(mmio + HOST_CTL); in ahci_highbank_suspend() 600 ctl &= ~HOST_IRQ_EN; in ahci_highbank_suspend() 601 writel(ctl, mmio + HOST_CTL); in ahci_highbank_suspend()
|
/linux-4.1.27/fs/xfs/ |
D | xfs_sysctl.c | 28 struct ctl_table *ctl, in xfs_stats_clear_proc_handler() argument 34 int c, ret, *valp = ctl->data; in xfs_stats_clear_proc_handler() 37 ret = proc_dointvec_minmax(ctl, write, buffer, lenp, ppos); in xfs_stats_clear_proc_handler() 58 struct ctl_table *ctl, in xfs_panic_mask_proc_handler() argument 64 int ret, *valp = ctl->data; in xfs_panic_mask_proc_handler() 66 ret = proc_dointvec_minmax(ctl, write, buffer, lenp, ppos); in xfs_panic_mask_proc_handler()
|
/linux-4.1.27/arch/powerpc/platforms/85xx/ |
D | xes_mpc85xx.c | 53 volatile uint32_t ctl, tmp; in xes_mpc85xx_configure_l2() local 64 ctl = MPC85xx_L2CTL_L2E | MPC85xx_L2CTL_L2I; in xes_mpc85xx_configure_l2() 71 ctl |= (tmp & MPC85xx_L2CTL_L2SIZ_MASK) >> 2; in xes_mpc85xx_configure_l2() 74 out_be32(l2_base, ctl); in xes_mpc85xx_configure_l2()
|
/linux-4.1.27/sound/firewire/ |
D | isight.c | 473 static int isight_gain_info(struct snd_kcontrol *ctl, in isight_gain_info() argument 476 struct isight *isight = ctl->private_data; in isight_gain_info() 486 static int isight_gain_get(struct snd_kcontrol *ctl, in isight_gain_get() argument 489 struct isight *isight = ctl->private_data; in isight_gain_get() 502 static int isight_gain_put(struct snd_kcontrol *ctl, in isight_gain_put() argument 505 struct isight *isight = ctl->private_data; in isight_gain_put() 515 static int isight_mute_get(struct snd_kcontrol *ctl, in isight_mute_get() argument 518 struct isight *isight = ctl->private_data; in isight_mute_get() 531 static int isight_mute_put(struct snd_kcontrol *ctl, in isight_mute_put() argument 534 struct isight *isight = ctl->private_data; in isight_mute_put() [all …]
|
/linux-4.1.27/drivers/media/pci/ngene/ |
D | ngene-cards.c | 60 struct stv6110x_devctl *ctl; in tuner_attach_stv6110() local 68 ctl = dvb_attach(stv6110x_attach, chan->fe, tunerconf, i2c); in tuner_attach_stv6110() 69 if (ctl == NULL) { in tuner_attach_stv6110() 74 feconf->tuner_init = ctl->tuner_init; in tuner_attach_stv6110() 75 feconf->tuner_sleep = ctl->tuner_sleep; in tuner_attach_stv6110() 76 feconf->tuner_set_mode = ctl->tuner_set_mode; in tuner_attach_stv6110() 77 feconf->tuner_set_frequency = ctl->tuner_set_frequency; in tuner_attach_stv6110() 78 feconf->tuner_get_frequency = ctl->tuner_get_frequency; in tuner_attach_stv6110() 79 feconf->tuner_set_bandwidth = ctl->tuner_set_bandwidth; in tuner_attach_stv6110() 80 feconf->tuner_get_bandwidth = ctl->tuner_get_bandwidth; in tuner_attach_stv6110() [all …]
|
/linux-4.1.27/drivers/vme/bridges/ |
D | vme_tsi148.c | 704 unsigned int i, granularity = 0, ctl = 0; in tsi148_slave_get() local 716 ctl = ioread32be(bridge->base + TSI148_LCSR_IT[i] + in tsi148_slave_get() 743 if (ctl & TSI148_LCSR_ITAT_EN) in tsi148_slave_get() 746 if ((ctl & TSI148_LCSR_ITAT_AS_M) == TSI148_LCSR_ITAT_AS_A16) { in tsi148_slave_get() 750 if ((ctl & TSI148_LCSR_ITAT_AS_M) == TSI148_LCSR_ITAT_AS_A24) { in tsi148_slave_get() 754 if ((ctl & TSI148_LCSR_ITAT_AS_M) == TSI148_LCSR_ITAT_AS_A32) { in tsi148_slave_get() 758 if ((ctl & TSI148_LCSR_ITAT_AS_M) == TSI148_LCSR_ITAT_AS_A64) { in tsi148_slave_get() 767 if ((ctl & TSI148_LCSR_ITAT_2eSSTM_M) == TSI148_LCSR_ITAT_2eSSTM_160) in tsi148_slave_get() 769 if ((ctl & TSI148_LCSR_ITAT_2eSSTM_M) == TSI148_LCSR_ITAT_2eSSTM_267) in tsi148_slave_get() 771 if ((ctl & TSI148_LCSR_ITAT_2eSSTM_M) == TSI148_LCSR_ITAT_2eSSTM_320) in tsi148_slave_get() [all …]
|
D | vme_ca91cx42.c | 451 unsigned int i, granularity = 0, ctl = 0; in ca91cx42_slave_get() local 465 ctl = ioread32(bridge->base + CA91CX42_VSI_CTL[i]); in ca91cx42_slave_get() 478 if (ctl & CA91CX42_VSI_CTL_EN) in ca91cx42_slave_get() 481 if ((ctl & CA91CX42_VSI_CTL_VAS_M) == CA91CX42_VSI_CTL_VAS_A16) in ca91cx42_slave_get() 483 if ((ctl & CA91CX42_VSI_CTL_VAS_M) == CA91CX42_VSI_CTL_VAS_A24) in ca91cx42_slave_get() 485 if ((ctl & CA91CX42_VSI_CTL_VAS_M) == CA91CX42_VSI_CTL_VAS_A32) in ca91cx42_slave_get() 487 if ((ctl & CA91CX42_VSI_CTL_VAS_M) == CA91CX42_VSI_CTL_VAS_USER1) in ca91cx42_slave_get() 489 if ((ctl & CA91CX42_VSI_CTL_VAS_M) == CA91CX42_VSI_CTL_VAS_USER2) in ca91cx42_slave_get() 492 if (ctl & CA91CX42_VSI_CTL_SUPER_SUPR) in ca91cx42_slave_get() 494 if (ctl & CA91CX42_VSI_CTL_SUPER_NPRIV) in ca91cx42_slave_get() [all …]
|
/linux-4.1.27/drivers/pcmcia/ |
D | ricoh.h | 183 u16 config, ctl; in ricoh_override() local 188 ctl = RL5C4XX_16CTL_IO_TIMING | RL5C4XX_16CTL_MEM_TIMING; in ricoh_override() 191 ctl |= RL5C46X_16CTL_LEVEL_1 | RL5C46X_16CTL_LEVEL_2; in ricoh_override() 196 config_writew(socket, RL5C4XX_16BIT_CTL, ctl); in ricoh_override()
|
D | tcic.c | 736 u_short addr, ctl; in tcic_set_mem_map() local 765 ctl = TCIC_MCTL_QUIET | (psock << TCIC_MCTL_SS_SHFT); in tcic_set_mem_map() 766 ctl |= to_cycles(mem->speed) & TCIC_MCTL_WSCNT_MASK; in tcic_set_mem_map() 767 ctl |= (mem->flags & MAP_16BIT) ? 0 : TCIC_MCTL_B8; in tcic_set_mem_map() 768 ctl |= (mem->flags & MAP_WRPROT) ? TCIC_MCTL_WP : 0; in tcic_set_mem_map() 769 ctl |= (mem->flags & MAP_ACTIVE) ? TCIC_MCTL_ENA : 0; in tcic_set_mem_map() 771 tcic_setw(TCIC_DATA, ctl); in tcic_set_mem_map()
|
/linux-4.1.27/drivers/media/pci/cx88/ |
D | cx88-tvaudio.c | 136 static void set_audio_finish(struct cx88_core *core, u32 ctl) in set_audio_finish() argument 155 ctl |= EN_DAC_ENABLE; in set_audio_finish() 156 cx_write(AUD_CTL, ctl); in set_audio_finish() 884 u32 ctl = UNSET; in cx88_set_stereo() local 945 ctl = EN_A2_FORCE_MONO1; in cx88_set_stereo() 948 ctl = EN_A2_FORCE_MONO2; in cx88_set_stereo() 952 ctl = EN_A2_FORCE_STEREO; in cx88_set_stereo() 961 ctl = EN_FMRADIO_FORCE_MONO; in cx88_set_stereo() 965 ctl = EN_FMRADIO_AUTO_STEREO; in cx88_set_stereo() 978 if (UNSET != ctl) { in cx88_set_stereo() [all …]
|
D | cx88-cards.c | 3365 void cx88_setup_xc3028(struct cx88_core *core, struct xc2028_ctrl *ctl) in cx88_setup_xc3028() argument 3367 memset(ctl, 0, sizeof(*ctl)); in cx88_setup_xc3028() 3369 ctl->fname = XC2028_DEFAULT_FIRMWARE; in cx88_setup_xc3028() 3370 ctl->max_len = 64; in cx88_setup_xc3028() 3380 ctl->demod = XC3028_FE_ZARLINK456; in cx88_setup_xc3028() 3384 ctl->demod = XC3028_FE_OREN538; in cx88_setup_xc3028() 3392 ctl->disable_power_mgmt = 1; in cx88_setup_xc3028() 3403 ctl->demod = XC3028_FE_ZARLINK456; in cx88_setup_xc3028() 3404 ctl->mts = 1; in cx88_setup_xc3028() 3407 ctl->demod = XC3028_FE_OREN538; in cx88_setup_xc3028() [all …]
|
/linux-4.1.27/drivers/iio/adc/ |
D | men_z188_adc.c | 90 u32 ctl; in men_z188_config_channels() local 92 ctl = readl(addr + Z188_CTRL_REG); in men_z188_config_channels() 93 ctl |= Z188_CFG_AUTO; in men_z188_config_channels() 94 writel(ctl, addr + Z188_CTRL_REG); in men_z188_config_channels()
|
/linux-4.1.27/drivers/video/backlight/ |
D | as3711_bl.c | 189 u8 ctl = 0; in as3711_bl_init_su2() local 204 ctl = 1; in as3711_bl_init_su2() 208 ctl = 4; in as3711_bl_init_su2() 212 ctl = 0x10; in as3711_bl_init_su2() 217 ctl = 2; in as3711_bl_init_su2() 219 ctl |= 8; in as3711_bl_init_su2() 221 ctl |= 0x20; in as3711_bl_init_su2() 229 ret = regmap_write(as3711->regmap, AS3711_CURR_CONTROL, ctl); in as3711_bl_init_su2()
|
/linux-4.1.27/include/linux/ |
D | i2c-algo-pcf.h | 31 void (*setpcf) (void *data, int ctl, int val); 32 int (*getpcf) (void *data, int ctl);
|
D | socket.h | 90 #define __CMSG_NXTHDR(ctl, len, cmsg) __cmsg_nxthdr((ctl),(len),(cmsg)) argument 99 #define __CMSG_FIRSTHDR(ctl,len) ((len) >= sizeof(struct cmsghdr) ? \ argument 100 (struct cmsghdr *)(ctl) : \
|
/linux-4.1.27/drivers/net/ethernet/broadcom/ |
D | bgmac.c | 97 u32 ctl; in bgmac_dma_tx_enable() local 99 ctl = bgmac_read(bgmac, ring->mmio_base + BGMAC_DMA_TX_CTL); in bgmac_dma_tx_enable() 101 ctl &= ~BGMAC_DMA_TX_BL_MASK; in bgmac_dma_tx_enable() 102 ctl |= BGMAC_DMA_TX_BL_128 << BGMAC_DMA_TX_BL_SHIFT; in bgmac_dma_tx_enable() 104 ctl &= ~BGMAC_DMA_TX_MR_MASK; in bgmac_dma_tx_enable() 105 ctl |= BGMAC_DMA_TX_MR_2 << BGMAC_DMA_TX_MR_SHIFT; in bgmac_dma_tx_enable() 107 ctl &= ~BGMAC_DMA_TX_PC_MASK; in bgmac_dma_tx_enable() 108 ctl |= BGMAC_DMA_TX_PC_16 << BGMAC_DMA_TX_PC_SHIFT; in bgmac_dma_tx_enable() 110 ctl &= ~BGMAC_DMA_TX_PT_MASK; in bgmac_dma_tx_enable() 111 ctl |= BGMAC_DMA_TX_PT_8 << BGMAC_DMA_TX_PT_SHIFT; in bgmac_dma_tx_enable() [all …]
|
/linux-4.1.27/drivers/dma/ioat/ |
D | hw.h | 73 uint32_t ctl; member 107 uint32_t ctl; member 154 uint32_t ctl; member 203 uint32_t ctl; member
|
/linux-4.1.27/drivers/gpu/drm/i915/ |
D | intel_panel.c | 859 u32 ctl, freq; in i9xx_enable_backlight() local 861 ctl = I915_READ(BLC_PWM_CTL); in i9xx_enable_backlight() 862 if (ctl & BACKLIGHT_DUTY_CYCLE_MASK_PNV) { in i9xx_enable_backlight() 871 ctl = freq << 17; in i9xx_enable_backlight() 873 ctl |= BLM_LEGACY_MODE; in i9xx_enable_backlight() 875 ctl |= BLM_POLARITY_PNV; in i9xx_enable_backlight() 877 I915_WRITE(BLC_PWM_CTL, ctl); in i9xx_enable_backlight() 898 u32 ctl, ctl2, freq; in i965_enable_backlight() local 911 ctl = freq << 16; in i965_enable_backlight() 912 I915_WRITE(BLC_PWM_CTL, ctl); in i965_enable_backlight() [all …]
|
/linux-4.1.27/drivers/parport/ |
D | ieee1284_ops.c | 49 unsigned char ctl = (PARPORT_CONTROL_SELECT in parport_ieee1284_write_compat() local 58 parport_write_control (port, ctl); in parport_ieee1284_write_compat() 127 parport_write_control (port, ctl | PARPORT_CONTROL_STROBE); in parport_ieee1284_write_compat() 130 parport_write_control (port, ctl); in parport_ieee1284_write_compat() 499 unsigned char ctl; in parport_ieee1284_ecp_read_data() 512 ctl = parport_read_control (port); in parport_ieee1284_ecp_read_data() 513 ctl &= ~(PARPORT_CONTROL_STROBE | PARPORT_CONTROL_INIT | in parport_ieee1284_ecp_read_data() 516 ctl | PARPORT_CONTROL_AUTOFD); in parport_ieee1284_ecp_read_data() 591 parport_write_control (port, ctl); in parport_ieee1284_ecp_read_data() 610 ctl | PARPORT_CONTROL_AUTOFD); in parport_ieee1284_ecp_read_data()
|
/linux-4.1.27/sound/pci/echoaudio/ |
D | echoaudio_3g.c | 73 static int write_control_reg(struct echoaudio *chip, u32 ctl, u32 frq, in write_control_reg() argument 80 "WriteControlReg: Setting 0x%x, 0x%x\n", ctl, frq); in write_control_reg() 82 ctl = cpu_to_le32(ctl); in write_control_reg() 85 if (ctl != chip->comm_page->control_register || in write_control_reg() 88 chip->comm_page->control_register = ctl; in write_control_reg()
|
/linux-4.1.27/arch/s390/appldata/ |
D | appldata_base.c | 51 static int appldata_timer_handler(struct ctl_table *ctl, int write, 53 static int appldata_interval_handler(struct ctl_table *ctl, int write, 204 appldata_timer_handler(struct ctl_table *ctl, int write, in appldata_timer_handler() argument 246 appldata_interval_handler(struct ctl_table *ctl, int write, in appldata_interval_handler() argument 290 appldata_generic_handler(struct ctl_table *ctl, int write, in appldata_generic_handler() argument 303 if (&tmp_ops->ctl_table[2] == ctl) { in appldata_generic_handler() 311 ops = ctl->data; in appldata_generic_handler()
|
/linux-4.1.27/drivers/infiniband/hw/cxgb3/ |
D | cxio_dbg.c | 56 rc = rdev->t3cdev_p->ctl(rdev->t3cdev_p, RDMA_GET_MEM, m); in cxio_dump_tpt() 94 rc = rdev->t3cdev_p->ctl(rdev->t3cdev_p, RDMA_GET_MEM, m); in cxio_dump_pbl() 155 rc = rdev->t3cdev_p->ctl(rdev->t3cdev_p, RDMA_GET_MEM, m); in cxio_dump_rqt() 188 rc = rdev->t3cdev_p->ctl(rdev->t3cdev_p, RDMA_GET_MEM, m); in cxio_dump_tcb()
|
/linux-4.1.27/drivers/edac/ |
D | edac_core.h | 58 #define edac_device_printk(ctl, level, fmt, arg...) \ argument 59 printk(level "EDAC DEVICE%d: " fmt, ctl->dev_idx, ##arg) 61 #define edac_pci_printk(ctl, level, fmt, arg...) \ argument 62 printk(level "EDAC PCI%d: " fmt, ctl->pci_idx, ##arg) 196 struct edac_device_ctl_info *ctl; /* Up pointer */ member
|
D | mv64x60_edac.c | 667 u32 ctl; in mv64x60_init_csrows() local 671 ctl = in_le32(pdata->mc_vbase + MV64X60_SDRAM_CONFIG); in mv64x60_init_csrows() 679 dimm->mtype = (ctl & MV64X60_SDRAM_REGISTERED) ? MEM_RDDR : MEM_DDR; in mv64x60_init_csrows() 681 devtype = (ctl >> 20) & 0x3; in mv64x60_init_csrows() 706 u32 ctl; in mv64x60_mc_err_probe() local 761 ctl = in_le32(pdata->mc_vbase + MV64X60_SDRAM_CONFIG); in mv64x60_mc_err_probe() 762 if (!(ctl & MV64X60_SDRAM_ECC)) { in mv64x60_mc_err_probe() 788 ctl = in_le32(pdata->mc_vbase + MV64X60_SDRAM_ERR_ECC_CNTL); in mv64x60_mc_err_probe() 789 ctl = (ctl & 0xff00ffff) | 0x10000; in mv64x60_mc_err_probe() 790 out_le32(pdata->mc_vbase + MV64X60_SDRAM_ERR_ECC_CNTL, ctl); in mv64x60_mc_err_probe()
|
/linux-4.1.27/arch/x86/kernel/cpu/ |
D | perf_event_intel_pt.c | 192 u64 ctl; in pt_is_running() local 194 rdmsrl(MSR_IA32_RTIT_CTL, ctl); in pt_is_running() 196 return !!(ctl & RTIT_CTL_TRACEEN); in pt_is_running() 217 u64 ctl; in pt_config_start() local 219 rdmsrl(MSR_IA32_RTIT_CTL, ctl); in pt_config_start() 221 ctl |= RTIT_CTL_TRACEEN; in pt_config_start() 223 ctl &= ~RTIT_CTL_TRACEEN; in pt_config_start() 224 wrmsrl(MSR_IA32_RTIT_CTL, ctl); in pt_config_start() 1068 u64 ctl; in pt_init() local 1070 ret = rdmsrl_safe_on_cpu(cpu, MSR_IA32_RTIT_CTL, &ctl); in pt_init() [all …]
|
/linux-4.1.27/arch/s390/pci/ |
D | pci_insn.c | 81 void zpci_set_irq_ctrl(u16 ctl, char *unused, u8 isc) in zpci_set_irq_ctrl() argument 85 : : [ctl] "d" (ctl), [isc] "d" (isc << 27), [u] "Q" (*unused)); in zpci_set_irq_ctrl()
|
/linux-4.1.27/sound/usb/ |
D | mixer_scarlett.c | 852 const struct scarlett_mixer_control *ctl; in scarlett_controls_create_generic() local 872 ctl = &info->controls[i]; in scarlett_controls_create_generic() 874 switch (ctl->type) { in scarlett_controls_create_generic() 876 err = add_output_ctls(mixer, ctl->num, ctl->name, info); in scarlett_controls_create_generic() 881 sprintf(mx, "Input %d Impedance Switch", ctl->num); in scarlett_controls_create_generic() 884 0x09, ctl->num, USB_MIXER_S16, 1, mx, in scarlett_controls_create_generic() 890 sprintf(mx, "Input %d Pad Switch", ctl->num); in scarlett_controls_create_generic() 893 0x0b, ctl->num, USB_MIXER_S16, 1, mx, in scarlett_controls_create_generic()
|
/linux-4.1.27/drivers/spi/ |
D | spi-bfin5xx.c | 128 bfin_write_or(&drv_data->regs->ctl, BIT_CTL_ENABLE); in bfin_spi_enable() 133 bfin_write_and(&drv_data->regs->ctl, ~BIT_CTL_ENABLE); in bfin_spi_disable() 214 bfin_write(&drv_data->regs->ctl, chip->ctl_reg); in bfin_spi_restore_state() 495 u16 cr = bfin_read(&drv_data->regs->ctl); in bfin_spi_dma_irq_handler() 498 bfin_write(&drv_data->regs->ctl, cr & ~BIT_CTL_ENABLE); /* Disable SPI */ in bfin_spi_dma_irq_handler() 499 bfin_write(&drv_data->regs->ctl, cr & ~BIT_CTL_TIMOD); /* Restore State */ in bfin_spi_dma_irq_handler() 653 cr = bfin_read(&drv_data->regs->ctl) & ~(BIT_CTL_TIMOD | BIT_CTL_WORDSIZE); in bfin_spi_pump_transfers() 655 bfin_write(&drv_data->regs->ctl, cr); in bfin_spi_pump_transfers() 720 bfin_write(&drv_data->regs->ctl, cr | BIT_CTL_TIMOD_DMA_TX); in bfin_spi_pump_transfers() 775 bfin_write(&drv_data->regs->ctl, cr); in bfin_spi_pump_transfers() [all …]
|
D | spi-st-ssc4.c | 151 uint32_t ctl = 0; in spi_st_transfer_one() local 174 ctl = readl_relaxed(spi_st->base + SSC_CTL); in spi_st_transfer_one() 175 writel_relaxed((ctl | 0xf), spi_st->base + SSC_CTL); in spi_st_transfer_one() 194 if (ctl) in spi_st_transfer_one() 195 writel_relaxed(ctl, spi_st->base + SSC_CTL); in spi_st_transfer_one()
|
D | spi-adi-v3.c | 113 u32 ctl; in adi_spi_enable() local 115 ctl = ioread32(&drv_data->regs->control); in adi_spi_enable() 116 ctl |= SPI_CTL_EN; in adi_spi_enable() 117 iowrite32(ctl, &drv_data->regs->control); in adi_spi_enable() 122 u32 ctl; in adi_spi_disable() local 124 ctl = ioread32(&drv_data->regs->control); in adi_spi_disable() 125 ctl &= ~SPI_CTL_EN; in adi_spi_disable() 126 iowrite32(ctl, &drv_data->regs->control); in adi_spi_disable()
|
/linux-4.1.27/drivers/idle/ |
D | i7300_idle.c | 144 static int __init i7300_idle_ioat_selftest(u8 *ctl, in i7300_idle_ioat_selftest() argument 153 desc[0].ctl = 0; in i7300_idle_ioat_selftest() 254 ioat_desc[0].ctl = IOAT_DESC_SADDR_SNP_CTL | IOAT_DESC_DADDR_SNP_CTL; in i7300_idle_ioat_init() 260 ioat_desc[1].ctl = ioat_desc[0].ctl; in i7300_idle_ioat_init()
|
/linux-4.1.27/drivers/media/usb/stk1160/ |
D | stk1160-core.c | 133 static const struct regval ctl[] = { in stk1160_reg_reset() local 157 for (i = 0; ctl[i].reg != 0xffff; i++) in stk1160_reg_reset() 158 stk1160_write_reg(dev, ctl[i].reg, ctl[i].val); in stk1160_reg_reset()
|
/linux-4.1.27/net/core/ |
D | neighbour.c | 2817 static int proc_unres_qlen(struct ctl_table *ctl, int write, in proc_unres_qlen() argument 2821 struct ctl_table tmp = *ctl; in proc_unres_qlen() 2827 size = *(int *)ctl->data / SKB_TRUESIZE(ETH_FRAME_LEN); in proc_unres_qlen() 2831 *(int *)ctl->data = size * SKB_TRUESIZE(ETH_FRAME_LEN); in proc_unres_qlen() 2864 static void neigh_proc_update(struct ctl_table *ctl, int write) in neigh_proc_update() argument 2866 struct net_device *dev = ctl->extra1; in neigh_proc_update() 2867 struct neigh_parms *p = ctl->extra2; in neigh_proc_update() 2869 int index = (int *) ctl->data - p->data; in neigh_proc_update() 2879 static int neigh_proc_dointvec_zero_intmax(struct ctl_table *ctl, int write, in neigh_proc_dointvec_zero_intmax() argument 2883 struct ctl_table tmp = *ctl; in neigh_proc_dointvec_zero_intmax() [all …]
|
/linux-4.1.27/drivers/media/usb/tm6000/ |
D | tm6000-cards.c | 932 struct xc2028_ctrl ctl; in tm6000_config_tuner() local 935 memset(&ctl, 0, sizeof(ctl)); in tm6000_config_tuner() 937 ctl.demod = XC3028_FE_ZARLINK456; in tm6000_config_tuner() 940 xc2028_cfg.priv = &ctl; in tm6000_config_tuner() 946 ctl.max_len = 80; in tm6000_config_tuner() 947 ctl.fname = "xc3028L-v36.fw"; in tm6000_config_tuner() 951 ctl.fname = "xc3028-v27.fw"; in tm6000_config_tuner() 953 ctl.fname = "xc3028-v24.fw"; in tm6000_config_tuner() 965 struct xc5000_config ctl = { in tm6000_config_tuner() local 972 xc5000_cfg.priv = &ctl; in tm6000_config_tuner()
|
/linux-4.1.27/drivers/i2c/algos/ |
D | i2c-algo-pcf.c | 47 #define set_pcf(adap, ctl, val) adap->setpcf(adap->data, ctl, val) argument 48 #define get_pcf(adap, ctl) adap->getpcf(adap->data, ctl) argument
|
/linux-4.1.27/net/ipv6/ |
D | ndisc.c | 1684 static void ndisc_warn_deprecated_sysctl(struct ctl_table *ctl, in ndisc_warn_deprecated_sysctl() argument 1693 dev_name, ctl->procname, in ndisc_warn_deprecated_sysctl() 1694 dev_name, ctl->procname); in ndisc_warn_deprecated_sysctl() 1699 int ndisc_ifinfo_sysctl_change(struct ctl_table *ctl, int write, void __user *buffer, size_t *lenp,… in ndisc_ifinfo_sysctl_change() argument 1701 struct net_device *dev = ctl->extra1; in ndisc_ifinfo_sysctl_change() 1705 if ((strcmp(ctl->procname, "retrans_time") == 0) || in ndisc_ifinfo_sysctl_change() 1706 (strcmp(ctl->procname, "base_reachable_time") == 0)) in ndisc_ifinfo_sysctl_change() 1707 ndisc_warn_deprecated_sysctl(ctl, "syscall", dev ? dev->name : "default"); in ndisc_ifinfo_sysctl_change() 1709 if (strcmp(ctl->procname, "retrans_time") == 0) in ndisc_ifinfo_sysctl_change() 1710 ret = neigh_proc_dointvec(ctl, write, buffer, lenp, ppos); in ndisc_ifinfo_sysctl_change() [all …]
|
/linux-4.1.27/drivers/net/ethernet/smsc/ |
D | smc91x.c | 254 unsigned int ctl, cfg; in smc_reset() local 322 ctl = SMC_GET_CTL(lp) | CTL_LE_ENABLE; in smc_reset() 330 ctl |= CTL_AUTO_RELEASE; in smc_reset() 332 ctl &= ~CTL_AUTO_RELEASE; in smc_reset() 333 SMC_SET_CTL(lp, ctl); in smc_reset() 1196 unsigned int ctl; in smc_eph_interrupt() local 1201 ctl = SMC_GET_CTL(lp); in smc_eph_interrupt() 1202 SMC_SET_CTL(lp, ctl & ~CTL_LE_ENABLE); in smc_eph_interrupt() 1203 SMC_SET_CTL(lp, ctl); in smc_eph_interrupt() 1636 u16 ctl; in smc_write_eeprom_word() local [all …]
|
/linux-4.1.27/drivers/net/wireless/iwlegacy/ |
D | 3945.h | 434 #define TFD_CTL_COUNT_GET(ctl) ((ctl >> 24) & 7) argument 436 #define TFD_CTL_PAD_GET(ctl) (ctl >> 28) argument
|
/linux-4.1.27/arch/s390/mm/ |
D | cmm.c | 256 static int cmm_pages_handler(struct ctl_table *ctl, int write, in cmm_pages_handler() argument 276 if (ctl == &cmm_table[0]) in cmm_pages_handler() 281 if (ctl == &cmm_table[0]) in cmm_pages_handler() 296 static int cmm_timeout_handler(struct ctl_table *ctl, int write, in cmm_timeout_handler() argument
|
/linux-4.1.27/kernel/time/ |
D | timer_stats.c | 362 char ctl[2]; in tstats_write() local 367 if (copy_from_user(ctl, buf, count)) in tstats_write() 371 switch (ctl[0]) { in tstats_write()
|
/linux-4.1.27/sound/isa/sb/ |
D | sb_mixer.c | 494 struct snd_kcontrol *ctl; in snd_sbmixer_add_ctl() local 497 ctl = snd_ctl_new1(&newctls[type], chip); in snd_sbmixer_add_ctl() 498 if (! ctl) in snd_sbmixer_add_ctl() 500 strlcpy(ctl->id.name, name, sizeof(ctl->id.name)); in snd_sbmixer_add_ctl() 501 ctl->id.index = index; in snd_sbmixer_add_ctl() 502 ctl->private_value = value; in snd_sbmixer_add_ctl() 503 if ((err = snd_ctl_add(chip->card, ctl)) < 0) in snd_sbmixer_add_ctl()
|
/linux-4.1.27/include/net/netns/ |
D | unix.h | 10 struct ctl_table_header *ctl; member
|
D | mpls.h | 14 struct ctl_table_header *ctl; member
|
/linux-4.1.27/drivers/net/ethernet/ |
D | lantiq_etop.c | 124 ch->dma.desc_base[ch->dma.desc].ctl = in ltq_etop_alloc_skb() 137 int len = (desc->ctl & LTQ_DMA_SIZE_MASK) - MAX_DMA_CRC_LEN; in ltq_etop_hw_receive() 166 if ((desc->ctl & (LTQ_DMA_OWN | LTQ_DMA_C)) == LTQ_DMA_C) { in ltq_etop_poll_rx() 191 while ((ch->dma.desc_base[ch->tx_free].ctl & in ltq_etop_poll_tx() 531 if ((desc->ctl & (LTQ_DMA_OWN | LTQ_DMA_C)) || ch->skb[ch->dma.desc]) { in ltq_etop_tx() 548 desc->ctl = LTQ_DMA_OWN | LTQ_DMA_SOP | LTQ_DMA_EOP | in ltq_etop_tx() 554 if (ch->dma.desc_base[ch->dma.desc].ctl & LTQ_DMA_OWN) in ltq_etop_tx()
|
/linux-4.1.27/drivers/net/ethernet/sfc/ |
D | txc43128_phy.c | 365 int ctl = efx_mdio_read(efx, mmd, TXC_GLRGS_GLCMD); in txc_glrgs_lane_power() local 368 ctl &= ~pd; in txc_glrgs_lane_power() 370 ctl |= pd; in txc_glrgs_lane_power() 372 efx_mdio_write(efx, mmd, TXC_GLRGS_GLCMD, ctl); in txc_glrgs_lane_power()
|
/linux-4.1.27/arch/s390/include/asm/ |
D | cpu_mf.h | 164 static inline int lcctl(u64 ctl) in lcctl() argument 172 : "=d" (cc) : "m" (ctl) : "cc"); in lcctl()
|
D | pci_insn.h | 84 void zpci_set_irq_ctrl(u16 ctl, char *unused, u8 isc);
|
/linux-4.1.27/drivers/media/pci/ddbridge/ |
D | ddbridge-core.c | 693 struct stv6110x_devctl *ctl; in tuner_attach_stv6110() local 695 ctl = dvb_attach(stv6110x_attach, input->fe, tunerconf, i2c); in tuner_attach_stv6110() 696 if (!ctl) { in tuner_attach_stv6110() 703 feconf->tuner_init = ctl->tuner_init; in tuner_attach_stv6110() 704 feconf->tuner_sleep = ctl->tuner_sleep; in tuner_attach_stv6110() 705 feconf->tuner_set_mode = ctl->tuner_set_mode; in tuner_attach_stv6110() 706 feconf->tuner_set_frequency = ctl->tuner_set_frequency; in tuner_attach_stv6110() 707 feconf->tuner_get_frequency = ctl->tuner_get_frequency; in tuner_attach_stv6110() 708 feconf->tuner_set_bandwidth = ctl->tuner_set_bandwidth; in tuner_attach_stv6110() 709 feconf->tuner_get_bandwidth = ctl->tuner_get_bandwidth; in tuner_attach_stv6110() [all …]
|
/linux-4.1.27/drivers/crypto/amcc/ |
D | crypto4xx_reg_def.h | 234 u32 ctl:30; member 241 struct sd_ctl ctl; member
|
/linux-4.1.27/include/net/ |
D | ndisc.h | 213 int ndisc_ifinfo_sysctl_change(struct ctl_table *ctl, int write, 215 int ndisc_ifinfo_sysctl_strategy(struct ctl_table *ctl,
|
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb3/ |
D | t3cdev.h | 60 int (*ctl)(struct t3cdev *dev, unsigned int req, void *data); member
|
/linux-4.1.27/drivers/scsi/csiostor/ |
D | csio_mb.c | 1038 cmdp->u.ctl.nstats_port = FW_FCOE_STATS_CMD_NSTATS(portparams->nstats) | in csio_fcoe_read_portparams_init_mb() 1041 cmdp->u.ctl.port_valid_ix = FW_FCOE_STATS_CMD_IX(portparams->idx) | in csio_fcoe_read_portparams_init_mb() 1186 uint32_t owner, ctl; in csio_mb_issue() local 1298 ctl = csio_rd_reg32(hw, ctl_reg); in csio_mb_issue() 1299 if (csio_mb_is_host_owner(MBOWNER_G(ctl))) { in csio_mb_issue() 1301 if (!(ctl & MBMSGVALID_F)) { in csio_mb_issue() 1460 uint32_t ctl, cim_cause, pl_cause; in csio_mb_isr_handler() local 1485 ctl = csio_rd_reg32(hw, ctl_reg); in csio_mb_isr_handler() 1487 if (csio_mb_is_host_owner(MBOWNER_G(ctl))) { in csio_mb_isr_handler() 1491 if (!(ctl & MBMSGVALID_F)) { in csio_mb_isr_handler()
|
/linux-4.1.27/arch/mips/include/asm/mach-lantiq/xway/ |
D | xway_dma.h | 33 u32 ctl; member
|
/linux-4.1.27/net/ipv4/ |
D | devinet.c | 2016 static int devinet_conf_proc(struct ctl_table *ctl, int write, in devinet_conf_proc() argument 2020 int old_value = *(int *)ctl->data; in devinet_conf_proc() 2021 int ret = proc_dointvec(ctl, write, buffer, lenp, ppos); in devinet_conf_proc() 2022 int new_value = *(int *)ctl->data; in devinet_conf_proc() 2025 struct ipv4_devconf *cnf = ctl->extra1; in devinet_conf_proc() 2026 struct net *net = ctl->extra2; in devinet_conf_proc() 2027 int i = (int *)ctl->data - cnf->data; in devinet_conf_proc() 2056 static int devinet_sysctl_forward(struct ctl_table *ctl, int write, in devinet_sysctl_forward() argument 2060 int *valp = ctl->data; in devinet_sysctl_forward() 2063 int ret = proc_dointvec(ctl, write, buffer, lenp, ppos); in devinet_sysctl_forward() [all …]
|
/linux-4.1.27/drivers/media/usb/em28xx/ |
D | em28xx-cards.c | 2909 void em28xx_setup_xc3028(struct em28xx *dev, struct xc2028_ctrl *ctl) in em28xx_setup_xc3028() argument 2911 memset(ctl, 0, sizeof(*ctl)); in em28xx_setup_xc3028() 2913 ctl->fname = XC2028_DEFAULT_FIRMWARE; in em28xx_setup_xc3028() 2914 ctl->max_len = 64; in em28xx_setup_xc3028() 2915 ctl->mts = em28xx_boards[dev->model].mts_firmware; in em28xx_setup_xc3028() 2921 ctl->demod = XC3028_FE_ZARLINK456; in em28xx_setup_xc3028() 2926 ctl->demod = XC3028_FE_ZARLINK456; in em28xx_setup_xc3028() 2930 ctl->demod = XC3028_FE_DEFAULT; in em28xx_setup_xc3028() 2933 ctl->demod = XC3028_FE_DEFAULT; in em28xx_setup_xc3028() 2934 ctl->fname = XC3028L_DEFAULT_FIRMWARE; in em28xx_setup_xc3028() [all …]
|
/linux-4.1.27/Documentation/video4linux/ |
D | si4713.txt | 43 Here is an output from v4l2-ctl util: 44 / # v4l2-ctl -d /dev/radio0 --all -L 171 Testing is usually done with v4l2-ctl utility for managing FM tuner cards. 175 # v4l2-ctl -d /dev/radio0 --set-ctrl=rds_ps_name="Dummy"
|
/linux-4.1.27/drivers/media/platform/blackfin/ |
D | ppi.c | 154 bfin_write32(®->ctl, ppi->ppi_control); in ppi_start() 187 bfin_write32(®->ctl, ppi->ppi_control); in ppi_stop() 275 bfin_write32(®->ctl, ppi->ppi_control); in ppi_set_params()
|
/linux-4.1.27/drivers/video/fbdev/matrox/ |
D | matroxfb_maven.c | 224 const struct matrox_pll_ctl* ctl, in matroxfb_PLL_mavenclock() argument 229 unsigned int fxtal = ctl->ref_freq; in matroxfb_PLL_mavenclock() 230 unsigned int fmin = pll->vco_freq_min / ctl->den; in matroxfb_PLL_mavenclock() 240 fmax = pll->vco_freq_max / ctl->den; in matroxfb_PLL_mavenclock() 294 return fxtal * (*feed) / (*in) * ctl->den; in matroxfb_PLL_mavenclock() 297 static int matroxfb_mavenclock(const struct matrox_pll_ctl *ctl, in matroxfb_mavenclock() argument 304 fvco = matroxfb_PLL_mavenclock(&maven1000_pll, ctl, htotal, vtotal, in, feed, &p, htotal2); in matroxfb_mavenclock()
|
/linux-4.1.27/arch/blackfin/include/asm/ |
D | bfin5xx_spi.h | 54 __BFP(ctl);
|
/linux-4.1.27/arch/mips/include/asm/mach-rc32434/ |
D | rb.h | 64 u32 ctl; member
|
/linux-4.1.27/arch/x86/kernel/cpu/mcheck/ |
D | mce-internal.h | 21 u64 ctl; /* subevents to enable */ member
|
/linux-4.1.27/sound/pci/ |
D | cmipci.c | 1146 struct snd_kcontrol *ctl = cm->mixer_res_ctl[i]; in save_mixer_state() local 1147 if (ctl) { in save_mixer_state() 1150 ctl->get(ctl, val); in save_mixer_state() 1155 ctl->put(ctl, val); /* toggle */ in save_mixer_state() 1158 ctl->vd[0].access |= SNDRV_CTL_ELEM_ACCESS_INACTIVE; in save_mixer_state() 1159 snd_ctl_notify(cm->card, event, &ctl->id); in save_mixer_state() 1182 struct snd_kcontrol *ctl = cm->mixer_res_ctl[i]; in restore_mixer_state() local 1183 if (ctl) { in restore_mixer_state() 1187 ctl->vd[0].access &= ~SNDRV_CTL_ELEM_ACCESS_INACTIVE; in restore_mixer_state() 1188 ctl->get(ctl, val); in restore_mixer_state() [all …]
|
/linux-4.1.27/drivers/block/ |
D | hd.c | 122 unsigned int head, sect, cyl, wpcom, lzone, ctl; member 189 hd_info[hdind].ctl = (ints[2] > 8 ? 8 : 0); in hd_setup() 325 outb_p(disk->ctl, HD_CMD); in hd_out() 358 outb_p(hd_info[0].ctl & 0x0f, HD_CMD); in reset_controller()
|
/linux-4.1.27/arch/sparc/include/asm/ |
D | sbi.h | 15 /* 0x0004 */ u32 ctl; /* Control */ member
|
/linux-4.1.27/drivers/net/ethernet/sis/ |
D | sis190.c | 365 static void __mdio_cmd(void __iomem *ioaddr, u32 ctl) in __mdio_cmd() argument 369 SIS_W32(GMIIControl, ctl); in __mdio_cmd() 943 u32 ctl; in sis190_phy_task() member 990 p->ctl |= SIS_R32(StationControl) & ~0x0f001c00; in sis190_phy_task() 998 p->ctl |= 0x03000000; in sis190_phy_task() 1001 SIS_W32(StationControl, p->ctl); in sis190_phy_task() 1678 u16 ctl; in sis190_init_rxfilter() local 1681 ctl = SIS_R16(RxMacControl); in sis190_init_rxfilter() 1687 SIS_W16(RxMacControl, ctl & ~0x0f00); in sis190_init_rxfilter() 1692 SIS_W16(RxMacControl, ctl); in sis190_init_rxfilter()
|
/linux-4.1.27/drivers/staging/wlan-ng/ |
D | p80211conv.c | 169 e_llc->ctl = 0x03; in skb_ether_to_p80211() 383 && (e_llc->ctl == 0x03) in skb_p80211_to_ether() 419 && (e_llc->ctl == 0x03)) { in skb_p80211_to_ether()
|
/linux-4.1.27/arch/mips/sgi-ip22/ |
D | ip28-berr.c | 325 u32 ctl = sgimc->dma_ctrl; in check_microtlb() local 326 if (ctl & 1) { in check_microtlb() 327 unsigned int pgsz = (ctl & 2) ? 14:12; /* 16k:4k */ in check_microtlb()
|
/linux-4.1.27/drivers/usb/host/ |
D | sl811-hcd.c | 589 u8 ctl; in checkdone() local 593 ctl = sl811_read(sl811, SL811_EP_A(SL11H_HOSTCTLREG)); in checkdone() 594 if (ctl & SL11H_HCTLMASK_ARM) in checkdone() 598 (ctl & SL11H_HCTLMASK_ARM) ? "timeout" : "lost", in checkdone() 599 ctl, in checkdone() 605 ctl = sl811_read(sl811, SL811_EP_B(SL11H_HOSTCTLREG)); in checkdone() 606 if (ctl & SL11H_HCTLMASK_ARM) in checkdone() 610 (ctl & SL11H_HCTLMASK_ARM) ? "timeout" : "lost", in checkdone() 611 ctl, in checkdone()
|
/linux-4.1.27/arch/arm/mach-ixp4xx/ |
D | ixp4xx_npe.c | 292 u32 val, ctl, exec_count, ctx_reg2; in npe_reset() local 295 ctl = (__raw_readl(&npe->regs->messaging_control) | 0x3F000000) & in npe_reset() 299 __raw_writel(ctl & 0x3F00FFFF, &npe->regs->messaging_control); in npe_reset() 407 __raw_writel(ctl, &npe->regs->messaging_control); in npe_reset()
|
/linux-4.1.27/drivers/net/irda/ |
D | donauboe.c | 964 int mtt, len, ctl; in toshoboe_hard_xmit() local 1049 ctl = OBOE_CTL_TX_HW_OWNS | OBOE_CTL_TX_RTCENTX; in toshoboe_hard_xmit() 1052 ctl |= OBOE_CTL_TX_BAD_CRC | OBOE_CTL_TX_SIP ; in toshoboe_hard_xmit() 1057 ctl |= OBOE_CTL_TX_BAD_CRC; in toshoboe_hard_xmit() 1060 self->ring->tx[self->txs].control = ctl; in toshoboe_hard_xmit() 1110 ctl = OBOE_CTL_TX_HW_OWNS | OBOE_CTL_TX_RTCENTX; in toshoboe_hard_xmit() 1113 ctl |= OBOE_CTL_TX_SIP ; in toshoboe_hard_xmit() 1115 self->ring->tx[self->txs].control = ctl; in toshoboe_hard_xmit()
|
/linux-4.1.27/drivers/mtd/nand/ |
D | cs553x_nand.c | 146 unsigned char ctl = (ctrl & ~NAND_CTRL_CHANGE ) ^ 0x01; in cs553x_hwcontrol() local 147 writeb(ctl, mmio_base + MM_NAND_CTL); in cs553x_hwcontrol()
|