Lines Matching refs:curridx
355 int idx, curridx; in hp_sdc_put() local
379 curridx = hp_sdc.wcurr; in hp_sdc_put()
381 if (hp_sdc.tq[curridx] != NULL) in hp_sdc_put()
384 while (++curridx != hp_sdc.wcurr) { in hp_sdc_put()
385 if (curridx >= HP_SDC_QUEUE_LEN) { in hp_sdc_put()
386 curridx = -1; /* Wrap to top */ in hp_sdc_put()
390 if (hp_sdc.rcurr == curridx) { in hp_sdc_put()
395 if (hp_sdc.tq[curridx] != NULL) in hp_sdc_put()
398 if (curridx == hp_sdc.wcurr) { /* There's nothing queued to do. */ in hp_sdc_put()
399 curridx = -1; in hp_sdc_put()
401 hp_sdc.wcurr = curridx; in hp_sdc_put()
415 curr = hp_sdc.tq[curridx]; in hp_sdc_put()
419 hp_sdc.tq[curridx] = NULL; in hp_sdc_put()
433 hp_sdc.tq[curridx] = NULL; in hp_sdc_put()
558 hp_sdc.rcurr = curridx; in hp_sdc_put()
576 hp_sdc.tq[curridx] = NULL; in hp_sdc_put()