Lines Matching defs:np
69 struct ramstat_entry *np, lk;
73 np = RB_FIND(stats_tree, &stats, &lk);
74 if (np == NULL) {
75 np = xcalloc(1, sizeof *np);
76 (void)strlcpy(np->key, name, sizeof (np->key));
77 RB_INSERT(stats_tree, &stats, np);
80 name, name, np->value.u.counter, np->value.u.counter + val);
81 np->value.u.counter += val;
87 struct ramstat_entry *np, lk;
91 np = RB_FIND(stats_tree, &stats, &lk);
92 if (np == NULL) {
93 np = xcalloc(1, sizeof *np);
94 (void)strlcpy(np->key, name, sizeof (np->key));
95 RB_INSERT(stats_tree, &stats, np);
98 name, name, np->value.u.counter, np->value.u.counter - val);
99 np->value.u.counter -= val;
105 struct ramstat_entry *np, lk;
109 np = RB_FIND(stats_tree, &stats, &lk);
110 if (np == NULL) {
111 np = xcalloc(1, sizeof *np);
112 (void)strlcpy(np->key, name, sizeof (np->key));
113 RB_INSERT(stats_tree, &stats, np);
116 np->value = *val;
122 struct ramstat_entry *np;
129 np = RB_MIN(stats_tree, &stats);
131 np = RB_NEXT(stats_tree, &stats, *iter);
133 *iter = np;
134 if (np == NULL)
137 *name = np->key;
138 *val = np->value;