Lines Matching full:blocks
29 * @blocks: bitmask of blocks to enable (use STMPE_BLOCK_*)
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()
128 * stmpe_enable - enable blocks on an STMPE device
130 * @blocks: Mask of blocks (enum stmpe_block values) to enable
132 int stmpe_enable(struct stmpe *stmpe, unsigned int blocks) in stmpe_enable() argument
137 ret = __stmpe_enable(stmpe, blocks); in stmpe_enable()
145 * stmpe_disable - disable blocks on an STMPE device
147 * @blocks: Mask of blocks (enum stmpe_block values) to 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,
529 static int stmpe811_enable(struct stmpe *stmpe, unsigned int blocks, in stmpe811_enable() argument
534 if (blocks & STMPE_BLOCK_GPIO) in stmpe811_enable()
537 if (blocks & STMPE_BLOCK_ADC) in stmpe811_enable()
540 if (blocks & STMPE_BLOCK_TOUCHSCREEN) in stmpe811_enable()
589 .blocks = stmpe811_blocks,
604 .blocks = stmpe811_blocks,
644 static int stmpe1600_enable(struct stmpe *stmpe, unsigned int blocks, in stmpe1600_enable() argument
647 if (blocks & STMPE_BLOCK_GPIO) in stmpe1600_enable()
660 .blocks = stmpe1600_blocks,
778 static int stmpe1601_enable(struct stmpe *stmpe, unsigned int blocks, in stmpe1601_enable() argument
783 if (blocks & STMPE_BLOCK_GPIO) in stmpe1601_enable()
788 if (blocks & STMPE_BLOCK_KEYPAD) in stmpe1601_enable()
793 if (blocks & STMPE_BLOCK_PWM) in stmpe1601_enable()
824 .blocks = stmpe1601_blocks,
879 static int stmpe1801_enable(struct stmpe *stmpe, unsigned int blocks, in stmpe1801_enable() argument
883 if (blocks & STMPE_BLOCK_GPIO) in stmpe1801_enable()
886 if (blocks & STMPE_BLOCK_KEYPAD) in stmpe1801_enable()
933 .blocks = stmpe1801_blocks,
1001 static int stmpe24xx_enable(struct stmpe *stmpe, unsigned int blocks, in stmpe24xx_enable() argument
1006 if (blocks & STMPE_BLOCK_GPIO) in stmpe24xx_enable()
1009 if (blocks & STMPE_BLOCK_KEYPAD) in stmpe24xx_enable()
1039 .blocks = stmpe24xx_blocks,
1053 .blocks = stmpe24xx_blocks,
1306 unsigned int platform_blocks = stmpe->pdata->blocks; in stmpe_devices_init()
1311 struct stmpe_variant_block *block = &variant->blocks[i]; in stmpe_devices_init()
1333 "platform wants blocks (%#x) not present on variant", in stmpe_devices_init()
1362 pdata->blocks |= STMPE_BLOCK_GPIO; in stmpe_of_probe()
1364 pdata->blocks |= STMPE_BLOCK_KEYPAD; in stmpe_of_probe()
1366 pdata->blocks |= STMPE_BLOCK_TOUCHSCREEN; in stmpe_of_probe()
1368 pdata->blocks |= STMPE_BLOCK_ADC; in stmpe_of_probe()
1370 pdata->blocks |= STMPE_BLOCK_PWM; in stmpe_of_probe()
1372 pdata->blocks |= STMPE_BLOCK_ROTATOR; in stmpe_of_probe()