Lines Matching refs:tail
62 int tail; member
360 if (list->head == list->tail) { in hiddev_read()
363 while (list->head == list->tail) { in hiddev_read()
396 while (list->head != list->tail && in hiddev_read()
399 if (list->buffer[list->tail].field_index != HID_FIELD_INDEX_NONE) { in hiddev_read()
402 event.hid = list->buffer[list->tail].usage_code; in hiddev_read()
403 event.value = list->buffer[list->tail].value; in hiddev_read()
411 if (list->buffer[list->tail].field_index != HID_FIELD_INDEX_NONE || in hiddev_read()
414 … if (copy_to_user(buffer + retval, list->buffer + list->tail, sizeof(struct hiddev_usage_ref))) { in hiddev_read()
421 list->tail = (list->tail + 1) & (HIDDEV_BUFFER_SIZE - 1); in hiddev_read()
439 if (list->head != list->tail) in hiddev_poll()