zn 666 drivers/thermal/tegra/soctherm.c static void thermal_irq_enable(struct tegra_thermctl_zone *zn) zn 671 drivers/thermal/tegra/soctherm.c mutex_lock(&zn->ts->thermctl_lock); zn 672 drivers/thermal/tegra/soctherm.c r = readl(zn->ts->regs + THERMCTL_INTR_ENABLE); zn 673 drivers/thermal/tegra/soctherm.c r = REG_SET_MASK(r, zn->sg->thermctl_isr_mask, TH_INTR_UP_DN_EN); zn 674 drivers/thermal/tegra/soctherm.c writel(r, zn->ts->regs + THERMCTL_INTR_ENABLE); zn 675 drivers/thermal/tegra/soctherm.c mutex_unlock(&zn->ts->thermctl_lock); zn 678 drivers/thermal/tegra/soctherm.c static void thermal_irq_disable(struct tegra_thermctl_zone *zn) zn 683 drivers/thermal/tegra/soctherm.c mutex_lock(&zn->ts->thermctl_lock); zn 684 drivers/thermal/tegra/soctherm.c r = readl(zn->ts->regs + THERMCTL_INTR_DISABLE); zn 685 drivers/thermal/tegra/soctherm.c r = REG_SET_MASK(r, zn->sg->thermctl_isr_mask, 0); zn 686 drivers/thermal/tegra/soctherm.c writel(r, zn->ts->regs + THERMCTL_INTR_DISABLE); zn 687 drivers/thermal/tegra/soctherm.c mutex_unlock(&zn->ts->thermctl_lock); zn 192 fs/ubifs/tnc.c struct ubifs_znode *zn; zn 194 fs/ubifs/tnc.c zn = kmemdup(znode, c->max_znode_sz, GFP_NOFS); zn 195 fs/ubifs/tnc.c if (unlikely(!zn)) zn 198 fs/ubifs/tnc.c zn->cnext = NULL; zn 199 fs/ubifs/tnc.c __set_bit(DIRTY_ZNODE, &zn->flags); zn 200 fs/ubifs/tnc.c __clear_bit(COW_ZNODE, &zn->flags); zn 207 fs/ubifs/tnc.c const int n = zn->child_cnt; zn 211 fs/ubifs/tnc.c struct ubifs_zbranch *zbr = &zn->zbranch[i]; zn 214 fs/ubifs/tnc.c zbr->znode->parent = zn; zn 219 fs/ubifs/tnc.c return zn; zn 247 fs/ubifs/tnc.c struct ubifs_znode *zn; zn 263 fs/ubifs/tnc.c zn = copy_znode(c, znode); zn 264 fs/ubifs/tnc.c if (IS_ERR(zn)) zn 265 fs/ubifs/tnc.c return zn; zn 275 fs/ubifs/tnc.c zbr->znode = zn; zn 282 fs/ubifs/tnc.c return zn; zn 603 fs/ubifs/tnc.c static int tnc_next(struct ubifs_info *c, struct ubifs_znode **zn, int *n) zn 605 fs/ubifs/tnc.c struct ubifs_znode *znode = *zn; zn 634 fs/ubifs/tnc.c *zn = znode; zn 648 fs/ubifs/tnc.c static int tnc_prev(struct ubifs_info *c, struct ubifs_znode **zn, int *n) zn 650 fs/ubifs/tnc.c struct ubifs_znode *znode = *zn; zn 679 fs/ubifs/tnc.c *zn = znode; zn 701 fs/ubifs/tnc.c struct ubifs_znode **zn, int *n, zn 706 fs/ubifs/tnc.c err = matches_name(c, &(*zn)->zbranch[*n], nm); zn 715 fs/ubifs/tnc.c err = tnc_prev(c, zn, n); zn 723 fs/ubifs/tnc.c if (keys_cmp(c, &(*zn)->zbranch[*n].key, key)) { zn 753 fs/ubifs/tnc.c if (*n == (*zn)->child_cnt - 1) { zn 754 fs/ubifs/tnc.c err = tnc_next(c, zn, n); zn 767 fs/ubifs/tnc.c err = matches_name(c, &(*zn)->zbranch[*n], nm); zn 778 fs/ubifs/tnc.c struct ubifs_znode *znode = *zn; zn 794 fs/ubifs/tnc.c *zn = znode; zn 890 fs/ubifs/tnc.c struct ubifs_znode **zn, int *n, zn 894 fs/ubifs/tnc.c struct ubifs_znode *o_znode = NULL, *znode = *zn; zn 917 fs/ubifs/tnc.c err = tnc_prev(c, zn, n); zn 925 fs/ubifs/tnc.c if (keys_cmp(c, &(*zn)->zbranch[*n].key, key)) { zn 927 fs/ubifs/tnc.c if (*n == (*zn)->child_cnt - 1) { zn 928 fs/ubifs/tnc.c err = tnc_next(c, zn, n); zn 941 fs/ubifs/tnc.c err = fallible_matches_name(c, &(*zn)->zbranch[*n], nm); zn 947 fs/ubifs/tnc.c o_znode = *zn; zn 962 fs/ubifs/tnc.c *zn = znode; zn 977 fs/ubifs/tnc.c *zn = znode; zn 995 fs/ubifs/tnc.c *zn = o_znode; zn 1035 fs/ubifs/tnc.c struct ubifs_znode **zn, int *n, zn 1041 fs/ubifs/tnc.c znode = *zn; zn 1056 fs/ubifs/tnc.c *zn = znode; zn 1063 fs/ubifs/tnc.c znode = *zn; zn 1073 fs/ubifs/tnc.c *zn = znode; zn 1171 fs/ubifs/tnc.c struct ubifs_znode **zn, int *n) zn 1213 fs/ubifs/tnc.c *zn = znode; zn 1277 fs/ubifs/tnc.c *zn = znode; zn 1307 fs/ubifs/tnc.c struct ubifs_znode **zn, int *n) zn 1357 fs/ubifs/tnc.c *zn = znode; zn 1388 fs/ubifs/tnc.c *zn = znode; zn 1885 fs/ubifs/tnc.c struct ubifs_znode **zn, int *n, int exact) zn 1888 fs/ubifs/tnc.c struct ubifs_znode *znode = *zn; zn 1913 fs/ubifs/tnc.c *zn = znode; zn 2084 fs/ubifs/tnc.c struct ubifs_znode *zn, *zi, *zp; zn 2119 fs/ubifs/tnc.c zn = kzalloc(c->max_znode_sz, GFP_NOFS); zn 2120 fs/ubifs/tnc.c if (!zn) zn 2122 fs/ubifs/tnc.c zn->parent = zp; zn 2123 fs/ubifs/tnc.c zn->level = znode->level; zn 2175 fs/ubifs/tnc.c zi = zn; zn 2178 fs/ubifs/tnc.c if (zn->level != 0) zn 2179 fs/ubifs/tnc.c zbr->znode->parent = zn; zn 2184 fs/ubifs/tnc.c __set_bit(DIRTY_ZNODE, &zn->flags); zn 2187 fs/ubifs/tnc.c zn->child_cnt = move; zn 2194 fs/ubifs/tnc.c zn->zbranch[i] = znode->zbranch[keep + i]; zn 2196 fs/ubifs/tnc.c if (zn->level != 0) zn 2197 fs/ubifs/tnc.c if (zn->zbranch[i].znode) { zn 2198 fs/ubifs/tnc.c zn->zbranch[i].znode->parent = zn; zn 2199 fs/ubifs/tnc.c zn->zbranch[i].znode->iip = i; zn 2204 fs/ubifs/tnc.c dbg_tnck(key, "inserting at %d level %d, key ", n, zn->level); zn 2217 fs/ubifs/tnc.c zbr->key = zn->zbranch[0].key; zn 2218 fs/ubifs/tnc.c zbr->znode = zn; zn 2245 fs/ubifs/tnc.c zi->zbranch[1].key = zn->zbranch[0].key; zn 2246 fs/ubifs/tnc.c zi->zbranch[1].znode = zn; zn 2253 fs/ubifs/tnc.c zn->parent = zi; zn 2254 fs/ubifs/tnc.c zn->iip = 1; zn 3179 fs/ubifs/tnc.c struct ubifs_znode *znode, *zn; zn 3239 fs/ubifs/tnc.c zn = znode; zn 3263 fs/ubifs/tnc.c znode = zn; zn 3335 fs/ubifs/tnc.c struct ubifs_znode *znode, *zn; zn 3353 fs/ubifs/tnc.c zn = znode; zn 3369 fs/ubifs/tnc.c znode = zn; zn 34 fs/ubifs/tnc_misc.c struct ubifs_znode *zn; zn 82 fs/ubifs/tnc_misc.c zn = ubifs_tnc_find_child(znode->parent, iip + 1); zn 83 fs/ubifs/tnc_misc.c if (!zn) { zn 90 fs/ubifs/tnc_misc.c while (zn->level != level) { zn 91 fs/ubifs/tnc_misc.c znode = zn; zn 92 fs/ubifs/tnc_misc.c zn = ubifs_tnc_find_child(zn, 0); zn 93 fs/ubifs/tnc_misc.c if (!zn) { zn 103 fs/ubifs/tnc_misc.c if (zn) { zn 104 fs/ubifs/tnc_misc.c ubifs_assert(c, zn->level >= 0); zn 105 fs/ubifs/tnc_misc.c return zn; zn 197 fs/ubifs/tnc_misc.c struct ubifs_znode *zn; zn 204 fs/ubifs/tnc_misc.c zn = ubifs_tnc_find_child(znode->parent, znode->iip + 1); zn 205 fs/ubifs/tnc_misc.c if (!zn) zn 210 fs/ubifs/tnc_misc.c return ubifs_tnc_postorder_first(zn); zn 224 fs/ubifs/tnc_misc.c struct ubifs_znode *zn = ubifs_tnc_postorder_first(znode); zn 228 fs/ubifs/tnc_misc.c ubifs_assert(c, zn); zn 230 fs/ubifs/tnc_misc.c for (n = 0; n < zn->child_cnt; n++) { zn 231 fs/ubifs/tnc_misc.c if (!zn->zbranch[n].znode) zn 234 fs/ubifs/tnc_misc.c if (zn->level > 0 && zn 235 fs/ubifs/tnc_misc.c !ubifs_zn_dirty(zn->zbranch[n].znode)) zn 239 fs/ubifs/tnc_misc.c kfree(zn->zbranch[n].znode); zn 242 fs/ubifs/tnc_misc.c if (zn == znode) { zn 243 fs/ubifs/tnc_misc.c if (!ubifs_zn_dirty(zn)) zn 245 fs/ubifs/tnc_misc.c kfree(zn); zn 249 fs/ubifs/tnc_misc.c zn = ubifs_tnc_postorder_next(c, zn); zn 1819 fs/ubifs/ubifs.h struct ubifs_znode **zn, int *n);