Lines Matching refs:led_num
131 int led_num; /* 0 .. 15 potentially */ member
152 static inline u8 pca955x_ledsel(u8 oldval, int led_num, int state) in pca955x_ledsel() argument
154 return (oldval & (~(0x3 << (led_num << 1)))) | in pca955x_ledsel()
155 ((state & 0x3) << (led_num << 1)); in pca955x_ledsel()
257 ret = pca955x_read_ls(pca955x->client, pca955x_led->led_num / 4, &ls); in pca955x_led_get()
261 ls = (ls >> ((pca955x_led->led_num % 4) << 1)) & 0x3; in pca955x_led_get()
296 chip_ls = pca955x_led->led_num / 4; in pca955x_led_set()
297 ls_led = pca955x_led->led_num % 4; in pca955x_led_set()
395 pca955x_read_input(pca955x->client, led->led_num / 8, ®); in pca955x_gpio_get_value()
397 return !!(reg & (1 << (led->led_num % 8))); in pca955x_gpio_get_value()
551 pca955x_led->led_num = i; in pca955x_probe()