Lines Matching refs:sent

162 	void *sent;  in hci_cc_write_link_policy()  local
169 sent = hci_sent_cmd_data(hdev, HCI_OP_WRITE_LINK_POLICY); in hci_cc_write_link_policy()
170 if (!sent) in hci_cc_write_link_policy()
177 conn->link_policy = get_unaligned_le16(sent + 2); in hci_cc_write_link_policy()
199 void *sent; in hci_cc_write_def_link_policy() local
206 sent = hci_sent_cmd_data(hdev, HCI_OP_WRITE_DEF_LINK_POLICY); in hci_cc_write_def_link_policy()
207 if (!sent) in hci_cc_write_def_link_policy()
210 hdev->link_policy = get_unaligned_le16(sent); in hci_cc_write_def_link_policy()
250 struct hci_cp_read_stored_link_key *sent; in hci_cc_read_stored_link_key() local
254 sent = hci_sent_cmd_data(hdev, HCI_OP_READ_STORED_LINK_KEY); in hci_cc_read_stored_link_key()
255 if (!sent) in hci_cc_read_stored_link_key()
258 if (!rp->status && sent->read_all == 0x01) { in hci_cc_read_stored_link_key()
283 void *sent; in hci_cc_write_local_name() local
287 sent = hci_sent_cmd_data(hdev, HCI_OP_WRITE_LOCAL_NAME); in hci_cc_write_local_name()
288 if (!sent) in hci_cc_write_local_name()
294 mgmt_set_local_name_complete(hdev, sent, status); in hci_cc_write_local_name()
296 memcpy(hdev->dev_name, sent, HCI_MAX_NAME_LENGTH); in hci_cc_write_local_name()
318 void *sent; in hci_cc_write_auth_enable() local
322 sent = hci_sent_cmd_data(hdev, HCI_OP_WRITE_AUTH_ENABLE); in hci_cc_write_auth_enable()
323 if (!sent) in hci_cc_write_auth_enable()
329 __u8 param = *((__u8 *) sent); in hci_cc_write_auth_enable()
347 void *sent; in hci_cc_write_encrypt_mode() local
354 sent = hci_sent_cmd_data(hdev, HCI_OP_WRITE_ENCRYPT_MODE); in hci_cc_write_encrypt_mode()
355 if (!sent) in hci_cc_write_encrypt_mode()
358 param = *((__u8 *) sent); in hci_cc_write_encrypt_mode()
370 void *sent; in hci_cc_write_scan_enable() local
374 sent = hci_sent_cmd_data(hdev, HCI_OP_WRITE_SCAN_ENABLE); in hci_cc_write_scan_enable()
375 if (!sent) in hci_cc_write_scan_enable()
378 param = *((__u8 *) sent); in hci_cc_write_scan_enable()
405 void *sent; in hci_cc_set_event_filter() local
412 sent = hci_sent_cmd_data(hdev, HCI_OP_SET_EVENT_FLT); in hci_cc_set_event_filter()
413 if (!sent) in hci_cc_set_event_filter()
416 cp = (struct hci_cp_set_event_filter *)sent; in hci_cc_set_event_filter()
442 void *sent; in hci_cc_write_class_of_dev() local
446 sent = hci_sent_cmd_data(hdev, HCI_OP_WRITE_CLASS_OF_DEV); in hci_cc_write_class_of_dev()
447 if (!sent) in hci_cc_write_class_of_dev()
453 memcpy(hdev->dev_class, sent, 3); in hci_cc_write_class_of_dev()
456 mgmt_set_class_of_dev_complete(hdev, sent, status); in hci_cc_write_class_of_dev()
489 void *sent; in hci_cc_write_voice_setting() local
496 sent = hci_sent_cmd_data(hdev, HCI_OP_WRITE_VOICE_SETTING); in hci_cc_write_voice_setting()
497 if (!sent) in hci_cc_write_voice_setting()
500 setting = get_unaligned_le16(sent); in hci_cc_write_voice_setting()
531 struct hci_cp_write_ssp_mode *sent; in hci_cc_write_ssp_mode() local
535 sent = hci_sent_cmd_data(hdev, HCI_OP_WRITE_SSP_MODE); in hci_cc_write_ssp_mode()
536 if (!sent) in hci_cc_write_ssp_mode()
542 if (sent->mode) in hci_cc_write_ssp_mode()
549 mgmt_ssp_enable_complete(hdev, sent->mode, status); in hci_cc_write_ssp_mode()
551 if (sent->mode) in hci_cc_write_ssp_mode()
563 struct hci_cp_write_sc_support *sent; in hci_cc_write_sc_support() local
567 sent = hci_sent_cmd_data(hdev, HCI_OP_WRITE_SC_SUPPORT); in hci_cc_write_sc_support()
568 if (!sent) in hci_cc_write_sc_support()
574 if (sent->support) in hci_cc_write_sc_support()
581 if (sent->support) in hci_cc_write_sc_support()
649 void *sent; in hci_cc_write_auth_payload_timeout() local
656 sent = hci_sent_cmd_data(hdev, HCI_OP_WRITE_AUTH_PAYLOAD_TO); in hci_cc_write_auth_payload_timeout()
657 if (!sent) in hci_cc_write_auth_payload_timeout()
664 conn->auth_payload_timeout = get_unaligned_le16(sent + 2); in hci_cc_write_auth_payload_timeout()
828 struct hci_cp_write_page_scan_activity *sent; in hci_cc_write_page_scan_activity() local
835 sent = hci_sent_cmd_data(hdev, HCI_OP_WRITE_PAGE_SCAN_ACTIVITY); in hci_cc_write_page_scan_activity()
836 if (!sent) in hci_cc_write_page_scan_activity()
839 hdev->page_scan_interval = __le16_to_cpu(sent->interval); in hci_cc_write_page_scan_activity()
840 hdev->page_scan_window = __le16_to_cpu(sent->window); in hci_cc_write_page_scan_activity()
1162 bdaddr_t *sent; in hci_cc_le_set_random_addr() local
1169 sent = hci_sent_cmd_data(hdev, HCI_OP_LE_SET_RANDOM_ADDR); in hci_cc_le_set_random_addr()
1170 if (!sent) in hci_cc_le_set_random_addr()
1175 bacpy(&hdev->random_addr, sent); in hci_cc_le_set_random_addr()
1177 if (!bacmp(&hdev->rpa, sent)) { in hci_cc_le_set_random_addr()
1258 __u8 *sent, status = *((__u8 *) skb->data); in hci_cc_le_set_adv_enable() local
1265 sent = hci_sent_cmd_data(hdev, HCI_OP_LE_SET_ADV_ENABLE); in hci_cc_le_set_adv_enable()
1266 if (!sent) in hci_cc_le_set_adv_enable()
1274 if (*sent) { in hci_cc_le_set_adv_enable()
1567 struct hci_cp_le_add_to_accept_list *sent; in hci_cc_le_add_to_accept_list() local
1575 sent = hci_sent_cmd_data(hdev, HCI_OP_LE_ADD_TO_ACCEPT_LIST); in hci_cc_le_add_to_accept_list()
1576 if (!sent) in hci_cc_le_add_to_accept_list()
1579 hci_bdaddr_list_add(&hdev->le_accept_list, &sent->bdaddr, in hci_cc_le_add_to_accept_list()
1580 sent->bdaddr_type); in hci_cc_le_add_to_accept_list()
1586 struct hci_cp_le_del_from_accept_list *sent; in hci_cc_le_del_from_accept_list() local
1594 sent = hci_sent_cmd_data(hdev, HCI_OP_LE_DEL_FROM_ACCEPT_LIST); in hci_cc_le_del_from_accept_list()
1595 if (!sent) in hci_cc_le_del_from_accept_list()
1598 hci_bdaddr_list_del(&hdev->le_accept_list, &sent->bdaddr, in hci_cc_le_del_from_accept_list()
1599 sent->bdaddr_type); in hci_cc_le_del_from_accept_list()
1632 struct hci_cp_le_write_def_data_len *sent; in hci_cc_le_write_def_data_len() local
1640 sent = hci_sent_cmd_data(hdev, HCI_OP_LE_WRITE_DEF_DATA_LEN); in hci_cc_le_write_def_data_len()
1641 if (!sent) in hci_cc_le_write_def_data_len()
1644 hdev->le_def_tx_len = le16_to_cpu(sent->tx_len); in hci_cc_le_write_def_data_len()
1645 hdev->le_def_tx_time = le16_to_cpu(sent->tx_time); in hci_cc_le_write_def_data_len()
1651 struct hci_cp_le_add_to_resolv_list *sent; in hci_cc_le_add_to_resolv_list() local
1659 sent = hci_sent_cmd_data(hdev, HCI_OP_LE_ADD_TO_RESOLV_LIST); in hci_cc_le_add_to_resolv_list()
1660 if (!sent) in hci_cc_le_add_to_resolv_list()
1663 hci_bdaddr_list_add_with_irk(&hdev->le_resolv_list, &sent->bdaddr, in hci_cc_le_add_to_resolv_list()
1664 sent->bdaddr_type, sent->peer_irk, in hci_cc_le_add_to_resolv_list()
1665 sent->local_irk); in hci_cc_le_add_to_resolv_list()
1671 struct hci_cp_le_del_from_resolv_list *sent; in hci_cc_le_del_from_resolv_list() local
1679 sent = hci_sent_cmd_data(hdev, HCI_OP_LE_DEL_FROM_RESOLV_LIST); in hci_cc_le_del_from_resolv_list()
1680 if (!sent) in hci_cc_le_del_from_resolv_list()
1683 hci_bdaddr_list_del_with_irk(&hdev->le_resolv_list, &sent->bdaddr, in hci_cc_le_del_from_resolv_list()
1684 sent->bdaddr_type); in hci_cc_le_del_from_resolv_list()
1716 __u8 *sent, status = *((__u8 *) skb->data); in hci_cc_le_set_addr_resolution_enable() local
1723 sent = hci_sent_cmd_data(hdev, HCI_OP_LE_SET_ADDR_RESOLV_ENABLE); in hci_cc_le_set_addr_resolution_enable()
1724 if (!sent) in hci_cc_le_set_addr_resolution_enable()
1729 if (*sent) in hci_cc_le_set_addr_resolution_enable()
1756 struct hci_cp_write_le_host_supported *sent; in hci_cc_write_le_host_supported() local
1764 sent = hci_sent_cmd_data(hdev, HCI_OP_WRITE_LE_HOST_SUPPORTED); in hci_cc_write_le_host_supported()
1765 if (!sent) in hci_cc_write_le_host_supported()
1770 if (sent->le) { in hci_cc_write_le_host_supported()
1779 if (sent->simul) in hci_cc_write_le_host_supported()
1858 struct hci_cp_read_tx_power *sent; in hci_cc_read_tx_power() local
1867 sent = hci_sent_cmd_data(hdev, HCI_OP_READ_TX_POWER); in hci_cc_read_tx_power()
1868 if (!sent) in hci_cc_read_tx_power()
1877 switch (sent->type) { in hci_cc_read_tx_power()
3924 conn->sent -= count; in hci_num_comp_pkts_evt()
4013 conn->sent -= block_count; in hci_num_comp_blocks_evt()