Home
last modified time | relevance | path

Searched refs:chipdef (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/leds/
H A Dleds-pca963x.c110 struct pca963x_chipdef *chipdef; member
121 struct pca963x_chipdef *chipdef = led->chip->chipdef; in pca963x_brightness() local
172 struct pca963x_chipdef *chipdef = led->chip->chipdef; in pca963x_blink() local
305 struct pca963x_chipdef *chipdef = chip->chipdef; in pca963x_register_leds() local
315 &chipdef->scaling)) in pca963x_register_leds()
316 chipdef->scaling = 1000; in pca963x_register_leds()
345 if (ret || reg >= chipdef->n_leds) { in pca963x_register_leds()
396 struct pca963x_chipdef *chipdef; in pca963x_probe() local
403 if (!count || count > chipdef->n_leds) { in pca963x_probe()
405 dev_fwnode(dev), chipdef->n_leds); in pca963x_probe()
[all …]
H A Dleds-pca955x.c128 struct pca955x_chipdef *chipdef; member
188 u8 cmd = pca955x_num_input_regs(pca955x->chipdef->bits) + (2 * n); in pca955x_write_psc()
207 u8 cmd = pca955x_num_input_regs(pca955x->chipdef->bits) + 1 + (2 * n); in pca955x_write_pwm()
223 u8 cmd = pca955x_num_input_regs(pca955x->chipdef->bits) + 4 + n; in pca955x_write_ls()
239 u8 cmd = pca955x_num_input_regs(pca955x->chipdef->bits) + 4 + n; in pca955x_read_ls()
253 u8 cmd = pca955x_num_input_regs(pca955x->chipdef->bits) + 1 + (2 * n); in pca955x_read_pwm()
267 u8 cmd = pca955x_num_input_regs(pca955x->chipdef->bits) + (2 * n); in pca955x_read_psc()
367 p *= pca955x->chipdef->blink_div; in pca955x_period_to_psc()
380 p /= pca955x->chipdef->blink_div; in pca955x_psc_to_period()
670 pca955x->chipdef = chip; in pca955x_probe()