Lines Matching refs:hdev
15 struct hci_dev *hdev; member
21 void hci_leds_update_powered(struct hci_dev *hdev, bool enabled) in hci_leds_update_powered() argument
23 if (hdev->power_led) in hci_leds_update_powered()
24 led_trigger_event(hdev->power_led, in hci_leds_update_powered()
49 powered = test_bit(HCI_UP, &htrig->hdev->flags); in power_activate()
56 static struct led_trigger *led_allocate_basic(struct hci_dev *hdev, in led_allocate_basic() argument
62 htrig = devm_kzalloc(&hdev->dev, sizeof(*htrig), GFP_KERNEL); in led_allocate_basic()
66 htrig->hdev = hdev; in led_allocate_basic()
68 htrig->led_trigger.name = devm_kasprintf(&hdev->dev, GFP_KERNEL, in led_allocate_basic()
69 "%s-%s", hdev->name, in led_allocate_basic()
74 if (devm_led_trigger_register(&hdev->dev, &htrig->led_trigger)) in led_allocate_basic()
80 devm_kfree(&hdev->dev, (void *)htrig->led_trigger.name); in led_allocate_basic()
82 devm_kfree(&hdev->dev, htrig); in led_allocate_basic()
86 void hci_leds_init(struct hci_dev *hdev) in hci_leds_init() argument
89 hdev->power_led = led_allocate_basic(hdev, power_activate, "power"); in hci_leds_init()