Lines Matching refs:event
26 /* Bluetooth HCI event handling. */
93 /* It is possible that we receive Inquiry Complete event right
94 * before we receive Inquiry Cancel Command Complete event, in
95 * which case the latter event should have status of Command
2567 /* If successful wait for the name req complete event before
3158 * Auto-connect will only occur if the event filter is
3159 * programmed with a given address. Right now, event filter is
3185 /* The HCI_Connection_Complete event is only sent once per connection.
4273 "unexpected event for opcode 0x%4.4x", *opcode);
4379 * we're not waiting for a special event and we get a success
4382 * complete event).
4388 bt_dev_err(hdev, "unexpected event for opcode 0x%4.4x",
4444 bt_dev_err(hdev, "wrong event for mode %d", hdev->flow_ctl_mode);
4547 bt_dev_err(hdev, "wrong event for mode %d",
5043 bt_dev_err(hdev, "Ignoring connect complete event for invalid link type");
5056 /* When the link type in the event indicates SCO connection
5070 /* The HCI_Synchronous_Connection_Complete event is only sent once per connection.
5077 bt_dev_err(hdev, "Ignoring HCI_Sync_Conn_Complete event for existing connection");
5228 * auth_complete event.
5336 /* Assume remote supports SSP since it has triggered this event */
5592 * event gets always produced as initiator and is also mapped to
5593 * the mgmt_auth_failed event */
5854 * Adv Terminated event.
5889 /* All controllers implicitly stop advertising in the event of a
5934 /* The HCI_LE_Connection_Complete event is only sent once per connection.
6084 /* The Bluetooth Core 5.3 specification clearly states that this event
6086 * case of HCI_ERROR_CANCELLED_BY_HOST, just ignore the event.
6092 bt_dev_warn_ratelimited(hdev, "Unexpected advertising set terminated event");
6177 /* If the event is not connectable don't proceed further */
6308 * a LE Direct Advertising Report event. In that case it is
6398 * response event that doesn't match the pending report, then
6405 * event or send an immediate device found event if the data
6451 * the pending report and send out a device found event.
6460 * the new event is a SCAN_RSP. We can therefore proceed with
6461 * sending a merged device found event.
6625 /* Add connection to indicate the failed PA sync event */
7134 /* Also mark the BIG sync established event on the
7214 /* Add connection to indicate the PA sync event */
7339 /* Only match event if command OGF is for LE */
7359 * possible to partially parse the event so leave to callback to
7373 u8 event, struct sk_buff *skb)
7381 hdr = hci_ev_skb_pull(hdev, skb, event, sizeof(*hdr));
7385 if (event) {
7386 if (hdr->evt != event)
7398 bt_dev_err(hdev, "last event is not cmd complete (0x%2.2x)",
7416 static void hci_store_wake_reason(struct hci_dev *hdev, u8 event,
7427 /* If we are currently suspended and this is the first BT event seen,
7428 * save the wake reason associated with the event.
7440 * keep track of the bdaddr of the connection event that woke us up.
7442 if (event == HCI_EV_CONN_REQUEST) {
7445 } else if (event == HCI_EV_CONN_COMPLETE) {
7448 } else if (event == HCI_EV_LE_META) {
7510 /* Entries in this table shall have their position according to the event opcode
7668 static void hci_event_func(struct hci_dev *hdev, u8 event, struct sk_buff *skb,
7673 const struct hci_ev *ev = &hci_ev_table[event];
7680 bt_dev_err(hdev, "unexpected event 0x%2.2x length: %u < %u",
7681 event, skb->len, ev->min_len);
7686 * possible to partially parse the event so leave to callback to
7691 "unexpected event 0x%2.2x length: %u > %u",
7692 event, skb->len, ev->max_len);
7694 data = hci_ev_skb_pull(hdev, skb, event, ev->min_len);
7711 u8 status = 0, event, req_evt = 0;
7722 event = hdr->evt;
7723 if (!event) {
7725 event);
7729 /* Only match event if command OGF is not for LE */
7732 hci_skb_event(hdev->req_skb) == event) {
7735 req_evt = event;
7743 if (req_complete_skb || event == HCI_EV_CMD_STATUS ||
7744 event == HCI_EV_CMD_COMPLETE)
7750 hci_store_wake_reason(hdev, event, skb);
7752 bt_dev_dbg(hdev, "event 0x%2.2x", event);
7754 hci_event_func(hdev, event, skb, &opcode, &status, &req_complete,