Lines Matching refs:offs
94 int lnum, offs = 0, nodes_cnt, err; in scan_for_master() local
108 offs = snod->offs; in scan_for_master()
124 if (snod->offs != offs) in scan_for_master()
129 c->mst_offs = offs; in scan_for_master()
159 snod->type, lnum, snod->offs); in scan_for_master()
200 c->zroot.offs >= c->leb_size || c->zroot.offs & 7) { in validate_master()
356 c->zroot.offs = le32_to_cpu(c->mst_node->root_offs); in ubifs_read_master()
436 int err, lnum, offs, len; in ubifs_write_master() local
443 offs = c->mst_offs + c->mst_node_alsz; in ubifs_write_master()
446 if (offs + UBIFS_MST_NODE_SZ > c->leb_size) { in ubifs_write_master()
450 offs = 0; in ubifs_write_master()
453 c->mst_offs = offs; in ubifs_write_master()
457 err = ubifs_write_node_hmac(c, c->mst_node, len, lnum, offs, in ubifs_write_master()
464 if (offs == 0) { in ubifs_write_master()
469 err = ubifs_write_node_hmac(c, c->mst_node, len, lnum, offs, in ubifs_write_master()