Lines Matching refs:blocks
29 * @blocks: bitmask of blocks to enable (use STMPE_BLOCK_*)
39 unsigned int blocks;
47 static int __stmpe_enable(struct stmpe *stmpe, unsigned int blocks)
49 return stmpe->variant->enable(stmpe, blocks, true);
52 static int __stmpe_disable(struct stmpe *stmpe, unsigned int blocks)
54 return stmpe->variant->enable(stmpe, blocks, false);
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)
137 ret = __stmpe_enable(stmpe, blocks);
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)
154 ret = __stmpe_disable(stmpe, blocks);
412 static int stmpe801_enable(struct stmpe *stmpe, unsigned int blocks,
415 if (blocks & STMPE_BLOCK_GPIO)
427 .blocks = stmpe801_blocks,
439 .blocks = stmpe801_blocks_noirq,
529 static int stmpe811_enable(struct stmpe *stmpe, unsigned int blocks,
534 if (blocks & STMPE_BLOCK_GPIO)
537 if (blocks & STMPE_BLOCK_ADC)
540 if (blocks & STMPE_BLOCK_TOUCHSCREEN)
589 .blocks = stmpe811_blocks,
604 .blocks = stmpe811_blocks,
644 static int stmpe1600_enable(struct stmpe *stmpe, unsigned int blocks,
647 if (blocks & STMPE_BLOCK_GPIO)
660 .blocks = stmpe1600_blocks,
778 static int stmpe1601_enable(struct stmpe *stmpe, unsigned int blocks,
783 if (blocks & STMPE_BLOCK_GPIO)
788 if (blocks & STMPE_BLOCK_KEYPAD)
793 if (blocks & STMPE_BLOCK_PWM)
824 .blocks = stmpe1601_blocks,
879 static int stmpe1801_enable(struct stmpe *stmpe, unsigned int blocks,
883 if (blocks & STMPE_BLOCK_GPIO)
886 if (blocks & STMPE_BLOCK_KEYPAD)
933 .blocks = stmpe1801_blocks,
1001 static int stmpe24xx_enable(struct stmpe *stmpe, unsigned int blocks,
1006 if (blocks & STMPE_BLOCK_GPIO)
1009 if (blocks & STMPE_BLOCK_KEYPAD)
1039 .blocks = stmpe24xx_blocks,
1053 .blocks = stmpe24xx_blocks,
1306 unsigned int platform_blocks = stmpe->pdata->blocks;
1311 struct stmpe_variant_block *block = &variant->blocks[i];
1333 "platform wants blocks (%#x) not present on variant",
1362 pdata->blocks |= STMPE_BLOCK_GPIO;
1364 pdata->blocks |= STMPE_BLOCK_KEYPAD;
1366 pdata->blocks |= STMPE_BLOCK_TOUCHSCREEN;
1368 pdata->blocks |= STMPE_BLOCK_ADC;
1370 pdata->blocks |= STMPE_BLOCK_PWM;
1372 pdata->blocks |= STMPE_BLOCK_ROTATOR;