Lines Matching refs:led_control

112 	u32	led_control;		/* 0x04 */  member
143 LED_CONTROL = offsetof(struct ctrl_reg, led_control),
482 u32 led_control; in amber_LED_on() local
484 led_control = readl(ctrl->hpc_reg + LED_CONTROL); in amber_LED_on()
485 led_control |= (0x01010000L << slot); in amber_LED_on()
486 writel(led_control, ctrl->hpc_reg + LED_CONTROL); in amber_LED_on()
492 u32 led_control; in amber_LED_off() local
494 led_control = readl(ctrl->hpc_reg + LED_CONTROL); in amber_LED_off()
495 led_control &= ~(0x01010000L << slot); in amber_LED_off()
496 writel(led_control, ctrl->hpc_reg + LED_CONTROL); in amber_LED_off()
502 u32 led_control; in read_amber_LED() local
504 led_control = readl(ctrl->hpc_reg + LED_CONTROL); in read_amber_LED()
505 led_control &= (0x01010000L << slot); in read_amber_LED()
507 return led_control ? 1 : 0; in read_amber_LED()
513 u32 led_control; in green_LED_on() local
515 led_control = readl(ctrl->hpc_reg + LED_CONTROL); in green_LED_on()
516 led_control |= 0x0101L << slot; in green_LED_on()
517 writel(led_control, ctrl->hpc_reg + LED_CONTROL); in green_LED_on()
522 u32 led_control; in green_LED_off() local
524 led_control = readl(ctrl->hpc_reg + LED_CONTROL); in green_LED_off()
525 led_control &= ~(0x0101L << slot); in green_LED_off()
526 writel(led_control, ctrl->hpc_reg + LED_CONTROL); in green_LED_off()
532 u32 led_control; in green_LED_blink() local
534 led_control = readl(ctrl->hpc_reg + LED_CONTROL); in green_LED_blink()
535 led_control &= ~(0x0101L << slot); in green_LED_blink()
536 led_control |= (0x0001L << slot); in green_LED_blink()
537 writel(led_control, ctrl->hpc_reg + LED_CONTROL); in green_LED_blink()