Lines Matching defs:node_type
978 * @node_type: LPT node type
991 static int make_node_dirty(struct ubifs_info *c, int node_type, int node_num,
994 switch (node_type) {
1010 * @node_type: LPT node type
1012 static int get_lpt_node_len(const struct ubifs_info *c, int node_type)
1014 switch (node_type) {
1054 int pos = 0, node_type;
1056 node_type = ubifs_unpack_bits(c, &addr, &pos, UBIFS_LPT_TYPE_BITS);
1058 return node_type;
1072 int pos = 0, node_type, node_len;
1077 node_type = ubifs_unpack_bits(c, &addr, &pos, UBIFS_LPT_TYPE_BITS);
1078 if (node_type == UBIFS_LPT_NOT_A_NODE)
1080 node_len = get_lpt_node_len(c, node_type);
1107 int err, len = c->leb_size, node_type, node_num, node_len, offs;
1128 node_type = get_lpt_node_type(c, buf, &node_num);
1129 node_len = get_lpt_node_len(c, node_type);
1133 err = make_node_dirty(c, node_type, node_num, lnum, offs);
1563 * @node_type: node type
1567 static int dbg_is_node_dirty(struct ubifs_info *c, int node_type, int lnum,
1570 switch (node_type) {
1592 int err, len = c->leb_size, dirty = 0, node_type, node_num, node_len;
1640 node_type = get_lpt_node_type(c, p, &node_num);
1641 node_len = get_lpt_node_len(c, node_type);
1642 ret = dbg_is_node_dirty(c, node_type, lnum, c->leb_size - len);
1843 int err, len = c->leb_size, node_type, node_num, node_len, offs;
1876 node_type = get_lpt_node_type(c, p, &node_num);
1877 switch (node_type) {
1924 ubifs_err(c, "LPT node type %d not recognized", node_type);