Lines Matching refs:model
264 const struct tmdc_model *model; in tmdc_setup_port() local
279 for (model = tmdc_models; model->id && model->id != port->mode; model++) in tmdc_setup_port()
282 port->abs = model->axes; in tmdc_setup_port()
283 port->btn = model->buttons; in tmdc_setup_port()
285 if (!model->id) { in tmdc_setup_port()
290 port->absc = model->abs; in tmdc_setup_port()
292 port->btnc[i] = model->btnc[i]; in tmdc_setup_port()
296 port->btno[i] = model->btno[i]; in tmdc_setup_port()
298 snprintf(port->name, sizeof(port->name), model->name, in tmdc_setup_port()
308 input_dev->id.product = model->id; in tmdc_setup_port()
323 for (i = 0; i < model->hats && i < TMDC_ABS_HAT; i++) in tmdc_setup_port()