Lines Matching refs:sent

215 	void *sent;  in hci_cc_write_link_policy()  local
222 sent = hci_sent_cmd_data(hdev, HCI_OP_WRITE_LINK_POLICY); in hci_cc_write_link_policy()
223 if (!sent) in hci_cc_write_link_policy()
230 conn->link_policy = get_unaligned_le16(sent + 2); in hci_cc_write_link_policy()
256 void *sent; in hci_cc_write_def_link_policy() local
263 sent = hci_sent_cmd_data(hdev, HCI_OP_WRITE_DEF_LINK_POLICY); in hci_cc_write_def_link_policy()
264 if (!sent) in hci_cc_write_def_link_policy()
267 hdev->link_policy = get_unaligned_le16(sent); in hci_cc_write_def_link_policy()
311 struct hci_cp_read_stored_link_key *sent; in hci_cc_read_stored_link_key() local
315 sent = hci_sent_cmd_data(hdev, HCI_OP_READ_STORED_LINK_KEY); in hci_cc_read_stored_link_key()
316 if (!sent) in hci_cc_read_stored_link_key()
319 if (!rp->status && sent->read_all == 0x01) { in hci_cc_read_stored_link_key()
352 void *sent; in hci_cc_write_local_name() local
356 sent = hci_sent_cmd_data(hdev, HCI_OP_WRITE_LOCAL_NAME); in hci_cc_write_local_name()
357 if (!sent) in hci_cc_write_local_name()
363 mgmt_set_local_name_complete(hdev, sent, rp->status); in hci_cc_write_local_name()
365 memcpy(hdev->dev_name, sent, HCI_MAX_NAME_LENGTH); in hci_cc_write_local_name()
393 void *sent; in hci_cc_write_auth_enable() local
397 sent = hci_sent_cmd_data(hdev, HCI_OP_WRITE_AUTH_ENABLE); in hci_cc_write_auth_enable()
398 if (!sent) in hci_cc_write_auth_enable()
404 __u8 param = *((__u8 *) sent); in hci_cc_write_auth_enable()
425 void *sent; in hci_cc_write_encrypt_mode() local
432 sent = hci_sent_cmd_data(hdev, HCI_OP_WRITE_ENCRYPT_MODE); in hci_cc_write_encrypt_mode()
433 if (!sent) in hci_cc_write_encrypt_mode()
436 param = *((__u8 *) sent); in hci_cc_write_encrypt_mode()
451 void *sent; in hci_cc_write_scan_enable() local
455 sent = hci_sent_cmd_data(hdev, HCI_OP_WRITE_SCAN_ENABLE); in hci_cc_write_scan_enable()
456 if (!sent) in hci_cc_write_scan_enable()
459 param = *((__u8 *) sent); in hci_cc_write_scan_enable()
489 void *sent; in hci_cc_set_event_filter() local
496 sent = hci_sent_cmd_data(hdev, HCI_OP_SET_EVENT_FLT); in hci_cc_set_event_filter()
497 if (!sent) in hci_cc_set_event_filter()
500 cp = (struct hci_cp_set_event_filter *)sent; in hci_cc_set_event_filter()
532 void *sent; in hci_cc_write_class_of_dev() local
536 sent = hci_sent_cmd_data(hdev, HCI_OP_WRITE_CLASS_OF_DEV); in hci_cc_write_class_of_dev()
537 if (!sent) in hci_cc_write_class_of_dev()
543 memcpy(hdev->dev_class, sent, 3); in hci_cc_write_class_of_dev()
546 mgmt_set_class_of_dev_complete(hdev, sent, rp->status); in hci_cc_write_class_of_dev()
584 void *sent; in hci_cc_write_voice_setting() local
591 sent = hci_sent_cmd_data(hdev, HCI_OP_WRITE_VOICE_SETTING); in hci_cc_write_voice_setting()
592 if (!sent) in hci_cc_write_voice_setting()
595 setting = get_unaligned_le16(sent); in hci_cc_write_voice_setting()
631 struct hci_cp_write_ssp_mode *sent; in hci_cc_write_ssp_mode() local
635 sent = hci_sent_cmd_data(hdev, HCI_OP_WRITE_SSP_MODE); in hci_cc_write_ssp_mode()
636 if (!sent) in hci_cc_write_ssp_mode()
642 if (sent->mode) in hci_cc_write_ssp_mode()
649 if (sent->mode) in hci_cc_write_ssp_mode()
664 struct hci_cp_write_sc_support *sent; in hci_cc_write_sc_support() local
668 sent = hci_sent_cmd_data(hdev, HCI_OP_WRITE_SC_SUPPORT); in hci_cc_write_sc_support()
669 if (!sent) in hci_cc_write_sc_support()
675 if (sent->support) in hci_cc_write_sc_support()
682 if (sent->support) in hci_cc_write_sc_support()
800 void *sent; in hci_cc_write_auth_payload_timeout() local
804 sent = hci_sent_cmd_data(hdev, HCI_OP_WRITE_AUTH_PAYLOAD_TO); in hci_cc_write_auth_payload_timeout()
805 if (!sent) in hci_cc_write_auth_payload_timeout()
817 conn->auth_payload_timeout = get_unaligned_le16(sent + 2); in hci_cc_write_auth_payload_timeout()
1002 struct hci_cp_write_page_scan_activity *sent; in hci_cc_write_page_scan_activity() local
1009 sent = hci_sent_cmd_data(hdev, HCI_OP_WRITE_PAGE_SCAN_ACTIVITY); in hci_cc_write_page_scan_activity()
1010 if (!sent) in hci_cc_write_page_scan_activity()
1013 hdev->page_scan_interval = __le16_to_cpu(sent->interval); in hci_cc_write_page_scan_activity()
1014 hdev->page_scan_window = __le16_to_cpu(sent->window); in hci_cc_write_page_scan_activity()
1377 bdaddr_t *sent; in hci_cc_le_set_random_addr() local
1384 sent = hci_sent_cmd_data(hdev, HCI_OP_LE_SET_RANDOM_ADDR); in hci_cc_le_set_random_addr()
1385 if (!sent) in hci_cc_le_set_random_addr()
1390 bacpy(&hdev->random_addr, sent); in hci_cc_le_set_random_addr()
1392 if (!bacmp(&hdev->rpa, sent)) { in hci_cc_le_set_random_addr()
1572 __u8 *sent; in hci_cc_le_set_adv_enable() local
1579 sent = hci_sent_cmd_data(hdev, HCI_OP_LE_SET_ADV_ENABLE); in hci_cc_le_set_adv_enable()
1580 if (!sent) in hci_cc_le_set_adv_enable()
1588 if (*sent) { in hci_cc_le_set_adv_enable()
1902 struct hci_cp_le_add_to_accept_list *sent; in hci_cc_le_add_to_accept_list() local
1910 sent = hci_sent_cmd_data(hdev, HCI_OP_LE_ADD_TO_ACCEPT_LIST); in hci_cc_le_add_to_accept_list()
1911 if (!sent) in hci_cc_le_add_to_accept_list()
1915 hci_bdaddr_list_add(&hdev->le_accept_list, &sent->bdaddr, in hci_cc_le_add_to_accept_list()
1916 sent->bdaddr_type); in hci_cc_le_add_to_accept_list()
1925 struct hci_cp_le_del_from_accept_list *sent; in hci_cc_le_del_from_accept_list() local
1933 sent = hci_sent_cmd_data(hdev, HCI_OP_LE_DEL_FROM_ACCEPT_LIST); in hci_cc_le_del_from_accept_list()
1934 if (!sent) in hci_cc_le_del_from_accept_list()
1938 hci_bdaddr_list_del(&hdev->le_accept_list, &sent->bdaddr, in hci_cc_le_del_from_accept_list()
1939 sent->bdaddr_type); in hci_cc_le_del_from_accept_list()
1979 struct hci_cp_le_write_def_data_len *sent; in hci_cc_le_write_def_data_len() local
1987 sent = hci_sent_cmd_data(hdev, HCI_OP_LE_WRITE_DEF_DATA_LEN); in hci_cc_le_write_def_data_len()
1988 if (!sent) in hci_cc_le_write_def_data_len()
1991 hdev->le_def_tx_len = le16_to_cpu(sent->tx_len); in hci_cc_le_write_def_data_len()
1992 hdev->le_def_tx_time = le16_to_cpu(sent->tx_time); in hci_cc_le_write_def_data_len()
2000 struct hci_cp_le_add_to_resolv_list *sent; in hci_cc_le_add_to_resolv_list() local
2008 sent = hci_sent_cmd_data(hdev, HCI_OP_LE_ADD_TO_RESOLV_LIST); in hci_cc_le_add_to_resolv_list()
2009 if (!sent) in hci_cc_le_add_to_resolv_list()
2013 hci_bdaddr_list_add_with_irk(&hdev->le_resolv_list, &sent->bdaddr, in hci_cc_le_add_to_resolv_list()
2014 sent->bdaddr_type, sent->peer_irk, in hci_cc_le_add_to_resolv_list()
2015 sent->local_irk); in hci_cc_le_add_to_resolv_list()
2024 struct hci_cp_le_del_from_resolv_list *sent; in hci_cc_le_del_from_resolv_list() local
2032 sent = hci_sent_cmd_data(hdev, HCI_OP_LE_DEL_FROM_RESOLV_LIST); in hci_cc_le_del_from_resolv_list()
2033 if (!sent) in hci_cc_le_del_from_resolv_list()
2037 hci_bdaddr_list_del_with_irk(&hdev->le_resolv_list, &sent->bdaddr, in hci_cc_le_del_from_resolv_list()
2038 sent->bdaddr_type); in hci_cc_le_del_from_resolv_list()
2080 __u8 *sent; in hci_cc_le_set_addr_resolution_enable() local
2087 sent = hci_sent_cmd_data(hdev, HCI_OP_LE_SET_ADDR_RESOLV_ENABLE); in hci_cc_le_set_addr_resolution_enable()
2088 if (!sent) in hci_cc_le_set_addr_resolution_enable()
2093 if (*sent) in hci_cc_le_set_addr_resolution_enable()
2124 struct hci_cp_write_le_host_supported *sent; in hci_cc_write_le_host_supported() local
2132 sent = hci_sent_cmd_data(hdev, HCI_OP_WRITE_LE_HOST_SUPPORTED); in hci_cc_write_le_host_supported()
2133 if (!sent) in hci_cc_write_le_host_supported()
2138 if (sent->le) { in hci_cc_write_le_host_supported()
2147 if (sent->simul) in hci_cc_write_le_host_supported()
2238 struct hci_cp_read_tx_power *sent; in hci_cc_read_tx_power() local
2247 sent = hci_sent_cmd_data(hdev, HCI_OP_READ_TX_POWER); in hci_cc_read_tx_power()
2248 if (!sent) in hci_cc_read_tx_power()
2257 switch (sent->type) { in hci_cc_read_tx_power()
3943 __u8 *sent; in hci_cc_le_set_per_adv_enable() local
3950 sent = hci_sent_cmd_data(hdev, HCI_OP_LE_SET_PER_ADV_ENABLE); in hci_cc_le_set_per_adv_enable()
3951 if (!sent) in hci_cc_le_set_per_adv_enable()
3956 if (*sent) in hci_cc_le_set_per_adv_enable()
4400 conn->sent -= count; in hci_num_comp_pkts_evt()
4505 conn->sent -= block_count; in hci_num_comp_blocks_evt()