Lines Matching refs:model
270 const struct tmdc_model *model;
285 for (model = tmdc_models; model->id && model->id != port->mode; model++)
288 port->abs = model->axes;
289 port->btn = model->buttons;
291 if (!model->id) {
296 port->absc = model->abs;
298 port->btnc[i] = model->btnc[i];
302 port->btno[i] = model->btno[i];
304 snprintf(port->name, sizeof(port->name), model->name,
314 input_dev->id.product = model->id;
329 for (i = 0; i < model->hats && i < TMDC_ABS_HAT; i++)