• Home
  • Raw
  • Download

Lines Matching refs:led_control

126 	u32	led_control;		/* 0x04 */  member
157 LED_CONTROL = offsetof(struct ctrl_reg, led_control),
491 u32 led_control; in amber_LED_on() local
493 led_control = readl(ctrl->hpc_reg + LED_CONTROL); in amber_LED_on()
494 led_control |= (0x01010000L << slot); in amber_LED_on()
495 writel(led_control, ctrl->hpc_reg + LED_CONTROL); in amber_LED_on()
501 u32 led_control; in amber_LED_off() local
503 led_control = readl(ctrl->hpc_reg + LED_CONTROL); in amber_LED_off()
504 led_control &= ~(0x01010000L << slot); in amber_LED_off()
505 writel(led_control, ctrl->hpc_reg + LED_CONTROL); in amber_LED_off()
511 u32 led_control; in read_amber_LED() local
513 led_control = readl(ctrl->hpc_reg + LED_CONTROL); in read_amber_LED()
514 led_control &= (0x01010000L << slot); in read_amber_LED()
516 return led_control ? 1 : 0; in read_amber_LED()
522 u32 led_control; in green_LED_on() local
524 led_control = readl(ctrl->hpc_reg + LED_CONTROL); in green_LED_on()
525 led_control |= 0x0101L << slot; in green_LED_on()
526 writel(led_control, ctrl->hpc_reg + LED_CONTROL); in green_LED_on()
531 u32 led_control; in green_LED_off() local
533 led_control = readl(ctrl->hpc_reg + LED_CONTROL); in green_LED_off()
534 led_control &= ~(0x0101L << slot); in green_LED_off()
535 writel(led_control, ctrl->hpc_reg + LED_CONTROL); in green_LED_off()
541 u32 led_control; in green_LED_blink() local
543 led_control = readl(ctrl->hpc_reg + LED_CONTROL); in green_LED_blink()
544 led_control &= ~(0x0101L << slot); in green_LED_blink()
545 led_control |= (0x0001L << slot); in green_LED_blink()
546 writel(led_control, ctrl->hpc_reg + LED_CONTROL); in green_LED_blink()