Lines Matching refs:model
280 const struct tmdc_model *model; in tmdc_setup_port() local
295 for (model = tmdc_models; model->id && model->id != port->mode; model++) in tmdc_setup_port()
298 port->abs = model->axes; in tmdc_setup_port()
299 port->btn = model->buttons; in tmdc_setup_port()
301 if (!model->id) { in tmdc_setup_port()
306 port->absc = model->abs; in tmdc_setup_port()
308 port->btnc[i] = model->btnc[i]; in tmdc_setup_port()
312 port->btno[i] = model->btno[i]; in tmdc_setup_port()
314 snprintf(port->name, sizeof(port->name), model->name, in tmdc_setup_port()
324 input_dev->id.product = model->id; in tmdc_setup_port()
339 for (i = 0; i < model->hats && i < TMDC_ABS_HAT; i++) in tmdc_setup_port()