Lines Matching refs:idx

193 	curr->seq[curr->idx++] = status;  in hp_sdc_take()
194 curr->seq[curr->idx++] = data; in hp_sdc_take()
208 curr->actidx = curr->idx; in hp_sdc_take()
209 curr->idx++; in hp_sdc_take()
326 curr->idx += hp_sdc.rqty; in hp_sdc_tasklet()
342 curr->actidx = curr->idx; in hp_sdc_tasklet()
343 curr->idx++; in hp_sdc_tasklet()
355 int idx, curridx; in hp_sdc_put() local
416 idx = curr->actidx; in hp_sdc_put()
427 act = curr->seq[idx]; in hp_sdc_put()
428 idx++; in hp_sdc_put()
430 if (curr->idx >= curr->endidx) { in hp_sdc_put()
442 if (curr->idx != idx) { in hp_sdc_put()
443 idx++; in hp_sdc_put()
447 hp_sdc_status_out8(curr->seq[idx]); in hp_sdc_put()
448 curr->idx++; in hp_sdc_put()
454 curr->idx++; in hp_sdc_put()
460 qty = curr->seq[idx]; in hp_sdc_put()
461 idx++; in hp_sdc_put()
462 if (curr->idx - idx < qty) { in hp_sdc_put()
463 hp_sdc_data_out8(curr->seq[curr->idx]); in hp_sdc_put()
464 curr->idx++; in hp_sdc_put()
466 if (curr->idx - idx >= qty && in hp_sdc_put()
471 idx += qty; in hp_sdc_put()
478 mask = curr->seq[idx]; in hp_sdc_put()
479 if (idx != curr->idx) { in hp_sdc_put()
480 idx++; in hp_sdc_put()
481 idx += !!(mask & 1); in hp_sdc_put()
482 idx += !!(mask & 2); in hp_sdc_put()
483 idx += !!(mask & 4); in hp_sdc_put()
484 idx += !!(mask & 8); in hp_sdc_put()
489 w7[0] = (mask & 1) ? curr->seq[++idx] : hp_sdc.r7[0]; in hp_sdc_put()
490 w7[1] = (mask & 2) ? curr->seq[++idx] : hp_sdc.r7[1]; in hp_sdc_put()
491 w7[2] = (mask & 4) ? curr->seq[++idx] : hp_sdc.r7[2]; in hp_sdc_put()
492 w7[3] = (mask & 8) ? curr->seq[++idx] : hp_sdc.r7[3]; in hp_sdc_put()
508 idx++; in hp_sdc_put()
512 curr->idx = idx; in hp_sdc_put()
526 curr->idx = idx + 1; in hp_sdc_put()
548 postcmd = curr->seq[idx]; in hp_sdc_put()
549 curr->idx++; in hp_sdc_put()
553 hp_sdc.rqty = curr->seq[curr->idx]; in hp_sdc_put()
555 curr->idx++; in hp_sdc_put()
573 if (curr->idx >= curr->endidx) { /* This transaction is over. */ in hp_sdc_put()
578 curr->actidx = idx + 1; in hp_sdc_put()
579 curr->idx = idx + 2; in hp_sdc_put()
616 this->idx = 1; in __hp_sdc_enqueue_transaction()
900 t_sync.idx = 1; in hp_sdc_init()
1044 tq_init.idx = 1; in hp_sdc_register()
1072 tq_init.idx = 1; in hp_sdc_register()
1096 tq_init.idx = 1; in hp_sdc_register()