Lines Matching refs:index
17 #define BAR1_TTYVK_BASE(index) (BAR1_TTYVK_BASE_OFFSET + \
18 ((index) * BAR1_TTYVK_CHAN_OFFSET * 2))
19 /* TO TTYVK channel base comes before FROM for each index */
20 #define TO_TTYK_BASE(index) BAR1_TTYVK_BASE(index)
21 #define FROM_TTYK_BASE(index) (BAR1_TTYVK_BASE(index) + \
83 /* Don't increment read index if tty app is closed */
131 int index;
137 index = tty->index;
139 if (index >= BCM_VK_NUM_TTY)
142 vktty = &vk->tty[index];
145 vktty->to_offset = TO_TTYK_BASE(index);
146 vktty->from_offset = FROM_TTYK_BASE(index);
150 if (BCM_VK_INTF_IS_DOWN(card_status) || ((card_status & BIT(index)) == 0))
174 if (tty->index >= BCM_VK_NUM_TTY)
177 vk->tty[tty->index].is_opened = false;
192 int index;
197 index = tty->index;
199 vktty = &vk->tty[index];
220 return vk->tty[tty->index].to_size - 1;