Lines Matching refs:model
109 static bool alps_is_valid_first_byte(const struct alps_model_info *model,
112 return (data & model->mask0) == model->byte0;
145 const struct alps_model_info *model = priv->i;
152 if (model->flags & ALPS_OLDPROTO) {
168 if (model->flags & ALPS_FW_BK_1) {
173 if (model->flags & ALPS_FW_BK_2) {
183 if ((model->flags & ALPS_DUALPOINT) && z == 127) {
226 if (model->flags & ALPS_WHEEL)
229 if (model->flags & (ALPS_FW_BK_1 | ALPS_FW_BK_2)) {
234 if (model->flags & ALPS_FOUR_BUTTONS) {
375 const struct alps_model_info *model = priv->i;
388 if ((model->flags & ALPS_PS2_INTERLEAVED) &&
393 if (!alps_is_valid_first_byte(model, psmouse->packet[0])) {
395 psmouse->packet[0], model->mask0, model->byte0);
595 const struct alps_model_info *model = priv->i;
597 if ((model->flags & ALPS_PASS) &&
612 if ((model->flags & ALPS_PASS) &&
628 const struct alps_model_info *model;
632 model = alps_get_model(psmouse, NULL);
633 if (!model)
652 const struct alps_model_info *model;
666 model = alps_get_model(psmouse, &version);
667 if (!model)
670 priv->i = model;
697 if (model->flags & ALPS_WHEEL) {
702 if (model->flags & (ALPS_FW_BK_1 | ALPS_FW_BK_2)) {
707 if (model->flags & ALPS_FOUR_BUTTONS) {
718 dev2->name = (model->flags & ALPS_DUALPOINT) ? "DualPoint Stick" : "PS/2 Mouse";
755 const struct alps_model_info *model;
757 model = alps_get_model(psmouse, &version);
758 if (!model)
763 psmouse->name = model->flags & ALPS_DUALPOINT ?
765 psmouse->model = version;