Lines Matching defs:port_idx
144 int i, j, port_idx;
148 for (port_idx = 0; port_idx < TGFX_MAX_PORTS; port_idx++) {
149 if (tgfx_cfg[port_idx].nargs == 0 ||
150 tgfx_cfg[port_idx].args[0] < 0)
152 if (tgfx_cfg[port_idx].args[0] == pp->number)
156 if (port_idx == TGFX_MAX_PORTS) {
160 n_buttons = tgfx_cfg[port_idx].args + 1;
161 n_devs = tgfx_cfg[port_idx].nargs - 1;
167 port_idx);
233 tgfx_base[port_idx] = tgfx;