/u-boot/arch/powerpc/cpu/mpc8xxx/ |
A D | fdt.c | 67 off = -1; in ft_fixup_num_cores() 69 off = fdt_node_offset_by_prop_value(blob, off, in ft_fixup_num_cores() 97 if (off >= 0) { in ft_disable_srio_port() 98 off = fdt_setprop_string(blob, off, "status", "disabled"); in ft_disable_srio_port() 99 if (off > 0) in ft_disable_srio_port() 108 if (off >= 0) { in ft_disable_rman() 109 off = fdt_setprop_string(blob, off, "status", "disabled"); in ft_disable_rman() 110 if (off > 0) in ft_disable_rman() 119 if (off >= 0) { in ft_disable_rmu() 120 off = fdt_setprop_string(blob, off, "status", "disabled"); in ft_disable_rmu() [all …]
|
/u-boot/arch/powerpc/cpu/mpc85xx/ |
A D | fdt.c | 42 int off; in ft_fixup_cpu() local 90 off = fdt_node_offset_by_prop_value(blob, off, in ft_fixup_cpu() 149 if (off < 0) in ft_fixup_cpu() 155 if (off < 0) in ft_fixup_cpu() 256 int off; in ft_fixup_l2cache() local 369 off = fdt_node_offset_by_prop_value(blob, off, in ft_fixup_l2cache() 387 int off; in ft_fixup_cache() local 426 off = fdt_node_offset_by_prop_value(blob, off, in ft_fixup_cache() 514 int off; in fdt_fixup_usb() local 603 int off; local [all …]
|
A D | liodn.c | 243 off = fdt_setprop(blob, off, "fsl,liodn", in fdt_fixup_srio_liodn() 246 if (off > 0) in fdt_fixup_srio_liodn() 274 off = fdt_node_offset_by_compatible(fdt, off, compat); in fdt_fixup_pci_liodn_offsets() 279 off = fdt_node_offset_by_compatible(fdt, off, compat)) { in fdt_fixup_pci_liodn_offsets() 313 int off; in fdt_fixup_liodn_tbl() local 321 off = fdt_setprop(blob, off, "fsl,liodn", in fdt_fixup_liodn_tbl() 324 if (off > 0) in fdt_fixup_liodn_tbl() 343 int off; in fdt_fixup_liodn_tbl_fman() local 353 if (off < 0) in fdt_fixup_liodn_tbl_fman() 358 off = fdt_setprop(blob, off, "fsl,liodn", in fdt_fixup_liodn_tbl_fman() [all …]
|
A D | portals.c | 20 int off; in fdt_portal() local 22 off = fdt_node_offset_by_compatible(blob, -1, compat); in fdt_portal() 23 if (off < 0) in fdt_portal() 26 off = fdt_parent_offset(blob, off); in fdt_portal() 28 if (off > 0) { in fdt_portal() 35 range = fdt_getprop_w(blob, off, "ranges", &len); in fdt_portal() 50 fdt_setprop_inplace(blob, off, "ranges", range, len); in fdt_portal() 53 name = fdt_get_name(blob, off, &len); in fdt_portal() 69 fdt_set_name(blob, off, buf); in fdt_portal()
|
/u-boot/doc/ |
A D | README.fsl-ddr | 171 | | | Slot 1 | off | 75 | 120 | off | off | off | off | off | 30 | 30 | 173 | | | Slot 2 | off | 75 | off | off | 30 | 30 | 120 | off | off | off | 202 | | R1 | off | 75 | 120 *| off | off | off | 20 | 20 | off | off | 204 | | R2 | off | 75 | off | 20 | 120 | off | 20 | 20 | off | off | 206 | | R3 | off | 75 | 20 | 20 | off | off | 120 *| off | off | off | 208 | | R4 | off | 75 | 20 | 20 | off | off | off | 20 | 120 | off | 210 | | R1 | off | 75 | 40 | off | off | off | 212 | | R2 | off | 75 | 40 | off | off | off | 231 | | | Slot 1 | off | 150 | off | off | off | off | 75 | 75 | o… 233 | | | Slot 2 | off | 150 | 75 | 75 | off | off | off | off | o… [all …]
|
/u-boot/drivers/pci/ |
A D | pcie_layerscape_fixup_common.c | 44 int off = -1, i; in lx2_board_fix_fdt() local 49 while (off != -FDT_ERR_NOTFOUND) { in lx2_board_fix_fdt() 87 fdt_delprop(fdt, off, "apio-wins"); in lx2_board_fix_fdt() 88 fdt_delprop(fdt, off, "ppio-wins"); in lx2_board_fix_fdt() 89 off = fdt_node_offset_by_compatible(fdt, off, in lx2_board_fix_fdt() 94 off = -1; in lx2_board_fix_fdt() 95 off = fdt_node_offset_by_compatible(fdt, off, "fsl,lx2160a-pcie-ep"); in lx2_board_fix_fdt() 96 while (off != -FDT_ERR_NOTFOUND) { in lx2_board_fix_fdt() 102 __func__, off); in lx2_board_fix_fdt() 103 off = fdt_node_offset_by_compatible(fdt, off, in lx2_board_fix_fdt() [all …]
|
/u-boot/common/ |
A D | lcd_simplefb.c | 19 static int lcd_dt_simplefb_configure_node(void *blob, int off) in lcd_dt_simplefb_configure_node() argument 57 return fdt_setup_simplefb_node(blob, off, fb_base, xsize, ysize, in lcd_dt_simplefb_configure_node() 65 int off, ret; in lcd_dt_simplefb_add_node() local 67 off = fdt_add_subnode(blob, 0, "framebuffer"); in lcd_dt_simplefb_add_node() 68 if (off < 0) in lcd_dt_simplefb_add_node() 71 ret = fdt_setprop(blob, off, "status", disabled, sizeof(disabled)); in lcd_dt_simplefb_add_node() 75 ret = fdt_setprop(blob, off, "compatible", compat, sizeof(compat)); in lcd_dt_simplefb_add_node() 79 return lcd_dt_simplefb_configure_node(blob, off); in lcd_dt_simplefb_add_node() 84 int off; in lcd_dt_simplefb_enable_existing_node() local 87 if (off < 0) in lcd_dt_simplefb_enable_existing_node() [all …]
|
/u-boot/drivers/gpio/ |
A D | kona_gpio.c | 48 unsigned int value, off; in gpio_request() local 53 writel(value, GPIO_BASE + off); in gpio_request() 60 unsigned int value, off; in gpio_free() local 86 u32 val, off; in gpio_direction_output() local 94 val = readl(GPIO_BASE + off); in gpio_direction_output() 96 writel(val, GPIO_BASE + off); in gpio_direction_output() 105 u32 val, off; in gpio_get_value() local 114 val = readl(GPIO_BASE + off); in gpio_get_value() 124 u32 val, off; in gpio_set_value() local 138 val = readl(GPIO_BASE + off); in gpio_set_value() [all …]
|
/u-boot/test/overlay/ |
A D | cmd_ut_overlay.c | 110 int off; in fdt_overlay_add_node_by_phandle() local 113 ut_assert(off >= 0); in fdt_overlay_add_node_by_phandle() 123 int off; in fdt_overlay_add_node_by_path() local 126 ut_assert(off >= 0); in fdt_overlay_add_node_by_path() 136 int off; in fdt_overlay_add_subnode_property() local 139 ut_assert(off >= 0); in fdt_overlay_add_subnode_property() 152 int off; in fdt_overlay_local_phandle() local 155 ut_assert(off >= 0); in fdt_overlay_local_phandle() 176 int off; in fdt_overlay_local_phandles() local 179 ut_assert(off >= 0); in fdt_overlay_local_phandles() [all …]
|
/u-boot/arch/mips/lib/ |
A D | reloc.c | 70 static void apply_reloc(unsigned int type, void *addr, long off, uint8_t *buf) in apply_reloc() argument 78 ((u32 + (off >> 2)) & GENMASK(25, 0)); in apply_reloc() 83 *(uint32_t *)addr += off; in apply_reloc() 87 *(uint64_t *)addr += off; in apply_reloc() 91 *(uint32_t *)addr += off >> 16; in apply_reloc() 116 long off; in relocate_code() local 124 off = relocaddr - (unsigned long)__text_start; in relocate_code() 125 if (off & 0xffff) in relocate_code() 141 apply_reloc(type, (void *)addr, off, buf); in relocate_code() 148 bss_start = (uint8_t *)((unsigned long)__bss_start + off); in relocate_code() [all …]
|
/u-boot/arch/arm/cpu/armv7/ls102xa/ |
A D | fdt.c | 92 int off; in ft_cpu_setup() local 114 while (off != -FDT_ERR_NOTFOUND) { in ft_cpu_setup() 116 fdt_setprop(blob, off, "clock-frequency", &val, 4); in ft_cpu_setup() 117 off = fdt_node_offset_by_prop_value(blob, off, in ft_cpu_setup() 152 if (off < 0) in ft_cpu_setup() 154 fdt_strerror(off)); in ft_cpu_setup() 185 off = fdt_node_offset_by_compat_reg(blob, FSL_IFC_COMPAT, in ft_cpu_setup() 187 fdt_set_node_status(blob, off, FDT_STATUS_DISABLED, 0); in ft_cpu_setup() 189 off = fdt_node_offset_by_compat_reg(blob, FSL_QSPI_COMPAT, in ft_cpu_setup() 191 fdt_set_node_status(blob, off, FDT_STATUS_DISABLED, 0); in ft_cpu_setup() [all …]
|
/u-boot/drivers/spmi/ |
A D | spmi-sandbox.c | 50 if (off > EMUL_GPIO_REG_END) in check_address_valid() 61 if (!check_address_valid(usid, pid, off)) in sandbox_spmi_write() 66 switch (off) { in sandbox_spmi_write() 68 val &= regs[off].access_mask; in sandbox_spmi_write() 76 if (regs[off].perms & EMUL_PERM_W) in sandbox_spmi_write() 77 regs[off].value = val & regs[off].access_mask; in sandbox_spmi_write() 87 if (!check_address_valid(usid, pid, off)) in sandbox_spmi_read() 95 switch (off) { in sandbox_spmi_read() 99 return regs[off].value; in sandbox_spmi_read() 101 if (regs[off].perms & EMUL_PERM_R) in sandbox_spmi_read() [all …]
|
/u-boot/cmd/ |
A D | legacy-mtd-utils.c | 10 static int get_part(const char *partname, int *idx, loff_t *off, loff_t *size, in get_part() argument 32 *off = part->offset; in get_part() 44 int mtd_arg_off(const char *arg, int *idx, loff_t *off, loff_t *size, in mtd_arg_off() argument 47 if (!str2off(arg, off)) in mtd_arg_off() 48 return get_part(arg, idx, off, size, maxsize, devtype); in mtd_arg_off() 50 if (*off >= chipsize) { in mtd_arg_off() 55 *maxsize = chipsize - *off; in mtd_arg_off() 60 int mtd_arg_off_size(int argc, char *const argv[], int *idx, loff_t *off, in mtd_arg_off_size() argument 67 *off = 0; in mtd_arg_off_size() 73 ret = mtd_arg_off(argv[0], idx, off, size, maxsize, devtype, in mtd_arg_off_size() [all …]
|
A D | nand.c | 57 last = off; in nand_dump() 72 loff_t addr = (loff_t) off; in nand_dump() 163 ulong off; in do_nand_status() local 173 for (off = 0; off < mtd->size; off += mtd->erasesize) { in do_nand_status() 180 block_start = off; in do_nand_status() 348 off += mtd->writesize; in raw_access() 453 for (off = 0; off < mtd->size; off += mtd->erasesize) in do_nand() 517 opts.offset = off; in do_nand() 682 endoff = off + size; in do_nand() 688 off = round_down(off, mtd->erasesize); in do_nand() [all …]
|
/u-boot/arch/arm/cpu/armv8/fsl-layerscape/ |
A D | fdt.c | 52 int off; in ft_fixup_cpu() local 61 if (off < 0) { in ft_fixup_cpu() 75 fdt_del_node(blob, off); in ft_fixup_cpu() 76 off = off_prev; in ft_fixup_cpu() 79 off_prev = off; in ft_fixup_cpu() 117 if (off < 0) { in ft_fixup_cpu() 143 off = fdt_node_offset_by_prop_value(blob, off, "device_type", in ft_fixup_cpu() 158 int off; in fsl_fdt_disable_usb() local 168 off = fdt_node_offset_by_compatible(blob, off, in fsl_fdt_disable_usb() 419 int off; in fdt_disable_multimedia() local [all …]
|
A D | ls1028_ids.c | 106 int off; in fdt_fixup_ecam() local 108 off = fdt_node_offset_by_compatible(blob, 0, "pci-host-ecam-generic"); in fdt_fixup_ecam() 109 if (off < 0) { in fdt_fixup_ecam() 114 if (fdt_getprop_len(blob, off, "msi-map") != 16 || in fdt_fixup_ecam() 115 fdt_getprop_len(blob, off, "iommu-map") != 16) { in fdt_fixup_ecam() 120 fdt_setprop_inplace_idx_u32(blob, off, "msi-map", 2, in fdt_fixup_ecam() 122 fdt_setprop_inplace_idx_u32(blob, off, "msi-map", 3, in fdt_fixup_ecam() 125 fdt_setprop_inplace_idx_u32(blob, off, "iommu-map", 2, in fdt_fixup_ecam() 127 fdt_setprop_inplace_idx_u32(blob, off, "iommu-map", 3, in fdt_fixup_ecam()
|
/u-boot/board/renesas/porter/ |
A D | porter_spl.c | 33 u16 off; member 121 pfc_base | pfc_with_unlock[i].off); in spl_init_pfc() 126 pfc_base | pfc_without_unlock[i].off); in spl_init_pfc() 162 writel(gpio_set[i].val, gpio_base | 0x08 | gpio_set[i].off); in spl_init_gpio() 165 writel(gpio_clr[i].val, gpio_base | 0x04 | gpio_clr[i].off); in spl_init_gpio() 187 lbsc_base | lbsc_config[i].off); in spl_init_lbsc() 189 lbsc_base | (lbsc_config[i].off + 4)); in spl_init_lbsc() 366 dbsc3_0_base | dbsc_config3r0d0[i].off); in spl_init_dbsc() 370 dbsc3_1_base | dbsc_config3r0d1[i].off); in spl_init_dbsc() 375 dbsc3_0_base | dbsc_config3r2[i].off); in spl_init_dbsc() [all …]
|
/u-boot/board/renesas/stout/ |
A D | stout_spl.c | 33 u16 off; member 116 pfc_base | pfc_with_unlock[i].off); in spl_init_pfc() 121 pfc_base | pfc_without_unlock[i].off); in spl_init_pfc() 153 writel(gpio_set[i].val, gpio_base | 0x08 | gpio_set[i].off); in spl_init_gpio() 156 writel(gpio_clr[i].val, gpio_base | 0x04 | gpio_clr[i].off); in spl_init_gpio() 178 lbsc_base | lbsc_config[i].off); in spl_init_lbsc() 180 lbsc_base | (lbsc_config[i].off + 4)); in spl_init_lbsc() 352 dbsc3_0_base | dbsc_config3r0d0[i].off); in spl_init_dbsc() 356 dbsc3_1_base | dbsc_config3r0d1[i].off); in spl_init_dbsc() 361 dbsc3_0_base | dbsc_config3r2[i].off); in spl_init_dbsc() [all …]
|
/u-boot/arch/arm/mach-stm32mp/ |
A D | fdt.c | 195 int off; in stm32_fdt_fixup_cpu() local 198 off = fdt_path_offset(blob, "/cpus"); in stm32_fdt_fixup_cpu() 199 if (off < 0) { in stm32_fdt_fixup_cpu() 205 while (off != -FDT_ERR_NOTFOUND) { in stm32_fdt_fixup_cpu() 208 fdt_del_node(blob, off); in stm32_fdt_fixup_cpu() 212 off = -1; in stm32_fdt_fixup_cpu() 214 off = fdt_node_offset_by_prop_value(blob, off, in stm32_fdt_fixup_cpu() 229 int off, node; in stm32_fdt_disable_optee() local 233 if (off >= 0 && fdtdec_get_is_enabled(blob, off)) in stm32_fdt_disable_optee() 234 fdt_del_node(blob, off); in stm32_fdt_disable_optee() [all …]
|
/u-boot/arch/arm/include/asm/arch-meson/ |
A D | g12a.h | 21 #define G12A_AO_ADDR(off) (G12A_AOBUS_BASE + ((off) << 2)) argument 36 #define G12A_PERIPHS_ADDR(off) (G12A_PERIPHS_BASE + ((off) << 2)) argument 49 #define G12A_ETH_PHY_ADDR(off) (G12A_ETH_PHY_BASE + ((off) << 2)) argument 63 #define G12A_HIU_ADDR(off) (G12A_HIU_BASE + ((off) << 2)) argument
|
A D | axg.h | 20 #define AXG_AO_ADDR(off) (AXG_AOBUS_BASE + ((off) << 2)) argument 35 #define AXG_PERIPHS_ADDR(off) (AXG_PERIPHS_BASE + ((off) << 2)) argument 49 #define AXG_HIU_ADDR(off) (AXG_HIU_BASE + ((off) << 2)) argument
|
/u-boot/drivers/net/ |
A D | fsl_enetc.h | 33 #define ENETC_BDR(type, n, off) (0x8000 + (type) * 0x100 + (n) * 0x200 + (off)) argument 164 #define enetc_read(priv, off) enetc_read_reg((priv)->regs_base + (off)) argument 165 #define enetc_write(priv, off, v) \ argument 166 enetc_write_reg((priv)->regs_base + (off), v) 169 #define enetc_port_regs(priv, off) ((priv)->port_regs + (off)) argument 170 #define enetc_read_port(priv, off) \ argument 172 #define enetc_write_port(priv, off, v) \ argument 176 #define enetc_bdr_read(priv, t, n, off) \ argument 177 enetc_read(priv, ENETC_BDR(t, n, off)) 178 #define enetc_bdr_write(priv, t, n, off, val) \ argument [all …]
|
/u-boot/drivers/misc/ |
A D | fsl_portals.c | 192 int off, err; in fdt_fixup_qportals() local 214 while (off != -FDT_ERR_NOTFOUND) { in fdt_fixup_qportals() 239 err = fdt_setprop(blob, off, "fsl,liodn", in fdt_fixup_qportals() 267 err = fdt_qportal(blob, off, i, name, in fdt_fixup_qportals() 274 err = fdt_qportal(blob, off, i, "rman@0", in fdt_fixup_qportals() 296 fdt_get_name(blob, off, NULL), in fdt_fixup_qportals() 301 off = fdt_node_offset_by_compatible(blob, off, in fdt_fixup_qportals() 308 int off, err; in fdt_fixup_bportals() local 327 while (off != -FDT_ERR_NOTFOUND) { in fdt_fixup_bportals() 331 fdt_get_name(blob, off, NULL), in fdt_fixup_bportals() [all …]
|
/u-boot/arch/arm/mach-nexell/ |
A D | nx_sec_reg.c | 30 u32 off = 0; in write_sec_reg_by_id() local 36 off = (u32)reg & SEC_4K_OFFSET; in write_sec_reg_by_id() 39 off = (u32)reg & SEC_64K_OFFSET; in write_sec_reg_by_id() 43 ((1 << SECURE_ID_SHIFT) + id), off, val, 0); in write_sec_reg_by_id() 50 u32 off = 0; in read_sec_reg_by_id() local 56 off = (u32)reg & SEC_4K_OFFSET; in read_sec_reg_by_id() 59 off = (u32)reg & SEC_64K_OFFSET; in read_sec_reg_by_id() 63 ((1 << SECURE_ID_SHIFT) + id), off, 0, 0); in read_sec_reg_by_id()
|
/u-boot/env/ |
A D | eeprom.c | 73 unsigned int off = CONFIG_ENV_OFFSET; in env_eeprom_get_char() local 77 off = CONFIG_ENV_OFFSET_REDUND; in env_eeprom_get_char() 88 unsigned int off = CONFIG_ENV_OFFSET; in env_eeprom_load() local 122 off += n; in env_eeprom_load() 165 off = offsetof(env_t, data); in env_eeprom_load() 170 CONFIG_ENV_OFFSET + off, rdbuf, n); in env_eeprom_load() 173 off += n; in env_eeprom_load() 183 off = CONFIG_ENV_OFFSET; in env_eeprom_load() 186 off = CONFIG_ENV_OFFSET_REDUND; in env_eeprom_load() 199 unsigned int off = CONFIG_ENV_OFFSET; in env_eeprom_save() local [all …]
|