Lines Matching refs:blocks

26 static int __stmpe_enable(struct stmpe *stmpe, unsigned int blocks)  in __stmpe_enable()  argument
28 return stmpe->variant->enable(stmpe, blocks, true); in __stmpe_enable()
31 static int __stmpe_disable(struct stmpe *stmpe, unsigned int blocks) in __stmpe_disable() argument
33 return stmpe->variant->enable(stmpe, blocks, false); in __stmpe_disable()
111 int stmpe_enable(struct stmpe *stmpe, unsigned int blocks) in stmpe_enable() argument
116 ret = __stmpe_enable(stmpe, blocks); in stmpe_enable()
128 int stmpe_disable(struct stmpe *stmpe, unsigned int blocks) in stmpe_disable() argument
133 ret = __stmpe_disable(stmpe, blocks); in stmpe_disable()
366 static int stmpe801_enable(struct stmpe *stmpe, unsigned int blocks, in stmpe801_enable() argument
369 if (blocks & STMPE_BLOCK_GPIO) in stmpe801_enable()
381 .blocks = stmpe801_blocks,
393 .blocks = stmpe801_blocks_noirq,
454 static int stmpe811_enable(struct stmpe *stmpe, unsigned int blocks, in stmpe811_enable() argument
459 if (blocks & STMPE_BLOCK_GPIO) in stmpe811_enable()
462 if (blocks & STMPE_BLOCK_ADC) in stmpe811_enable()
465 if (blocks & STMPE_BLOCK_TOUCHSCREEN) in stmpe811_enable()
485 .blocks = stmpe811_blocks,
500 .blocks = stmpe811_blocks,
603 static int stmpe1601_enable(struct stmpe *stmpe, unsigned int blocks, in stmpe1601_enable() argument
608 if (blocks & STMPE_BLOCK_GPIO) in stmpe1601_enable()
613 if (blocks & STMPE_BLOCK_KEYPAD) in stmpe1601_enable()
618 if (blocks & STMPE_BLOCK_PWM) in stmpe1601_enable()
649 .blocks = stmpe1601_blocks,
689 static int stmpe1801_enable(struct stmpe *stmpe, unsigned int blocks, in stmpe1801_enable() argument
693 if (blocks & STMPE_BLOCK_GPIO) in stmpe1801_enable()
696 if (blocks & STMPE_BLOCK_KEYPAD) in stmpe1801_enable()
732 .blocks = stmpe1801_blocks,
776 static int stmpe24xx_enable(struct stmpe *stmpe, unsigned int blocks, in stmpe24xx_enable() argument
781 if (blocks & STMPE_BLOCK_GPIO) in stmpe24xx_enable()
784 if (blocks & STMPE_BLOCK_KEYPAD) in stmpe24xx_enable()
813 .blocks = stmpe24xx_blocks,
827 .blocks = stmpe24xx_blocks,
1087 unsigned int platform_blocks = stmpe->pdata->blocks; in stmpe_devices_init()
1092 struct stmpe_variant_block *block = &variant->blocks[i]; in stmpe_devices_init()
1143 pdata->blocks |= STMPE_BLOCK_GPIO; in stmpe_of_probe()
1145 pdata->blocks |= STMPE_BLOCK_KEYPAD; in stmpe_of_probe()
1147 pdata->blocks |= STMPE_BLOCK_TOUCHSCREEN; in stmpe_of_probe()
1149 pdata->blocks |= STMPE_BLOCK_ADC; in stmpe_of_probe()
1151 pdata->blocks |= STMPE_BLOCK_PWM; in stmpe_of_probe()
1153 pdata->blocks |= STMPE_BLOCK_ROTATOR; in stmpe_of_probe()