Lines Matching refs:blocks
39 unsigned int blocks; member
47 static int __stmpe_enable(struct stmpe *stmpe, unsigned int blocks) in __stmpe_enable() argument
49 return stmpe->variant->enable(stmpe, blocks, true); in __stmpe_enable()
52 static int __stmpe_disable(struct stmpe *stmpe, unsigned int blocks) in __stmpe_disable() argument
54 return stmpe->variant->enable(stmpe, blocks, false); in __stmpe_disable()
132 int stmpe_enable(struct stmpe *stmpe, unsigned int blocks) in stmpe_enable() argument
137 ret = __stmpe_enable(stmpe, blocks); in stmpe_enable()
149 int stmpe_disable(struct stmpe *stmpe, unsigned int blocks) in stmpe_disable() argument
154 ret = __stmpe_disable(stmpe, blocks); in stmpe_disable()
412 static int stmpe801_enable(struct stmpe *stmpe, unsigned int blocks, in stmpe801_enable() argument
415 if (blocks & STMPE_BLOCK_GPIO) in stmpe801_enable()
427 .blocks = stmpe801_blocks,
439 .blocks = stmpe801_blocks_noirq,
502 static int stmpe811_enable(struct stmpe *stmpe, unsigned int blocks, in stmpe811_enable() argument
507 if (blocks & STMPE_BLOCK_GPIO) in stmpe811_enable()
510 if (blocks & STMPE_BLOCK_ADC) in stmpe811_enable()
513 if (blocks & STMPE_BLOCK_TOUCHSCREEN) in stmpe811_enable()
533 .blocks = stmpe811_blocks,
548 .blocks = stmpe811_blocks,
588 static int stmpe1600_enable(struct stmpe *stmpe, unsigned int blocks, in stmpe1600_enable() argument
591 if (blocks & STMPE_BLOCK_GPIO) in stmpe1600_enable()
604 .blocks = stmpe1600_blocks,
722 static int stmpe1601_enable(struct stmpe *stmpe, unsigned int blocks, in stmpe1601_enable() argument
727 if (blocks & STMPE_BLOCK_GPIO) in stmpe1601_enable()
732 if (blocks & STMPE_BLOCK_KEYPAD) in stmpe1601_enable()
737 if (blocks & STMPE_BLOCK_PWM) in stmpe1601_enable()
768 .blocks = stmpe1601_blocks,
823 static int stmpe1801_enable(struct stmpe *stmpe, unsigned int blocks, in stmpe1801_enable() argument
827 if (blocks & STMPE_BLOCK_GPIO) in stmpe1801_enable()
830 if (blocks & STMPE_BLOCK_KEYPAD) in stmpe1801_enable()
877 .blocks = stmpe1801_blocks,
945 static int stmpe24xx_enable(struct stmpe *stmpe, unsigned int blocks, in stmpe24xx_enable() argument
950 if (blocks & STMPE_BLOCK_GPIO) in stmpe24xx_enable()
953 if (blocks & STMPE_BLOCK_KEYPAD) in stmpe24xx_enable()
983 .blocks = stmpe24xx_blocks,
997 .blocks = stmpe24xx_blocks,
1250 unsigned int platform_blocks = stmpe->pdata->blocks; in stmpe_devices_init()
1255 struct stmpe_variant_block *block = &variant->blocks[i]; in stmpe_devices_init()
1306 pdata->blocks |= STMPE_BLOCK_GPIO; in stmpe_of_probe()
1308 pdata->blocks |= STMPE_BLOCK_KEYPAD; in stmpe_of_probe()
1310 pdata->blocks |= STMPE_BLOCK_TOUCHSCREEN; in stmpe_of_probe()
1312 pdata->blocks |= STMPE_BLOCK_ADC; in stmpe_of_probe()
1314 pdata->blocks |= STMPE_BLOCK_PWM; in stmpe_of_probe()
1316 pdata->blocks |= STMPE_BLOCK_ROTATOR; in stmpe_of_probe()