Lines Matching refs:variant
28 return stmpe->variant->enable(stmpe, blocks, true);
33 return stmpe->variant->enable(stmpe, blocks, false);
247 struct stmpe_variant_info *variant = stmpe->variant;
249 int af_bits = variant->af_bits;
255 if (!variant->get_altfunc)
269 af = variant->get_altfunc(stmpe, block);
566 if (!stmpe->variant->enable_autosleep)
570 ret = stmpe->variant->enable_autosleep(stmpe, autosleep_timeout);
854 struct stmpe_variant_info *variant = stmpe->variant;
855 int num = DIV_ROUND_UP(variant->num_irqs, 8);
861 if (variant->id_val == STMPE801_ID) {
868 if (variant->id_val == STMPE1801_ID)
912 struct stmpe_variant_info *variant = stmpe->variant;
913 int num = DIV_ROUND_UP(variant->num_irqs, 8);
964 if (stmpe->variant->id_val != STMPE801_ID)
997 int num_irqs = stmpe->variant->num_irqs;
1013 struct stmpe_variant_info *variant = stmpe->variant;
1025 if ((id & variant->id_mask) != variant->id_val) {
1030 dev_info(stmpe->dev, "%s detected, chip id: %#x\n", variant->name, id);
1082 struct stmpe_variant_info *variant = stmpe->variant;
1087 for (i = 0; i < variant->num_blocks; i++) {
1088 struct stmpe_variant_block *block = &variant->blocks[i];
1097 /* Dynamically fill in a variant's IRQ. */
1110 "platform wants blocks (%#x) not present on variant",
1188 stmpe->variant = stmpe_variant_info[partnum];
1189 stmpe->regs = stmpe->variant->regs;
1190 stmpe->num_gpios = stmpe->variant->num_gpios;
1223 /* use alternate variant info for no-irq mode, if supported */
1226 stmpe->variant->name);
1230 stmpe->variant->name);
1233 stmpe->variant = stmpe_noirq_variant_info[stmpe->partnum];