/trusted-firmware-a-3.4.0/drivers/st/ddr/ |
D | stm32mp_ddr_test.c | 71 uint64_t offset; in stm32mp_ddr_test_addr_bus() local 75 for (offset = sizeof(uint32_t); (offset & addressmask) != 0U; in stm32mp_ddr_test_addr_bus() 76 offset <<= 1U) { in stm32mp_ddr_test_addr_bus() 77 mmio_write_32(STM32MP_DDR_BASE + (uint32_t)offset, in stm32mp_ddr_test_addr_bus() 85 for (offset = sizeof(uint32_t); (offset & addressmask) != 0U; in stm32mp_ddr_test_addr_bus() 86 offset <<= 1U) { in stm32mp_ddr_test_addr_bus() 87 if (mmio_read_32(STM32MP_DDR_BASE + (uint32_t)offset) != in stm32mp_ddr_test_addr_bus() 89 return (uint32_t)(STM32MP_DDR_BASE + offset); in stm32mp_ddr_test_addr_bus() 105 for (offset = sizeof(uint32_t); (offset & addressmask) != 0U; in stm32mp_ddr_test_addr_bus() 106 offset <<= 1) { in stm32mp_ddr_test_addr_bus() [all …]
|
/trusted-firmware-a-3.4.0/lib/libfdt/ |
D | fdt_ro.c | 13 static int fdt_nodename_eq_(const void *fdt, int offset, in fdt_nodename_eq_() argument 17 const char *p = fdt_get_name(fdt, offset, &olen); in fdt_nodename_eq_() 117 int offset = -1; in fdt_find_max_phandle() local 122 offset = fdt_next_node(fdt, offset, NULL); in fdt_find_max_phandle() 123 if (offset < 0) { in fdt_find_max_phandle() 124 if (offset == -FDT_ERR_NOTFOUND) in fdt_find_max_phandle() 127 return offset; in fdt_find_max_phandle() 130 value = fdt_get_phandle(fdt, offset); in fdt_find_max_phandle() 162 unsigned int offset = n * sizeof(struct fdt_reserve_entry); in fdt_mem_rsv() local 163 unsigned int absoffset = fdt_off_mem_rsvmap(fdt) + offset; in fdt_mem_rsv() [all …]
|
D | fdt.c | 135 const void *fdt_offset_ptr(const void *fdt, int offset, unsigned int len) in fdt_offset_ptr() argument 137 unsigned int uoffset = offset; in fdt_offset_ptr() 138 unsigned int absoffset = offset + fdt_off_dt_struct(fdt); in fdt_offset_ptr() 140 if (offset < 0) in fdt_offset_ptr() 151 || ((offset + len) > fdt_size_dt_struct(fdt))) in fdt_offset_ptr() 154 return fdt_offset_ptr_(fdt, offset); in fdt_offset_ptr() 161 int offset = startoffset; in fdt_next_tag() local 165 tagp = fdt_offset_ptr(fdt, offset, FDT_TAGSIZE); in fdt_next_tag() 169 offset += FDT_TAGSIZE; in fdt_next_tag() 176 p = fdt_offset_ptr(fdt, offset++, 1); in fdt_next_tag() [all …]
|
D | fdt_sw.c | 96 unsigned int offset = fdt_size_dt_struct(fdt); in fdt_grab_space_() local 102 if ((offset + len < offset) || (offset + len > spaceleft)) in fdt_grab_space_() 105 fdt_set_size_dt_struct(fdt, offset + len); in fdt_grab_space_() 106 return fdt_offset_ptr_w_(fdt, offset); in fdt_grab_space_() 191 int offset; in fdt_add_reservemap_entry() local 195 offset = fdt_off_dt_struct(fdt); in fdt_add_reservemap_entry() 196 if ((offset + sizeof(*re)) > fdt_totalsize(fdt)) in fdt_add_reservemap_entry() 199 re = (struct fdt_reserve_entry *)((char *)fdt + offset); in fdt_add_reservemap_entry() 203 fdt_set_off_dt_struct(fdt, offset + sizeof(*re)); in fdt_add_reservemap_entry() 255 unsigned int struct_top, offset; in fdt_add_string_() local [all …]
|
D | libfdt_internal.h | 21 int fdt_check_node_offset_(const void *fdt, int offset); 22 int fdt_check_prop_offset_(const void *fdt, int offset); 26 static inline const void *fdt_offset_ptr_(const void *fdt, int offset) in fdt_offset_ptr_() argument 28 return (const char *)fdt + fdt_off_dt_struct(fdt) + offset; in fdt_offset_ptr_() 31 static inline void *fdt_offset_ptr_w_(void *fdt, int offset) in fdt_offset_ptr_w_() argument 33 return (void *)(uintptr_t)fdt_offset_ptr_(fdt, offset); in fdt_offset_ptr_w_()
|
D | fdt_wip.c | 73 int fdt_node_end_offset_(void *fdt, int offset) in fdt_node_end_offset_() argument 77 while ((offset >= 0) && (depth >= 0)) in fdt_node_end_offset_() 78 offset = fdt_next_node(fdt, offset, &depth); in fdt_node_end_offset_() 80 return offset; in fdt_node_end_offset_()
|
/trusted-firmware-a-3.4.0/drivers/marvell/ |
D | ddr_phy_access.c | 26 int snps_fw_write(uintptr_t offset, uint16_t data) in snps_fw_write() argument 30 if (offset < DDR_PHY_END_ADDRESS) { in snps_fw_write() 31 mmio_write_16(DDR_PHY_BASE_ADDR + (2 * offset), data); in snps_fw_write() 34 debug_printf("%s: illegal offset value: 0x%x\n", __func__, offset); in snps_fw_write() 38 int snps_fw_read(uintptr_t offset, uint16_t *read) in snps_fw_read() argument 42 if (offset < DDR_PHY_END_ADDRESS) { in snps_fw_read() 43 *read = mmio_read_16(DDR_PHY_BASE_ADDR + (2 * offset)); in snps_fw_read() 46 debug_printf("%s: illegal offset value: 0x%x\n", __func__, offset); in snps_fw_read() 50 int mvebu_ddr_phy_write(uintptr_t offset, uint16_t data) in mvebu_ddr_phy_write() argument 52 return snps_fw_write(offset, data); in mvebu_ddr_phy_write() [all …]
|
/trusted-firmware-a-3.4.0/plat/imx/imx8m/ |
D | imx8m_dyn_cfg_helpers.c | 25 int offset; in imx8m_event_log_fdt_init_overlay() local 35 offset = fdt_path_offset(dtb, "/"); in imx8m_event_log_fdt_init_overlay() 36 if (offset < 0) { in imx8m_event_log_fdt_init_overlay() 38 fdt_strerror(offset)); in imx8m_event_log_fdt_init_overlay() 39 return offset; in imx8m_event_log_fdt_init_overlay() 42 offset = fdt_add_subnode(dtb, offset, "fragment@0"); in imx8m_event_log_fdt_init_overlay() 43 if (offset < 0) { in imx8m_event_log_fdt_init_overlay() 45 fdt_strerror(offset)); in imx8m_event_log_fdt_init_overlay() 46 return offset; in imx8m_event_log_fdt_init_overlay() 49 ret = fdt_setprop_string(dtb, offset, "target-path", "/"); in imx8m_event_log_fdt_init_overlay() [all …]
|
/trusted-firmware-a-3.4.0/drivers/arm/pl061/ |
D | pl061_gpio.c | 51 unsigned int data, offset; in pl061_get_direction() local 56 offset = gpio % GPIOS_PER_PL061; in pl061_get_direction() 58 if (data & BIT(offset)) in pl061_get_direction() 66 unsigned int data, offset; in pl061_set_direction() local 71 offset = gpio % GPIOS_PER_PL061; in pl061_set_direction() 73 data = mmio_read_8(base_addr + PL061_GPIO_DIR) | BIT(offset); in pl061_set_direction() 76 data = mmio_read_8(base_addr + PL061_GPIO_DIR) & ~BIT(offset); in pl061_set_direction() 92 unsigned int offset; in pl061_get_value() local 97 offset = gpio % GPIOS_PER_PL061; in pl061_get_value() 98 if (mmio_read_8(base_addr + BIT(offset + 2))) in pl061_get_value() [all …]
|
/trusted-firmware-a-3.4.0/plat/renesas/common/ |
D | plat_storage.c | 28 .offset = FLASH0_BASE, 33 .offset = BL2_IMAGE_ID, 37 .offset = BL31_IMAGE_ID, 41 .offset = BL32_IMAGE_ID, 45 .offset = BL33_IMAGE_ID, 49 .offset = BL332_IMAGE_ID, 53 .offset = BL333_IMAGE_ID, 57 .offset = BL334_IMAGE_ID, 61 .offset = BL335_IMAGE_ID, 65 .offset = BL336_IMAGE_ID, [all …]
|
/trusted-firmware-a-3.4.0/plat/hisilicon/hikey/ |
D | hisi_ipc.c | 101 unsigned int offset; in hisi_ipc_cpu_on_off() local 104 offset = cluster * 16 + cpu * 4; in hisi_ipc_cpu_on_off() 106 offset = cluster * 16 + cpu * 4 + 1; in hisi_ipc_cpu_on_off() 110 val |= (0x01 << offset); in hisi_ipc_cpu_on_off() 133 unsigned int offset; in hisi_ipc_cluster_on_off() local 136 offset = cluster * 4; in hisi_ipc_cluster_on_off() 138 offset = cluster * 4 + 1; in hisi_ipc_cluster_on_off() 142 val |= (0x01 << offset); in hisi_ipc_cluster_on_off() 164 unsigned int offset; in hisi_ipc_cpu_suspend() local 166 offset = cluster * 16 + cpu * 4 + 2; in hisi_ipc_cpu_suspend() [all …]
|
/trusted-firmware-a-3.4.0/drivers/st/reset/ |
D | stm32mp1_reset.c | 31 uint32_t offset = id2reg_offset(id); in stm32mp_reset_assert() local 35 mmio_write_32(rcc_base + offset, bitmsk); in stm32mp_reset_assert() 40 while ((mmio_read_32(rcc_base + offset) & bitmsk) == 0U) { in stm32mp_reset_assert() 52 uint32_t offset = id2reg_offset(id) + RCC_RSTCLRR_OFFSET; in stm32mp_reset_deassert() local 56 mmio_write_32(rcc_base + offset, bitmsk); in stm32mp_reset_deassert() 61 while ((mmio_read_32(rcc_base + offset) & bitmsk) != 0U) { in stm32mp_reset_deassert()
|
/trusted-firmware-a-3.4.0/plat/mediatek/mt8183/drivers/gpio/ |
D | mtgpio.c | 182 const int32_t offset = 0x0c0; in gpio_get_pupd_iocfg() local 186 return IOCFG_1_BASE + offset; in gpio_get_pupd_iocfg() 188 return IOCFG_2_BASE + offset; in gpio_get_pupd_iocfg() 190 return IOCFG_5_BASE + offset; in gpio_get_pupd_iocfg() 192 return IOCFG_7_BASE + offset; in gpio_get_pupd_iocfg() 224 assert(!((PULL_offset[pin].offset == (int8_t)-1) && in mt_set_gpio_pull_enable_chip() 228 if (PULL_offset[pin].offset == (int8_t)-1) in mt_set_gpio_pull_enable_chip() 232 1U << PULL_offset[pin].offset); in mt_set_gpio_pull_enable_chip() 234 if (PULL_offset[pin].offset == (int8_t)-1) { in mt_set_gpio_pull_enable_chip() 246 1U << PULL_offset[pin].offset); in mt_set_gpio_pull_enable_chip() [all …]
|
/trusted-firmware-a-3.4.0/drivers/mtd/nand/ |
D | core.c | 24 int nand_read(unsigned int offset, uintptr_t buffer, size_t length, in nand_read() argument 27 unsigned int block = offset / nand_dev.block_size; in nand_read() 28 unsigned int end_block = (offset + length - 1U) / nand_dev.block_size; in nand_read() 30 (offset % nand_dev.block_size) / nand_dev.page_size; in nand_read() 32 unsigned int start_offset = offset % nand_dev.page_size; in nand_read() 39 block, end_block, page_start, nb_pages, length, offset); in nand_read() 115 int nand_seek_bb(uintptr_t base, unsigned int offset, size_t *extra_offset) in nand_seek_bb() argument 125 if (offset != 0U) { in nand_seek_bb() 126 offset_block = (base + offset - 1U) / nand_dev.block_size; in nand_seek_bb()
|
/trusted-firmware-a-3.4.0/include/drivers/io/ |
D | io_mtd.h | 35 int (*read)(unsigned int offset, uintptr_t buffer, size_t length, 46 int (*write)(unsigned int offset, uintptr_t buffer, size_t length); 56 int (*seek)(uintptr_t base, unsigned int offset, size_t *extra_offset); 62 size_t offset; member
|
/trusted-firmware-a-3.4.0/plat/brcm/board/common/ |
D | bcm_elog.c | 51 uint32_t offset, len; in elog_putchar() local 53 offset = mmio_read_32(elog->base + BCM_ELOG_OFF_OFFSET); in elog_putchar() 55 mmio_write_8(elog->base + offset, c); in elog_putchar() 56 offset++; in elog_putchar() 59 if (offset >= elog->max_size) in elog_putchar() 60 offset = BCM_ELOG_HEADER_LEN; in elog_putchar() 66 mmio_write_32(elog->base + BCM_ELOG_OFF_OFFSET, offset); in elog_putchar() 148 uint32_t offset, len; in bcm_elog_copy_log() local 161 offset = mmio_read_32(elog->base + BCM_ELOG_OFF_OFFSET); in bcm_elog_copy_log() 162 if (offset >= max_size) { in bcm_elog_copy_log() [all …]
|
/trusted-firmware-a-3.4.0/plat/amlogic/common/ |
D | aml_efuse.c | 14 uint64_t aml_efuse_read(void *dst, uint32_t offset, uint32_t size) in aml_efuse_read() argument 16 if ((uint64_t)(offset + size) > (uint64_t)EFUSE_SIZE) in aml_efuse_read() 19 return aml_scpi_efuse_read(dst, offset + EFUSE_BASE, size); in aml_efuse_read()
|
/trusted-firmware-a-3.4.0/include/drivers/brcm/ |
D | spi_flash.h | 13 int spi_flash_erase(struct spi_flash *flash, uint32_t offset, uint32_t len); 14 int spi_flash_write(struct spi_flash *flash, uint32_t offset, 16 int spi_flash_read(struct spi_flash *flash, uint32_t offset,
|
/trusted-firmware-a-3.4.0/plat/intel/soc/common/drivers/qspi/ |
D | cadence_qspi.c | 601 int cad_qspi_indirect_page_bound_write(uint32_t offset, in cad_qspi_indirect_page_bound_write() argument 608 status = cad_qspi_indirect_write_start_bank(offset, len); in cad_qspi_indirect_page_bound_write() 633 int cad_qspi_read_bank(uint8_t *buffer, uint32_t offset, uint32_t size) in cad_qspi_read_bank() argument 639 status = cad_qspi_indirect_read_start_bank(offset, size); in cad_qspi_read_bank() 661 int cad_qspi_write_bank(uint32_t offset, uint8_t *buffer, uint32_t size) in cad_qspi_write_bank() argument 664 uint32_t page_offset = offset & (CAD_QSPI_PAGE_SIZE - 1); in cad_qspi_write_bank() 668 status = cad_qspi_indirect_page_bound_write(offset, buffer, in cad_qspi_write_bank() 673 offset += write_size; in cad_qspi_write_bank() 681 int cad_qspi_read(void *buffer, uint32_t offset, uint32_t size) in cad_qspi_read() argument 689 if ((offset >= qspi_device_size) || in cad_qspi_read() [all …]
|
/trusted-firmware-a-3.4.0/drivers/nxp/sec_mon/ |
D | snvs.c | 137 void snvs_write_lp_gpr_bit(uint32_t offset, uint32_t bit_pos, bool flag_val) in snvs_write_lp_gpr_bit() argument 140 snvs_write32(g_nxp_snvs_addr + offset, in snvs_write_lp_gpr_bit() 141 (snvs_read32(g_nxp_snvs_addr + offset)) in snvs_write_lp_gpr_bit() 144 snvs_write32(g_nxp_snvs_addr + offset, in snvs_write_lp_gpr_bit() 145 (snvs_read32(g_nxp_snvs_addr + offset)) in snvs_write_lp_gpr_bit() 150 uint32_t snvs_read_lp_gpr_bit(uint32_t offset, uint32_t bit_pos) in snvs_read_lp_gpr_bit() argument 152 return (snvs_read32(g_nxp_snvs_addr + offset) & (1 << bit_pos)); in snvs_read_lp_gpr_bit()
|
/trusted-firmware-a-3.4.0/include/lib/el3_runtime/aarch32/ |
D | context.h | 50 #define read_ctx_reg(ctx, offset) ((ctx)->ctx_regs[offset >> WORD_SHIFT]) argument 51 #define write_ctx_reg(ctx, offset, val) (((ctx)->ctx_regs[offset >> WORD_SHIFT]) \ argument
|
/trusted-firmware-a-3.4.0/plat/nxp/common/nv_storage/ |
D | plat_nv_storage.c | 44 uint8_t offset = 0U; in read_nv_app_data() local 48 nv_app_data_array[offset] = snvs_read_app_data_bit(offset); in read_nv_app_data() 49 offset++; in read_nv_app_data() 51 } while (offset < APP_DATA_MAX_OFFSET); in read_nv_app_data()
|
/trusted-firmware-a-3.4.0/drivers/brcm/emmc/ |
D | emmc_pboot_hal_memory_drv.c | 325 uint32_t offset = 0, blockAddr, readLen = 0, rdCount; in sdio_read() local 346 offset = (uint32_t) (mem_addr - (blockAddr * blockSize)); in sdio_read() 349 offset = (uint32_t) (mem_addr - blockAddr); in sdio_read() 357 if (offset > 0) { in sdio_read() 361 if (remSize < (blockSize - offset)) { in sdio_read() 366 remSize -= (blockSize - offset); in sdio_read() 367 rdCount += (blockSize - offset); in sdio_read() 368 manual_copy_size = blockSize - offset; in sdio_read() 381 (emmc_global_buf_ptr->u.tempbuf + offset)), in sdio_read() 459 uint32_t offset, blockAddr, writeLen, wtCount = 0; in sdio_write() local [all …]
|
/trusted-firmware-a-3.4.0/drivers/renesas/common/io/ |
D | io_rcar.c | 36 const uint32_t offset; member 48 uintptr_t offset; member 157 static int32_t file_to_offset(const int32_t name, uintptr_t *offset, in file_to_offset() argument 174 *offset = rcar_image_header[addr]; in file_to_offset() 177 *offset += 0x800000; in file_to_offset() 194 *offset = 0U; in file_to_offset() 308 uintptr_t offset; in load_bl33x() local 327 rc = file_to_offset(img[i], &offset, &cert, &noload, in load_bl33x() 345 rc = io_seek(handle, IO_SEEK_SET, offset); in load_bl33x() 385 ssize_t offset; in rcar_dev_init() local [all …]
|
/trusted-firmware-a-3.4.0/lib/debugfs/ |
D | devfip.c | 23 long offset[NR_FILES]; member 140 if (fip->offset[i] == -1) { in fipgen() 204 if ((c->qid >= NR_FILES) || (fip->offset[c->qid] < 0)) { in fipread() 213 if (c->offset >= size) { in fipread() 221 if (n > (size - c->offset)) { in fipread() 222 n = size - c->offset; in fipread() 225 off = fip->offset[c->qid] + c->offset; in fipread() 232 c->offset += n; in fipread() 260 fip->offset[n] = -1; in fipmount() 299 fip->offset[n] = entry.offset_address; in fipmount()
|