Lines Matching defs:index

91  * hvcs_module_init().  Exposed hvcs_struct.index via a sysfs attribute so that
96 * 1.3.1 -> 1.3.2 Changed method for determining hvcs_struct->index and had it
97 * align with how the tty layer always assigns the lowest index available. This
209 * index element with the numerically equal tty->index. This means that a
210 * hotplugged vty-server adapter will always map to the lowest index valued
214 * index of all the adapters due to the hole left by the hotplug removed
215 * adapter. There are a set of functions provided to get the lowest index for
216 * a new device as well as return the index to the list. This list is allocated
255 * This index identifies this hvcs device as the complement to a
256 * specific tty index.
258 unsigned int index;
430 retval = sprintf(buf, "%d\n", hvcsd->index);
435 static DEVICE_ATTR(index, S_IRUGO, hvcs_index_show, NULL);
651 static void hvcs_return_index(int index)
656 if (index < 0 || index >= hvcs_index_count)
658 if (hvcs_index_list[index] == -1)
661 hvcs_index_list[index] = -1;
695 hvcs_return_index(hvcsd->index);
718 /* Find the numerically lowest first free index. */
733 int index, rc;
748 index = hvcs_get_index();
749 if (index < 0) {
764 hvcsd->index = index;
766 /* hvcsd->index = ++hvcs_struct_count; */
1039 static struct hvcs_struct *hvcs_get_by_index(int index)
1047 if (hvcsd->index == index) {
1069 * Is there a vty-server that shares the same index?
1070 * This function increments the kref index.
1072 hvcsd = hvcs_get_by_index(tty->index);
1075 " with tty->index %d.\n", tty->index);