Lines Matching refs:selector
467 static char *to_led_name(int selector) in to_led_name() argument
469 switch (selector) { in to_led_name()
487 static void set_port_led(struct usb_hub *hub, int port1, int selector) in set_port_led() argument
492 status = set_port_feature(hub->hdev, (selector << 8) | port1, in set_port_led()
495 to_led_name(selector), status); in set_port_led()
513 unsigned selector, mode; in led_work() local
521 selector = HUB_LED_AUTO; in led_work()
526 selector = HUB_LED_GREEN; in led_work()
530 selector = HUB_LED_OFF; in led_work()
535 selector = HUB_LED_AMBER; in led_work()
539 selector = HUB_LED_OFF; in led_work()
544 selector = HUB_LED_GREEN; in led_work()
548 selector = HUB_LED_AMBER; in led_work()
554 if (selector != HUB_LED_AUTO) in led_work()
556 set_port_led(hub, i + 1, selector); in led_work()