Lines Matching defs:port_idx
146 int i, j, port_idx;
150 for (port_idx = 0; port_idx < TGFX_MAX_PORTS; port_idx++) {
151 if (tgfx_cfg[port_idx].nargs == 0 ||
152 tgfx_cfg[port_idx].args[0] < 0)
154 if (tgfx_cfg[port_idx].args[0] == pp->number)
158 if (port_idx == TGFX_MAX_PORTS) {
162 n_buttons = tgfx_cfg[port_idx].args + 1;
163 n_devs = tgfx_cfg[port_idx].nargs - 1;
169 port_idx);
235 tgfx_base[port_idx] = tgfx;