Lines Matching refs:wcurr
371 if (hp_sdc.wcurr < 0) in hp_sdc_put()
372 hp_sdc.wcurr = 0; in hp_sdc_put()
374 if (hp_sdc.rcurr == hp_sdc.wcurr) in hp_sdc_put()
375 hp_sdc.wcurr++; in hp_sdc_put()
377 if (hp_sdc.wcurr >= HP_SDC_QUEUE_LEN) in hp_sdc_put()
378 hp_sdc.wcurr = 0; in hp_sdc_put()
379 curridx = hp_sdc.wcurr; in hp_sdc_put()
384 while (++curridx != hp_sdc.wcurr) { in hp_sdc_put()
398 if (curridx == hp_sdc.wcurr) { /* There's nothing queued to do. */ in hp_sdc_put()
401 hp_sdc.wcurr = curridx; in hp_sdc_put()
412 if (hp_sdc.wcurr == -1) in hp_sdc_put()
421 hp_sdc.wcurr++; in hp_sdc_put()
422 if (hp_sdc.wcurr >= HP_SDC_QUEUE_LEN) in hp_sdc_put()
423 hp_sdc.wcurr = 0; in hp_sdc_put()
435 hp_sdc.wcurr++; in hp_sdc_put()
436 if (hp_sdc.wcurr >= HP_SDC_QUEUE_LEN) in hp_sdc_put()
437 hp_sdc.wcurr = 0; in hp_sdc_put()
582 hp_sdc.wcurr++; in hp_sdc_put()
583 if (hp_sdc.wcurr >= HP_SDC_QUEUE_LEN) in hp_sdc_put()
584 hp_sdc.wcurr = 0; in hp_sdc_put()
593 if (hp_sdc.wcurr >= 0) in hp_sdc_put()
858 hp_sdc.wcurr = -1; in hp_sdc_init()