/u-boot/arch/arm/mach-omap2/ |
A D | fdt-common.c | 27 int offs; in ft_hs_disable_rng() local 33 if (offs < 0) { in ft_hs_disable_rng() 75 int offs, len; in ft_hs_fixup_dram() local 85 if (offs >= 0) in ft_hs_fixup_dram() 91 if (offs < 0) { in ft_hs_fixup_dram() 96 offs = fdt_add_subnode(fdt, offs, subpath); in ft_hs_fixup_dram() 110 offs = fdt_add_subnode(fdt, offs, subpath); in ft_hs_fixup_dram() 111 if (offs < 0) { in ft_hs_fixup_dram() 131 int offs; in ft_hs_add_tee() local 148 offs = fdt_add_subnode(fdt, offs, subpath); in ft_hs_add_tee() [all …]
|
/u-boot/fs/ubifs/ |
A D | scan.c | 98 lnum, offs); in ubifs_scan_a_node() 108 offs, offs + node_len + pad_len); in ubifs_scan_a_node() 113 lnum, offs, ALIGN(offs + node_len + pad_len, 8)); in ubifs_scan_a_node() 147 err = ubifs_leb_read(c, lnum, sbuf + offs, offs, c->leb_size - offs, 0); in ubifs_start_scan() 150 c->leb_size - offs, lnum, offs, err); in ubifs_start_scan() 201 snod->offs = offs; in ubifs_add_snod() 277 lnum, offs, len); in ubifs_scan() 284 offs += ret; in ubifs_scan() 315 offs += node_len; in ubifs_scan() 323 offs); in ubifs_scan() [all …]
|
A D | io.c | 250 ubifs_assert(!(offs & 7) && offs < c->leb_size); in ubifs_check_node() 553 wbuf->size = ALIGN(wbuf->offs, c->max_write_size) - wbuf->offs; in ubifs_wbuf_sync_nolock() 583 ubifs_assert(offs >= 0 && offs <= c->leb_size); in ubifs_wbuf_seek_nolock() 584 ubifs_assert(offs % c->min_io_size == 0 && !(offs & 7)); in ubifs_wbuf_seek_nolock() 590 wbuf->offs = offs; in ubifs_wbuf_seek_nolock() 695 ubifs_assert(!(wbuf->offs & 7) && wbuf->offs <= c->leb_size); in ubifs_wbuf_write_nolock() 869 int offs) in ubifs_write_node() argument 918 ubifs_assert(!(offs & 7) && offs < c->leb_size); in ubifs_read_node_wbuf() 922 overlap = (lnum == wbuf->lnum && offs + len > wbuf->offs); in ubifs_read_node_wbuf() 930 rlen = wbuf->offs - offs; in ubifs_read_node_wbuf() [all …]
|
A D | recovery.c | 120 offs = 0; in get_master_node() 128 offs += sz; in get_master_node() 133 if (offs) { in get_master_node() 136 offs -= sz; in get_master_node() 142 offs -= sz; in get_master_node() 161 offs += sz; in get_master_node() 172 offs += sz; in get_master_node() 474 skip = ALIGN(offs + UBIFS_CH_SZ, c->max_write_size) - offs; in no_more_nodes() 486 skip = ALIGN(offs + dlen, c->max_write_size) - offs; in no_more_nodes() 587 *offs = snod->offs; in drop_last_group() [all …]
|
A D | lpt_commit.c | 239 offs = 0; in layout_cnodes() 263 cnode->parent->nbranch[cnode->iip].offs = offs; in layout_cnodes() 268 offs += len; in layout_cnodes() 282 offs = 0; in layout_cnodes() 302 offs = 0; in layout_cnodes() 382 from = offs; in write_cnodes() 918 if (branch->lnum != lnum || branch->offs != offs) in make_nnode_dirty() 965 if (branch->lnum != lnum || branch->offs != offs) in make_pnode_dirty() 1086 pad_len = ALIGN(offs, c->min_io_size) - offs; in get_pad_len() 1534 if (branch->lnum != lnum || branch->offs != offs) in dbg_is_nnode_dirty() [all …]
|
A D | replay.c | 52 int offs; member 370 r->offs = offs; in insert_node() 423 r->offs = offs; in insert_dent() 759 bud->start = offs; in add_replay_bud() 785 unsigned int offs = le32_to_cpu(ref->offs); in validate_ref() local 795 offs & (c->min_io_size - 1)) in validate_ref() 860 lnum, offs); in replay_log_leb() 865 lnum, offs, in replay_log_leb() 888 if (snod->offs != 0) { in replay_log_leb() 931 if (snod->offs != 0) { in replay_log_leb() [all …]
|
A D | tnc.c | 85 old_idx->offs = offs; in insert_old_idx() 95 else if (offs < o->offs) in insert_old_idx() 97 else if (offs > o->offs) in insert_old_idx() 1453 *offs = zt->offs; in ubifs_tnc_locate() 1659 rlen = wbuf->offs - offs; in read_wbuf() 2167 zbr.offs = offs; in ubifs_tnc_add() 2177 zbr->offs = offs; in ubifs_tnc_add() 2227 zbr->offs = offs; in ubifs_tnc_replace() 2256 zbr->offs = offs; in ubifs_tnc_replace() 2327 zbr->offs = offs; in ubifs_tnc_add_nm() [all …]
|
A D | log.c | 230 bud->start = offs; in ubifs_add_bud_to_log() 319 bud->start = wbuf->offs; in remove_buds() 383 int offs = c->jheads[i].wbuf.offs; in ubifs_log_start_commit() local 393 ref->offs = cpu_to_le32(offs); in ubifs_log_start_commit() 604 ubifs_pad(c, buf + *offs, sz - *offs); in add_node() 609 *offs = 0; in add_node() 612 *offs += ALIGN(len, 8); in add_node() 680 if (offs) { in ubifs_consolidate_log() 683 ubifs_pad(c, buf + offs, sz - offs); in ubifs_consolidate_log() 687 offs = ALIGN(offs, c->min_io_size); in ubifs_consolidate_log() [all …]
|
A D | master.c | 35 int lnum, offs = 0, nodes_cnt; in scan_for_master() local 49 offs = snod->offs; in scan_for_master() 65 if (snod->offs != offs) in scan_for_master() 71 c->mst_offs = offs; in scan_for_master() 81 snod->type, lnum, snod->offs); in scan_for_master() 122 c->zroot.offs >= c->leb_size || c->zroot.offs & 7) { in validate_master() 359 int err, lnum, offs, len; in ubifs_write_master() local 366 offs = c->mst_offs + c->mst_node_alsz; in ubifs_write_master() 373 offs = 0; in ubifs_write_master() 376 c->mst_offs = offs; in ubifs_write_master() [all …]
|
/u-boot/drivers/clk/ti/ |
A D | clk-ctrl.c | 21 struct clk_ti_ctrl_offs *offs; member 30 if (offs >= priv->offs[i].start && offs <= priv->offs[i].end) in clk_ti_ctrl_check_offs() 41 fdt_addr_t offs; in clk_ti_ctrl_disable() local 44 offs = priv->offs[0].start + clk->id; in clk_ti_ctrl_disable() 61 fdt_addr_t offs; in clk_ti_ctrl_enable() local 64 offs = priv->offs[0].start + clk->id; in clk_ti_ctrl_enable() 114 priv->offs = kmalloc_array(priv->offs_num, sizeof(*priv->offs), in clk_ti_ctrl_of_to_plat() 116 if (!priv->offs) in clk_ti_ctrl_of_to_plat() 120 priv->offs[i].start = in clk_ti_ctrl_of_to_plat() 127 priv->offs[i].end = priv->offs[i].start + fdt_size; in clk_ti_ctrl_of_to_plat() [all …]
|
/u-boot/test/optee/ |
A D | cmd_ut_optee.c | 33 int offs, len; in optee_fdt_firmware() local 35 offs = fdt_path_offset(fdt, "/firmware/optee"); in optee_fdt_firmware() 36 ut_assert(expect_success ? offs >= 0 : offs < 0); in optee_fdt_firmware() 39 if (offs < 0) in optee_fdt_firmware() 45 prop = fdt_getprop(fdt, offs, "method", &len); in optee_fdt_firmware() 54 int offs, subnode; in optee_fdt_protected_memory() local 57 offs = fdt_path_offset(fdt, "/firmware/optee"); in optee_fdt_protected_memory() 58 ut_assert(expect_success ? offs >= 0 : offs < 0); in optee_fdt_protected_memory() 61 if (offs < 0) in optee_fdt_protected_memory() 66 ut_assert(offs >= 0); in optee_fdt_protected_memory() [all …]
|
/u-boot/arch/arm/mach-omap2/omap5/ |
A D | fdt.c | 35 int offs; in ft_hs_fixup_crossbar() local 55 if (offs < 0) { in ft_hs_fixup_crossbar() 99 int offs; in ft_hs_fixup_sram() local 110 if (offs < 0) { in ft_hs_fixup_sram() 120 fdt_delprop(fdt, offs, "reg"); in ft_hs_fixup_sram() 211 int offs, node_offs, ret, i; in ft_fixup_clocks() local 215 if (offs < 0) in ft_fixup_clocks() 217 if (offs < 0) { in ft_fixup_clocks() 219 fdt_strerror(offs)); in ft_fixup_clocks() 220 return offs; in ft_fixup_clocks() [all …]
|
/u-boot/lib/optee/ |
A D | optee.c | 75 int old_offs, offs, ret, len; in optee_copy_firmware_node() local 85 if (offs < 0) { in optee_copy_firmware_node() 86 offs = fdt_path_offset(fdt_blob, "/"); in optee_copy_firmware_node() 87 if (offs < 0) in optee_copy_firmware_node() 88 return offs; in optee_copy_firmware_node() 90 offs = fdt_add_subnode(fdt_blob, offs, "firmware"); in optee_copy_firmware_node() 91 if (offs < 0) in optee_copy_firmware_node() 92 return offs; in optee_copy_firmware_node() 95 offs = fdt_add_subnode(fdt_blob, offs, "optee"); in optee_copy_firmware_node() 96 if (offs < 0) in optee_copy_firmware_node() [all …]
|
/u-boot/drivers/mtd/nand/ |
A D | bbt.c | 84 unsigned int offs = (entry * bits_per_block) % BITS_PER_LONG; in nanddev_bbt_get_block_status() local 90 status = pos[0] >> offs; in nanddev_bbt_get_block_status() 91 if (bits_per_block + offs > BITS_PER_LONG) in nanddev_bbt_get_block_status() 92 status |= pos[1] << (BITS_PER_LONG - offs); in nanddev_bbt_get_block_status() 117 unsigned int offs = (entry * bits_per_block) % BITS_PER_LONG; in nanddev_bbt_set_block_status() local 123 pos[0] &= ~GENMASK(offs + bits_per_block - 1, offs); in nanddev_bbt_set_block_status() 124 pos[0] |= val << offs; in nanddev_bbt_set_block_status() 126 if (bits_per_block + offs > BITS_PER_LONG) { in nanddev_bbt_set_block_status() 127 unsigned int rbits = bits_per_block + offs - BITS_PER_LONG; in nanddev_bbt_set_block_status()
|
/u-boot/drivers/mtd/nand/raw/ |
A D | nand_spl_loaders.c | 1 int nand_spl_load_image(uint32_t offs, unsigned int size, void *dst) in nand_spl_load_image() argument 7 block = offs / CONFIG_SYS_NAND_BLOCK_SIZE; in nand_spl_load_image() 8 lastblock = (offs + size - 1) / CONFIG_SYS_NAND_BLOCK_SIZE; in nand_spl_load_image() 9 page = (offs % CONFIG_SYS_NAND_BLOCK_SIZE) / CONFIG_SYS_NAND_PAGE_SIZE; in nand_spl_load_image() 10 page_offset = offs % CONFIG_SYS_NAND_PAGE_SIZE; in nand_spl_load_image() 53 u32 nand_spl_adjust_offset(u32 sector, u32 offs) in nand_spl_adjust_offset() argument 58 lastblock = (sector + offs) / CONFIG_SYS_NAND_BLOCK_SIZE; in nand_spl_adjust_offset() 62 offs += CONFIG_SYS_NAND_BLOCK_SIZE; in nand_spl_adjust_offset() 69 return offs; in nand_spl_adjust_offset()
|
A D | fsl_elbc_spl.c | 42 int nand_spl_load_image(uint32_t offs, unsigned int uboot_size, void *vdst) in nand_spl_load_image() argument 44 static int nand_load_image(uint32_t offs, unsigned int uboot_size, void *vdst) in nand_spl_load_image() 58 if (offs & (block_size - 1)) { in nand_spl_load_image() 87 out_be32(®s->fbar, offs >> block_shift); in nand_spl_load_image() 91 unsigned int page_offs = (offs & (block_size - 1)) << 1; in nand_spl_load_image() 108 offs = (offs + block_size) & ~(block_size - 1); in nand_spl_load_image() 117 offs += page_size; in nand_spl_load_image() 118 } while ((offs & (block_size - 1)) && (pos < uboot_size)); in nand_spl_load_image() 129 #define nand_spl_load_image(offs, uboot_size, vdst) \ argument 130 nand_load_image(offs, uboot_size, vdst)
|
A D | sunxi_nand_spl.c | 218 int page = offs / conf->page_size; in nand_load_page() 262 int page = offs / conf->page_size; in nand_read_page() 374 int page = offs / conf->page_size; in nand_detect_ecc_config() 419 if (!nand_read_page(conf, offs, dest, in nand_detect_ecc_config() 462 if (nand_load_page(conf, offs)) in nand_detect_config() 465 if (!nand_detect_ecc_config(conf, offs, dest)) { in nand_detect_config() 481 page = offs / conf->page_size; in nand_read_buffer() 486 if (nand_load_page(conf, offs)) in nand_read_buffer() 519 offs += conf->page_size; in nand_read_buffer() 531 ret = nand_detect_config(&conf, offs, dest); in nand_spl_load_image() [all …]
|
A D | nand_bbt.c | 271 int offs = 0; in read_abs_bbt() local 276 td, offs); in read_abs_bbt() 340 offs += mtd->writesize; in scan_read_oob() 439 offs += mtd->writesize; in scan_block_fast() 747 offs = td->len; in write_bbt() 750 offs++; in write_bbt() 753 len += offs; in write_bbt() 768 offs = 0; in write_bbt() 1047 BUG_ON(bd->offs); in verify_bbt_descr() 1210 .offs = 8, [all …]
|
A D | kirkwood_nand.c | 36 u32 offs; in kw_nand_hwcontrol() local 42 offs = (1 << 0); /* Commands with A[1:0] == 01 */ in kw_nand_hwcontrol() 44 offs = (1 << 1); /* Addresses with A[1:0] == 10 */ in kw_nand_hwcontrol() 48 writeb(cmd, nc->IO_ADDR_W + offs); in kw_nand_hwcontrol()
|
/u-boot/arch/arm/mach-imx/imx8/ |
A D | fdt.c | 235 int offs; in ft_add_optee_node() local 245 if (offs) { in ft_add_optee_node() 252 if (offs < 0) { in ft_add_optee_node() 256 if (offs < 0) { in ft_add_optee_node() 258 return offs; in ft_add_optee_node() 262 offs = fdt_add_subnode(fdt, offs, subpath); in ft_add_optee_node() 263 if (offs < 0) { in ft_add_optee_node() 265 return offs; in ft_add_optee_node() 270 offs = fdt_add_subnode(fdt, offs, subpath); in ft_add_optee_node() 271 if (offs < 0) { in ft_add_optee_node() [all …]
|
/u-boot/arch/mips/mach-octeon/include/mach/cvmx/ |
A D | cvmx-lmcx-defs.h | 9 #define CVMX_LMCX_BANK_CONFLICT1(offs) \ argument 13 #define CVMX_LMCX_BIST_RESULT(offs) \ argument 15 #define CVMX_LMCX_CHAR_CTL(offs) \ argument 19 #define CVMX_LMCX_CHAR_MASK0(offs) \ argument 21 #define CVMX_LMCX_CHAR_MASK1(offs) \ argument 29 #define CVMX_LMCX_COMP_CTL(offs) \ argument 33 #define CVMX_LMCX_CONFIG(offs) \ argument 35 #define CVMX_LMCX_CONTROL(offs) \ argument 37 #define CVMX_LMCX_CTL(offs) \ argument 39 #define CVMX_LMCX_CTL1(offs) \ argument [all …]
|
/u-boot/drivers/usb/dwc3/ |
A D | io.h | 26 unsigned long offs = offset - DWC3_GLOBALS_REGS_START; in dwc3_readl() local 34 value = readl(base + offs); in dwc3_readl() 41 unsigned long offs = offset - DWC3_GLOBALS_REGS_START; in dwc3_writel() local 48 writel(value, base + offs); in dwc3_writel()
|
/u-boot/board/armltd/vexpress64/ |
A D | vexpress64.c | 99 int offs; in find_dtb_in_nor_flash() local 111 for (offs = 0; offs < 32; offs += 4, len -= 4) { in find_dtb_in_nor_flash() 112 reg = readl(sector + JUNO_FLASH_SEC_SIZE - 0x30 + offs); in find_dtb_in_nor_flash() 113 if (strncmp(partname + offs, (char *)®, in find_dtb_in_nor_flash()
|
/u-boot/tools/ |
A D | efivar.py | 113 def _next_var(self, offs=0): argument 118 offs += namelen 121 offs = (offs + len(data) + 7) & ~7 125 self.offs = 0 131 self.offs = noffs 149 offs = 0 150 while offs < len(self.ents): 158 offs = loffs 163 offs = 0 164 while offs < len(self.ents): [all …]
|
/u-boot/arch/arm/mach-rockchip/rk3288/ |
A D | rk3288.c | 123 int offs, ret; in ft_rk3288w_setup() local 126 offs = fdt_path_offset(blob, path); in ft_rk3288w_setup() 127 if (offs < 0) { in ft_rk3288w_setup() 129 return offs; in ft_rk3288w_setup() 132 ret = fdt_setprop_string(blob, offs, "compatible", "rockchip,rk3288w-cru"); in ft_rk3288w_setup()
|