Lines Matching refs:offs
40 int lnum, offs = 0, nodes_cnt; in scan_for_master() local
54 offs = snod->offs; in scan_for_master()
70 if (snod->offs != offs) in scan_for_master()
76 c->mst_offs = offs; in scan_for_master()
86 snod->type, lnum, snod->offs); in scan_for_master()
127 c->zroot.offs >= c->leb_size || c->zroot.offs & 7) { in validate_master()
283 c->zroot.offs = le32_to_cpu(c->mst_node->root_offs); in ubifs_read_master()
361 int err, lnum, offs, len; in ubifs_write_master() local
368 offs = c->mst_offs + c->mst_node_alsz; in ubifs_write_master()
371 if (offs + UBIFS_MST_NODE_SZ > c->leb_size) { in ubifs_write_master()
375 offs = 0; in ubifs_write_master()
378 c->mst_offs = offs; in ubifs_write_master()
381 err = ubifs_write_node(c, c->mst_node, len, lnum, offs); in ubifs_write_master()
387 if (offs == 0) { in ubifs_write_master()
392 err = ubifs_write_node(c, c->mst_node, len, lnum, offs); in ubifs_write_master()