Lines Matching refs:bits
67 int bits; member
74 .bits = 2,
79 .bits = 8,
84 .bits = 16,
89 .bits = 4,
121 static inline int pca95xx_num_input_regs(int bits) in pca95xx_num_input_regs() argument
123 return (bits + 7) / 8; in pca95xx_num_input_regs()
127 static inline int pca95xx_num_led_regs(int bits) in pca95xx_num_led_regs() argument
129 return (bits + 3) / 4; in pca95xx_num_led_regs()
151 pca95xx_num_input_regs(pca955x->chipdef->bits) + 2*n, in pca955x_write_psc()
167 pca95xx_num_input_regs(pca955x->chipdef->bits) + 1 + 2*n, in pca955x_write_pwm()
180 pca95xx_num_input_regs(pca955x->chipdef->bits) + 4 + n, in pca955x_write_ls()
193 pca95xx_num_input_regs(pca955x->chipdef->bits) + 4 + n); in pca955x_read_ls()
282 id->name, chip->bits, client->addr); in pca955x_probe()
288 if (pdata->num_leds != chip->bits) { in pca955x_probe()
291 pdata->num_leds, chip->bits); in pca955x_probe()
301 sizeof(*pca955x_led) * chip->bits, GFP_KERNEL); in pca955x_probe()
311 for (i = 0; i < chip->bits; i++) { in pca955x_probe()
342 for (i = 0; i < pca95xx_num_led_regs(chip->bits); i++) in pca955x_probe()
371 for (i = 0; i < pca955x->chipdef->bits; i++) { in pca955x_remove()