Searched refs:curridx (Results 1 – 1 of 1) sorted by relevance
355 int idx, curridx; in hp_sdc_put() local379 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()[all …]