Lines Matching refs:blocks
35 unsigned int blocks; member
41 static int __stmpe_enable(struct stmpe *stmpe, unsigned int blocks) in __stmpe_enable() argument
43 return stmpe->variant->enable(stmpe, blocks, true); in __stmpe_enable()
46 static int __stmpe_disable(struct stmpe *stmpe, unsigned int blocks) in __stmpe_disable() argument
48 return stmpe->variant->enable(stmpe, blocks, false); in __stmpe_disable()
126 int stmpe_enable(struct stmpe *stmpe, unsigned int blocks) in stmpe_enable() argument
131 ret = __stmpe_enable(stmpe, blocks); in stmpe_enable()
143 int stmpe_disable(struct stmpe *stmpe, unsigned int blocks) in stmpe_disable() argument
148 ret = __stmpe_disable(stmpe, blocks); in stmpe_disable()
408 static int stmpe801_enable(struct stmpe *stmpe, unsigned int blocks, in stmpe801_enable() argument
411 if (blocks & STMPE_BLOCK_GPIO) in stmpe801_enable()
423 .blocks = stmpe801_blocks,
435 .blocks = stmpe801_blocks_noirq,
527 static int stmpe811_enable(struct stmpe *stmpe, unsigned int blocks, in stmpe811_enable() argument
532 if (blocks & STMPE_BLOCK_GPIO) in stmpe811_enable()
535 if (blocks & STMPE_BLOCK_ADC) in stmpe811_enable()
538 if (blocks & STMPE_BLOCK_TOUCHSCREEN) in stmpe811_enable()
587 .blocks = stmpe811_blocks,
602 .blocks = stmpe811_blocks,
642 static int stmpe1600_enable(struct stmpe *stmpe, unsigned int blocks, in stmpe1600_enable() argument
645 if (blocks & STMPE_BLOCK_GPIO) in stmpe1600_enable()
658 .blocks = stmpe1600_blocks,
776 static int stmpe1601_enable(struct stmpe *stmpe, unsigned int blocks, in stmpe1601_enable() argument
781 if (blocks & STMPE_BLOCK_GPIO) in stmpe1601_enable()
786 if (blocks & STMPE_BLOCK_KEYPAD) in stmpe1601_enable()
791 if (blocks & STMPE_BLOCK_PWM) in stmpe1601_enable()
822 .blocks = stmpe1601_blocks,
877 static int stmpe1801_enable(struct stmpe *stmpe, unsigned int blocks, in stmpe1801_enable() argument
881 if (blocks & STMPE_BLOCK_GPIO) in stmpe1801_enable()
884 if (blocks & STMPE_BLOCK_KEYPAD) in stmpe1801_enable()
931 .blocks = stmpe1801_blocks,
999 static int stmpe24xx_enable(struct stmpe *stmpe, unsigned int blocks, in stmpe24xx_enable() argument
1004 if (blocks & STMPE_BLOCK_GPIO) in stmpe24xx_enable()
1007 if (blocks & STMPE_BLOCK_KEYPAD) in stmpe24xx_enable()
1037 .blocks = stmpe24xx_blocks,
1051 .blocks = stmpe24xx_blocks,
1304 unsigned int platform_blocks = stmpe->pdata->blocks; in stmpe_devices_init()
1309 struct stmpe_variant_block *block = &variant->blocks[i]; in stmpe_devices_init()
1353 pdata->blocks |= STMPE_BLOCK_GPIO; in stmpe_of_probe()
1355 pdata->blocks |= STMPE_BLOCK_KEYPAD; in stmpe_of_probe()
1357 pdata->blocks |= STMPE_BLOCK_TOUCHSCREEN; in stmpe_of_probe()
1359 pdata->blocks |= STMPE_BLOCK_ADC; in stmpe_of_probe()
1361 pdata->blocks |= STMPE_BLOCK_PWM; in stmpe_of_probe()