Searched refs:n_buttons (Results 1 – 2 of 2) sorted by relevance
145 int *n_buttons, n_devs; in tgfx_attach() local160 n_buttons = tgfx_cfg[port_idx].args + 1; in tgfx_attach()185 if (n_buttons[i] < 1) in tgfx_attach()188 if (n_buttons[i] > ARRAY_SIZE(tgfx_buttons)) { in tgfx_attach()189 printk(KERN_ERR "turbografx.c: Invalid number of buttons %d\n", n_buttons[i]); in tgfx_attach()201 "TurboGraFX %d-button Multisystem joystick", n_buttons[i]); in tgfx_attach()209 input_dev->id.product = n_buttons[i]; in tgfx_attach()221 for (j = 0; j < n_buttons[i]; j++) in tgfx_attach()
77 int n_buttons; member567 if (mode < 1 || mode >= DB9_MAX_PAD || !db9_modes[mode].n_buttons) { in db9_attach()622 for (j = 0; j < db9_mode->n_buttons; j++) in db9_attach()