Lines Matching refs:ch
92 struct ubifs_ch *ch = buf; in get_master_node() local
94 if (le32_to_cpu(ch->magic) != UBIFS_NODE_MAGIC) in get_master_node()
123 struct ubifs_ch *ch = buf; in get_master_node() local
125 if (ch->node_type != UBIFS_MST_NODE) in get_master_node()
285 c->max_sqnum = le64_to_cpu(mst->ch.sqnum) - 1; in ubifs_recover_master_node()
437 struct ubifs_ch *ch = buf; in no_more_nodes() local
438 int dlen = le32_to_cpu(ch->len); in no_more_nodes()
440 if (ch->node_type == UBIFS_DATA_NODE && dlen >= UBIFS_CH_SZ && in no_more_nodes()
455 struct ubifs_ch *ch = buf; in no_more_nodes() local
456 uint32_t magic = le32_to_cpu(ch->magic); in no_more_nodes()
468 if (next_offs && offs + le32_to_cpu(ch->len) <= in no_more_nodes()
566 struct ubifs_ch *ch; in drop_incomplete_group() local
570 ch = snod->node; in drop_incomplete_group()
571 if (ch->group_type != UBIFS_IN_NODE_GROUP) in drop_incomplete_group()
629 struct ubifs_ch *ch = buf; in ubifs_recover_leb() local
635 node_len = ALIGN(le32_to_cpu(ch->len), 8); in ubifs_recover_leb()
769 if (cs_node->ch.node_type != UBIFS_CS_NODE) { in get_cs_sqnum()
770 dbg_err("Node a CS node, type is %d", cs_node->ch.node_type); in get_cs_sqnum()
779 *cs_sqnum = le64_to_cpu(cs_node->ch.sqnum); in get_cs_sqnum()
980 struct ubifs_ch *ch = buf; in clean_an_unclean_leb() local
983 node_len = ALIGN(le32_to_cpu(ch->len), 8); in clean_an_unclean_leb()
1425 len = le32_to_cpu(ino->ch.len); in fix_size_in_place()
1427 ino->ch.crc = cpu_to_le32(crc); in fix_size_in_place()