Searched refs:off (Results 1 - 25 of 196) sorted by relevance

12345678

/u-boot/arch/arm/include/asm/arch-meson/
H A Da1.h13 #define A1_SYSCTRL_ADDR(off) (A1_SYSCTRL_BASE + ((off) << 2))
H A Dgx.h21 #define GX_AO_ADDR(off) (GX_AOBUS_BASE + ((off) << 2))
36 #define GX_PERIPHS_ADDR(off) (GX_PERIPHS_BASE + ((off) << 2))
H A Daxg.h20 #define AXG_AO_ADDR(off) (AXG_AOBUS_BASE + ((off) << 2))
H A Dg12a.h21 #define G12A_AO_ADDR(off) (G12A_AOBUS_BASE + ((off) << 2))
/u-boot/arch/powerpc/cpu/mpc8xxx/
H A Dfdt.c23 int off, ret = -FDT_ERR_NOTFOUND; local
28 off = fdt_node_offset_by_prop_value(blob, -1, "cpu-handle",
30 while (off != -FDT_ERR_NOTFOUND) {
31 fdt_delprop(blob, off, "cpu-handle");
33 off = fdt_node_offset_by_prop_value(blob, -1, "cpu-handle",
41 int off, num_cores, del_cores; local
46 off = fdt_node_offset_by_prop_value(blob, -1, "device_type", "cpu", 4);
47 while (off != -FDT_ERR_NOTFOUND) {
48 u32 *reg = (u32 *)fdt_getprop(blob, off, "reg", 0);
52 int ph = fdt_get_phandle(blob, off);
91 int off = fdt_node_offset_by_prop_value(blob, srio_off, local
103 int off = fdt_node_offset_by_compatible(blob, -1, "fsl,rman"); local
114 int off = fdt_node_offset_by_compatible(blob, -1, "fsl,srio-rmu"); local
[all...]
/u-boot/arch/powerpc/cpu/mpc85xx/
H A Dportals.c20 int off; local
22 off = fdt_node_offset_by_compatible(blob, -1, compat);
23 if (off < 0)
26 off = fdt_parent_offset(blob, off);
28 if (off > 0) {
35 range = fdt_getprop_w(blob, off, "ranges", &len);
50 fdt_setprop_inplace(blob, off, "ranges", range, len);
53 name = fdt_get_name(blob, off, &len);
69 fdt_set_name(blob, off, bu
[all...]
H A Dfdt.c42 int off; local
53 off = fdt_node_offset_by_prop_value(blob, -1, "device_type", "cpu", 4);
54 while (off != -FDT_ERR_NOTFOUND) {
55 u32 *reg = (u32 *)fdt_getprop(blob, off, "reg", 0);
62 fdt_setprop_string(blob, off, "status",
65 fdt_setprop_string(blob, off, "status",
81 fdt_setprop(blob, off, "cpu-release-addr",
85 fdt_setprop_string(blob, off, "enable-method",
90 off = fdt_node_offset_by_prop_value(blob, off,
162 ft_fixup_l3cache(void *blob, int off) argument
189 ft_fixup_l2cache_compatible(void *blob, int off) argument
254 int off; local
294 int off, l2_off, l3_off = -1; local
385 int off; local
450 int off = fdt_node_offset_by_compat_reg(blob, compat, phys); local
512 int off; local
600 int off; local
763 int off; local
[all...]
H A Dliodn.c238 int off, portid = tbl[i].portid; local
240 off = fdt_node_offset_by_prop_value(blob, srio_off,
242 if (off >= 0) {
243 off = fdt_setprop(blob, off, "fsl,liodn",
246 if (off > 0)
249 portid, fdt_strerror(off));
252 fdt_strerror(off));
263 int off, pci_idx = 0, pci_cnt = 0, i, rc; local
271 fdt_for_each_node_by_compatible(off, fd
308 int off; local
338 int off; local
[all...]
/u-boot/boot/
H A Dfdt_simplefb.c20 static int fdt_simplefb_configure_node(void *blob, int off) argument
65 return fdt_setup_simplefb_node(blob, off, fb_base, xsize, ysize,
73 int off, ret; local
75 off = fdt_add_subnode(blob, 0, "framebuffer");
76 if (off < 0)
79 ret = fdt_setprop(blob, off, "status", disabled, sizeof(disabled));
83 ret = fdt_setprop(blob, off, "compatible", compat, sizeof(compat));
87 return fdt_simplefb_configure_node(blob, off);
98 int off; local
100 off
[all...]
/u-boot/drivers/pci/
H A Dpcie_layerscape_fixup_common.c47 int off = -1, i; local
51 fdt_for_each_node_by_compatible(off, fdt, -1, "fsl,lx2160a-pcie") {
52 fdt_setprop(fdt, off, "compatible", "fsl,ls2088a-pcie",
55 reg_names = fdt_getprop(fdt, off, "reg-names", &names_len);
88 fdt_setprop(fdt, off, "reg-names", reg_names, names_len);
89 fdt_delprop(fdt, off, "apio-wins");
90 fdt_delprop(fdt, off, "ppio-wins");
94 fdt_for_each_node_by_compatible(off, fdt, -1, "fsl,lx2160a-pcie-ep") {
95 fdt_setprop_string(fdt, off, "compatible",
97 prop = fdt_getprop(fdt, off, "api
[all...]
H A Dpcie_fsl_fixup.c21 int off; local
24 off = fdt_node_offset_by_compat_reg(blob, FSL_PCIE_COMPAT, regs_addr);
25 if (off < 0) {
32 fdt_del_node(blob, off);
34 fdt_pci_dma_ranges(blob, off, hose);
/u-boot/arch/mips/lib/
H A Dreloc.c63 * @off: the relocation offset, ie. number of bytes we're moving U-Boot by
69 static void apply_reloc(unsigned int type, void *addr, long off, uint8_t *buf) argument
77 ((u32 + (off >> 2)) & GENMASK(25, 0));
82 *(uint32_t *)addr += off;
86 *(uint64_t *)addr += off;
90 *(uint32_t *)addr += off >> 16;
115 long off; local
123 off = relocaddr - (unsigned long)__text_start;
124 if (off & 0xffff)
140 apply_reloc(type, (void *)addr, off, bu
[all...]
/u-boot/cmd/
H A Dlegacy-mtd-utils.c10 static int get_part(const char *partname, int *idx, loff_t *off, loff_t *size, argument
32 *off = part->offset;
44 int mtd_arg_off(const char *arg, int *idx, loff_t *off, loff_t *size, argument
47 if (!str2off(arg, off))
48 return get_part(arg, idx, off, size, maxsize, devtype);
50 if (*off >= chipsize) {
55 *maxsize = chipsize - *off;
60 int mtd_arg_off_size(int argc, char *const argv[], int *idx, loff_t *off, argument
67 *off = 0;
73 ret = mtd_arg_off(argv[0], idx, off, siz
[all...]
H A Dlegacy-mtd-utils.h6 int mtd_arg_off(const char *arg, int *idx, loff_t *off, loff_t *size,
8 int mtd_arg_off_size(int argc, char *const argv[], int *idx, loff_t *off,
/u-boot/include/linux/
H A Dcompiler-intel.h19 #define RELOC_HIDE(ptr, off) \
22 (typeof(ptr)) (__ptr + (off)); })
/u-boot/arch/arm/mach-nexell/
H A Dnx_sec_reg.c30 u32 off = 0; local
36 off = (u32)reg & SEC_4K_OFFSET;
39 off = (u32)reg & SEC_64K_OFFSET;
43 ((1 << SECURE_ID_SHIFT) + id), off, val, 0);
50 u32 off = 0; local
56 off = (u32)reg & SEC_4K_OFFSET;
59 off = (u32)reg & SEC_64K_OFFSET;
63 ((1 << SECURE_ID_SHIFT) + id), off, 0, 0);
/u-boot/include/clk/
H A Dsunxi.h26 * @off: gate offset
31 u16 off; member in struct:ccu_clk_gate
37 .off = _off, \
48 * @off: reset offset
53 u16 off; member in struct:ccu_reset
59 .off = _off, \
/u-boot/test/image/
H A Dspl_load_nand.c16 uint32_t off = spl_nand_get_uboot_raw_page(); local
26 ut_assertok(mtd_block_markbad(mtd, off & ~mtd->erasesize_mask));
27 off += mtd->erasesize;
30 erase.len = img_size + (off & mtd->erasesize_mask);
33 erase.addr = off & ~mtd->erasesize_mask;
37 ut_assertok(mtd_write(mtd, off, img_size, &length, img));
/u-boot/test/overlay/
H A Dcmd_ut_overlay.c110 int off; local
112 off = fdt_path_offset(fdt, "/test-node/new-node");
113 ut_assert(off >= 0);
115 ut_assertnonnull(fdt_getprop(fdt, off, "new-property", NULL));
123 int off; local
125 off = fdt_path_offset(fdt, "/new-node");
126 ut_assert(off >= 0);
128 ut_assertnonnull(fdt_getprop(fdt, off, "new-property", NULL));
136 int off; local
138 off
152 int off; local
176 int off; local
[all...]
/u-boot/drivers/spmi/
H A Dspmi-sandbox.c44 static bool check_address_valid(int usid, int pid, int off) argument
50 if (off > EMUL_GPIO_REG_END)
55 static int sandbox_spmi_write(struct udevice *dev, int usid, int pid, int off, argument
61 if (!check_address_valid(usid, pid, off))
66 switch (off) {
68 val &= regs[off].access_mask;
76 if (regs[off].perms & EMUL_PERM_W)
77 regs[off].value = val & regs[off].access_mask;
82 static int sandbox_spmi_read(struct udevice *dev, int usid, int pid, int off) argument
[all...]
/u-boot/arch/arm/cpu/armv7/ls102xa/
H A Dfdt.c80 int off; local
101 off = fdt_node_offset_by_prop_value(blob, -1, "device_type", "cpu", 4);
102 while (off != -FDT_ERR_NOTFOUND) {
104 fdt_setprop(blob, off, "clock-frequency", &val, 4);
105 off = fdt_node_offset_by_prop_value(blob, off,
137 off = fdt_add_mem_rsv(blob, CONFIG_TEXT_BASE - UBOOT_HEAD_LEN,
140 if (off < 0)
142 fdt_strerror(off));
173 off
[all...]
/u-boot/board/cssi/common/
H A Dcommon.c38 int ret, off; local
40 off = fdt_path_offset(blob, node);
42 if (off < 0) {
43 printf("Cannot find %s node err:%s\n", node, fdt_strerror(off));
45 return off;
48 ret = fdt_setprop(blob, off, prop, var, size);
59 int off; local
61 off = fdt_node_offset_by_compatible(blob, -1, compatible);
63 while (off != -FDT_ERR_NOTFOUND) {
68 ids = fdt_get_property(blob, off, pro
[all...]
/u-boot/env/
H A Deeprom.c27 unsigned int off = CONFIG_ENV_OFFSET; local
52 off = off_env[i] + offsetof(env_t, data);
56 eeprom_read(CONFIG_SYS_I2C_EEPROM_ADDR, off,
61 off += n;
104 off = offsetof(env_t, data);
109 CONFIG_ENV_OFFSET + off, rdbuf, n);
112 off += n;
122 off = CONFIG_ENV_OFFSET;
125 off = CONFIG_ENV_OFFSET_REDUND;
129 off, (ucha
138 unsigned int off = CONFIG_ENV_OFFSET; local
[all...]
/u-boot/arch/arm/cpu/armv8/fsl-layerscape/
H A Dls1028_ids.c106 int off; local
108 off = fdt_node_offset_by_compatible(blob, 0, "pci-host-ecam-generic");
109 if (off < 0) {
114 if (fdt_getprop_len(blob, off, "msi-map") != 16 ||
115 fdt_getprop_len(blob, off, "iommu-map") != 16) {
120 fdt_setprop_inplace_idx_u32(blob, off, "msi-map", 2,
122 fdt_setprop_inplace_idx_u32(blob, off, "msi-map", 3,
125 fdt_setprop_inplace_idx_u32(blob, off, "iommu-map", 2,
127 fdt_setprop_inplace_idx_u32(blob, off, "iommu-map", 3,
/u-boot/board/phytec/phycore_rk3288/
H A Dphycore-rk3288.c42 int off; local
45 off = fdt_path_offset(gd->fdt_blob, "eeprom0");
46 if (off < 0) {
48 return off;
51 ret = uclass_get_device_by_of_offset(UCLASS_I2C_EEPROM, off, &dev);

Completed in 111 milliseconds

12345678