Lines Matching refs:rp
103 struct hci_rp_role_discovery *rp = (void *) skb->data; in hci_cc_role_discovery() local
106 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_role_discovery()
108 if (rp->status) in hci_cc_role_discovery()
113 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle)); in hci_cc_role_discovery()
115 conn->role = rp->role; in hci_cc_role_discovery()
122 struct hci_rp_read_link_policy *rp = (void *) skb->data; in hci_cc_read_link_policy() local
125 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_link_policy()
127 if (rp->status) in hci_cc_read_link_policy()
132 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle)); in hci_cc_read_link_policy()
134 conn->link_policy = __le16_to_cpu(rp->policy); in hci_cc_read_link_policy()
141 struct hci_rp_write_link_policy *rp = (void *) skb->data; in hci_cc_write_link_policy() local
145 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_write_link_policy()
147 if (rp->status) in hci_cc_write_link_policy()
156 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle)); in hci_cc_write_link_policy()
166 struct hci_rp_read_def_link_policy *rp = (void *) skb->data; in hci_cc_read_def_link_policy() local
168 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_def_link_policy()
170 if (rp->status) in hci_cc_read_def_link_policy()
173 hdev->link_policy = __le16_to_cpu(rp->policy); in hci_cc_read_def_link_policy()
229 struct hci_rp_read_stored_link_key *rp = (void *)skb->data; in hci_cc_read_stored_link_key() local
232 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_stored_link_key()
238 if (!rp->status && sent->read_all == 0x01) { in hci_cc_read_stored_link_key()
239 hdev->stored_max_keys = rp->max_keys; in hci_cc_read_stored_link_key()
240 hdev->stored_num_keys = rp->num_keys; in hci_cc_read_stored_link_key()
247 struct hci_rp_delete_stored_link_key *rp = (void *)skb->data; in hci_cc_delete_stored_link_key() local
249 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_delete_stored_link_key()
251 if (rp->status) in hci_cc_delete_stored_link_key()
254 if (rp->num_keys <= hdev->stored_num_keys) in hci_cc_delete_stored_link_key()
255 hdev->stored_num_keys -= rp->num_keys; in hci_cc_delete_stored_link_key()
283 struct hci_rp_read_local_name *rp = (void *) skb->data; in hci_cc_read_local_name() local
285 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_local_name()
287 if (rp->status) in hci_cc_read_local_name()
292 memcpy(hdev->dev_name, rp->name, HCI_MAX_NAME_LENGTH); in hci_cc_read_local_name()
383 struct hci_rp_read_class_of_dev *rp = (void *) skb->data; in hci_cc_read_class_of_dev() local
385 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_class_of_dev()
387 if (rp->status) in hci_cc_read_class_of_dev()
390 memcpy(hdev->dev_class, rp->dev_class, 3); in hci_cc_read_class_of_dev()
420 struct hci_rp_read_voice_setting *rp = (void *) skb->data; in hci_cc_read_voice_setting() local
423 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_voice_setting()
425 if (rp->status) in hci_cc_read_voice_setting()
428 setting = __le16_to_cpu(rp->voice_setting); in hci_cc_read_voice_setting()
473 struct hci_rp_read_num_supported_iac *rp = (void *) skb->data; in hci_cc_read_num_supported_iac() local
475 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_num_supported_iac()
477 if (rp->status) in hci_cc_read_num_supported_iac()
480 hdev->num_iac = rp->num_iac; in hci_cc_read_num_supported_iac()
549 struct hci_rp_read_local_version *rp = (void *) skb->data; in hci_cc_read_local_version() local
551 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_local_version()
553 if (rp->status) in hci_cc_read_local_version()
558 hdev->hci_ver = rp->hci_ver; in hci_cc_read_local_version()
559 hdev->hci_rev = __le16_to_cpu(rp->hci_rev); in hci_cc_read_local_version()
560 hdev->lmp_ver = rp->lmp_ver; in hci_cc_read_local_version()
561 hdev->manufacturer = __le16_to_cpu(rp->manufacturer); in hci_cc_read_local_version()
562 hdev->lmp_subver = __le16_to_cpu(rp->lmp_subver); in hci_cc_read_local_version()
569 struct hci_rp_read_local_commands *rp = (void *) skb->data; in hci_cc_read_local_commands() local
571 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_local_commands()
573 if (rp->status) in hci_cc_read_local_commands()
578 memcpy(hdev->commands, rp->commands, sizeof(hdev->commands)); in hci_cc_read_local_commands()
584 struct hci_rp_read_local_features *rp = (void *) skb->data; in hci_cc_read_local_features() local
586 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_local_features()
588 if (rp->status) in hci_cc_read_local_features()
591 memcpy(hdev->features, rp->features, 8); in hci_cc_read_local_features()
634 struct hci_rp_read_local_ext_features *rp = (void *) skb->data; in hci_cc_read_local_ext_features() local
636 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_local_ext_features()
638 if (rp->status) in hci_cc_read_local_ext_features()
641 if (hdev->max_page < rp->max_page) in hci_cc_read_local_ext_features()
642 hdev->max_page = rp->max_page; in hci_cc_read_local_ext_features()
644 if (rp->page < HCI_MAX_PAGES) in hci_cc_read_local_ext_features()
645 memcpy(hdev->features[rp->page], rp->features, 8); in hci_cc_read_local_ext_features()
651 struct hci_rp_read_flow_control_mode *rp = (void *) skb->data; in hci_cc_read_flow_control_mode() local
653 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_flow_control_mode()
655 if (rp->status) in hci_cc_read_flow_control_mode()
658 hdev->flow_ctl_mode = rp->mode; in hci_cc_read_flow_control_mode()
663 struct hci_rp_read_buffer_size *rp = (void *) skb->data; in hci_cc_read_buffer_size() local
665 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_buffer_size()
667 if (rp->status) in hci_cc_read_buffer_size()
670 hdev->acl_mtu = __le16_to_cpu(rp->acl_mtu); in hci_cc_read_buffer_size()
671 hdev->sco_mtu = rp->sco_mtu; in hci_cc_read_buffer_size()
672 hdev->acl_pkts = __le16_to_cpu(rp->acl_max_pkt); in hci_cc_read_buffer_size()
673 hdev->sco_pkts = __le16_to_cpu(rp->sco_max_pkt); in hci_cc_read_buffer_size()
689 struct hci_rp_read_bd_addr *rp = (void *) skb->data; in hci_cc_read_bd_addr() local
691 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_bd_addr()
693 if (rp->status) in hci_cc_read_bd_addr()
697 bacpy(&hdev->bdaddr, &rp->bdaddr); in hci_cc_read_bd_addr()
700 bacpy(&hdev->setup_addr, &rp->bdaddr); in hci_cc_read_bd_addr()
706 struct hci_rp_read_page_scan_activity *rp = (void *) skb->data; in hci_cc_read_page_scan_activity() local
708 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_page_scan_activity()
710 if (rp->status) in hci_cc_read_page_scan_activity()
714 hdev->page_scan_interval = __le16_to_cpu(rp->interval); in hci_cc_read_page_scan_activity()
715 hdev->page_scan_window = __le16_to_cpu(rp->window); in hci_cc_read_page_scan_activity()
741 struct hci_rp_read_page_scan_type *rp = (void *) skb->data; in hci_cc_read_page_scan_type() local
743 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_page_scan_type()
745 if (rp->status) in hci_cc_read_page_scan_type()
749 hdev->page_scan_type = rp->type; in hci_cc_read_page_scan_type()
771 struct hci_rp_read_data_block_size *rp = (void *) skb->data; in hci_cc_read_data_block_size() local
773 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_data_block_size()
775 if (rp->status) in hci_cc_read_data_block_size()
778 hdev->block_mtu = __le16_to_cpu(rp->max_acl_len); in hci_cc_read_data_block_size()
779 hdev->block_len = __le16_to_cpu(rp->block_len); in hci_cc_read_data_block_size()
780 hdev->num_blocks = __le16_to_cpu(rp->num_blocks); in hci_cc_read_data_block_size()
790 struct hci_rp_read_clock *rp = (void *) skb->data; in hci_cc_read_clock() local
796 if (skb->len < sizeof(*rp)) in hci_cc_read_clock()
799 if (rp->status) in hci_cc_read_clock()
809 hdev->clock = le32_to_cpu(rp->clock); in hci_cc_read_clock()
813 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle)); in hci_cc_read_clock()
815 conn->clock = le32_to_cpu(rp->clock); in hci_cc_read_clock()
816 conn->clock_accuracy = le16_to_cpu(rp->accuracy); in hci_cc_read_clock()
826 struct hci_rp_read_local_amp_info *rp = (void *) skb->data; in hci_cc_read_local_amp_info() local
828 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_local_amp_info()
830 if (rp->status) in hci_cc_read_local_amp_info()
833 hdev->amp_status = rp->amp_status; in hci_cc_read_local_amp_info()
834 hdev->amp_total_bw = __le32_to_cpu(rp->total_bw); in hci_cc_read_local_amp_info()
835 hdev->amp_max_bw = __le32_to_cpu(rp->max_bw); in hci_cc_read_local_amp_info()
836 hdev->amp_min_latency = __le32_to_cpu(rp->min_latency); in hci_cc_read_local_amp_info()
837 hdev->amp_max_pdu = __le32_to_cpu(rp->max_pdu); in hci_cc_read_local_amp_info()
838 hdev->amp_type = rp->amp_type; in hci_cc_read_local_amp_info()
839 hdev->amp_pal_cap = __le16_to_cpu(rp->pal_cap); in hci_cc_read_local_amp_info()
840 hdev->amp_assoc_size = __le16_to_cpu(rp->max_assoc_size); in hci_cc_read_local_amp_info()
841 hdev->amp_be_flush_to = __le32_to_cpu(rp->be_flush_to); in hci_cc_read_local_amp_info()
842 hdev->amp_max_flush_to = __le32_to_cpu(rp->max_flush_to); in hci_cc_read_local_amp_info()
848 struct hci_rp_read_inq_rsp_tx_power *rp = (void *) skb->data; in hci_cc_read_inq_rsp_tx_power() local
850 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_inq_rsp_tx_power()
852 if (rp->status) in hci_cc_read_inq_rsp_tx_power()
855 hdev->inq_tx_power = rp->tx_power; in hci_cc_read_inq_rsp_tx_power()
860 struct hci_rp_pin_code_reply *rp = (void *) skb->data; in hci_cc_pin_code_reply() local
864 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_pin_code_reply()
869 mgmt_pin_code_reply_complete(hdev, &rp->bdaddr, rp->status); in hci_cc_pin_code_reply()
871 if (rp->status) in hci_cc_pin_code_reply()
888 struct hci_rp_pin_code_neg_reply *rp = (void *) skb->data; in hci_cc_pin_code_neg_reply() local
890 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_pin_code_neg_reply()
895 mgmt_pin_code_neg_reply_complete(hdev, &rp->bdaddr, in hci_cc_pin_code_neg_reply()
896 rp->status); in hci_cc_pin_code_neg_reply()
904 struct hci_rp_le_read_buffer_size *rp = (void *) skb->data; in hci_cc_le_read_buffer_size() local
906 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_le_read_buffer_size()
908 if (rp->status) in hci_cc_le_read_buffer_size()
911 hdev->le_mtu = __le16_to_cpu(rp->le_mtu); in hci_cc_le_read_buffer_size()
912 hdev->le_pkts = rp->le_max_pkt; in hci_cc_le_read_buffer_size()
922 struct hci_rp_le_read_local_features *rp = (void *) skb->data; in hci_cc_le_read_local_features() local
924 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_le_read_local_features()
926 if (rp->status) in hci_cc_le_read_local_features()
929 memcpy(hdev->le_features, rp->features, 8); in hci_cc_le_read_local_features()
935 struct hci_rp_le_read_adv_tx_power *rp = (void *) skb->data; in hci_cc_le_read_adv_tx_power() local
937 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_le_read_adv_tx_power()
939 if (rp->status) in hci_cc_le_read_adv_tx_power()
942 hdev->adv_tx_power = rp->tx_power; in hci_cc_le_read_adv_tx_power()
947 struct hci_rp_user_confirm_reply *rp = (void *) skb->data; in hci_cc_user_confirm_reply() local
949 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_user_confirm_reply()
954 mgmt_user_confirm_reply_complete(hdev, &rp->bdaddr, ACL_LINK, 0, in hci_cc_user_confirm_reply()
955 rp->status); in hci_cc_user_confirm_reply()
963 struct hci_rp_user_confirm_reply *rp = (void *) skb->data; in hci_cc_user_confirm_neg_reply() local
965 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_user_confirm_neg_reply()
970 mgmt_user_confirm_neg_reply_complete(hdev, &rp->bdaddr, in hci_cc_user_confirm_neg_reply()
971 ACL_LINK, 0, rp->status); in hci_cc_user_confirm_neg_reply()
978 struct hci_rp_user_confirm_reply *rp = (void *) skb->data; in hci_cc_user_passkey_reply() local
980 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_user_passkey_reply()
985 mgmt_user_passkey_reply_complete(hdev, &rp->bdaddr, ACL_LINK, in hci_cc_user_passkey_reply()
986 0, rp->status); in hci_cc_user_passkey_reply()
994 struct hci_rp_user_confirm_reply *rp = (void *) skb->data; in hci_cc_user_passkey_neg_reply() local
996 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_user_passkey_neg_reply()
1001 mgmt_user_passkey_neg_reply_complete(hdev, &rp->bdaddr, in hci_cc_user_passkey_neg_reply()
1002 ACL_LINK, 0, rp->status); in hci_cc_user_passkey_neg_reply()
1010 struct hci_rp_read_local_oob_data *rp = (void *) skb->data; in hci_cc_read_local_oob_data() local
1012 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_local_oob_data()
1018 struct hci_rp_read_local_oob_ext_data *rp = (void *) skb->data; in hci_cc_read_local_oob_ext_data() local
1020 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_local_oob_ext_data()
1201 struct hci_rp_le_read_white_list_size *rp = (void *) skb->data; in hci_cc_le_read_white_list_size() local
1203 BT_DBG("%s status 0x%2.2x size %u", hdev->name, rp->status, rp->size); in hci_cc_le_read_white_list_size()
1205 if (rp->status) in hci_cc_le_read_white_list_size()
1208 hdev->le_white_list_size = rp->size; in hci_cc_le_read_white_list_size()
1265 struct hci_rp_le_read_supported_states *rp = (void *) skb->data; in hci_cc_le_read_supported_states() local
1267 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_le_read_supported_states()
1269 if (rp->status) in hci_cc_le_read_supported_states()
1272 memcpy(hdev->le_states, rp->le_states, 8); in hci_cc_le_read_supported_states()
1278 struct hci_rp_le_read_def_data_len *rp = (void *) skb->data; in hci_cc_le_read_def_data_len() local
1280 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_le_read_def_data_len()
1282 if (rp->status) in hci_cc_le_read_def_data_len()
1285 hdev->le_def_tx_len = le16_to_cpu(rp->tx_len); in hci_cc_le_read_def_data_len()
1286 hdev->le_def_tx_time = le16_to_cpu(rp->tx_time); in hci_cc_le_read_def_data_len()
1311 struct hci_rp_le_read_max_data_len *rp = (void *) skb->data; in hci_cc_le_read_max_data_len() local
1313 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_le_read_max_data_len()
1315 if (rp->status) in hci_cc_le_read_max_data_len()
1318 hdev->le_max_tx_len = le16_to_cpu(rp->tx_len); in hci_cc_le_read_max_data_len()
1319 hdev->le_max_tx_time = le16_to_cpu(rp->tx_time); in hci_cc_le_read_max_data_len()
1320 hdev->le_max_rx_len = le16_to_cpu(rp->rx_len); in hci_cc_le_read_max_data_len()
1321 hdev->le_max_rx_time = le16_to_cpu(rp->rx_time); in hci_cc_le_read_max_data_len()
1379 struct hci_rp_read_rssi *rp = (void *) skb->data; in hci_cc_read_rssi() local
1382 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_rssi()
1384 if (rp->status) in hci_cc_read_rssi()
1389 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle)); in hci_cc_read_rssi()
1391 conn->rssi = rp->rssi; in hci_cc_read_rssi()
1399 struct hci_rp_read_tx_power *rp = (void *) skb->data; in hci_cc_read_tx_power() local
1402 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_tx_power()
1404 if (rp->status) in hci_cc_read_tx_power()
1413 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle)); in hci_cc_read_tx_power()
1419 conn->tx_power = rp->tx_power; in hci_cc_read_tx_power()
1422 conn->max_tx_power = rp->tx_power; in hci_cc_read_tx_power()
2520 const struct hci_rp_read_enc_key_size *rp; in read_enc_key_size_complete() local
2526 if (!skb || skb->len < sizeof(*rp)) { in read_enc_key_size_complete()
2532 rp = (void *)skb->data; in read_enc_key_size_complete()
2533 handle = le16_to_cpu(rp->handle); in read_enc_key_size_complete()
2545 if (rp->status) { in read_enc_key_size_complete()
2550 conn->enc_key_size = rp->key_size; in read_enc_key_size_complete()