Lines Matching defs:tail
41 int tail;
338 if (list->head == list->tail) {
341 while (list->head == list->tail) {
374 while (list->head != list->tail &&
377 if (list->buffer[list->tail].field_index != HID_FIELD_INDEX_NONE) {
380 event.hid = list->buffer[list->tail].usage_code;
381 event.value = list->buffer[list->tail].value;
389 if (list->buffer[list->tail].field_index != HID_FIELD_INDEX_NONE ||
392 if (copy_to_user(buffer + retval, list->buffer + list->tail, sizeof(struct hiddev_usage_ref))) {
399 list->tail = (list->tail + 1) & (HIDDEV_BUFFER_SIZE - 1);
417 if (list->head != list->tail)