Lines Matching refs:rp

98 	struct hci_rp_role_discovery *rp = (void *) skb->data;  in hci_cc_role_discovery()  local
101 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_role_discovery()
103 if (rp->status) in hci_cc_role_discovery()
108 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle)); in hci_cc_role_discovery()
110 conn->role = rp->role; in hci_cc_role_discovery()
117 struct hci_rp_read_link_policy *rp = (void *) skb->data; in hci_cc_read_link_policy() local
120 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_link_policy()
122 if (rp->status) in hci_cc_read_link_policy()
127 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle)); in hci_cc_read_link_policy()
129 conn->link_policy = __le16_to_cpu(rp->policy); in hci_cc_read_link_policy()
136 struct hci_rp_write_link_policy *rp = (void *) skb->data; in hci_cc_write_link_policy() local
140 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_write_link_policy()
142 if (rp->status) in hci_cc_write_link_policy()
151 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle)); in hci_cc_write_link_policy()
161 struct hci_rp_read_def_link_policy *rp = (void *) skb->data; in hci_cc_read_def_link_policy() local
163 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_def_link_policy()
165 if (rp->status) in hci_cc_read_def_link_policy()
168 hdev->link_policy = __le16_to_cpu(rp->policy); in hci_cc_read_def_link_policy()
224 struct hci_rp_read_stored_link_key *rp = (void *)skb->data; in hci_cc_read_stored_link_key() local
227 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_stored_link_key()
233 if (!rp->status && sent->read_all == 0x01) { in hci_cc_read_stored_link_key()
234 hdev->stored_max_keys = rp->max_keys; in hci_cc_read_stored_link_key()
235 hdev->stored_num_keys = rp->num_keys; in hci_cc_read_stored_link_key()
242 struct hci_rp_delete_stored_link_key *rp = (void *)skb->data; in hci_cc_delete_stored_link_key() local
244 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_delete_stored_link_key()
246 if (rp->status) in hci_cc_delete_stored_link_key()
249 if (rp->num_keys <= hdev->stored_num_keys) in hci_cc_delete_stored_link_key()
250 hdev->stored_num_keys -= rp->num_keys; in hci_cc_delete_stored_link_key()
278 struct hci_rp_read_local_name *rp = (void *) skb->data; in hci_cc_read_local_name() local
280 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_local_name()
282 if (rp->status) in hci_cc_read_local_name()
287 memcpy(hdev->dev_name, rp->name, HCI_MAX_NAME_LENGTH); in hci_cc_read_local_name()
378 struct hci_rp_read_class_of_dev *rp = (void *) skb->data; in hci_cc_read_class_of_dev() local
380 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_class_of_dev()
382 if (rp->status) in hci_cc_read_class_of_dev()
385 memcpy(hdev->dev_class, rp->dev_class, 3); in hci_cc_read_class_of_dev()
415 struct hci_rp_read_voice_setting *rp = (void *) skb->data; in hci_cc_read_voice_setting() local
418 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_voice_setting()
420 if (rp->status) in hci_cc_read_voice_setting()
423 setting = __le16_to_cpu(rp->voice_setting); in hci_cc_read_voice_setting()
468 struct hci_rp_read_num_supported_iac *rp = (void *) skb->data; in hci_cc_read_num_supported_iac() local
470 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_num_supported_iac()
472 if (rp->status) in hci_cc_read_num_supported_iac()
475 hdev->num_iac = rp->num_iac; in hci_cc_read_num_supported_iac()
544 struct hci_rp_read_local_version *rp = (void *) skb->data; in hci_cc_read_local_version() local
546 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_local_version()
548 if (rp->status) in hci_cc_read_local_version()
553 hdev->hci_ver = rp->hci_ver; in hci_cc_read_local_version()
554 hdev->hci_rev = __le16_to_cpu(rp->hci_rev); in hci_cc_read_local_version()
555 hdev->lmp_ver = rp->lmp_ver; in hci_cc_read_local_version()
556 hdev->manufacturer = __le16_to_cpu(rp->manufacturer); in hci_cc_read_local_version()
557 hdev->lmp_subver = __le16_to_cpu(rp->lmp_subver); in hci_cc_read_local_version()
564 struct hci_rp_read_local_commands *rp = (void *) skb->data; in hci_cc_read_local_commands() local
566 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_local_commands()
568 if (rp->status) in hci_cc_read_local_commands()
573 memcpy(hdev->commands, rp->commands, sizeof(hdev->commands)); in hci_cc_read_local_commands()
579 struct hci_rp_read_local_features *rp = (void *) skb->data; in hci_cc_read_local_features() local
581 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_local_features()
583 if (rp->status) in hci_cc_read_local_features()
586 memcpy(hdev->features, rp->features, 8); in hci_cc_read_local_features()
629 struct hci_rp_read_local_ext_features *rp = (void *) skb->data; in hci_cc_read_local_ext_features() local
631 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_local_ext_features()
633 if (rp->status) in hci_cc_read_local_ext_features()
636 if (hdev->max_page < rp->max_page) in hci_cc_read_local_ext_features()
637 hdev->max_page = rp->max_page; in hci_cc_read_local_ext_features()
639 if (rp->page < HCI_MAX_PAGES) in hci_cc_read_local_ext_features()
640 memcpy(hdev->features[rp->page], rp->features, 8); in hci_cc_read_local_ext_features()
646 struct hci_rp_read_flow_control_mode *rp = (void *) skb->data; in hci_cc_read_flow_control_mode() local
648 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_flow_control_mode()
650 if (rp->status) in hci_cc_read_flow_control_mode()
653 hdev->flow_ctl_mode = rp->mode; in hci_cc_read_flow_control_mode()
658 struct hci_rp_read_buffer_size *rp = (void *) skb->data; in hci_cc_read_buffer_size() local
660 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_buffer_size()
662 if (rp->status) in hci_cc_read_buffer_size()
665 hdev->acl_mtu = __le16_to_cpu(rp->acl_mtu); in hci_cc_read_buffer_size()
666 hdev->sco_mtu = rp->sco_mtu; in hci_cc_read_buffer_size()
667 hdev->acl_pkts = __le16_to_cpu(rp->acl_max_pkt); in hci_cc_read_buffer_size()
668 hdev->sco_pkts = __le16_to_cpu(rp->sco_max_pkt); in hci_cc_read_buffer_size()
684 struct hci_rp_read_bd_addr *rp = (void *) skb->data; in hci_cc_read_bd_addr() local
686 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_bd_addr()
688 if (rp->status) in hci_cc_read_bd_addr()
692 bacpy(&hdev->bdaddr, &rp->bdaddr); in hci_cc_read_bd_addr()
695 bacpy(&hdev->setup_addr, &rp->bdaddr); in hci_cc_read_bd_addr()
701 struct hci_rp_read_page_scan_activity *rp = (void *) skb->data; in hci_cc_read_page_scan_activity() local
703 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_page_scan_activity()
705 if (rp->status) in hci_cc_read_page_scan_activity()
709 hdev->page_scan_interval = __le16_to_cpu(rp->interval); in hci_cc_read_page_scan_activity()
710 hdev->page_scan_window = __le16_to_cpu(rp->window); in hci_cc_read_page_scan_activity()
736 struct hci_rp_read_page_scan_type *rp = (void *) skb->data; in hci_cc_read_page_scan_type() local
738 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_page_scan_type()
740 if (rp->status) in hci_cc_read_page_scan_type()
744 hdev->page_scan_type = rp->type; in hci_cc_read_page_scan_type()
766 struct hci_rp_read_data_block_size *rp = (void *) skb->data; in hci_cc_read_data_block_size() local
768 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_data_block_size()
770 if (rp->status) in hci_cc_read_data_block_size()
773 hdev->block_mtu = __le16_to_cpu(rp->max_acl_len); in hci_cc_read_data_block_size()
774 hdev->block_len = __le16_to_cpu(rp->block_len); in hci_cc_read_data_block_size()
775 hdev->num_blocks = __le16_to_cpu(rp->num_blocks); in hci_cc_read_data_block_size()
785 struct hci_rp_read_clock *rp = (void *) skb->data; in hci_cc_read_clock() local
791 if (skb->len < sizeof(*rp)) in hci_cc_read_clock()
794 if (rp->status) in hci_cc_read_clock()
804 hdev->clock = le32_to_cpu(rp->clock); in hci_cc_read_clock()
808 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle)); in hci_cc_read_clock()
810 conn->clock = le32_to_cpu(rp->clock); in hci_cc_read_clock()
811 conn->clock_accuracy = le16_to_cpu(rp->accuracy); in hci_cc_read_clock()
821 struct hci_rp_read_local_amp_info *rp = (void *) skb->data; in hci_cc_read_local_amp_info() local
823 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_local_amp_info()
825 if (rp->status) in hci_cc_read_local_amp_info()
828 hdev->amp_status = rp->amp_status; in hci_cc_read_local_amp_info()
829 hdev->amp_total_bw = __le32_to_cpu(rp->total_bw); in hci_cc_read_local_amp_info()
830 hdev->amp_max_bw = __le32_to_cpu(rp->max_bw); in hci_cc_read_local_amp_info()
831 hdev->amp_min_latency = __le32_to_cpu(rp->min_latency); in hci_cc_read_local_amp_info()
832 hdev->amp_max_pdu = __le32_to_cpu(rp->max_pdu); in hci_cc_read_local_amp_info()
833 hdev->amp_type = rp->amp_type; in hci_cc_read_local_amp_info()
834 hdev->amp_pal_cap = __le16_to_cpu(rp->pal_cap); in hci_cc_read_local_amp_info()
835 hdev->amp_assoc_size = __le16_to_cpu(rp->max_assoc_size); in hci_cc_read_local_amp_info()
836 hdev->amp_be_flush_to = __le32_to_cpu(rp->be_flush_to); in hci_cc_read_local_amp_info()
837 hdev->amp_max_flush_to = __le32_to_cpu(rp->max_flush_to); in hci_cc_read_local_amp_info()
846 struct hci_rp_read_local_amp_assoc *rp = (void *) skb->data; in hci_cc_read_local_amp_assoc() local
850 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_local_amp_assoc()
852 if (rp->status) in hci_cc_read_local_amp_assoc()
855 frag_len = skb->len - sizeof(*rp); in hci_cc_read_local_amp_assoc()
856 rem_len = __le16_to_cpu(rp->rem_len); in hci_cc_read_local_amp_assoc()
861 memcpy(assoc->data + assoc->offset, rp->frag, frag_len); in hci_cc_read_local_amp_assoc()
865 amp_read_loc_assoc_frag(hdev, rp->phy_handle); in hci_cc_read_local_amp_assoc()
870 memcpy(assoc->data + assoc->offset, rp->frag, rem_len); in hci_cc_read_local_amp_assoc()
876 a2mp_send_getampassoc_rsp(hdev, rp->status); in hci_cc_read_local_amp_assoc()
877 a2mp_send_create_phy_link_req(hdev, rp->status); in hci_cc_read_local_amp_assoc()
883 struct hci_rp_read_inq_rsp_tx_power *rp = (void *) skb->data; in hci_cc_read_inq_rsp_tx_power() local
885 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_inq_rsp_tx_power()
887 if (rp->status) in hci_cc_read_inq_rsp_tx_power()
890 hdev->inq_tx_power = rp->tx_power; in hci_cc_read_inq_rsp_tx_power()
895 struct hci_rp_pin_code_reply *rp = (void *) skb->data; in hci_cc_pin_code_reply() local
899 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_pin_code_reply()
904 mgmt_pin_code_reply_complete(hdev, &rp->bdaddr, rp->status); in hci_cc_pin_code_reply()
906 if (rp->status) in hci_cc_pin_code_reply()
923 struct hci_rp_pin_code_neg_reply *rp = (void *) skb->data; in hci_cc_pin_code_neg_reply() local
925 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_pin_code_neg_reply()
930 mgmt_pin_code_neg_reply_complete(hdev, &rp->bdaddr, in hci_cc_pin_code_neg_reply()
931 rp->status); in hci_cc_pin_code_neg_reply()
939 struct hci_rp_le_read_buffer_size *rp = (void *) skb->data; in hci_cc_le_read_buffer_size() local
941 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_le_read_buffer_size()
943 if (rp->status) in hci_cc_le_read_buffer_size()
946 hdev->le_mtu = __le16_to_cpu(rp->le_mtu); in hci_cc_le_read_buffer_size()
947 hdev->le_pkts = rp->le_max_pkt; in hci_cc_le_read_buffer_size()
957 struct hci_rp_le_read_local_features *rp = (void *) skb->data; in hci_cc_le_read_local_features() local
959 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_le_read_local_features()
961 if (rp->status) in hci_cc_le_read_local_features()
964 memcpy(hdev->le_features, rp->features, 8); in hci_cc_le_read_local_features()
970 struct hci_rp_le_read_adv_tx_power *rp = (void *) skb->data; in hci_cc_le_read_adv_tx_power() local
972 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_le_read_adv_tx_power()
974 if (rp->status) in hci_cc_le_read_adv_tx_power()
977 hdev->adv_tx_power = rp->tx_power; in hci_cc_le_read_adv_tx_power()
982 struct hci_rp_user_confirm_reply *rp = (void *) skb->data; in hci_cc_user_confirm_reply() local
984 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_user_confirm_reply()
989 mgmt_user_confirm_reply_complete(hdev, &rp->bdaddr, ACL_LINK, 0, in hci_cc_user_confirm_reply()
990 rp->status); in hci_cc_user_confirm_reply()
998 struct hci_rp_user_confirm_reply *rp = (void *) skb->data; in hci_cc_user_confirm_neg_reply() local
1000 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_user_confirm_neg_reply()
1005 mgmt_user_confirm_neg_reply_complete(hdev, &rp->bdaddr, in hci_cc_user_confirm_neg_reply()
1006 ACL_LINK, 0, rp->status); in hci_cc_user_confirm_neg_reply()
1013 struct hci_rp_user_confirm_reply *rp = (void *) skb->data; in hci_cc_user_passkey_reply() local
1015 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_user_passkey_reply()
1020 mgmt_user_passkey_reply_complete(hdev, &rp->bdaddr, ACL_LINK, in hci_cc_user_passkey_reply()
1021 0, rp->status); in hci_cc_user_passkey_reply()
1029 struct hci_rp_user_confirm_reply *rp = (void *) skb->data; in hci_cc_user_passkey_neg_reply() local
1031 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_user_passkey_neg_reply()
1036 mgmt_user_passkey_neg_reply_complete(hdev, &rp->bdaddr, in hci_cc_user_passkey_neg_reply()
1037 ACL_LINK, 0, rp->status); in hci_cc_user_passkey_neg_reply()
1045 struct hci_rp_read_local_oob_data *rp = (void *) skb->data; in hci_cc_read_local_oob_data() local
1047 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_local_oob_data()
1053 struct hci_rp_read_local_oob_ext_data *rp = (void *) skb->data; in hci_cc_read_local_oob_ext_data() local
1055 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_local_oob_ext_data()
1236 struct hci_rp_le_read_white_list_size *rp = (void *) skb->data; in hci_cc_le_read_white_list_size() local
1238 BT_DBG("%s status 0x%2.2x size %u", hdev->name, rp->status, rp->size); in hci_cc_le_read_white_list_size()
1240 if (rp->status) in hci_cc_le_read_white_list_size()
1243 hdev->le_white_list_size = rp->size; in hci_cc_le_read_white_list_size()
1300 struct hci_rp_le_read_supported_states *rp = (void *) skb->data; in hci_cc_le_read_supported_states() local
1302 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_le_read_supported_states()
1304 if (rp->status) in hci_cc_le_read_supported_states()
1307 memcpy(hdev->le_states, rp->le_states, 8); in hci_cc_le_read_supported_states()
1313 struct hci_rp_le_read_def_data_len *rp = (void *) skb->data; in hci_cc_le_read_def_data_len() local
1315 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_le_read_def_data_len()
1317 if (rp->status) in hci_cc_le_read_def_data_len()
1320 hdev->le_def_tx_len = le16_to_cpu(rp->tx_len); in hci_cc_le_read_def_data_len()
1321 hdev->le_def_tx_time = le16_to_cpu(rp->tx_time); in hci_cc_le_read_def_data_len()
1346 struct hci_rp_le_read_max_data_len *rp = (void *) skb->data; in hci_cc_le_read_max_data_len() local
1348 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_le_read_max_data_len()
1350 if (rp->status) in hci_cc_le_read_max_data_len()
1353 hdev->le_max_tx_len = le16_to_cpu(rp->tx_len); in hci_cc_le_read_max_data_len()
1354 hdev->le_max_tx_time = le16_to_cpu(rp->tx_time); in hci_cc_le_read_max_data_len()
1355 hdev->le_max_rx_len = le16_to_cpu(rp->rx_len); in hci_cc_le_read_max_data_len()
1356 hdev->le_max_rx_time = le16_to_cpu(rp->rx_time); in hci_cc_le_read_max_data_len()
1415 struct hci_rp_write_remote_amp_assoc *rp = (void *) skb->data; in hci_cc_write_remote_amp_assoc() local
1418 hdev->name, rp->status, rp->phy_handle); in hci_cc_write_remote_amp_assoc()
1420 if (rp->status) in hci_cc_write_remote_amp_assoc()
1423 amp_write_rem_assoc_continue(hdev, rp->phy_handle); in hci_cc_write_remote_amp_assoc()
1428 struct hci_rp_read_rssi *rp = (void *) skb->data; in hci_cc_read_rssi() local
1431 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_rssi()
1433 if (rp->status) in hci_cc_read_rssi()
1438 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle)); in hci_cc_read_rssi()
1440 conn->rssi = rp->rssi; in hci_cc_read_rssi()
1448 struct hci_rp_read_tx_power *rp = (void *) skb->data; in hci_cc_read_tx_power() local
1451 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_tx_power()
1453 if (rp->status) in hci_cc_read_tx_power()
1462 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle)); in hci_cc_read_tx_power()
1468 conn->tx_power = rp->tx_power; in hci_cc_read_tx_power()
1471 conn->max_tx_power = rp->tx_power; in hci_cc_read_tx_power()