Lines Matching refs:sent

213 	void *sent;  in hci_cc_write_link_policy()  local
220 sent = hci_sent_cmd_data(hdev, HCI_OP_WRITE_LINK_POLICY); in hci_cc_write_link_policy()
221 if (!sent) in hci_cc_write_link_policy()
228 conn->link_policy = get_unaligned_le16(sent + 2); in hci_cc_write_link_policy()
254 void *sent; in hci_cc_write_def_link_policy() local
261 sent = hci_sent_cmd_data(hdev, HCI_OP_WRITE_DEF_LINK_POLICY); in hci_cc_write_def_link_policy()
262 if (!sent) in hci_cc_write_def_link_policy()
265 hdev->link_policy = get_unaligned_le16(sent); in hci_cc_write_def_link_policy()
309 struct hci_cp_read_stored_link_key *sent; in hci_cc_read_stored_link_key() local
313 sent = hci_sent_cmd_data(hdev, HCI_OP_READ_STORED_LINK_KEY); in hci_cc_read_stored_link_key()
314 if (!sent) in hci_cc_read_stored_link_key()
317 if (!rp->status && sent->read_all == 0x01) { in hci_cc_read_stored_link_key()
350 void *sent; in hci_cc_write_local_name() local
354 sent = hci_sent_cmd_data(hdev, HCI_OP_WRITE_LOCAL_NAME); in hci_cc_write_local_name()
355 if (!sent) in hci_cc_write_local_name()
361 mgmt_set_local_name_complete(hdev, sent, rp->status); in hci_cc_write_local_name()
363 memcpy(hdev->dev_name, sent, HCI_MAX_NAME_LENGTH); in hci_cc_write_local_name()
391 void *sent; in hci_cc_write_auth_enable() local
395 sent = hci_sent_cmd_data(hdev, HCI_OP_WRITE_AUTH_ENABLE); in hci_cc_write_auth_enable()
396 if (!sent) in hci_cc_write_auth_enable()
402 __u8 param = *((__u8 *) sent); in hci_cc_write_auth_enable()
423 void *sent; in hci_cc_write_encrypt_mode() local
430 sent = hci_sent_cmd_data(hdev, HCI_OP_WRITE_ENCRYPT_MODE); in hci_cc_write_encrypt_mode()
431 if (!sent) in hci_cc_write_encrypt_mode()
434 param = *((__u8 *) sent); in hci_cc_write_encrypt_mode()
449 void *sent; in hci_cc_write_scan_enable() local
453 sent = hci_sent_cmd_data(hdev, HCI_OP_WRITE_SCAN_ENABLE); in hci_cc_write_scan_enable()
454 if (!sent) in hci_cc_write_scan_enable()
457 param = *((__u8 *) sent); in hci_cc_write_scan_enable()
487 void *sent; in hci_cc_set_event_filter() local
494 sent = hci_sent_cmd_data(hdev, HCI_OP_SET_EVENT_FLT); in hci_cc_set_event_filter()
495 if (!sent) in hci_cc_set_event_filter()
498 cp = (struct hci_cp_set_event_filter *)sent; in hci_cc_set_event_filter()
533 void *sent; in hci_cc_write_class_of_dev() local
537 sent = hci_sent_cmd_data(hdev, HCI_OP_WRITE_CLASS_OF_DEV); in hci_cc_write_class_of_dev()
538 if (!sent) in hci_cc_write_class_of_dev()
544 memcpy(hdev->dev_class, sent, 3); in hci_cc_write_class_of_dev()
547 mgmt_set_class_of_dev_complete(hdev, sent, rp->status); in hci_cc_write_class_of_dev()
585 void *sent; in hci_cc_write_voice_setting() local
592 sent = hci_sent_cmd_data(hdev, HCI_OP_WRITE_VOICE_SETTING); in hci_cc_write_voice_setting()
593 if (!sent) in hci_cc_write_voice_setting()
596 setting = get_unaligned_le16(sent); in hci_cc_write_voice_setting()
632 struct hci_cp_write_ssp_mode *sent; in hci_cc_write_ssp_mode() local
636 sent = hci_sent_cmd_data(hdev, HCI_OP_WRITE_SSP_MODE); in hci_cc_write_ssp_mode()
637 if (!sent) in hci_cc_write_ssp_mode()
643 if (sent->mode) in hci_cc_write_ssp_mode()
650 if (sent->mode) in hci_cc_write_ssp_mode()
665 struct hci_cp_write_sc_support *sent; in hci_cc_write_sc_support() local
669 sent = hci_sent_cmd_data(hdev, HCI_OP_WRITE_SC_SUPPORT); in hci_cc_write_sc_support()
670 if (!sent) in hci_cc_write_sc_support()
676 if (sent->support) in hci_cc_write_sc_support()
683 if (sent->support) in hci_cc_write_sc_support()
815 void *sent; in hci_cc_write_auth_payload_timeout() local
819 sent = hci_sent_cmd_data(hdev, HCI_OP_WRITE_AUTH_PAYLOAD_TO); in hci_cc_write_auth_payload_timeout()
820 if (!sent) in hci_cc_write_auth_payload_timeout()
832 conn->auth_payload_timeout = get_unaligned_le16(sent + 2); in hci_cc_write_auth_payload_timeout()
1008 struct hci_cp_write_page_scan_activity *sent; in hci_cc_write_page_scan_activity() local
1015 sent = hci_sent_cmd_data(hdev, HCI_OP_WRITE_PAGE_SCAN_ACTIVITY); in hci_cc_write_page_scan_activity()
1016 if (!sent) in hci_cc_write_page_scan_activity()
1019 hdev->page_scan_interval = __le16_to_cpu(sent->interval); in hci_cc_write_page_scan_activity()
1020 hdev->page_scan_window = __le16_to_cpu(sent->window); in hci_cc_write_page_scan_activity()
1340 bdaddr_t *sent; in hci_cc_le_set_random_addr() local
1347 sent = hci_sent_cmd_data(hdev, HCI_OP_LE_SET_RANDOM_ADDR); in hci_cc_le_set_random_addr()
1348 if (!sent) in hci_cc_le_set_random_addr()
1353 bacpy(&hdev->random_addr, sent); in hci_cc_le_set_random_addr()
1355 if (!bacmp(&hdev->rpa, sent)) { in hci_cc_le_set_random_addr()
1535 __u8 *sent; in hci_cc_le_set_adv_enable() local
1542 sent = hci_sent_cmd_data(hdev, HCI_OP_LE_SET_ADV_ENABLE); in hci_cc_le_set_adv_enable()
1543 if (!sent) in hci_cc_le_set_adv_enable()
1551 if (*sent) { in hci_cc_le_set_adv_enable()
1865 struct hci_cp_le_add_to_accept_list *sent; in hci_cc_le_add_to_accept_list() local
1873 sent = hci_sent_cmd_data(hdev, HCI_OP_LE_ADD_TO_ACCEPT_LIST); in hci_cc_le_add_to_accept_list()
1874 if (!sent) in hci_cc_le_add_to_accept_list()
1878 hci_bdaddr_list_add(&hdev->le_accept_list, &sent->bdaddr, in hci_cc_le_add_to_accept_list()
1879 sent->bdaddr_type); in hci_cc_le_add_to_accept_list()
1888 struct hci_cp_le_del_from_accept_list *sent; in hci_cc_le_del_from_accept_list() local
1896 sent = hci_sent_cmd_data(hdev, HCI_OP_LE_DEL_FROM_ACCEPT_LIST); in hci_cc_le_del_from_accept_list()
1897 if (!sent) in hci_cc_le_del_from_accept_list()
1901 hci_bdaddr_list_del(&hdev->le_accept_list, &sent->bdaddr, in hci_cc_le_del_from_accept_list()
1902 sent->bdaddr_type); in hci_cc_le_del_from_accept_list()
1942 struct hci_cp_le_write_def_data_len *sent; in hci_cc_le_write_def_data_len() local
1950 sent = hci_sent_cmd_data(hdev, HCI_OP_LE_WRITE_DEF_DATA_LEN); in hci_cc_le_write_def_data_len()
1951 if (!sent) in hci_cc_le_write_def_data_len()
1954 hdev->le_def_tx_len = le16_to_cpu(sent->tx_len); in hci_cc_le_write_def_data_len()
1955 hdev->le_def_tx_time = le16_to_cpu(sent->tx_time); in hci_cc_le_write_def_data_len()
1963 struct hci_cp_le_add_to_resolv_list *sent; in hci_cc_le_add_to_resolv_list() local
1971 sent = hci_sent_cmd_data(hdev, HCI_OP_LE_ADD_TO_RESOLV_LIST); in hci_cc_le_add_to_resolv_list()
1972 if (!sent) in hci_cc_le_add_to_resolv_list()
1976 hci_bdaddr_list_add_with_irk(&hdev->le_resolv_list, &sent->bdaddr, in hci_cc_le_add_to_resolv_list()
1977 sent->bdaddr_type, sent->peer_irk, in hci_cc_le_add_to_resolv_list()
1978 sent->local_irk); in hci_cc_le_add_to_resolv_list()
1987 struct hci_cp_le_del_from_resolv_list *sent; in hci_cc_le_del_from_resolv_list() local
1995 sent = hci_sent_cmd_data(hdev, HCI_OP_LE_DEL_FROM_RESOLV_LIST); in hci_cc_le_del_from_resolv_list()
1996 if (!sent) in hci_cc_le_del_from_resolv_list()
2000 hci_bdaddr_list_del_with_irk(&hdev->le_resolv_list, &sent->bdaddr, in hci_cc_le_del_from_resolv_list()
2001 sent->bdaddr_type); in hci_cc_le_del_from_resolv_list()
2043 __u8 *sent; in hci_cc_le_set_addr_resolution_enable() local
2050 sent = hci_sent_cmd_data(hdev, HCI_OP_LE_SET_ADDR_RESOLV_ENABLE); in hci_cc_le_set_addr_resolution_enable()
2051 if (!sent) in hci_cc_le_set_addr_resolution_enable()
2056 if (*sent) in hci_cc_le_set_addr_resolution_enable()
2087 struct hci_cp_write_le_host_supported *sent; in hci_cc_write_le_host_supported() local
2095 sent = hci_sent_cmd_data(hdev, HCI_OP_WRITE_LE_HOST_SUPPORTED); in hci_cc_write_le_host_supported()
2096 if (!sent) in hci_cc_write_le_host_supported()
2101 if (sent->le) { in hci_cc_write_le_host_supported()
2110 if (sent->simul) in hci_cc_write_le_host_supported()
2201 struct hci_cp_read_tx_power *sent; in hci_cc_read_tx_power() local
2210 sent = hci_sent_cmd_data(hdev, HCI_OP_READ_TX_POWER); in hci_cc_read_tx_power()
2211 if (!sent) in hci_cc_read_tx_power()
2220 switch (sent->type) { in hci_cc_read_tx_power()
4418 conn->sent -= count; in hci_num_comp_pkts_evt()