Lines Matching refs:func
328 if (entry->func) { in hci_cmd_sync_work()
332 err = entry->func(hdev, entry->data); in hci_cmd_sync_work()
702 int hci_cmd_sync_submit(struct hci_dev *hdev, hci_cmd_sync_work_func_t func, in hci_cmd_sync_submit() argument
719 entry->func = func; in hci_cmd_sync_submit()
739 int hci_cmd_sync_queue(struct hci_dev *hdev, hci_cmd_sync_work_func_t func, in hci_cmd_sync_queue() argument
748 return hci_cmd_sync_submit(hdev, func, data, destroy); in hci_cmd_sync_queue()
753 _hci_cmd_sync_lookup_entry(struct hci_dev *hdev, hci_cmd_sync_work_func_t func, in _hci_cmd_sync_lookup_entry() argument
759 if (func && entry->func != func) in _hci_cmd_sync_lookup_entry()
779 int hci_cmd_sync_queue_once(struct hci_dev *hdev, hci_cmd_sync_work_func_t func, in hci_cmd_sync_queue_once() argument
782 if (hci_cmd_sync_lookup_entry(hdev, func, data, destroy)) in hci_cmd_sync_queue_once()
785 return hci_cmd_sync_queue(hdev, func, data, destroy); in hci_cmd_sync_queue_once()
794 int hci_cmd_sync_run(struct hci_dev *hdev, hci_cmd_sync_work_func_t func, in hci_cmd_sync_run() argument
805 return func(hdev, data); in hci_cmd_sync_run()
807 return hci_cmd_sync_submit(hdev, func, data, destroy); in hci_cmd_sync_run()
817 int hci_cmd_sync_run_once(struct hci_dev *hdev, hci_cmd_sync_work_func_t func, in hci_cmd_sync_run_once() argument
820 if (hci_cmd_sync_lookup_entry(hdev, func, data, destroy)) in hci_cmd_sync_run_once()
823 return hci_cmd_sync_run(hdev, func, data, destroy); in hci_cmd_sync_run_once()
833 hci_cmd_sync_lookup_entry(struct hci_dev *hdev, hci_cmd_sync_work_func_t func, in hci_cmd_sync_lookup_entry() argument
839 entry = _hci_cmd_sync_lookup_entry(hdev, func, data, destroy); in hci_cmd_sync_lookup_entry()
861 hci_cmd_sync_work_func_t func, in hci_cmd_sync_dequeue_once() argument
866 entry = hci_cmd_sync_lookup_entry(hdev, func, data, destroy); in hci_cmd_sync_dequeue_once()
881 bool hci_cmd_sync_dequeue(struct hci_dev *hdev, hci_cmd_sync_work_func_t func, in hci_cmd_sync_dequeue() argument
888 while ((entry = _hci_cmd_sync_lookup_entry(hdev, func, data, in hci_cmd_sync_dequeue()
3597 int (*func)(struct hci_dev *hdev); member
3606 for (i = 0; stage[i].func; i++) { in hci_init_stage_sync()
3609 err = stage[i].func(hdev); in hci_init_stage_sync()
3633 .func = _func, \