Home
last modified time | relevance | path

Searched refs:reg_base (Results 1 – 25 of 50) sorted by relevance

12

/external/arm-trusted-firmware/drivers/rpi3/sdhost/
Drpi3_sdhost.c50 uintptr_t reg_base = rpi3_sdhost_params.reg_base; in rpi3_sdhost_waitcommand() local
54 while ((mmio_read_32(reg_base + HC_COMMAND) & HC_CMD_ENABLE) in rpi3_sdhost_waitcommand()
73 uintptr_t reg_base = rpi3_sdhost_params.reg_base; in send_command_raw() local
79 status = mmio_read_32(reg_base + HC_HOSTSTATUS); in send_command_raw()
81 mmio_write_32(reg_base + HC_HOSTSTATUS, status); in send_command_raw()
87 mmio_write_32(reg_base + HC_ARGUMENT, arg); in send_command_raw()
88 mmio_write_32(reg_base + HC_COMMAND, cmd | HC_CMD_ENABLE); in send_command_raw()
137 uintptr_t reg_base = rpi3_sdhost_params.reg_base; in rpi3_drain_fifo() local
142 while (mmio_read_32(reg_base + HC_HOSTSTATUS) & HC_HSTST_HAVEDATA) { in rpi3_drain_fifo()
143 mmio_read_32(reg_base + HC_DATAPORT); in rpi3_drain_fifo()
[all …]
/external/arm-trusted-firmware/drivers/imx/usdhc/
Dimx_usdhc.c44 uintptr_t reg_base = imx_usdhc_params.reg_base; in imx_usdhc_set_clk() local
58 mmio_clrbits32(reg_base + VENDSPEC, VENDSPEC_CARD_CLKEN); in imx_usdhc_set_clk()
59 mmio_clrsetbits32(reg_base + SYSCTRL, SYSCTRL_CLOCK_MASK, clk); in imx_usdhc_set_clk()
62 mmio_setbits32(reg_base + VENDSPEC, VENDSPEC_PER_CLKEN | VENDSPEC_CARD_CLKEN); in imx_usdhc_set_clk()
68 uintptr_t reg_base = imx_usdhc_params.reg_base; in imx_usdhc_initialize() local
70 assert((imx_usdhc_params.reg_base & MMC_BLOCK_MASK) == 0); in imx_usdhc_initialize()
73 mmio_setbits32(reg_base + SYSCTRL, SYSCTRL_RSTA); in imx_usdhc_initialize()
76 while ((mmio_read_32(reg_base + SYSCTRL) & SYSCTRL_RSTA)) { in imx_usdhc_initialize()
82 mmio_write_32(reg_base + MMCBOOT, 0); in imx_usdhc_initialize()
83 mmio_write_32(reg_base + MIXCTRL, 0); in imx_usdhc_initialize()
[all …]
/external/arm-trusted-firmware/drivers/synopsys/emmc/
Ddw_mmc.c145 mmio_write_32(dw_params.reg_base + DWMMC_CMD, in dw_update_clk()
149 data = mmio_read_32(dw_params.reg_base + DWMMC_CMD); in dw_update_clk()
152 data = mmio_read_32(dw_params.reg_base + DWMMC_RINTSTS); in dw_update_clk()
173 data = mmio_read_32(dw_params.reg_base + DWMMC_STATUS); in dw_set_clk()
177 mmio_write_32(dw_params.reg_base + DWMMC_CLKENA, 0); in dw_set_clk()
180 mmio_write_32(dw_params.reg_base + DWMMC_CLKDIV, div); in dw_set_clk()
184 mmio_write_32(dw_params.reg_base + DWMMC_CLKENA, 1); in dw_set_clk()
185 mmio_write_32(dw_params.reg_base + DWMMC_CLKSRC, 0); in dw_set_clk()
194 assert((dw_params.reg_base & MMC_BLOCK_MASK) == 0); in dw_init()
196 base = dw_params.reg_base; in dw_init()
[all …]
/external/arm-trusted-firmware/plat/socionext/uniphier/
Duniphier_nand.c52 uintptr_t reg_base; member
88 mmio_write_32(nand->reg_base + DENALI_ECC_ENABLE, 0); in uniphier_nand_block_isbad()
90 mmio_write_32(nand->reg_base + DENALI_INTR_STATUS0, -1); in uniphier_nand_block_isbad()
103 status = mmio_read_32(nand->reg_base + DENALI_INTR_STATUS0); in uniphier_nand_block_isbad()
125 mmio_write_32(nand->reg_base + DENALI_ECC_ENABLE, 1); in uniphier_nand_read_pages()
126 mmio_write_32(nand->reg_base + DENALI_DMA_ENABLE, 1); in uniphier_nand_read_pages()
128 mmio_write_32(nand->reg_base + DENALI_INTR_STATUS0, -1); in uniphier_nand_read_pages()
148 status = mmio_read_32(nand->reg_base + DENALI_INTR_STATUS0); in uniphier_nand_read_pages()
151 mmio_write_32(nand->reg_base + DENALI_DMA_ENABLE, 0); in uniphier_nand_read_pages()
241 nand->reg_base = nand->host_base + 0x100000; in uniphier_nand_hw_init()
[all …]
/external/arm-trusted-firmware/drivers/rpi3/gpio/
Drpi3_gpio.c14 static uintptr_t reg_base; variable
48 uintptr_t reg_sel = reg_base + RPI3_GPIO_GPFSEL(regN); in rpi3_gpio_get_select()
73 uintptr_t reg_sel = reg_base + RPI3_GPIO_GPFSEL(regN); in rpi3_gpio_set_select()
109 uintptr_t reg_lev = reg_base + RPI3_GPIO_GPLEV(regN); in rpi3_gpio_get_value()
121 uintptr_t reg_set = reg_base + RPI3_GPIO_GPSET(regN); in rpi3_gpio_set_value()
122 uintptr_t reg_clr = reg_base + RPI3_GPIO_GPSET(regN); in rpi3_gpio_set_value()
138 uintptr_t reg_pud = reg_base + RPI3_GPIO_GPPUD; in rpi3_gpio_set_pull()
139 uintptr_t reg_clk = reg_base + RPI3_GPIO_GPPUDCLK(regN); in rpi3_gpio_set_pull()
161 reg_base = RPI3_GPIO_BASE; in rpi3_gpio_init()
/external/arm-trusted-firmware/drivers/ufs/
Dufs.c63 assert(ufs_params.reg_base != 0); in ufshc_dme_get()
68 base = ufs_params.reg_base; in ufshc_dme_get()
104 assert((ufs_params.reg_base != 0)); in ufshc_dme_set()
106 base = ufs_params.reg_base; in ufshc_dme_set()
212 data = mmio_read_32(ufs_params.reg_base + UTRLDBR); in get_empty_slot()
272 mmio_write_32(ufs_params.reg_base + UTRLBA, in ufs_prepare_cmd()
274 mmio_write_32(ufs_params.reg_base + UTRLBAU, in ufs_prepare_cmd()
375 mmio_write_32(ufs_params.reg_base + UTRLBA, in ufs_prepare_query()
377 mmio_write_32(ufs_params.reg_base + UTRLBAU, in ufs_prepare_query()
428 mmio_write_32(ufs_params.reg_base + UTRLBA, in ufs_prepare_nop_out()
[all …]
/external/arm-trusted-firmware/drivers/marvell/comphy/
Dphy-comphy-3700.c613 uintptr_t reg_base = 0; in mvebu_a3700_comphy_usb3_power_on() local
631 reg_base = COMPHY_INDIRECT_REG; in mvebu_a3700_comphy_usb3_power_on()
635 reg_base = USB3_GBE1_PHY; in mvebu_a3700_comphy_usb3_power_on()
648 usb3_reg_set(reg_base, COMPHY_REG_LANE_CFG0_ADDR, PRD_TXDEEMPH0_MASK, in mvebu_a3700_comphy_usb3_power_on()
661 usb3_reg_set(reg_base, COMPHY_REG_LANE_CFG1_ADDR, data, mask); in mvebu_a3700_comphy_usb3_power_on()
666 usb3_reg_set(reg_base, COMPHY_REG_LANE_CFG4_ADDR, in mvebu_a3700_comphy_usb3_power_on()
673 usb3_reg_set(reg_base, COMPHY_REG_TEST_MODE_CTRL_ADDR, in mvebu_a3700_comphy_usb3_power_on()
680 usb3_reg_set(reg_base, COMPHY_REG_GLOB_CLK_SRC_LO_ADDR, 0x0, in mvebu_a3700_comphy_usb3_power_on()
687 usb3_reg_set(reg_base, COMPHY_REG_GEN2_SET_2, in mvebu_a3700_comphy_usb3_power_on()
696 usb3_reg_set(reg_base, COMPHY_REG_GEN2_SET_3, in mvebu_a3700_comphy_usb3_power_on()
[all …]
/external/arm-trusted-firmware/plat/layerscape/common/
Dls_tzc380.c22 unsigned int reg_base; in tzc380_set_region() local
25 reg_base = (tzasc_base + TZASC_REGIONS_REG + (region_id << 4)); in tzc380_set_region()
28 reg = (reg_base + TZASC_REGION_ATTR_OFFSET); in tzc380_set_region()
31 reg = reg_base + TZASC_REGION_LOWADDR_OFFSET; in tzc380_set_region()
35 reg = reg_base + TZASC_REGION_HIGHADDR_OFFSET; in tzc380_set_region()
38 reg = reg_base + TZASC_REGION_ATTR_OFFSET; in tzc380_set_region()
/external/python/cpython2/Modules/_ctypes/libffi/src/avr32/
Dffi.c72 char *reg_base = stack; in ffi_prep_args() local
82 *(void**)reg_base = ecif->rvalue; in ffi_prep_args()
111 addr = reg_base + (index * 4); in ffi_prep_args()
118 addr = reg_base + 4; in ffi_prep_args()
123 addr = reg_base + 12; in ffi_prep_args()
166 printf("r%d: 0x%08x\n", 12 - i, ((unsigned int*)reg_base)[i]); in ffi_prep_args()
275 register char *reg_base = stack; in ffi_prep_incoming_args_SYSV() local
290 *rvalue = *(void **)reg_base; in ffi_prep_incoming_args_SYSV()
320 *p_argv = (void*)reg_base + (index * 4); in ffi_prep_incoming_args_SYSV()
327 *p_argv = (void*)reg_base + 4; in ffi_prep_incoming_args_SYSV()
[all …]
/external/libffi/src/avr32/
Dffi.c72 char *reg_base = stack; in ffi_prep_args() local
82 *(void**)reg_base = ecif->rvalue; in ffi_prep_args()
111 addr = reg_base + (index * 4); in ffi_prep_args()
118 addr = reg_base + 4; in ffi_prep_args()
123 addr = reg_base + 12; in ffi_prep_args()
166 printf("r%d: 0x%08x\n", 12 - i, ((unsigned int*)reg_base)[i]); in ffi_prep_args()
275 register char *reg_base = stack; in ffi_prep_incoming_args_SYSV() local
290 *rvalue = *(void **)reg_base; in ffi_prep_incoming_args_SYSV()
320 *p_argv = (void*)reg_base + (index * 4); in ffi_prep_incoming_args_SYSV()
327 *p_argv = (void*)reg_base + 4; in ffi_prep_incoming_args_SYSV()
[all …]
/external/arm-trusted-firmware/drivers/synopsys/ufs/
Ddw_ufs.c23 assert((params != NULL) && (params->reg_base != 0)); in dwufs_phy_init()
25 base = params->reg_base; in dwufs_phy_init()
103 assert((params != NULL) && (params->reg_base != 0)); in dwufs_phy_set_pwr_mode()
105 base = params->reg_base; in dwufs_phy_set_pwr_mode()
196 ufs_params.reg_base = params->reg_base; in dw_ufs_init()
/external/igt-gpu-tools/tests/i915/
Dgem_mocs_settings.c234 uint32_t reg_base) in create_read_batch() argument
240 batch[offset+1] = reg_base + (index * sizeof(uint32_t)); in create_read_batch()
260 uint32_t reg_base, in do_read_registers() argument
283 create_read_batch(reloc, batch, dst_handle, size, reg_base); in do_read_registers()
297 uint32_t reg_base) in create_write_batch() argument
305 batch[offset++] = reg_base + (i * 4); in create_write_batch()
316 uint32_t reg_base, in write_registers() argument
334 execbuf.batch_len = create_write_batch(batch, values, size, reg_base); in write_registers()
351 const uint32_t reg_base = get_engine_base(fd, engine); in check_control_registers() local
361 reg_base, in check_control_registers()
/external/arm-trusted-firmware/drivers/st/mmc/
Dstm32_sdmmc2.c151 uintptr_t base = sdmmc2_params.reg_base; in stm32_sdmmc2_init()
187 uintptr_t base = sdmmc2_params.reg_base; in stm32_sdmmc2_send_cmd_req()
418 uintptr_t base = sdmmc2_params.reg_base; in stm32_sdmmc2_set_ios()
472 uintptr_t base = sdmmc2_params.reg_base; in stm32_sdmmc2_prepare()
538 uintptr_t base = sdmmc2_params.reg_base; in stm32_sdmmc2_read()
642 sdmmc2_params.reg_base); in stm32_sdmmc2_dt_get_config()
705 ((params->reg_base & MMC_BLOCK_MASK) == 0U) && in stm32_sdmmc2_mmc_init()
/external/arm-trusted-firmware/drivers/imx/timer/
Dimx_gpt.h12 void imx_gpt_ops_init(uintptr_t reg_base);
/external/arm-trusted-firmware/include/drivers/synopsys/
Ddw_mmc.h13 uintptr_t reg_base; member
/external/arm-trusted-firmware/include/drivers/st/
Dstm32_sdmmc2.h15 uintptr_t reg_base; member
/external/arm-trusted-firmware/drivers/st/spi/
Dstm32_qspi.c108 uintptr_t reg_base; member
119 return stm32_qspi.reg_base; in qspi_base()
474 &stm32_qspi.reg_base, &size); in stm32_qspi_init()
/external/arm-trusted-firmware/plat/intel/soc/common/include/
Dsocfpga_private.h20 .reg_base = SOCFPGA_MMC_REG_BASE \
/external/arm-trusted-firmware/include/drivers/
Ddw_ufs.h102 uintptr_t reg_base; member
/external/arm-trusted-firmware/plat/hisilicon/poplar/include/
Dhi3798cv200.h75 .reg_base = REG_BASE_MCI, \
/external/arm-trusted-firmware/plat/imx/imx8m/imx8mm/
Dimx8mm_bl2_el3_setup.c46 params.reg_base = PLAT_IMX8MM_BOOT_MMC_BASE; in imx8mm_usdhc_setup()
/external/arm-trusted-firmware/include/drivers/rpi3/sdhost/
Drpi3_sdhost.h16 uintptr_t reg_base; member
/external/arm-trusted-firmware/plat/rpi/rpi3/
Drpi3_bl2_setup.c35 params.reg_base = RPI3_SDHOST_BASE; in rpi3_sdhost_setup()
/external/arm-trusted-firmware/plat/imx/imx7/warp7/
Dwarp7_bl2_el3_setup.c106 params.reg_base = PLAT_WARP7_BOOT_MMC_BASE; in warp7_usdhc_setup()
/external/arm-trusted-firmware/plat/hisilicon/hikey/
Dhikey_bl1_setup.c98 params.reg_base = DWMMC0_BASE; in bl1_platform_setup()

12