Lines Matching refs:pca955x_led

127 	struct pca955x_led *leds;
138 struct pca955x_led { struct
147 #define led_to_pca955x(l) container_of(l, struct pca955x_led, led_cdev) argument
150 struct pca955x_led *leds;
281 struct pca955x_led *pca955x_led = led_to_pca955x(led_cdev); in pca955x_led_get() local
282 struct pca955x *pca955x = pca955x_led->pca955x; in pca955x_led_get()
286 ret = pca955x_read_ls(pca955x, pca955x_led->led_num / 4, &ls); in pca955x_led_get()
290 switch (pca955x_ledstate(ls, pca955x_led->led_num % 4)) { in pca955x_led_get()
312 struct pca955x_led *pca955x_led = led_to_pca955x(led_cdev); in pca955x_led_set() local
313 struct pca955x *pca955x = pca955x_led->pca955x; in pca955x_led_set()
314 int reg = pca955x_led->led_num / 4; in pca955x_led_set()
315 int bit = pca955x_led->led_num % 4; in pca955x_led_set()
325 if (test_bit(pca955x_led->led_num, &pca955x->active_blink)) { in pca955x_led_set()
327 clear_bit(pca955x_led->led_num, &pca955x->active_blink); in pca955x_led_set()
388 struct pca955x_led *pca955x_led = led_to_pca955x(led_cdev); in pca955x_led_blink() local
389 struct pca955x *pca955x = pca955x_led->pca955x; in pca955x_led_blink()
412 pca955x->active_blink == BIT(pca955x_led->led_num) || in pca955x_led_blink()
416 if (!test_and_set_bit(pca955x_led->led_num, in pca955x_led_blink()
419 int reg = pca955x_led->led_num / 4; in pca955x_led_blink()
420 int bit = pca955x_led->led_num % 4; in pca955x_led_blink()
497 struct pca955x_led *led = &pca955x->leds[offset]; in pca955x_set_value()
514 struct pca955x_led *led = &pca955x->leds[offset]; in pca955x_gpio_get_value()
527 struct pca955x_led *led = &pca955x->leds[offset]; in pca955x_gpio_direction_input()
544 struct pca955x_led *led; in pca955x_get_pdata()
557 chip->bits, sizeof(struct pca955x_led), in pca955x_get_pdata()
596 struct pca955x_led *pca955x_led; in pca955x_probe() local
662 sizeof(*pca955x_led), GFP_KERNEL); in pca955x_probe()
688 pca955x_led = &pca955x->leds[i]; in pca955x_probe()
689 pca955x_led->led_num = i; in pca955x_probe()
690 pca955x_led->pca955x = pca955x; in pca955x_probe()
691 pca955x_led->type = pdata->leds[i].type; in pca955x_probe()
693 switch (pca955x_led->type) { in pca955x_probe()
700 led = &pca955x_led->led_cdev; in pca955x_probe()