Lines Matching refs:top
75 struct tostruct *top, *prevtop;
200 top = &p->tos[toindex];
201 top->selfpc = selfpc;
202 top->count = 1;
203 top->link = 0;
206 top = &p->tos[toindex];
207 if (top->selfpc == selfpc) {
211 top->count++;
216 * top points to what we are looking at,
217 * prevtop points to previous top.
221 if (top->link == 0) {
223 * top is end of the chain and none of the chain
224 * had top->selfpc == selfpc.
232 top = &p->tos[toindex];
233 top->selfpc = selfpc;
234 top->count = 1;
235 top->link = *frompcindex;
242 prevtop = top;
243 top = &p->tos[top->link];
244 if (top->selfpc == selfpc) {
250 top->count++;
252 prevtop->link = top->link;
253 top->link = *frompcindex;