Lines Matching refs:curr
183 hp_sdc_transaction *curr; in hp_sdc_take() local
190 curr = hp_sdc.tq[hp_sdc.rcurr]; in hp_sdc_take()
193 curr->seq[curr->idx++] = status; in hp_sdc_take()
194 curr->seq[curr->idx++] = data; in hp_sdc_take()
200 if (curr->seq[curr->actidx] & HP_SDC_ACT_SEMAPHORE) in hp_sdc_take()
201 if (curr->act.semaphore) in hp_sdc_take()
202 up(curr->act.semaphore); in hp_sdc_take()
204 if (curr->seq[curr->actidx] & HP_SDC_ACT_CALLBACK) in hp_sdc_take()
205 if (curr->act.irqhook) in hp_sdc_take()
206 curr->act.irqhook(irq, dev_id, status, data); in hp_sdc_take()
208 curr->actidx = curr->idx; in hp_sdc_take()
209 curr->idx++; in hp_sdc_take()
313 hp_sdc_transaction *curr; in hp_sdc_tasklet() local
316 curr = hp_sdc.tq[hp_sdc.rcurr]; in hp_sdc_tasklet()
323 curr->idx += hp_sdc.rqty; in hp_sdc_tasklet()
325 tmp = curr->seq[curr->actidx]; in hp_sdc_tasklet()
326 curr->seq[curr->actidx] |= HP_SDC_ACT_DEAD; in hp_sdc_tasklet()
328 if (curr->act.semaphore) in hp_sdc_tasklet()
329 up(curr->act.semaphore); in hp_sdc_tasklet()
335 if (curr->act.irqhook) in hp_sdc_tasklet()
336 curr->act.irqhook(0, NULL, 0, 0); in hp_sdc_tasklet()
339 curr->actidx = curr->idx; in hp_sdc_tasklet()
340 curr->idx++; in hp_sdc_tasklet()
350 hp_sdc_transaction *curr; in hp_sdc_put() local
412 curr = hp_sdc.tq[curridx]; in hp_sdc_put()
413 idx = curr->actidx; in hp_sdc_put()
415 if (curr->actidx >= curr->endidx) { in hp_sdc_put()
424 act = curr->seq[idx]; in hp_sdc_put()
427 if (curr->idx >= curr->endidx) { in hp_sdc_put()
429 kfree(curr); in hp_sdc_put()
439 if (curr->idx != idx) { in hp_sdc_put()
444 hp_sdc_status_out8(curr->seq[idx]); in hp_sdc_put()
445 curr->idx++; in hp_sdc_put()
451 curr->idx++; in hp_sdc_put()
457 qty = curr->seq[idx]; in hp_sdc_put()
459 if (curr->idx - idx < qty) { in hp_sdc_put()
460 hp_sdc_data_out8(curr->seq[curr->idx]); in hp_sdc_put()
461 curr->idx++; in hp_sdc_put()
463 if (curr->idx - idx >= qty && in hp_sdc_put()
475 mask = curr->seq[idx]; in hp_sdc_put()
476 if (idx != curr->idx) { in hp_sdc_put()
486 w7[0] = (mask & 1) ? curr->seq[++idx] : hp_sdc.r7[0]; in hp_sdc_put()
487 w7[1] = (mask & 2) ? curr->seq[++idx] : hp_sdc.r7[1]; in hp_sdc_put()
488 w7[2] = (mask & 4) ? curr->seq[++idx] : hp_sdc.r7[2]; in hp_sdc_put()
489 w7[3] = (mask & 8) ? curr->seq[++idx] : hp_sdc.r7[3]; in hp_sdc_put()
509 curr->idx = idx; in hp_sdc_put()
523 curr->idx = idx + 1; in hp_sdc_put()
545 postcmd = curr->seq[idx]; in hp_sdc_put()
546 curr->idx++; in hp_sdc_put()
550 hp_sdc.rqty = curr->seq[curr->idx]; in hp_sdc_put()
552 curr->idx++; in hp_sdc_put()
566 up(curr->act.semaphore); in hp_sdc_put()
568 curr->act.irqhook(0,NULL,0,0); in hp_sdc_put()
570 if (curr->idx >= curr->endidx) { /* This transaction is over. */ in hp_sdc_put()
572 kfree(curr); in hp_sdc_put()
575 curr->actidx = idx + 1; in hp_sdc_put()
576 curr->idx = idx + 2; in hp_sdc_put()