Lines Matching defs:bits
37 * bits the chip supports.
73 int bits;
75 int slv_addr_shift; /* Number of bits to ignore */
80 .bits = 2,
85 .bits = 8,
90 .bits = 16,
95 .bits = 16,
100 .bits = 4,
140 /* 8 bits per input register */
141 static inline int pca95xx_num_input_regs(int bits)
143 return (bits + 7) / 8;
146 /* 4 bits per LED selector register */
147 static inline int pca95xx_num_led_regs(int bits)
149 return (bits + 3) / 4;
172 pca95xx_num_input_regs(pca955x->chipdef->bits) + 2*n,
193 pca95xx_num_input_regs(pca955x->chipdef->bits) + 1 + 2*n,
211 pca95xx_num_input_regs(pca955x->chipdef->bits) + 4 + n,
229 pca95xx_num_input_regs(pca955x->chipdef->bits) + 4 + n);
246 int ls_led; /* which set of bits within LSx to use (0-3) */
378 if (!count || count > chip->bits)
386 chip->bits, sizeof(struct pca955x_led),
397 if ((res != 0) || (reg >= chip->bits))
413 pdata->num_leds = chip->bits;
458 client->name, chip->bits, client->addr);
463 if (pdata->num_leds != chip->bits) {
466 pdata->num_leds, chip->bits);
475 chip->bits, sizeof(*pca955x_led), GFP_KERNEL);
485 for (i = 0; i < chip->bits; i++) {