Lines Matching defs:top
73 struct tostruct *top, *prevtop;
198 top = &p->tos[toindex];
199 top->selfpc = selfpc;
200 top->count = 1;
201 top->link = 0;
204 top = &p->tos[toindex];
205 if (top->selfpc == selfpc) {
209 top->count++;
214 * top points to what we are looking at,
215 * prevtop points to previous top.
219 if (top->link == 0) {
221 * top is end of the chain and none of the chain
222 * had top->selfpc == selfpc.
230 top = &p->tos[toindex];
231 top->selfpc = selfpc;
232 top->count = 1;
233 top->link = *frompcindex;
240 prevtop = top;
241 top = &p->tos[top->link];
242 if (top->selfpc == selfpc) {
248 top->count++;
250 prevtop->link = top->link;
251 top->link = *frompcindex;