Lines Matching defs:tail
62 int tail;
353 if (list->head == list->tail) {
356 while (list->head == list->tail) {
387 while (list->head != list->tail &&
390 if (list->buffer[list->tail].field_index != HID_FIELD_INDEX_NONE) {
393 event.hid = list->buffer[list->tail].usage_code;
394 event.value = list->buffer[list->tail].value;
402 if (list->buffer[list->tail].field_index != HID_FIELD_INDEX_NONE ||
405 if (copy_to_user(buffer + retval, list->buffer + list->tail, sizeof(struct hiddev_usage_ref))) {
412 list->tail = (list->tail + 1) & (HIDDEV_BUFFER_SIZE - 1);
430 if (list->head != list->tail)