Lines Matching refs:tail
92 int tail; member
106 if (eerb->head < eerb->tail) in dasd_eer_get_free_bytes()
107 return eerb->tail - eerb->head - 1; in dasd_eer_get_free_bytes()
108 return eerb->buffersize - eerb->head + eerb->tail -1; in dasd_eer_get_free_bytes()
118 if (eerb->head >= eerb->tail) in dasd_eer_get_filled_bytes()
119 return eerb->head - eerb->tail; in dasd_eer_get_filled_bytes()
120 return eerb->buffersize - eerb->tail + eerb->head; in dasd_eer_get_filled_bytes()
167 tailindex = eerb->tail / PAGE_SIZE; in dasd_eer_read_buffer()
168 localtail = eerb->tail % PAGE_SIZE; in dasd_eer_read_buffer()
173 eerb->tail += len; in dasd_eer_read_buffer()
174 if (eerb->tail == eerb->buffersize) in dasd_eer_read_buffer()
175 eerb->tail = 0; /* wrap around */ in dasd_eer_read_buffer()
176 BUG_ON(eerb->tail > eerb->buffersize); in dasd_eer_read_buffer()
196 eerb->tail += eerb->residual; in dasd_eer_start_record()
197 if (eerb->tail >= eerb->buffersize) in dasd_eer_start_record()
198 eerb->tail -= eerb->buffersize; in dasd_eer_start_record()
203 eerb->tail += tailcount; in dasd_eer_start_record()
204 if (eerb->tail >= eerb->buffersize) in dasd_eer_start_record()
205 eerb->tail -= eerb->buffersize; in dasd_eer_start_record()
638 eerb->head != eerb->tail); in dasd_eer_read()
674 if (eerb->head != eerb->tail) in dasd_eer_poll()