/linux/drivers/gpu/drm/msm/disp/mdp5/ |
A D | mdp5_ctl.c | 164 ctl_write(ctl, REG_MDP5_CTL_OP(ctl->id), ctl_op); in set_ctl_op() 212 ctl_write(ctl, REG_MDP5_CTL_START(ctl->id), 1); in send_start_signal() 260 ctl->id); in mdp5_ctl_set_cursor() 340 ctl_write(ctl, REG_MDP5_CTL_LAYER_REG(ctl->id, i), 0x0); in mdp5_ctl_reset_blend_regs() 341 ctl_write(ctl, REG_MDP5_CTL_LAYER_EXT_REG(ctl->id, i), 0x0); in mdp5_ctl_reset_blend_regs() 499 *flush_id = min_t(u32, ctl->id, ctl->pair->id); in fix_for_single_flush() 582 return ctl_read(ctl, REG_MDP5_CTL_FLUSH(ctl->id)); in mdp5_ctl_get_commit_status() 587 return WARN_ON(!ctl) ? -EINVAL : ctl->id; in mdp5_ctl_get_ctl_id() 667 return ctl; in mdp5_ctlm_request() 679 ctl_write(ctl, REG_MDP5_CTL_OP(ctl->id), 0); in mdp5_ctlm_hw_reset() [all …]
|
/linux/drivers/thunderbolt/ |
A D | ctl.c | 134 req->ctl = ctl; in tb_cfg_request_enqueue() 143 struct tb_ctl *ctl = req->ctl; in tb_cfg_request_dequeue() local 234 struct tb_ctl *ctl = response->ctl; in decode_error() local 333 pkg->ctl = ctl; in tb_ctl_pkg_alloc() 630 struct tb_ctl *ctl = kzalloc(sizeof(*ctl), GFP_KERNEL); in tb_ctl_alloc() local 631 if (!ctl) in tb_ctl_alloc() 655 ctl->rx_packets[i] = tb_ctl_pkg_alloc(ctl); in tb_ctl_alloc() 662 return ctl; in tb_ctl_alloc() 680 if (!ctl) in tb_ctl_free() 683 if (ctl->rx) in tb_ctl_free() [all …]
|
A D | ctl.h | 26 void tb_ctl_start(struct tb_ctl *ctl); 27 void tb_ctl_stop(struct tb_ctl *ctl); 28 void tb_ctl_free(struct tb_ctl *ctl); 47 struct tb_ctl *ctl; member 78 struct tb_ctl *ctl; member 103 int tb_cfg_request(struct tb_ctl *ctl, struct tb_cfg_request *req, 106 struct tb_cfg_result tb_cfg_request_sync(struct tb_ctl *ctl, 126 struct tb_cfg_result tb_cfg_reset(struct tb_ctl *ctl, u64 route); 127 struct tb_cfg_result tb_cfg_read_raw(struct tb_ctl *ctl, void *buffer, 135 int tb_cfg_read(struct tb_ctl *ctl, void *buffer, u64 route, u32 port, [all …]
|
A D | eeprom.c | 44 struct tb_eeprom_ctl ctl; in tb_eeprom_active() local 49 ctl.access_high = 1; in tb_eeprom_active() 53 ctl.access_low = 0; in tb_eeprom_active() 56 ctl.access_low = 1; in tb_eeprom_active() 60 ctl.access_high = 0; in tb_eeprom_active() 80 ctl->clock = 1; in tb_eeprom_transfer() 89 ctl->clock = 0; in tb_eeprom_transfer() 98 struct tb_eeprom_ctl ctl; in tb_eeprom_out() local 104 ctl.data_out = val & 0x80; in tb_eeprom_out() 118 struct tb_eeprom_ctl ctl; in tb_eeprom_in() local [all …]
|
/linux/drivers/hwmon/ |
A D | axi-fan-control.c | 147 return DIV_ROUND_CLOSEST(60 * ctl->clk_rate, ctl->ppr * tach); in axi_fan_control_get_fan_rpm() 177 *val = ctl->fan_fault; in axi_fan_control_read_fan() 179 ctl->fan_fault = 0; in axi_fan_control_read_fan() 360 ctl->fan_fault = 1; in axi_fan_control_irq_handler() 380 if (ctl->ppr != 1 && ctl->ppr != 2 && ctl->ppr != 4) in axi_fan_control_init() 472 ctl = devm_kzalloc(&pdev->dev, sizeof(*ctl), GFP_KERNEL); in axi_fan_control_probe() 473 if (!ctl) in axi_fan_control_probe() 495 if (!ctl->clk_rate) in axi_fan_control_probe() 512 if (ctl->irq < 0) in axi_fan_control_probe() 513 return ctl->irq; in axi_fan_control_probe() [all …]
|
/linux/sound/pci/ctxfi/ |
A D | cthw20k1.c | 181 ctl->dirty.bf.ctl = 1; in src_set_state() 190 ctl->dirty.bf.ctl = 1; in src_set_bm() 199 ctl->dirty.bf.ctl = 1; in src_set_rsr() 208 ctl->dirty.bf.ctl = 1; in src_set_sf() 217 ctl->dirty.bf.ctl = 1; in src_set_wr() 226 ctl->dirty.bf.ctl = 1; in src_set_pm() 235 ctl->dirty.bf.ctl = 1; in src_set_rom() 244 ctl->dirty.bf.ctl = 1; in src_set_vo() 253 ctl->dirty.bf.ctl = 1; in src_set_st() 262 ctl->dirty.bf.ctl = 1; in src_set_ie() [all …]
|
A D | cthw20k2.c | 181 ctl->dirty.bf.ctl = 1; in src_set_state() 190 ctl->dirty.bf.ctl = 1; in src_set_bm() 199 ctl->dirty.bf.ctl = 1; in src_set_rsr() 208 ctl->dirty.bf.ctl = 1; in src_set_sf() 217 ctl->dirty.bf.ctl = 1; in src_set_wr() 226 ctl->dirty.bf.ctl = 1; in src_set_pm() 235 ctl->dirty.bf.ctl = 1; in src_set_rom() 244 ctl->dirty.bf.ctl = 1; in src_set_vo() 253 ctl->dirty.bf.ctl = 1; in src_set_st() 262 ctl->dirty.bf.ctl = 1; in src_set_ie() [all …]
|
/linux/drivers/irqchip/ |
A D | irq-meson-gpio.c | 226 ctl->params->ops.gpio_irq_sel_pin(ctl, idx, hwirq); in meson_gpio_irq_request_channel() 267 params = ctl->params; in meson_gpio_irq_type_setup() 448 ctl->params = match->data; in meson_gpio_irq_parse_dt() 452 ctl->channel_irqs, in meson_gpio_irq_parse_dt() 460 ctl->params->ops.gpio_irq_init(ctl); in meson_gpio_irq_parse_dt() 482 ctl = kzalloc(sizeof(*ctl), GFP_KERNEL); in meson_gpio_irq_of_init() 483 if (!ctl) in meson_gpio_irq_of_init() 489 if (!ctl->base) { in meson_gpio_irq_of_init() 502 ctl); in meson_gpio_irq_of_init() 515 iounmap(ctl->base); in meson_gpio_irq_of_init() [all …]
|
/linux/sound/pci/ice1712/ |
A D | wm8766.c | 215 val1 = wm->regs[wm->ctl[n].reg1] & wm->ctl[n].mask1; in snd_wm8766_ctl_get() 218 val2 = wm->regs[wm->ctl[n].reg2] & wm->ctl[n].mask2; in snd_wm8766_ctl_get() 225 val1 = wm->ctl[n].max - (val1 - wm->ctl[n].min); in snd_wm8766_ctl_get() 227 val2 = wm->ctl[n].max - (val2 - wm->ctl[n].min); in snd_wm8766_ctl_get() 247 regval1 = wm->ctl[n].max - (regval1 - wm->ctl[n].min); in snd_wm8766_ctl_put() 253 val = wm->regs[wm->ctl[n].reg1] & ~wm->ctl[n].mask1; in snd_wm8766_ctl_put() 257 wm->ctl[n].reg1 == wm->ctl[n].reg2) { in snd_wm8766_ctl_put() 264 wm->ctl[n].reg1 != wm->ctl[n].reg2) { in snd_wm8766_ctl_put() 265 val = wm->regs[wm->ctl[n].reg2] & ~wm->ctl[n].mask2; in snd_wm8766_ctl_put() 313 if (!ctl) in snd_wm8766_add_control() [all …]
|
A D | wm8776.c | 489 val1 = wm->regs[wm->ctl[n].reg1] & wm->ctl[n].mask1; in snd_wm8776_ctl_get() 492 val2 = wm->regs[wm->ctl[n].reg2] & wm->ctl[n].mask2; in snd_wm8776_ctl_get() 499 val1 = wm->ctl[n].max - (val1 - wm->ctl[n].min); in snd_wm8776_ctl_get() 501 val2 = wm->ctl[n].max - (val2 - wm->ctl[n].min); in snd_wm8776_ctl_get() 521 regval1 = wm->ctl[n].max - (regval1 - wm->ctl[n].min); in snd_wm8776_ctl_put() 522 regval2 = wm->ctl[n].max - (regval2 - wm->ctl[n].min); in snd_wm8776_ctl_put() 527 val = wm->regs[wm->ctl[n].reg1] & ~wm->ctl[n].mask1; in snd_wm8776_ctl_put() 531 wm->ctl[n].reg1 == wm->ctl[n].reg2) { in snd_wm8776_ctl_put() 538 wm->ctl[n].reg1 != wm->ctl[n].reg2) { in snd_wm8776_ctl_put() 539 val = wm->regs[wm->ctl[n].reg2] & ~wm->ctl[n].mask2; in snd_wm8776_ctl_put() [all …]
|
A D | psc724.c | 308 struct snd_kcontrol *ctl; in psc724_add_controls() local 314 spec->wm8776.ctl[WM8776_CTL_DAC_ZC_SW].name = front_zc; in psc724_add_controls() 315 spec->wm8776.ctl[WM8776_CTL_AUX_SW].name = NULL; in psc724_add_controls() 327 spec->wm8766.ctl[WM8766_CTL_CH3_VOL].name = NULL; in psc724_add_controls() 328 spec->wm8766.ctl[WM8766_CTL_CH1_SW].name = rear_switch; in psc724_add_controls() 330 spec->wm8766.ctl[WM8766_CTL_CH3_SW].name = NULL; in psc724_add_controls() 333 spec->wm8766.ctl[WM8766_CTL_PHASE3_SW].name = NULL; in psc724_add_controls() 336 spec->wm8766.ctl[WM8766_CTL_DEEMPH3_SW].name = NULL; in psc724_add_controls() 350 ctl = snd_ctl_new1(&cont, ice); in psc724_add_controls() 351 if (!ctl) in psc724_add_controls() [all …]
|
/linux/fs/btrfs/ |
A D | free-space-cache.c | 692 bitmap_bytes = ctl->total_bitmaps * ctl->unit; in recalculate_thresholds() 1894 entry = tree_search_offset(ctl, offset_to_bitmap(ctl, *offset), 0, 1); in find_free_space() 2116 if (!forced && ctl->free_extents < ctl->extents_thresh) { in use_bitmap() 2125 if (ctl->free_extents * 3 <= ctl->extents_thresh) in use_bitmap() 2164 if (!ctl->op->use_bitmap(ctl, info)) in insert_into_bitmap() 2210 bitmap_info = tree_search_offset(ctl, offset_to_bitmap(ctl, offset), in insert_into_bitmap() 2684 info = tree_search_offset(ctl, offset_to_bitmap(ctl, offset), in btrfs_remove_free_space() 2896 if (ctl->private) in __btrfs_remove_free_space_cache() 3902 reset_trimming_bitmap(ctl, offset_to_bitmap(ctl, end)); in btrfs_trim_block_group() 4059 bitmap_info = tree_search_offset(ctl, offset_to_bitmap(ctl, offset), in test_add_free_space_entry() [all …]
|
/linux/sound/pci/oxygen/ |
A D | oxygen_mixer.c | 19 struct oxygen *chip = ctl->private_data; in dac_volume_info() 31 struct oxygen *chip = ctl->private_data; in dac_volume_get() 44 struct oxygen *chip = ctl->private_data; in dac_volume_put() 64 struct oxygen *chip = ctl->private_data; in dac_mute_get() 432 u32 bit = ctl->private_value; in spdif_bit_switch_get() 443 u32 bit = ctl->private_value; in spdif_bit_switch_put() 474 u8 bit = ctl->private_value; in monitor_get() 486 u8 bit = ctl->private_value; in monitor_put() 1045 struct snd_kcontrol *ctl; in add_controls() local 1072 if (!ctl) in add_controls() [all …]
|
A D | xonar_wm87x6.c | 622 if (!(ctl->private_value & mode)) in wm8776_field_set_from_ctl() 654 ctl->private_value = (ctl->private_value & ~0xf) | value; in wm8776_field_set() 655 wm8776_field_set_from_ctl(ctl); in wm8776_field_set() 877 if (ctl->private_value & mode) in activate_control() 1161 struct snd_kcontrol *ctl; in add_lc_controls() local 1167 if (!ctl) in add_lc_controls() 1172 data->lc_controls[i] = ctl; in add_lc_controls() 1181 struct snd_kcontrol *ctl; in xonar_ds_mixer_init() local 1186 if (!ctl) in xonar_ds_mixer_init() 1205 struct snd_kcontrol *ctl; in xonar_hdav_slim_mixer_init() local [all …]
|
A D | xonar_dg_mixer.c | 62 struct oxygen *chip = ctl->private_data; in output_select_get() 74 struct oxygen *chip = ctl->private_data; in output_select_put() 107 struct oxygen *chip = ctl->private_data; in hp_stereo_volume_get() 123 struct oxygen *chip = ctl->private_data; in hp_stereo_volume_put() 153 struct oxygen *chip = ctl->private_data; in hp_mute_get() 166 struct oxygen *chip = ctl->private_data; in hp_mute_put() 211 struct oxygen *chip = ctl->private_data; in input_vol_get() 213 unsigned int idx = ctl->private_value; in input_vol_get() 225 struct oxygen *chip = ctl->private_data; in input_vol_put() 227 unsigned int idx = ctl->private_value; in input_vol_put() [all …]
|
/linux/drivers/misc/ |
A D | vmw_balloon.c | 701 ctl->n_pages = i; in vmballoon_alloc_page_list() 872 batch_status = vmballoon_lock_op(b, ctl->n_pages, ctl->page_size, in vmballoon_lock() 873 ctl->op); in vmballoon_lock() 902 ctl->n_pages--; in vmballoon_lock() 1144 vmballoon_enqueue_page_list(b, &ctl.pages, &ctl.n_pages, in vmballoon_inflate() 1161 ctl.page_size--; in vmballoon_inflate() 1175 vmballoon_release_page_list(&ctl.prealloc_pages, NULL, ctl.page_size); in vmballoon_inflate() 1237 vmballoon_dequeue_page_list(b, &ctl.pages, &ctl.n_pages, in vmballoon_deflate() 1270 ctl.page_size, ctl.n_pages); in vmballoon_deflate() 1273 vmballoon_release_page_list(&ctl.pages, &ctl.n_pages, in vmballoon_deflate() [all …]
|
/linux/drivers/crypto/caam/ |
A D | debugfs.c | 40 debugfs_create_file("qi_congested", 0444, ctrlpriv->ctl, in caam_debugfs_qi_init() 56 ctrlpriv->ctl = debugfs_create_dir("ctl", root); in caam_debugfs_init() 58 debugfs_create_file("rq_dequeued", 0444, ctrlpriv->ctl, in caam_debugfs_init() 60 debugfs_create_file("ob_rq_encrypted", 0444, ctrlpriv->ctl, in caam_debugfs_init() 62 debugfs_create_file("ib_rq_decrypted", 0444, ctrlpriv->ctl, in caam_debugfs_init() 74 debugfs_create_file("fault_addr", 0444, ctrlpriv->ctl, in caam_debugfs_init() 76 debugfs_create_file("fault_detail", 0444, ctrlpriv->ctl, in caam_debugfs_init() 78 debugfs_create_file("fault_status", 0444, ctrlpriv->ctl, in caam_debugfs_init() 84 debugfs_create_blob("kek", 0444, ctrlpriv->ctl, in caam_debugfs_init() 89 debugfs_create_blob("tkek", 0444, ctrlpriv->ctl, in caam_debugfs_init() [all …]
|
/linux/sound/soc/kirkwood/ |
A D | kirkwood-i2s.c | 222 ctl |= KIRKWOOD_PLAYCTL_I2S_MUTE; in kirkwood_i2s_play_mute() 224 ctl |= KIRKWOOD_PLAYCTL_SPDIF_MUTE; in kirkwood_i2s_play_mute() 225 return ctl; in kirkwood_i2s_play_mute() 233 uint32_t ctl, value; in kirkwood_i2s_play_trigger() local 244 value = ctl; in kirkwood_i2s_play_trigger() 253 ctl); in kirkwood_i2s_play_trigger() 259 ctl = priv->ctl_play; in kirkwood_i2s_play_trigger() 264 ctl = kirkwood_i2s_play_mute(ctl); in kirkwood_i2s_play_trigger() 305 ctl = kirkwood_i2s_play_mute(ctl); in kirkwood_i2s_play_trigger() 320 uint32_t ctl, value; in kirkwood_i2s_rec_trigger() local [all …]
|
/linux/drivers/misc/habanalabs/include/gaudi/ |
A D | gaudi_packets.h | 62 __le32 ctl; member 67 __le32 ctl; member 72 __le32 ctl; member 77 __le32 ctl; member 86 __le32 ctl; member 119 __le32 ctl; member 124 __le32 ctl; member 142 __le32 ctl; member 159 __le32 ctl; member 166 __le32 ctl; member [all …]
|
/linux/sound/soc/samsung/ |
A D | pcm.c | 157 u32 ctl, clkctl; in s3c_pcm_snd_txctrl() local 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() 171 ctl &= ~S3C_PCM_CTL_TXDMA_EN; in s3c_pcm_snd_txctrl() 175 ctl &= ~S3C_PCM_CTL_ENABLE; in s3c_pcm_snd_txctrl() 188 u32 ctl, clkctl; in s3c_pcm_snd_rxctrl() local 196 ctl |= S3C_PCM_CTL_RXDMA_EN; in s3c_pcm_snd_rxctrl() 198 ctl |= S3C_PCM_CTL_ENABLE; in s3c_pcm_snd_rxctrl() 206 ctl &= ~S3C_PCM_CTL_ENABLE; in s3c_pcm_snd_rxctrl() [all …]
|
/linux/drivers/net/ethernet/chelsio/cxgb/ |
A D | mv88e1xxx.c | 50 u32 ctl; in mv88e1xxx_reset() local 57 ctl &= BMCR_RESET; in mv88e1xxx_reset() 58 if (ctl) in mv88e1xxx_reset() 62 return ctl ? -1 : 0; in mv88e1xxx_reset() 127 u32 ctl; in mv88e1xxx_set_speed_duplex() local 133 ctl |= BMCR_SPEED100; in mv88e1xxx_set_speed_duplex() 140 ctl |= BMCR_FULLDPLX; in mv88e1xxx_set_speed_duplex() 143 ctl |= BMCR_ANENABLE; in mv88e1xxx_set_speed_duplex() 163 u32 ctl; in mv88e1xxx_autoneg_enable() local 176 u32 ctl; in mv88e1xxx_autoneg_disable() local [all …]
|
/linux/drivers/mmc/host/ |
A D | sdhci-milbeaut.c | 89 u32 ctl; in sdhci_milbeaut_reset() local 119 ctl |= F_SDH30_CMD_DAT_DELAY; in sdhci_milbeaut_reset() 179 u32 ctl; in sdhci_milbeaut_vendor_init() local 181 ctl = sdhci_readl(host, F_SDH30_IO_CONTROL2); in sdhci_milbeaut_vendor_init() 182 ctl |= F_SDH30_CRES_O_DN; in sdhci_milbeaut_vendor_init() 184 ctl &= ~F_SDH30_MSEL_O_1_8; in sdhci_milbeaut_vendor_init() 186 ctl &= ~F_SDH30_CRES_O_DN; in sdhci_milbeaut_vendor_init() 189 ctl = sdhci_readw(host, F_SDH30_AHB_CONFIG); in sdhci_milbeaut_vendor_init() 193 sdhci_writew(host, ctl, F_SDH30_AHB_CONFIG); in sdhci_milbeaut_vendor_init() 197 ctl |= F_SDH30_CMD_DAT_DELAY; in sdhci_milbeaut_vendor_init() [all …]
|
/linux/drivers/net/wireless/broadcom/b43/ |
A D | pio.c | 318 u16 ctl, in tx_write_2byte_queue() argument 346 return ctl; in tx_write_2byte_queue() 355 u16 ctl; in pio_tx_frame_2byte_queue() local 362 ctl = tx_write_2byte_queue(q, ctl, hdr, hdrlen); in pio_tx_frame_2byte_queue() 364 ctl = tx_write_2byte_queue(q, ctl, frame, frame_len); in pio_tx_frame_2byte_queue() 371 u32 ctl, in tx_write_4byte_queue() argument 416 return ctl; in tx_write_4byte_queue() 425 u32 ctl; in pio_tx_frame_4byte_queue() local 432 ctl = tx_write_4byte_queue(q, ctl, hdr, hdrlen); in pio_tx_frame_4byte_queue() 623 u32 ctl; in pio_rx_frame() local [all …]
|
/linux/drivers/misc/habanalabs/include/goya/ |
A D | goya_packets.h | 70 __le32 ctl; member 75 __le32 ctl; member 83 __le32 ctl; member 88 __le32 ctl; member 94 __le32 ctl; member 100 __le32 ctl; member 105 __le32 ctl; member 111 __le32 ctl; member 131 __le32 ctl; member 138 __le32 ctl; member
|
/linux/drivers/firmware/cirrus/ |
A D | cs_dsp.c | 769 if (ctl->enabled && ctl->dsp->running) in cs_dsp_coeff_write_ctrl() 821 if (ctl->enabled && ctl->dsp->running) in cs_dsp_coeff_read_ctrl() 826 if (!ctl->flags && ctl->enabled && ctl->dsp->running) in cs_dsp_coeff_read_ctrl() 827 ret = cs_dsp_coeff_read_ctrl_raw(ctl, ctl->cache, ctl->len); in cs_dsp_coeff_read_ctrl() 843 if (!ctl->enabled || ctl->set) in cs_dsp_coeff_init_control_caches() 854 ret = cs_dsp_coeff_read_ctrl_raw(ctl, ctl->cache, ctl->len); in cs_dsp_coeff_init_control_caches() 872 ret = cs_dsp_coeff_write_ctrl_raw(ctl, ctl->cache, in cs_dsp_coeff_sync_controls() 907 kfree(ctl); in cs_dsp_free_ctl_blk() 932 ctl = kzalloc(sizeof(*ctl), GFP_KERNEL); in cs_dsp_create_control() 933 if (!ctl) in cs_dsp_create_control() [all …]
|