Lines Matching refs:pnext
210 ppc_sgl_t *pnext, *sgl_addr;
230 pnext = psgl->phead;
231 while (pnext &&
232 ((unsigned) pnext < ((unsigned) psgl + SGL_LIST_SIZE) &&
233 (pnext != sgl_addr))
235 pnext++;
238 if (pnext == sgl_addr) { /* found the sgl descriptor */
240 *src_addr = pnext->src_addr;
241 *dst_addr = pnext->dst_addr;
248 pnext++;
250 while ((pnext != psgl->ptail) &&
251 ((unsigned) pnext < ((unsigned) psgl + SGL_LIST_SIZE))
253 count_left += pnext->control_count & SG_COUNT_MASK;
256 if (pnext != psgl->ptail) { /* should never happen */