Lines Matching refs:top
250 register struct tostruct *top;
307 top = &tos[toindex];
308 top->selfpc = selfpc;
309 top->count = 1;
310 top->link = 0;
313 top = &tos[toindex];
314 if (top->selfpc == selfpc) {
318 top->count++;
323 * top points to what we are looking at,
324 * prevtop points to previous top.
328 if (top->link == 0) {
330 * top is end of the chain and none of the chain
331 * had top->selfpc == selfpc.
339 top = &tos[toindex];
340 top->selfpc = selfpc;
341 top->count = 1;
342 top->link = *frompcindex;
349 prevtop = top;
350 top = &tos[top->link];
351 if (top->selfpc == selfpc) {
357 top->count++;
359 prevtop->link = top->link;
360 top->link = *frompcindex;