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()
414 static int stmpe801_enable(struct stmpe *stmpe, unsigned int blocks, in stmpe801_enable() argument
417 if (blocks & STMPE_BLOCK_GPIO) in stmpe801_enable()
429 .blocks = stmpe801_blocks,
441 .blocks = stmpe801_blocks_noirq,
533 static int stmpe811_enable(struct stmpe *stmpe, unsigned int blocks, in stmpe811_enable() argument
538 if (blocks & STMPE_BLOCK_GPIO) in stmpe811_enable()
541 if (blocks & STMPE_BLOCK_ADC) in stmpe811_enable()
544 if (blocks & STMPE_BLOCK_TOUCHSCREEN) in stmpe811_enable()
593 .blocks = stmpe811_blocks,
608 .blocks = stmpe811_blocks,
648 static int stmpe1600_enable(struct stmpe *stmpe, unsigned int blocks, in stmpe1600_enable() argument
651 if (blocks & STMPE_BLOCK_GPIO) in stmpe1600_enable()
664 .blocks = stmpe1600_blocks,
782 static int stmpe1601_enable(struct stmpe *stmpe, unsigned int blocks, in stmpe1601_enable() argument
787 if (blocks & STMPE_BLOCK_GPIO) in stmpe1601_enable()
792 if (blocks & STMPE_BLOCK_KEYPAD) in stmpe1601_enable()
797 if (blocks & STMPE_BLOCK_PWM) in stmpe1601_enable()
828 .blocks = stmpe1601_blocks,
883 static int stmpe1801_enable(struct stmpe *stmpe, unsigned int blocks, in stmpe1801_enable() argument
887 if (blocks & STMPE_BLOCK_GPIO) in stmpe1801_enable()
890 if (blocks & STMPE_BLOCK_KEYPAD) in stmpe1801_enable()
937 .blocks = stmpe1801_blocks,
1005 static int stmpe24xx_enable(struct stmpe *stmpe, unsigned int blocks, in stmpe24xx_enable() argument
1010 if (blocks & STMPE_BLOCK_GPIO) in stmpe24xx_enable()
1013 if (blocks & STMPE_BLOCK_KEYPAD) in stmpe24xx_enable()
1043 .blocks = stmpe24xx_blocks,
1057 .blocks = stmpe24xx_blocks,
1310 unsigned int platform_blocks = stmpe->pdata->blocks; in stmpe_devices_init()
1315 struct stmpe_variant_block *block = &variant->blocks[i]; in stmpe_devices_init()
1366 pdata->blocks |= STMPE_BLOCK_GPIO; in stmpe_of_probe()
1368 pdata->blocks |= STMPE_BLOCK_KEYPAD; in stmpe_of_probe()
1370 pdata->blocks |= STMPE_BLOCK_TOUCHSCREEN; in stmpe_of_probe()
1372 pdata->blocks |= STMPE_BLOCK_ADC; in stmpe_of_probe()
1374 pdata->blocks |= STMPE_BLOCK_PWM; in stmpe_of_probe()
1376 pdata->blocks |= STMPE_BLOCK_ROTATOR; in stmpe_of_probe()