| /u-boot/drivers/mtd/nand/raw/brcmnand/ |
| A D | brcmnand.c | 775 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_set_cmd_addr() local 812 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_wr_corr_thresh() local 902 struct brcmnand_controller *ctrl = host->ctrl; in brcmnand_set_ecc_enabled() local 1356 if (ctrl->soc->ctlrdy_ack(ctrl->soc)) in brcmnand_irq() 2594 ctrl->soc->ctlrdy_ack(ctrl->soc); in brcmnand_resume() 2678 soc->ctrl = ctrl; in brcmnand_probe() 2731 ctrl->nand_fc = ctrl->nand_base + in brcmnand_probe() 2743 ctrl->nand_fc = ctrl->nand_base + in brcmnand_probe() 2831 ctrl->soc->ctlrdy_ack(ctrl->soc); in brcmnand_probe() 2857 host->ctrl = ctrl; in brcmnand_probe() [all …]
|
| /u-boot/drivers/usb/host/ |
| A D | xhci-mem.c | 116 xhci_dma_unmap(ctrl, ctrl->scratchpad->sp_array[0], in xhci_scratchpad_free() 118 xhci_dma_unmap(ctrl, ctrl->dcbaa->dev_context_ptrs[0], in xhci_scratchpad_free() 188 xhci_ring_free(ctrl, ctrl->event_ring); in xhci_cleanup() 189 xhci_ring_free(ctrl, ctrl->cmd_ring); in xhci_cleanup() 192 xhci_dma_unmap(ctrl, ctrl->erst.erst_dma_addr, in xhci_cleanup() 195 xhci_dma_unmap(ctrl, ctrl->dcbaa->dma, in xhci_cleanup() 405 buf = memalign(ctrl->page_size, num_sp * ctrl->page_size); in xhci_scratchpad_alloc() 544 ctrl->dcbaa->dma = xhci_dma_map(ctrl, ctrl->dcbaa, in xhci_mem_init() 550 ctrl->cmd_ring = xhci_ring_alloc(ctrl, 1, true); in xhci_mem_init() 571 ctrl->ir_set = &ctrl->run_regs->ir_set[0]; in xhci_mem_init() [all …]
|
| A D | xhci-ring.c | 59 if (ring == ctrl->event_ring) in last_trb() 80 if (ring == ctrl->event_ring) in last_trb_on_last_seg() 295 BUG_ON(prepare_ring(ctrl, ctrl->cmd_ring, EP_STATE_RUNNING)); in xhci_queue_command() 310 queue_trb(ctrl, ctrl->cmd_ring, false, fields); in xhci_queue_command() 351 if (ctrl->hci_version < 0x100 && !(ctrl->quirks & XHCI_MTK_HOST)) in xhci_td_remainder() 360 if ((ctrl->quirks & XHCI_MTK_HOST) && (ctrl->hci_version < 0x100)) in xhci_td_remainder() 417 inc_deq(ctrl, ctrl->event_ring); in xhci_acknowledge_event() 465 if (!event_ready(ctrl)) in xhci_wait_for_event() 516 xhci_acknowledge_event(ctrl); in reset_ep() 525 xhci_acknowledge_event(ctrl); in reset_ep() [all …]
|
| A D | ehci-hcd.c | 195 ctrl->ops.set_usb_mode(ctrl); in ehci_reset() 747 status_reg = ctrl->ops.get_portsc_register(ctrl, port - 1); in ehci_submit_root() 842 switch (ctrl->ops.get_port_speed(ctrl, reg)) { in ehci_submit_root() 908 ctrl->ops.powerup_fixup(ctrl, status_reg, ®); in ehci_submit_root() 1018 ctrl->ops = *ops; in ehci_setup_ops() 1174 rc = ehci_hcd_init(index, init, &ctrl->hccr, &ctrl->hcor); in usb_lowlevel_init() 1177 if (!ctrl->hccr || !ctrl->hcor) in usb_lowlevel_init() 1187 rc = ehci_hcd_init(index, init, &ctrl->hccr, &ctrl->hcor); in usb_lowlevel_init() 1714 ctrl->priv = ctrl; in ehci_register() 1725 ret = ctrl->ops.init_after_reset(ctrl); in ehci_register() [all …]
|
| A D | xhci.c | 780 xhci_endpoint_copy(ctrl, ctrl->devs[slot_id]->in_ctx, in xhci_check_maxpacket() 1192 hccr = ctrl->hccr; in xhci_lowlevel_init() 1193 hcor = ctrl->hcor; in xhci_lowlevel_init() 1234 ctrl->hci_version = reg; in xhci_lowlevel_init() 1243 xhci_reset(ctrl->hcor); in xhci_lowlevel_stop() 1397 ctrl, hccr, hcor); in xhci_register() 1399 ctrl->dev = dev; in xhci_register() 1413 ctrl->hccr = hccr; in xhci_register() 1414 ctrl->hcor = hcor; in xhci_register() 1421 free(ctrl); in xhci_register() [all …]
|
| /u-boot/arch/arm/mach-omap2/omap5/ |
| A D | hwinit.c | 99 (*ctrl)->control_emif1_sdram_config_ext); in io_settings_ddr3() 102 (*ctrl)->control_emif2_sdram_config_ext); in io_settings_ddr3() 109 (*ctrl)->control_port_emif1_sdram_config); in io_settings_ddr3() 114 (*ctrl)->control_port_emif2_sdram_config); in io_settings_ddr3() 117 (*ctrl)->control_ddr_control_ext_0); in io_settings_ddr3() 493 value = readl((*ctrl)->control_pbias); in vmmc_pbias_config() 495 writel(value, (*ctrl)->control_pbias); in vmmc_pbias_config() 498 writel(value, (*ctrl)->control_pbias); in vmmc_pbias_config() 502 value = readl((*ctrl)->control_pbias); in vmmc_pbias_config() 504 writel(value, (*ctrl)->control_pbias); in vmmc_pbias_config() [all …]
|
| A D | dra7xx_iodelay.c | 23 clrsetbits_le32((*ctrl)->control_pbias, SDCARD_PWRDNZ, in isolate_io() 25 clrsetbits_le32((*ctrl)->control_pbias, SDCARD_BIAS_PWRDNZ, in isolate_io() 37 clrsetbits_le32((*ctrl)->ctrl_core_sma_sw_0, CTRL_ISOLATE_MASK, in isolate_io() 40 readl((*ctrl)->ctrl_core_sma_sw_0); in isolate_io() 184 ret = calibrate_iodelay((*ctrl)->iodelay_config_base); in __recalibrate_iodelay_start() 192 ret = update_delay_mechanism((*ctrl)->iodelay_config_base); in __recalibrate_iodelay_start() 208 if (readl((*ctrl)->ctrl_core_sma_sw_0) & CTRL_ISOLATE_MASK) in __recalibrate_iodelay_end() 212 writel(CFG_IODELAY_LOCK_KEY, (*ctrl)->iodelay_config_base + in __recalibrate_iodelay_end() 294 ret = calibrate_iodelay((*ctrl)->iodelay_config_base); in late_recalibrate_iodelay() 298 ret = update_delay_mechanism((*ctrl)->iodelay_config_base); in late_recalibrate_iodelay() [all …]
|
| /u-boot/drivers/ddr/microchip/ |
| A D | ddr2.c | 116 struct ddr2_ctrl_regs *ctrl; in ddr2_ctrl_init() local 118 ctrl = ioremap(PIC32_DDR2C_BASE, sizeof(*ctrl)); in ddr2_ctrl_init() 125 ddr_set_arbiter(ctrl, arb_params); in ddr2_ctrl_init() 141 &ctrl->refcfg); in ddr2_ctrl_init() 147 &ctrl->pwrcfg); in ddr2_ctrl_init() 191 &ctrl->dlycfg3); in ddr2_ctrl_init() 194 writel(0x0, &ctrl->odtcfg); in ddr2_ctrl_init() 195 writel(BIT(16), &ctrl->odtencfg); in ddr2_ctrl_init() 197 &ctrl->odtcfg); in ddr2_ctrl_init() 202 &ctrl->xfercfg); in ddr2_ctrl_init() [all …]
|
| /u-boot/arch/arm/mach-omap2/omap4/ |
| A D | hwinit.c | 54 writel(lpddr2io, (*ctrl)->control_lpddr2io1_0); in do_io_settings() 55 writel(lpddr2io, (*ctrl)->control_lpddr2io1_1); in do_io_settings() 58 (*ctrl)->control_lpddr2io1_2); in do_io_settings() 66 (*ctrl)->control_lpddr2io2_2); in do_io_settings() 78 (*ctrl)->control_ldosram_iva_voltage_ctrl); in do_io_settings() 81 (*ctrl)->control_ldosram_mpu_voltage_ctrl); in do_io_settings() 92 if (!readl((*ctrl)->control_efuse_1)) in do_io_settings() 181 value = readl((*ctrl)->control_pbiaslite); in vmmc_pbias_config() 183 writel(value, (*ctrl)->control_pbiaslite); in vmmc_pbias_config() 184 value = readl((*ctrl)->control_pbiaslite); in vmmc_pbias_config() [all …]
|
| /u-boot/drivers/mtd/nand/raw/ |
| A D | fsl_elbc_nand.c | 164 struct fsl_elbc_ctrl *ctrl = priv->ctrl; in set_addr() local 204 struct fsl_elbc_ctrl *ctrl = priv->ctrl; in fsl_elbc_run_command() local 255 struct fsl_elbc_ctrl *ctrl = priv->ctrl; in fsl_elbc_do_read() local 289 struct fsl_elbc_ctrl *ctrl = priv->ctrl; in fsl_elbc_cmdfunc() local 449 if (ctrl->oob || ctrl->column != 0 || in fsl_elbc_cmdfunc() 507 struct fsl_elbc_ctrl *ctrl = priv->ctrl; in fsl_elbc_write_buf() local 531 in_8(&ctrl->addr[ctrl->index] + len - 1); in fsl_elbc_write_buf() 544 struct fsl_elbc_ctrl *ctrl = priv->ctrl; in fsl_elbc_read_byte() local 547 if (ctrl->index < ctrl->read_bytes) in fsl_elbc_read_byte() 561 struct fsl_elbc_ctrl *ctrl = priv->ctrl; in fsl_elbc_read_buf() local [all …]
|
| A D | fsl_ifc_nand.c | 223 struct fsl_ifc_ctrl *ctrl = priv->ctrl; in set_addr() local 257 struct fsl_ifc_ctrl *ctrl = priv->ctrl; in fsl_ifc_run_command() local 332 struct fsl_ifc_ctrl *ctrl = priv->ctrl; in fsl_ifc_do_read() local 370 struct fsl_ifc_ctrl *ctrl = priv->ctrl; in fsl_ifc_cmdfunc() local 525 ctrl->index - ctrl->column); in fsl_ifc_cmdfunc() 576 struct fsl_ifc_ctrl *ctrl = priv->ctrl; in fsl_ifc_write_buf() local 604 struct fsl_ifc_ctrl *ctrl = priv->ctrl; in fsl_ifc_read_byte() local 611 if (ctrl->index < ctrl->read_bytes) { in fsl_ifc_read_byte() 628 struct fsl_ifc_ctrl *ctrl = priv->ctrl; in fsl_ifc_read_byte16() local 635 if (ctrl->index < ctrl->read_bytes) { in fsl_ifc_read_byte16() [all …]
|
| /u-boot/drivers/i2c/ |
| A D | i2c-microchip.c | 108 ctrl &= ~CTRL_SI; in mpfs_i2c_int_clear() 124 ctrl |= CTRL_ENS1; in mpfs_i2c_core_enable() 138 ctrl |= CTRL_STO; in mpfs_i2c_stop() 171 u8 clkval, ctrl; in mpfs_i2c_init() local 192 ctrl &= ~CLK_MASK; in mpfs_i2c_init() 198 ctrl |= clkval; in mpfs_i2c_init() 218 u8 ctrl; in mpfs_i2c_empty_rx() local 246 u8 ctrl; in mpfs_i2c_service_handler() local 343 u8 ctrl; in mpfs_i2c_check_service_change() local 376 u8 ctrl; in mpfs_i2c_xfer_msg() local [all …]
|
| /u-boot/drivers/pinctrl/rockchip/ |
| A D | pinctrl-rockchip-core.c | 25 struct rockchip_pin_ctrl *ctrl = priv->ctrl; in rockchip_verify_config() local 45 struct rockchip_pin_ctrl *ctrl = priv->ctrl; in rockchip_get_recalced_mux() local 69 struct rockchip_pin_ctrl *ctrl = priv->ctrl; in rockchip_get_mux_route() local 156 struct rockchip_pin_ctrl *ctrl = priv->ctrl; in rockchip_pinctrl_get_gpio_mux() local 200 struct rockchip_pin_ctrl *ctrl = priv->ctrl; in rockchip_set_mux() local 283 struct rockchip_pin_ctrl *ctrl = priv->ctrl; in rockchip_set_drive_perpin() local 329 struct rockchip_pin_ctrl *ctrl = priv->ctrl; in rockchip_set_pull() local 344 struct rockchip_pin_ctrl *ctrl = priv->ctrl; in rockchip_set_schmitt() local 426 struct rockchip_pin_ctrl *ctrl = priv->ctrl; in rockchip_pinctrl_set_state() local 609 return ctrl; in rockchip_pinctrl_get_soc_data() [all …]
|
| /u-boot/drivers/video/nexell/ |
| A D | s5pxx18_dp.c | 78 swap_rb = ctrl->swap_RB; in dp_control_setup() 79 yc_order = ctrl->yc_order; in dp_control_setup() 81 vclk_invert = ctrl->clk_inv_lv0 | ctrl->clk_inv_lv1; in dp_control_setup() 86 rgb_pvd = ctrl->d_rgb_pvd; in dp_control_setup() 92 de_cp2 = ctrl->d_de_cp2; in dp_control_setup() 96 ctrl->ev_start_offset != 0 || ctrl->ev_end_offset != 0) { in dp_control_setup() 98 v_veo = ctrl->vs_end_offset; in dp_control_setup() 100 e_veo = ctrl->ev_end_offset; in dp_control_setup() 130 6 : ctrl->clk_src_lv0); in dp_control_setup() 175 ctrl->clk_src_lv0, ctrl->clk_div_lv0, ctrl->clk_inv_lv0, in dp_control_setup() [all …]
|
| /u-boot/drivers/pwm/ |
| A D | rk_pwm.c | 63 u32 ctrl; in rk_pwm_set_config() local 67 ctrl = readl(priv->base + regs->ctrl); in rk_pwm_set_config() 73 ctrl |= PWM_LOCK; in rk_pwm_set_config() 74 writel(ctrl, priv->base + regs->ctrl); in rk_pwm_set_config() 97 writel(ctrl, priv->base + regs->ctrl); in rk_pwm_set_config() 108 u32 ctrl; in rk_pwm_set_enable() local 112 ctrl = readl(priv->base + regs->ctrl); in rk_pwm_set_enable() 120 writel(ctrl, priv->base + regs->ctrl); in rk_pwm_set_enable() 166 .ctrl = 0x0c, 180 .ctrl = 0x0c, [all …]
|
| /u-boot/drivers/video/ |
| A D | nexell_display.c | 91 ctrl->vs_start_offset = in nx_display_parse_dp_ctrl() 109 ctrl->clk_src_lv0, ctrl->clk_div_lv0, in nx_display_parse_dp_ctrl() 110 ctrl->clk_src_lv1, ctrl->clk_div_lv1); in nx_display_parse_dp_ctrl() 112 ctrl->out_format, ctrl->invert_field, in nx_display_parse_dp_ctrl() 113 ctrl->swap_RB, ctrl->yc_order); in nx_display_parse_dp_ctrl() 115 ctrl->delay_mask, ctrl->d_rgb_pvd, in nx_display_parse_dp_ctrl() 116 ctrl->d_hsync_cp1, ctrl->d_vsync_fram, ctrl->d_de_cp2); in nx_display_parse_dp_ctrl() 118 ctrl->vs_start_offset, ctrl->vs_end_offset, in nx_display_parse_dp_ctrl() 119 ctrl->ev_start_offset, ctrl->ev_end_offset); in nx_display_parse_dp_ctrl() 121 ctrl->vck_select, ctrl->clk_inv_lv0, ctrl->clk_delay_lv0, in nx_display_parse_dp_ctrl() [all …]
|
| /u-boot/drivers/clk/ti/ |
| A D | clk-k3-pll.c | 88 u32 ctrl; in ti_pll_clk_get_rate() local 121 u32 ctrl; in ti_pll_clk_set_rate() local 149 ctrl |= PLL_16FFT_CTRL_BYPASS_EN; in ti_pll_clk_set_rate() 173 ctrl |= PLL_16FFT_CTRL_DSM_EN; in ti_pll_clk_set_rate() 175 ctrl &= ~PLL_16FFT_CTRL_DSM_EN; in ti_pll_clk_set_rate() 189 ctrl &= ~PLL_16FFT_CTRL_BYPASS_EN; in ti_pll_clk_set_rate() 190 ctrl |= PLL_16FFT_CTRL_PLL_EN; in ti_pll_clk_set_rate() 217 u32 ctrl; in ti_pll_clk_enable() local 221 ctrl |= PLL_16FFT_CTRL_PLL_EN; in ti_pll_clk_enable() 230 u32 ctrl; in ti_pll_clk_disable() local [all …]
|
| /u-boot/drivers/sound/ |
| A D | tegra_i2s.c | 30 clrsetbits_le32(®s->ctrl, I2S_CTRL_XFER_EN_TX, in tegra_i2s_transmit_enable() 38 u32 ctrl = readl(®s->ctrl); in i2s_tx_init() local 41 ctrl &= ~(I2S_CTRL_FRAME_FORMAT_MASK | I2S_CTRL_LRCK_MASK); in i2s_tx_init() 42 ctrl |= I2S_CTRL_FRAME_FORMAT_LRCK; in i2s_tx_init() 43 ctrl |= I2S_CTRL_LRCK_L_LOW; in i2s_tx_init() 46 ctrl &= ~(I2S_CTRL_XFER_EN_TX | I2S_CTRL_XFER_EN_RX); in i2s_tx_init() 49 ctrl |= I2S_CTRL_MASTER_ENABLE; in i2s_tx_init() 52 ctrl &= ~I2S_CTRL_BIT_SIZE_MASK; in i2s_tx_init() 53 ctrl |= audio_bits << I2S_CTRL_BIT_SIZE_SHIFT; in i2s_tx_init() 54 writel(ctrl, ®s->ctrl); in i2s_tx_init()
|
| /u-boot/arch/arm/mach-orion5x/ |
| A D | cpu.c | 97 writel(0, &winregs[0].ctrl); in orion5x_config_adr_windows() 103 ORION5X_WIN_ENABLE), &winregs[0].ctrl); in orion5x_config_adr_windows() 105 writel(0, &winregs[1].ctrl); in orion5x_config_adr_windows() 111 ORION5X_WIN_ENABLE), &winregs[1].ctrl); in orion5x_config_adr_windows() 113 writel(0, &winregs[2].ctrl); in orion5x_config_adr_windows() 119 writel(0, &winregs[3].ctrl); in orion5x_config_adr_windows() 125 writel(0, &winregs[4].ctrl); in orion5x_config_adr_windows() 131 writel(0, &winregs[5].ctrl); in orion5x_config_adr_windows() 137 writel(0, &winregs[6].ctrl); in orion5x_config_adr_windows() 143 writel(0, &winregs[7].ctrl); in orion5x_config_adr_windows() [all …]
|
| /u-boot/board/cssi/cmpc885/ |
| A D | nand.c | 20 static u32 nand_mask(unsigned int ctrl) in nand_mask() argument 22 return ((ctrl & NAND_CLE) ? BIT_CLE : 0) | in nand_mask() 23 ((ctrl & NAND_ALE) ? BIT_ALE : 0) | in nand_mask() 24 (!(ctrl & NAND_NCE) ? BIT_NCE : 0); in nand_mask() 27 static void nand_hwcontrol(struct mtd_info *mtdinfo, int cmd, unsigned int ctrl) in nand_hwcontrol() argument 32 if (ctrl & NAND_CTRL_CHANGE) in nand_hwcontrol() 34 BIT_CLE | BIT_ALE | BIT_NCE, nand_mask(ctrl)); in nand_hwcontrol()
|
| /u-boot/arch/arc/lib/ |
| A D | cache.c | 282 unsigned int ctrl; in __slc_enable() local 285 ctrl &= ~SLC_CTRL_DIS; in __slc_enable() 291 unsigned int ctrl; in __slc_disable() local 294 ctrl |= SLC_CTRL_DIS; in __slc_disable() 378 unsigned int ctrl; in __slc_entire_op() local 388 ctrl |= SLC_CTRL_IM; in __slc_entire_op() 426 unsigned int ctrl; in __slc_rgn_op() local 444 ctrl |= SLC_CTRL_IM; in __slc_rgn_op() 449 ctrl &= ~SLC_CTRL_RGN_OP_INV; in __slc_rgn_op() 690 unsigned int ctrl; in __before_dc_op() local [all …]
|
| /u-boot/arch/arm/mach-lpc32xx/ |
| A D | devices.c | 16 static struct uart_ctrl_regs *ctrl = (struct uart_ctrl_regs *)UART_CTRL_BASE; variable 25 clrbits_le32(&ctrl->loop, UART_LOOPBACK(uart_id)); in lpc32xx_uart_init() 34 clrsetbits_le32(&ctrl->clkmode, in lpc32xx_uart_init() 96 clrbits_le32(&ctrl->ctrl, UART_CTRL_UART5_USB_MODE); in lpc32xx_usb_init() 102 uint32_t ctrl = readl(&clk->i2cclk_ctrl); in lpc32xx_i2c_init() local 104 ctrl |= CLK_I2C1_ENABLE; in lpc32xx_i2c_init() 106 ctrl |= CLK_I2C2_ENABLE; in lpc32xx_i2c_init() 107 writel(ctrl, &clk->i2cclk_ctrl); in lpc32xx_i2c_init()
|
| /u-boot/board/cssi/cmpcpro/ |
| A D | nand.c | 17 static u32 nand_mask(unsigned int ctrl) in nand_mask() argument 19 return ((ctrl & NAND_CLE) ? BIT_CLE : 0) | in nand_mask() 20 ((ctrl & NAND_ALE) ? BIT_ALE : 0); in nand_mask() 23 static void nand_hwcontrol(struct mtd_info *mtdinfo, int cmd, unsigned int ctrl) in nand_hwcontrol() argument 28 if (ctrl & NAND_CTRL_CHANGE) in nand_hwcontrol() 30 BIT_CLE | BIT_ALE, nand_mask(ctrl)); in nand_hwcontrol()
|
| /u-boot/drivers/fpga/ |
| A D | socfpga_gen5.c | 22 clrsetbits_le32(&fpgamgr_regs->ctrl, in fpgamgr_set_cd_ratio() 42 setbits_le32(&fpgamgr_regs->ctrl, in fpgamgr_program_init() 57 clrbits_le32(&fpgamgr_regs->ctrl, in fpgamgr_program_init() 73 clrbits_le32(&fpgamgr_regs->ctrl, FPGAMGRREGS_CTRL_NCE_MASK); in fpgamgr_program_init() 76 setbits_le32(&fpgamgr_regs->ctrl, FPGAMGRREGS_CTRL_EN_MASK); in fpgamgr_program_init() 79 setbits_le32(&fpgamgr_regs->ctrl, FPGAMGRREGS_CTRL_NCONFIGPULL_MASK); in fpgamgr_program_init() 94 clrbits_le32(&fpgamgr_regs->ctrl, FPGAMGRREGS_CTRL_NCONFIGPULL_MASK); in fpgamgr_program_init() 112 setbits_le32(&fpgamgr_regs->ctrl, FPGAMGRREGS_CTRL_AXICFGEN_MASK); in fpgamgr_program_init() 146 clrbits_le32(&fpgamgr_regs->ctrl, FPGAMGRREGS_CTRL_AXICFGEN_MASK); in fpgamgr_program_poll_cd() 194 clrbits_le32(&fpgamgr_regs->ctrl, FPGAMGRREGS_CTRL_EN_MASK); in fpgamgr_program_poll_usermode()
|
| /u-boot/arch/arm/mach-kirkwood/ |
| A D | cache.c | 14 u32 ctrl; in l2_cache_disable() local 16 ctrl = readfr_extra_feature_reg(); in l2_cache_disable() 17 ctrl &= ~FEROCEON_EXTRA_FEATURE_L2C_EN; in l2_cache_disable() 18 writefr_extra_feature_reg(ctrl); in l2_cache_disable()
|