Lines Matching defs:top
69 struct tostruct *top, *prevtop;
183 top = &p->tos[toindex];
184 top->selfpc = selfpc;
185 top->count = 1;
186 top->link = 0;
189 top = &p->tos[toindex];
190 if (top->selfpc == selfpc) {
194 top->count++;
199 * top points to what we are looking at,
200 * prevtop points to previous top.
204 if (top->link == 0) {
206 * top is end of the chain and none of the chain
207 * had top->selfpc == selfpc.
215 top = &p->tos[toindex];
216 top->selfpc = selfpc;
217 top->count = 1;
218 top->link = *frompcindex;
225 prevtop = top;
226 top = &p->tos[top->link];
227 if (top->selfpc == selfpc) {
233 top->count++;
235 prevtop->link = top->link;
236 top->link = *frompcindex;