Lines Matching full:variant
43 return stmpe->variant->enable(stmpe, blocks, true); in __stmpe_enable()
48 return stmpe->variant->enable(stmpe, blocks, false); in __stmpe_disable()
262 struct stmpe_variant_info *variant = stmpe->variant; in stmpe_set_altfunc() local
264 int af_bits = variant->af_bits; in stmpe_set_altfunc()
270 if (!variant->get_altfunc) in stmpe_set_altfunc()
284 af = variant->get_altfunc(stmpe, block); in stmpe_set_altfunc()
611 * Compared to all others STMPE variant, LSB and MSB regs are located in this
740 if (!stmpe->variant->enable_autosleep) in stmpe_autosleep()
744 ret = stmpe->variant->enable_autosleep(stmpe, autosleep_timeout); in stmpe_autosleep()
893 u16 id_val = stmpe->variant->id_val; in stmpe_reset()
902 /* all other STMPE variant use bit 7 of SYS_CTRL register */ in stmpe_reset()
1083 struct stmpe_variant_info *variant = stmpe->variant; in stmpe_irq() local
1084 int num = DIV_ROUND_UP(variant->num_irqs, 8); in stmpe_irq()
1090 if (variant->id_val == STMPE801_ID || in stmpe_irq()
1091 variant->id_val == STMPE1600_ID) { in stmpe_irq()
1098 if (variant->id_val == STMPE1801_ID) in stmpe_irq()
1142 struct stmpe_variant_info *variant = stmpe->variant; in stmpe_irq_sync_unlock() local
1143 int num = DIV_ROUND_UP(variant->num_irqs, 8); in stmpe_irq_sync_unlock()
1194 if (stmpe->variant->id_val != STMPE801_ID) in stmpe_irq_map()
1220 int num_irqs = stmpe->variant->num_irqs; in stmpe_irq_init()
1236 struct stmpe_variant_info *variant = stmpe->variant; in stmpe_chip_init() local
1248 if ((id & variant->id_mask) != variant->id_val) { in stmpe_chip_init()
1253 dev_info(stmpe->dev, "%s detected, chip id: %#x\n", variant->name, id); in stmpe_chip_init()
1303 struct stmpe_variant_info *variant = stmpe->variant; in stmpe_devices_init() local
1308 for (i = 0; i < variant->num_blocks; i++) { in stmpe_devices_init()
1309 struct stmpe_variant_block *block = &variant->blocks[i]; in stmpe_devices_init()
1318 /* Dynamically fill in a variant's IRQ. */ in stmpe_devices_init()
1331 "platform wants blocks (%#x) not present on variant", in stmpe_devices_init()
1405 stmpe->variant = stmpe_variant_info[partnum]; in stmpe_probe()
1406 stmpe->regs = stmpe->variant->regs; in stmpe_probe()
1407 stmpe->num_gpios = stmpe->variant->num_gpios; in stmpe_probe()
1442 /* use alternate variant info for no-irq mode, if supported */ in stmpe_probe()
1445 stmpe->variant->name); in stmpe_probe()
1449 stmpe->variant->name); in stmpe_probe()
1452 stmpe->variant = stmpe_noirq_variant_info[stmpe->partnum]; in stmpe_probe()