/third_party/uboot/u-boot-2020.01/arch/arm/mach-omap2/ |
D | fdt-common.c | 26 int offs; in ft_hs_disable_rng() local 31 offs = fdt_path_offset(fdt, path); in ft_hs_disable_rng() 32 if (offs < 0) { in ft_hs_disable_rng() 36 ret = fdt_setprop_string(fdt, offs, in ft_hs_disable_rng() 74 int offs, len; in ft_hs_fixup_dram() local 83 offs = fdt_path_offset(fdt, path); in ft_hs_fixup_dram() 84 if (offs >= 0) in ft_hs_fixup_dram() 85 fdt_del_node(fdt, offs); in ft_hs_fixup_dram() 89 offs = fdt_path_offset(fdt, path); in ft_hs_fixup_dram() 90 if (offs < 0) { in ft_hs_fixup_dram() [all …]
|
/third_party/uboot/u-boot-2020.01/fs/ubifs/ |
D | scan.c | 62 int offs, int quiet) in ubifs_scan_a_node() argument 70 dbg_scan("hit empty space at LEB %d:%d", lnum, offs); in ubifs_scan_a_node() 81 dbg_ntype(ch->node_type), lnum, offs); in ubifs_scan_a_node() 83 if (ubifs_check_node(c, buf, lnum, offs, quiet, 1)) in ubifs_scan_a_node() 93 offs + node_len + pad_len > c->leb_size) { in ubifs_scan_a_node() 96 lnum, offs); in ubifs_scan_a_node() 106 offs, offs + node_len + pad_len); in ubifs_scan_a_node() 111 lnum, offs, ALIGN(offs + node_len + pad_len, 8)); in ubifs_scan_a_node() 130 int offs, void *sbuf) in ubifs_start_scan() argument 135 dbg_scan("scan LEB %d:%d", lnum, offs); in ubifs_start_scan() [all …]
|
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 …]
|
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 …]
|
D | lpt_commit.c | 191 int lnum, offs, len, alen, done_lsave, done_ltab, err; in layout_cnodes() local 201 offs = c->nhead_offs; in layout_cnodes() 205 if (!done_lsave && offs + c->lsave_sz <= c->leb_size) { in layout_cnodes() 208 c->lsave_offs = offs; in layout_cnodes() 209 offs += c->lsave_sz; in layout_cnodes() 213 if (offs + c->ltab_sz <= c->leb_size) { in layout_cnodes() 216 c->ltab_offs = offs; in layout_cnodes() 217 offs += c->ltab_sz; in layout_cnodes() 229 while (offs + len > c->leb_size) { in layout_cnodes() 230 alen = ALIGN(offs, c->min_io_size); in layout_cnodes() [all …]
|
D | replay.c | 50 int offs; member 217 r->lnum, r->offs, r->len, r->deletion, r->sqnum); in apply_replay_entry() 226 err = ubifs_tnc_add_nm(c, &r->key, r->lnum, r->offs, in apply_replay_entry() 246 err = ubifs_tnc_add(c, &r->key, r->lnum, r->offs, in apply_replay_entry() 349 static int insert_node(struct ubifs_info *c, int lnum, int offs, int len, in insert_node() argument 356 dbg_mntk(key, "add LEB %d:%d, key ", lnum, offs); in insert_node() 368 r->offs = offs; in insert_node() 397 static int insert_dent(struct ubifs_info *c, int lnum, int offs, int len, in insert_dent() argument 404 dbg_mntk(key, "add LEB %d:%d, key ", lnum, offs); in insert_dent() 421 r->offs = offs; in insert_dent() [all …]
|
D | tnc.c | 72 static int insert_old_idx(struct ubifs_info *c, int lnum, int offs) in insert_old_idx() argument 81 old_idx->offs = offs; in insert_old_idx() 91 else if (offs < o->offs) in insert_old_idx() 93 else if (offs > o->offs) in insert_old_idx() 120 return insert_old_idx(c, zbr->lnum, zbr->offs); in insert_old_idx_znode() 124 c->zroot.offs); in insert_old_idx_znode() 145 err = insert_old_idx(c, zbr->lnum, zbr->offs); in ins_clr_old_idx_znode() 149 zbr->offs = 0; in ins_clr_old_idx_znode() 154 err = insert_old_idx(c, c->zroot.lnum, c->zroot.offs); in ins_clr_old_idx_znode() 158 c->zroot.offs = 0; in ins_clr_old_idx_znode() [all …]
|
D | log.c | 167 int ubifs_add_bud_to_log(struct ubifs_info *c, int jhead, int lnum, int offs) in ubifs_add_bud_to_log() argument 207 if (c->bud_bytes + c->leb_size - offs > c->max_bud_bytes) { in ubifs_add_bud_to_log() 228 bud->start = offs; in ubifs_add_bud_to_log() 233 ref->offs = cpu_to_le32(bud->start); in ubifs_add_bud_to_log() 313 c->cmt_bud_bytes += wbuf->offs - bud->start; in remove_buds() 316 wbuf->offs - bud->start, c->cmt_bud_bytes); in remove_buds() 317 bud->start = wbuf->offs; in remove_buds() 381 int offs = c->jheads[i].wbuf.offs; in ubifs_log_start_commit() local 383 if (lnum == -1 || offs == c->leb_size) in ubifs_log_start_commit() 387 lnum, offs, dbg_jhead(i)); in ubifs_log_start_commit() [all …]
|
D | master.c | 33 int lnum, offs = 0, nodes_cnt; in scan_for_master() local 47 offs = snod->offs; in scan_for_master() 63 if (snod->offs != offs) in scan_for_master() 69 c->mst_offs = offs; in scan_for_master() 79 snod->type, lnum, snod->offs); in scan_for_master() 120 c->zroot.offs >= c->leb_size || c->zroot.offs & 7) { in validate_master() 276 c->zroot.offs = le32_to_cpu(c->mst_node->root_offs); in ubifs_read_master() 357 int err, lnum, offs, len; in ubifs_write_master() local 364 offs = c->mst_offs + c->mst_node_alsz; in ubifs_write_master() 367 if (offs + UBIFS_MST_NODE_SZ > c->leb_size) { in ubifs_write_master() [all …]
|
D | tnc_misc.c | 264 static int read_znode(struct ubifs_info *c, int lnum, int offs, int len, in read_znode() argument 274 err = ubifs_read_node(c, idx, UBIFS_IDX_NODE, len, lnum, offs); in read_znode() 284 lnum, offs, znode->level, znode->child_cnt); in read_znode() 301 zbr->offs = le32_to_cpu(br->offs); in read_znode() 308 zbr->lnum >= c->leb_cnt || zbr->offs < 0 || in read_znode() 309 zbr->offs + zbr->len > c->leb_size || zbr->offs & 7) { in read_znode() 380 ubifs_err(c, "bad indexing node at LEB %d:%d, error %d", lnum, offs, err); in read_znode() 413 err = read_znode(c, zbr->lnum, zbr->offs, zbr->len, znode); in ubifs_load_znode() 463 zbr->lnum, zbr->offs); in ubifs_tnc_read_node() 466 zbr->offs); in ubifs_tnc_read_node() [all …]
|
/third_party/uboot/u-boot-2020.01/arch/arm/mach-omap2/omap5/ |
D | fdt.c | 33 int offs; in ft_hs_fixup_crossbar() local 52 offs = fdt_path_offset(fdt, path); in ft_hs_fixup_crossbar() 53 if (offs < 0) { in ft_hs_fixup_crossbar() 59 p_data = fdt_getprop(fdt, offs, "ti,irqs-skip", &len); in ft_hs_fixup_crossbar() 76 fdt_delprop(fdt, offs, "ti,irqs-skip"); in ft_hs_fixup_crossbar() 77 ret = fdt_setprop(fdt, offs, "ti,irqs-skip", in ft_hs_fixup_crossbar() 97 int offs; in ft_hs_fixup_sram() local 107 offs = fdt_path_offset(fdt, path); in ft_hs_fixup_sram() 108 if (offs < 0) { in ft_hs_fixup_sram() 118 fdt_delprop(fdt, offs, "reg"); in ft_hs_fixup_sram() [all …]
|
/third_party/uboot/u-boot-2020.01/test/optee/ |
D | cmd_ut_optee.c | 32 int offs, len; in optee_fdt_firmware() local 34 offs = fdt_path_offset(fdt, "/firmware/optee"); in optee_fdt_firmware() 35 ut_assert(expect_success ? offs >= 0 : offs < 0); in optee_fdt_firmware() 38 if (offs < 0) in optee_fdt_firmware() 41 prop = fdt_getprop(fdt, offs, "compatible", &len); in optee_fdt_firmware() 44 prop = fdt_getprop(fdt, offs, "method", &len); in optee_fdt_firmware() 53 int offs, subnode; in optee_fdt_protected_memory() local 56 offs = fdt_path_offset(fdt, "/firmware/optee"); in optee_fdt_protected_memory() 57 ut_assert(expect_success ? offs >= 0 : offs < 0); in optee_fdt_protected_memory() 60 if (offs < 0) in optee_fdt_protected_memory() [all …]
|
/third_party/uboot/u-boot-2020.01/lib/optee/ |
D | optee.c | 72 int old_offs, offs, ret, len; in optee_copy_firmware_node() local 81 offs = fdt_path_offset(fdt_blob, "/firmware"); in optee_copy_firmware_node() 82 if (offs < 0) { in optee_copy_firmware_node() 83 offs = fdt_path_offset(fdt_blob, "/"); in optee_copy_firmware_node() 84 if (offs < 0) in optee_copy_firmware_node() 85 return offs; in optee_copy_firmware_node() 87 offs = fdt_add_subnode(fdt_blob, offs, "firmware"); in optee_copy_firmware_node() 88 if (offs < 0) in optee_copy_firmware_node() 89 return offs; in optee_copy_firmware_node() 92 offs = fdt_add_subnode(fdt_blob, offs, "optee"); in optee_copy_firmware_node() [all …]
|
/third_party/uboot/u-boot-2020.01/arch/arm/mach-imx/imx8/ |
D | fdt.c | 232 int offs; in ft_add_optee_node() local 241 offs = fdt_increase_size(fdt, 512); in ft_add_optee_node() 242 if (offs) { in ft_add_optee_node() 248 offs = fdt_path_offset(fdt, path); in ft_add_optee_node() 249 if (offs < 0) { in ft_add_optee_node() 251 offs = fdt_path_offset(fdt, path); in ft_add_optee_node() 253 if (offs < 0) { in ft_add_optee_node() 255 return offs; in ft_add_optee_node() 259 offs = fdt_add_subnode(fdt, offs, subpath); in ft_add_optee_node() 260 if (offs < 0) { in ft_add_optee_node() [all …]
|
/third_party/uboot/u-boot-2020.01/drivers/mtd/nand/ |
D | bbt.c | 82 unsigned int offs = (entry * bits_per_block) % BITS_PER_LONG; in nanddev_bbt_get_block_status() local 88 status = pos[0] >> offs; in nanddev_bbt_get_block_status() 89 if (bits_per_block + offs > BITS_PER_LONG) in nanddev_bbt_get_block_status() 90 status |= pos[1] << (BITS_PER_LONG - offs); in nanddev_bbt_get_block_status() 115 unsigned int offs = (entry * bits_per_block) % BITS_PER_LONG; in nanddev_bbt_set_block_status() local 121 pos[0] &= ~GENMASK(offs + bits_per_block - 1, offs); in nanddev_bbt_set_block_status() 122 pos[0] |= val << offs; in nanddev_bbt_set_block_status() 124 if (bits_per_block + offs > BITS_PER_LONG) { in nanddev_bbt_set_block_status() 125 unsigned int rbits = bits_per_block + offs - BITS_PER_LONG; in nanddev_bbt_set_block_status()
|
/third_party/uboot/u-boot-2020.01/drivers/mtd/nand/raw/ |
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)
|
D | sunxi_nand_spl.c | 214 static int nand_load_page(const struct nfc_config *conf, u32 offs) in nand_load_page() argument 216 int page = offs / conf->page_size; in nand_load_page() 254 static int nand_read_page(const struct nfc_config *conf, u32 offs, in nand_read_page() argument 260 int page = offs / conf->page_size; in nand_read_page() 264 if (offs % conf->page_size || len % conf->ecc_size || in nand_read_page() 367 static int nand_detect_ecc_config(struct nfc_config *conf, u32 offs, in nand_detect_ecc_config() argument 372 int page = offs / conf->page_size; in nand_detect_ecc_config() 400 ret = nand_read_page(conf, offs, dest, conf->ecc_size); in nand_detect_ecc_config() 417 if (!nand_read_page(conf, offs, dest, in nand_detect_ecc_config() 440 static int nand_detect_config(struct nfc_config *conf, u32 offs, void *dest) in nand_detect_config() argument [all …]
|
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 …]
|
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()
|
/third_party/ffmpeg/libavcodec/ |
D | faxcompr.c | 251 unsigned int offs = 0, run = 0; in decode_group3_2d_line() local 253 while (offs < width) { in decode_group3_2d_line() 262 run = run_off - offs; in decode_group3_2d_line() 263 offs = run_off; in decode_group3_2d_line() 266 if (offs > width) { in decode_group3_2d_line() 291 offs += run; in decode_group3_2d_line() 292 if (offs > width || run > width) { in decode_group3_2d_line() 302 int pix_left = width - offs; in decode_group3_2d_line() 309 offs = width - pix_left; in decode_group3_2d_line() 319 run = run_off - offs + (cmode - 5); in decode_group3_2d_line() [all …]
|
D | fraps.c | 146 uint32_t offs[4]; in decode_frame() local 204 offs[i] = AV_RL32(buf + 4 + i * 4); in decode_frame() 205 if (offs[i] >= buf_size - header_size || (i && offs[i] <= offs[i - 1] + 1024)) { in decode_frame() 210 offs[planes] = buf_size - header_size; in decode_frame() 212 av_fast_padded_malloc(&s->tmpbuf, &s->tmpbuf_size, offs[i + 1] - offs[i] - 1024); in decode_frame() 289 buf + offs[i], offs[i + 1] - offs[i], in decode_frame() 302 buf + offs[i], offs[i + 1] - offs[i], 0, 3)) < 0) { in decode_frame()
|
/third_party/gstreamer/gstplugins_bad/gst/mpegtsdemux/ |
D | mpegtsbase.h | 219 #define MPEGTS_BIT_SET(field, offs) ((field)[(offs) >> 3] |= (1 << ((offs) & 0x7))) argument 220 #define MPEGTS_BIT_UNSET(field, offs) ((field)[(offs) >> 3] &= ~(1 << ((offs) & 0x7))) argument 221 #define MPEGTS_BIT_IS_SET(field, offs) ((field)[(offs) >> 3] & (1 << ((offs) & 0x7))) argument
|
D | mpegtspacketizer.h | 328 #define MPEGTS_BIT_SET(field, offs) ((field)[(offs) >> 3] |= (1 << ((offs) & 0x7))) argument 329 #define MPEGTS_BIT_UNSET(field, offs) ((field)[(offs) >> 3] &= ~(1 << ((offs) & 0x7))) argument 330 #define MPEGTS_BIT_IS_SET(field, offs) ((field)[(offs) >> 3] & (1 << ((offs) & 0x7))) argument
|
/third_party/uboot/u-boot-2020.01/arch/arm/mach-stm32mp/ |
D | bsec.c | 361 unsigned int offs = offset; in stm32mp_bsec_read() local 363 if (offs >= STM32_BSEC_OTP_OFFSET) { in stm32mp_bsec_read() 364 offs -= STM32_BSEC_OTP_OFFSET; in stm32mp_bsec_read() 368 if (offs < 0 || (offs % 4) || (size % 4)) in stm32mp_bsec_read() 371 otp = offs / sizeof(u32); in stm32mp_bsec_read() 398 unsigned int offs = offset; in stm32mp_bsec_write() local 400 if (offs >= STM32_BSEC_OTP_OFFSET) { in stm32mp_bsec_write() 401 offs -= STM32_BSEC_OTP_OFFSET; in stm32mp_bsec_write() 405 if (offs < 0 || (offs % 4) || (size % 4)) in stm32mp_bsec_write() 408 otp = offs / sizeof(u32); in stm32mp_bsec_write()
|
/third_party/uboot/u-boot-2020.01/drivers/usb/dwc3/ |
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()
|