| /rk3399_rockchip-uboot/arch/arm/mach-omap2/ |
| H A D | fdt-common.c | 27 int offs; in ft_hs_disable_rng() local 32 offs = fdt_path_offset(fdt, path); in ft_hs_disable_rng() 33 if (offs < 0) { in ft_hs_disable_rng() 37 ret = fdt_setprop_string(fdt, offs, in ft_hs_disable_rng() 75 int offs, len; in ft_hs_fixup_dram() local 84 offs = fdt_path_offset(fdt, path); in ft_hs_fixup_dram() 85 if (offs >= 0) in ft_hs_fixup_dram() 86 fdt_del_node(fdt, offs); in ft_hs_fixup_dram() 90 offs = fdt_path_offset(fdt, path); in ft_hs_fixup_dram() 91 if (offs < 0) { in ft_hs_fixup_dram() [all …]
|
| /rk3399_rockchip-uboot/fs/ubifs/ |
| H A D | scan.c | 63 int offs, int quiet) in ubifs_scan_a_node() argument 71 dbg_scan("hit empty space at LEB %d:%d", lnum, offs); in ubifs_scan_a_node() 82 dbg_ntype(ch->node_type), lnum, offs); in ubifs_scan_a_node() 84 if (ubifs_check_node(c, buf, lnum, offs, quiet, 1)) in ubifs_scan_a_node() 94 offs + node_len + pad_len > c->leb_size) { in ubifs_scan_a_node() 97 lnum, offs); in ubifs_scan_a_node() 107 offs, offs + node_len + pad_len); in ubifs_scan_a_node() 112 lnum, offs, ALIGN(offs + node_len + pad_len, 8)); in ubifs_scan_a_node() 131 int offs, void *sbuf) in ubifs_start_scan() argument 136 dbg_scan("scan LEB %d:%d", lnum, offs); in ubifs_start_scan() [all …]
|
| H A D | io.c | 93 int ubifs_leb_read(const struct ubifs_info *c, int lnum, void *buf, int offs, in ubifs_leb_read() argument 98 err = ubi_read(c->ubi, lnum, buf, offs, len); in ubifs_leb_read() 105 len, lnum, offs, err); in ubifs_leb_read() 111 int ubifs_leb_write(struct ubifs_info *c, int lnum, const void *buf, int offs, in ubifs_leb_write() argument 120 err = ubi_leb_write(c->ubi, lnum, buf, offs, len); in ubifs_leb_write() 123 err = dbg_leb_write(c, lnum, buf, offs, len); in ubifs_leb_write() 127 len, lnum, offs, err); in ubifs_leb_write() 240 int offs, int quiet, int must_chk_crc) in ubifs_check_node() argument 246 ubifs_assert(lnum >= 0 && lnum < c->leb_cnt && offs >= 0); in ubifs_check_node() 247 ubifs_assert(!(offs & 7) && offs < c->leb_size); in ubifs_check_node() [all …]
|
| H A D | recovery.c | 106 int err, offs, len; in get_master_node() local 118 offs = 0; in get_master_node() 121 while (offs + UBIFS_MST_NODE_SZ <= c->leb_size) { in get_master_node() 126 offs += sz; in get_master_node() 131 if (offs) { in get_master_node() 134 offs -= sz; in get_master_node() 137 ret = ubifs_scan_a_node(c, buf, len, lnum, offs, 1); in get_master_node() 138 if (ret != SCANNED_A_NODE && offs) { in get_master_node() 140 offs -= sz; in get_master_node() 143 ret = ubifs_scan_a_node(c, buf, len, lnum, offs, 1); in get_master_node() [all …]
|
| H A D | lpt_commit.c | 192 int lnum, offs, len, alen, done_lsave, done_ltab, err; in layout_cnodes() local 202 offs = c->nhead_offs; in layout_cnodes() 206 if (!done_lsave && offs + c->lsave_sz <= c->leb_size) { in layout_cnodes() 209 c->lsave_offs = offs; in layout_cnodes() 210 offs += c->lsave_sz; in layout_cnodes() 214 if (offs + c->ltab_sz <= c->leb_size) { in layout_cnodes() 217 c->ltab_offs = offs; in layout_cnodes() 218 offs += c->ltab_sz; in layout_cnodes() 230 while (offs + len > c->leb_size) { in layout_cnodes() 231 alen = ALIGN(offs, c->min_io_size); in layout_cnodes() [all …]
|
| H A D | replay.c | 51 int offs; member 218 r->lnum, r->offs, r->len, r->deletion, r->sqnum); in apply_replay_entry() 227 err = ubifs_tnc_add_nm(c, &r->key, r->lnum, r->offs, in apply_replay_entry() 247 err = ubifs_tnc_add(c, &r->key, r->lnum, r->offs, in apply_replay_entry() 350 static int insert_node(struct ubifs_info *c, int lnum, int offs, int len, in insert_node() argument 357 dbg_mntk(key, "add LEB %d:%d, key ", lnum, offs); in insert_node() 369 r->offs = offs; in insert_node() 398 static int insert_dent(struct ubifs_info *c, int lnum, int offs, int len, in insert_dent() argument 405 dbg_mntk(key, "add LEB %d:%d, key ", lnum, offs); in insert_dent() 422 r->offs = offs; in insert_dent() [all …]
|
| H A D | tnc.c | 50 int len, int lnum, int offs); 77 static int insert_old_idx(struct ubifs_info *c, int lnum, int offs) in insert_old_idx() argument 86 old_idx->offs = offs; in insert_old_idx() 96 else if (offs < o->offs) in insert_old_idx() 98 else if (offs > o->offs) in insert_old_idx() 125 return insert_old_idx(c, zbr->lnum, zbr->offs); in insert_old_idx_znode() 129 c->zroot.offs); in insert_old_idx_znode() 150 err = insert_old_idx(c, zbr->lnum, zbr->offs); in ins_clr_old_idx_znode() 154 zbr->offs = 0; in ins_clr_old_idx_znode() 159 err = insert_old_idx(c, c->zroot.lnum, c->zroot.offs); in ins_clr_old_idx_znode() [all …]
|
| H A D | log.c | 168 int ubifs_add_bud_to_log(struct ubifs_info *c, int jhead, int lnum, int offs) in ubifs_add_bud_to_log() argument 208 if (c->bud_bytes + c->leb_size - offs > c->max_bud_bytes) { in ubifs_add_bud_to_log() 229 bud->start = offs; in ubifs_add_bud_to_log() 234 ref->offs = cpu_to_le32(bud->start); in ubifs_add_bud_to_log() 314 c->cmt_bud_bytes += wbuf->offs - bud->start; in remove_buds() 317 wbuf->offs - bud->start, c->cmt_bud_bytes); in remove_buds() 318 bud->start = wbuf->offs; in remove_buds() 382 int offs = c->jheads[i].wbuf.offs; in ubifs_log_start_commit() local 384 if (lnum == -1 || offs == c->leb_size) in ubifs_log_start_commit() 388 lnum, offs, dbg_jhead(i)); in ubifs_log_start_commit() [all …]
|
| H A D | master.c | 34 int lnum, offs = 0, nodes_cnt; in scan_for_master() local 48 offs = snod->offs; in scan_for_master() 64 if (snod->offs != offs) in scan_for_master() 70 c->mst_offs = offs; in scan_for_master() 80 snod->type, lnum, snod->offs); in scan_for_master() 121 c->zroot.offs >= c->leb_size || c->zroot.offs & 7) { in validate_master() 277 c->zroot.offs = le32_to_cpu(c->mst_node->root_offs); in ubifs_read_master() 358 int err, lnum, offs, len; in ubifs_write_master() local 365 offs = c->mst_offs + c->mst_node_alsz; in ubifs_write_master() 368 if (offs + UBIFS_MST_NODE_SZ > c->leb_size) { in ubifs_write_master() [all …]
|
| H A D | tnc_misc.c | 265 static int read_znode(struct ubifs_info *c, int lnum, int offs, int len, in read_znode() argument 275 err = ubifs_read_node(c, idx, UBIFS_IDX_NODE, len, lnum, offs); in read_znode() 285 lnum, offs, znode->level, znode->child_cnt); in read_znode() 302 zbr->offs = le32_to_cpu(br->offs); in read_znode() 309 zbr->lnum >= c->leb_cnt || zbr->offs < 0 || in read_znode() 310 zbr->offs + zbr->len > c->leb_size || zbr->offs & 7) { in read_znode() 381 ubifs_err(c, "bad indexing node at LEB %d:%d, error %d", lnum, offs, err); in read_znode() 414 err = read_znode(c, zbr->lnum, zbr->offs, zbr->len, znode); in ubifs_load_znode() 464 zbr->lnum, zbr->offs); in ubifs_tnc_read_node() 467 zbr->offs); in ubifs_tnc_read_node() [all …]
|
| H A D | ubifs.h | 878 int offs; member 904 int offs; member 1186 int offs; member 1286 int offs; member 1348 int offs; member 1380 int offs; member 2086 int ubifs_leb_read(const struct ubifs_info *c, int lnum, void *buf, int offs, 2088 int ubifs_leb_write(struct ubifs_info *c, int lnum, const void *buf, int offs, 2095 int ubifs_wbuf_seek_nolock(struct ubifs_wbuf *wbuf, int lnum, int offs); 2098 int lnum, int offs); [all …]
|
| /rk3399_rockchip-uboot/arch/arm/mach-omap2/omap5/ |
| H A D | fdt.c | 34 int offs; in ft_hs_fixup_crossbar() local 53 offs = fdt_path_offset(fdt, path); in ft_hs_fixup_crossbar() 54 if (offs < 0) { in ft_hs_fixup_crossbar() 60 p_data = fdt_getprop(fdt, offs, "ti,irqs-skip", &len); in ft_hs_fixup_crossbar() 77 fdt_delprop(fdt, offs, "ti,irqs-skip"); in ft_hs_fixup_crossbar() 78 ret = fdt_setprop(fdt, offs, "ti,irqs-skip", in ft_hs_fixup_crossbar() 98 int offs; in ft_hs_fixup_sram() local 108 offs = fdt_path_offset(fdt, path); in ft_hs_fixup_sram() 109 if (offs < 0) { in ft_hs_fixup_sram() 119 fdt_delprop(fdt, offs, "reg"); in ft_hs_fixup_sram() [all …]
|
| /rk3399_rockchip-uboot/drivers/mtd/nand/raw/ |
| H A D | fsl_elbc_spl.c | 38 int nand_spl_load_image(uint32_t offs, unsigned int uboot_size, void *vdst) in nand_spl_load_image() argument 40 static int nand_load_image(uint32_t offs, unsigned int uboot_size, void *vdst) in nand_spl_load_image() 54 if (offs & (block_size - 1)) { in nand_spl_load_image() 83 out_be32(®s->fbar, offs >> block_shift); in nand_spl_load_image() 87 unsigned int page_offs = (offs & (block_size - 1)) << 1; in nand_spl_load_image() 104 offs = (offs + block_size) & ~(block_size - 1); in nand_spl_load_image() 113 offs += page_size; in nand_spl_load_image() 114 } while ((offs & (block_size - 1)) && (pos < uboot_size)); in nand_spl_load_image() 125 #define nand_spl_load_image(offs, uboot_size, vdst) \ argument 126 nand_load_image(offs, uboot_size, vdst)
|
| H A D | sunxi_nand_spl.c | 215 static int nand_load_page(const struct nfc_config *conf, u32 offs) in nand_load_page() argument 217 int page = offs / conf->page_size; in nand_load_page() 255 static int nand_read_page(const struct nfc_config *conf, u32 offs, in nand_read_page() argument 261 int page = offs / conf->page_size; in nand_read_page() 265 if (offs % conf->page_size || len % conf->ecc_size || in nand_read_page() 368 static int nand_detect_ecc_config(struct nfc_config *conf, u32 offs, in nand_detect_ecc_config() argument 373 int page = offs / conf->page_size; in nand_detect_ecc_config() 401 ret = nand_read_page(conf, offs, dest, conf->ecc_size); in nand_detect_ecc_config() 418 if (!nand_read_page(conf, offs, dest, in nand_detect_ecc_config() 441 static int nand_detect_config(struct nfc_config *conf, u32 offs, void *dest) in nand_detect_config() argument [all …]
|
| H A D | nand_bbt.c | 77 static int nand_update_bbt(struct mtd_info *mtd, loff_t offs); 116 if (memcmp(buf + paglen + td->offs, td->pattern, td->len)) in check_pattern() 134 if (memcmp(buf + td->offs, td->pattern, td->len)) in check_short_pattern() 170 struct nand_bbt_descr *td, int offs) in read_bbt() argument 221 (loff_t)(offs + act) << in read_bbt() 223 bbt_mark_entry(this, offs + act, in read_bbt() 233 (loff_t)(offs + act) << in read_bbt() 237 bbt_mark_entry(this, offs + act, in read_bbt() 240 bbt_mark_entry(this, offs + act, in read_bbt() 268 int offs = 0; in read_abs_bbt() local [all …]
|
| H 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()
|
| H A D | kirkwood_nand.c | 37 u32 offs; in kw_nand_hwcontrol() local 43 offs = (1 << 0); /* Commands with A[1:0] == 01 */ in kw_nand_hwcontrol() 45 offs = (1 << 1); /* Addresses with A[1:0] == 10 */ in kw_nand_hwcontrol() 49 writeb(cmd, nc->IO_ADDR_W + offs); in kw_nand_hwcontrol()
|
| H A D | mxs_nand_spl.c | 162 static int is_badblock(struct mtd_info *mtd, loff_t offs, int allowbbt) in is_badblock() argument 165 unsigned int block = offs >> chip->phys_erase_shift; in is_badblock() 166 unsigned int page = offs >> chip->page_shift; in is_badblock() 168 debug("%s offs=0x%08x block:%d page:%d\n", __func__, (int)offs, block, in is_badblock() 209 int nand_spl_load_image(uint32_t offs, unsigned int size, void *buf) in nand_spl_load_image() argument 219 page = offs >> chip->page_shift; in nand_spl_load_image() 222 debug("%s offset:0x%08x len:%d page:%d\n", __func__, offs, size, page); in nand_spl_load_image() 229 offs += mtd->writesize; in nand_spl_load_image() 242 while (is_badblock(mtd, offs, 1)) { in nand_spl_load_image()
|
| H A D | nand_spl_simple.c | 26 static int nand_command(int block, int page, uint32_t offs, in nand_command() argument 39 this->cmd_ctrl(mtd, offs, NAND_CTRL_ALE | NAND_CTRL_CHANGE); in nand_command() 63 static int nand_command(int block, int page, uint32_t offs, in nand_command() argument 76 offs += CONFIG_SYS_NAND_PAGE_SIZE; in nand_command() 82 offs >>= 1; in nand_command() 88 hwctrl(mtd, offs & 0xff, in nand_command() 90 hwctrl(mtd, (offs >> 8) & 0xff, NAND_CTRL_ALE); /* A[11:9] */ in nand_command()
|
| H A D | fsl_ifc_spl.c | 108 int nand_spl_load_image(uint32_t offs, unsigned int uboot_size, void *vdst) in nand_spl_load_image() argument 203 pg_no = offs / page_size; in nand_spl_load_image() 224 offs = (offs + blk_size) & ~(blk_size - 1); in nand_spl_load_image() 233 offs += page_size; in nand_spl_load_image() 234 } while ((offs & (blk_size - 1)) && (pos < uboot_size)); in nand_spl_load_image()
|
| H A D | am335x_spl_bch.c | 30 static int nand_command(int block, int page, uint32_t offs, in nand_command() argument 43 offs += CONFIG_SYS_NAND_PAGE_SIZE; in nand_command() 66 offs >>= 1; in nand_command() 70 hwctrl(mtd, offs & 0xff, in nand_command() 72 hwctrl(mtd, (offs >> 8) & 0xff, NAND_CTRL_ALE); /* A[11:9] */ in nand_command()
|
| /rk3399_rockchip-uboot/drivers/usb/dwc3/ |
| H 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()
|
| /rk3399_rockchip-uboot/tools/ |
| H A D | sunxi-spl-image-builder.c | 154 int offs; in write_page() local 159 offs = steps * (info->ecc_step_size + eccbytes + 4); in write_page() 160 cnt = info->page_size + info->oob_size - offs; in write_page() 161 ret = fread(buffer + offs, 1, cnt, rnd); in write_page() 168 offs = info->page_size + (steps * (eccbytes + 4)); in write_page() 169 cnt = info->page_size + info->oob_size - offs; in write_page() 170 memset(buffer + offs, 0xff, cnt); in write_page() 171 scramble(info, page, buffer + offs, cnt); in write_page() 173 fseek(dst, pos + offs, SEEK_SET); in write_page() 174 fwrite(buffer + offs, cnt, 1, dst); in write_page()
|
| /rk3399_rockchip-uboot/drivers/mtd/onenand/ |
| H A D | onenand_bbt.c | 103 bd->offs, &ops); in create_bbt() 152 static int onenand_isbad_bbt(struct mtd_info *mtd, loff_t offs, int allowbbt) in onenand_isbad_bbt() argument 160 block = (int) (onenand_block(this, offs) << 1); in onenand_isbad_bbt() 164 (unsigned int)offs, block >> 1, res); in onenand_isbad_bbt() 234 .offs = 0,
|
| /rk3399_rockchip-uboot/drivers/mtd/ubi/ |
| H A D | upd.c | 276 int lnum, offs, err = 0, len, to_write = count; in ubi_more_update_data() local 279 u32 offs; in ubi_more_update_data() 288 lnum = div_u64_rem(vol->upd_received, vol->usable_leb_size, &offs); in ubi_more_update_data() 296 if (offs != 0) { in ubi_more_update_data() 304 len = vol->usable_leb_size - offs; in ubi_more_update_data() 308 err = copy_from_user(vol->upd_buf + offs, buf, len); in ubi_more_update_data() 312 if (offs + len == vol->usable_leb_size || in ubi_more_update_data() 314 int flush_len = offs + len; in ubi_more_update_data()
|