Lines Matching refs:offs
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()
372 offs = 0; in ubifs_write_master()
375 c->mst_offs = offs; in ubifs_write_master()
378 err = ubifs_write_node(c, c->mst_node, len, lnum, offs); in ubifs_write_master()
384 if (offs == 0) { in ubifs_write_master()
389 err = ubifs_write_node(c, c->mst_node, len, lnum, offs); in ubifs_write_master()