Lines Matching refs:curridx
352 int idx, curridx; in hp_sdc_put() local
376 curridx = hp_sdc.wcurr; in hp_sdc_put()
378 if (hp_sdc.tq[curridx] != NULL) in hp_sdc_put()
381 while (++curridx != hp_sdc.wcurr) { in hp_sdc_put()
382 if (curridx >= HP_SDC_QUEUE_LEN) { in hp_sdc_put()
383 curridx = -1; /* Wrap to top */ in hp_sdc_put()
387 if (hp_sdc.rcurr == curridx) { in hp_sdc_put()
392 if (hp_sdc.tq[curridx] != NULL) in hp_sdc_put()
395 if (curridx == hp_sdc.wcurr) { /* There's nothing queued to do. */ in hp_sdc_put()
396 curridx = -1; in hp_sdc_put()
398 hp_sdc.wcurr = curridx; in hp_sdc_put()
412 curr = hp_sdc.tq[curridx]; in hp_sdc_put()
416 hp_sdc.tq[curridx] = NULL; in hp_sdc_put()
430 hp_sdc.tq[curridx] = NULL; in hp_sdc_put()
555 hp_sdc.rcurr = curridx; in hp_sdc_put()
573 hp_sdc.tq[curridx] = NULL; in hp_sdc_put()