Lines Matching refs:led_control
112 u32 led_control; /* 0x04 */ member
143 LED_CONTROL = offsetof(struct ctrl_reg, led_control),
477 u32 led_control; in amber_LED_on() local
479 led_control = readl(ctrl->hpc_reg + LED_CONTROL); in amber_LED_on()
480 led_control |= (0x01010000L << slot); in amber_LED_on()
481 writel(led_control, ctrl->hpc_reg + LED_CONTROL); in amber_LED_on()
487 u32 led_control; in amber_LED_off() local
489 led_control = readl(ctrl->hpc_reg + LED_CONTROL); in amber_LED_off()
490 led_control &= ~(0x01010000L << slot); in amber_LED_off()
491 writel(led_control, ctrl->hpc_reg + LED_CONTROL); in amber_LED_off()
497 u32 led_control; in read_amber_LED() local
499 led_control = readl(ctrl->hpc_reg + LED_CONTROL); in read_amber_LED()
500 led_control &= (0x01010000L << slot); in read_amber_LED()
502 return led_control ? 1 : 0; in read_amber_LED()
508 u32 led_control; in green_LED_on() local
510 led_control = readl(ctrl->hpc_reg + LED_CONTROL); in green_LED_on()
511 led_control |= 0x0101L << slot; in green_LED_on()
512 writel(led_control, ctrl->hpc_reg + LED_CONTROL); in green_LED_on()
517 u32 led_control; in green_LED_off() local
519 led_control = readl(ctrl->hpc_reg + LED_CONTROL); in green_LED_off()
520 led_control &= ~(0x0101L << slot); in green_LED_off()
521 writel(led_control, ctrl->hpc_reg + LED_CONTROL); in green_LED_off()
527 u32 led_control; in green_LED_blink() local
529 led_control = readl(ctrl->hpc_reg + LED_CONTROL); in green_LED_blink()
530 led_control &= ~(0x0101L << slot); in green_LED_blink()
531 led_control |= (0x0001L << slot); in green_LED_blink()
532 writel(led_control, ctrl->hpc_reg + LED_CONTROL); in green_LED_blink()