Lines Matching defs:bits
37 * bits the chip supports.
74 int bits;
76 int slv_addr_shift; /* Number of bits to ignore */
81 .bits = 2,
86 .bits = 8,
91 .bits = 16,
96 .bits = 16,
101 .bits = 4,
142 /* 8 bits per input register */
143 static inline int pca95xx_num_input_regs(int bits)
145 return (bits + 7) / 8;
165 u8 cmd = pca95xx_num_input_regs(pca955x->chipdef->bits) + (2 * n);
185 u8 cmd = pca95xx_num_input_regs(pca955x->chipdef->bits) + 1 + (2 * n);
202 u8 cmd = pca95xx_num_input_regs(pca955x->chipdef->bits) + 4 + n;
219 u8 cmd = pca95xx_num_input_regs(pca955x->chipdef->bits) + 4 + n;
235 u8 cmd = pca95xx_num_input_regs(pca955x->chipdef->bits) + 1 + (2 * n);
290 int ls_led; /* which set of bits within LSx to use (0-3) */
426 if (count > chip->bits)
434 chip->bits, sizeof(struct pca955x_led),
444 if ((res != 0) || (reg >= chip->bits))
455 pdata->num_leds = chip->bits;
518 "slave address 0x%02x\n", client->name, chip->bits,
524 if (pdata->num_leds != chip->bits) {
527 pdata->num_leds, chip->bits);
535 pca955x->leds = devm_kcalloc(&client->dev, chip->bits,
549 for (i = 0; i < chip->bits; i++) {
646 pca955x->gpio.ngpio = chip->bits;