Home
last modified time | relevance | path

Searched refs:node_len (Results 1 – 6 of 6) sorted by relevance

/third_party/uboot/u-boot-2020.01/fs/ubifs/
Dscan.c89 int node_len = le32_to_cpu(ch->len); in ubifs_scan_a_node() local
93 offs + node_len + pad_len > c->leb_size) { in ubifs_scan_a_node()
103 if ((node_len + pad_len) & 7) { 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()
113 return node_len + pad_len; in ubifs_scan_a_node()
272 int node_len, ret; in ubifs_scan() local
312 node_len = ALIGN(le32_to_cpu(ch->len), 8); in ubifs_scan()
313 offs += node_len; in ubifs_scan()
314 buf += node_len; in ubifs_scan()
[all …]
Dlpt_commit.c1115 int pos = 0, node_type, node_len; in is_a_node() local
1123 node_len = get_lpt_node_len(c, node_type); in is_a_node()
1124 if (!node_len || node_len > len) in is_a_node()
1130 node_len - UBIFS_LPT_CRC_BYTES); in is_a_node()
1150 int err, len = c->leb_size, node_type, node_num, node_len, offs; in lpt_gc_lnum() local
1172 node_len = get_lpt_node_len(c, node_type); in lpt_gc_lnum()
1174 ubifs_assert(node_len != 0); in lpt_gc_lnum()
1180 buf += node_len; in lpt_gc_lnum()
1181 len -= node_len; in lpt_gc_lnum()
1635 int err, len = c->leb_size, dirty = 0, node_type, node_num, node_len; in dbg_check_ltab_lnum() local
[all …]
Drecovery.c660 int node_len; in ubifs_recover_leb() local
665 node_len = ALIGN(le32_to_cpu(ch->len), 8); in ubifs_recover_leb()
666 offs += node_len; in ubifs_recover_leb()
667 buf += node_len; in ubifs_recover_leb()
668 len -= node_len; in ubifs_recover_leb()
1019 int node_len; in clean_an_unclean_leb() local
1021 node_len = ALIGN(le32_to_cpu(ch->len), 8); in clean_an_unclean_leb()
1022 offs += node_len; in clean_an_unclean_leb()
1023 buf += node_len; in clean_an_unclean_leb()
1024 len -= node_len; in clean_an_unclean_leb()
Dio.c242 int err = -EINVAL, type, node_len; in ubifs_check_node() local
265 node_len = le32_to_cpu(ch->len); in ubifs_check_node()
266 if (node_len + offs > c->leb_size) in ubifs_check_node()
270 if (node_len != c->ranges[type].len) in ubifs_check_node()
272 } else if (node_len < c->ranges[type].min_len || in ubifs_check_node()
273 node_len > c->ranges[type].max_len) in ubifs_check_node()
280 crc = crc32(UBIFS_CRC32_INIT, buf + 8, node_len - 8); in ubifs_check_node()
294 ubifs_err(c, "bad node length %d", node_len); in ubifs_check_node()
Dtnc.c437 int err, node_len; in try_read_node() local
456 node_len = le32_to_cpu(ch->len); in try_read_node()
457 if (node_len != len) in try_read_node()
464 crc = crc32(UBIFS_CRC32_INIT, buf + 8, node_len - 8); in try_read_node()
/third_party/musl/porting/liteos_a/user_debug/src/malloc/
Dmemory_check.c126 size_t node_len = sizeof(struct node); in expand_mem() local
127 int n_node = PAGE_SIZE / node_len; in expand_mem()
137 node = (struct node *)((uintptr_t)ptr + i * node_len); in expand_mem()