Lines Matching refs:rp

89 	struct hci_ev_status *rp = data;
91 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
100 if (rp->status == HCI_ERROR_COMMAND_DISALLOWED && !test_bit(HCI_INQUIRY, &hdev->flags)) {
102 rp->status = 0x00;
105 if (rp->status)
106 return rp->status;
121 return rp->status;
127 struct hci_ev_status *rp = data;
129 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
131 if (rp->status)
132 return rp->status;
136 return rp->status;
142 struct hci_ev_status *rp = data;
144 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
146 if (rp->status)
147 return rp->status;
151 return rp->status;
157 struct hci_ev_status *rp = data;
159 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
161 return rp->status;
167 struct hci_rp_role_discovery *rp = data;
170 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
172 if (rp->status)
173 return rp->status;
177 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle));
179 conn->role = rp->role;
183 return rp->status;
189 struct hci_rp_read_link_policy *rp = data;
192 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
194 if (rp->status)
195 return rp->status;
199 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle));
201 conn->link_policy = __le16_to_cpu(rp->policy);
205 return rp->status;
211 struct hci_rp_write_link_policy *rp = data;
215 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
217 if (rp->status)
218 return rp->status;
222 return rp->status;
226 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle));
232 return rp->status;
238 struct hci_rp_read_def_link_policy *rp = data;
240 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
242 if (rp->status)
243 return rp->status;
245 hdev->link_policy = __le16_to_cpu(rp->policy);
247 return rp->status;
253 struct hci_ev_status *rp = data;
256 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
258 if (rp->status)
259 return rp->status;
263 return rp->status;
267 return rp->status;
272 struct hci_ev_status *rp = data;
274 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
278 if (rp->status)
279 return rp->status;
302 return rp->status;
308 struct hci_rp_read_stored_link_key *rp = data;
311 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
315 return rp->status;
317 if (!rp->status && sent->read_all == 0x01) {
318 hdev->stored_max_keys = le16_to_cpu(rp->max_keys);
319 hdev->stored_num_keys = le16_to_cpu(rp->num_keys);
322 return rp->status;
328 struct hci_rp_delete_stored_link_key *rp = data;
331 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
333 if (rp->status)
334 return rp->status;
336 num_keys = le16_to_cpu(rp->num_keys);
343 return rp->status;
349 struct hci_ev_status *rp = data;
352 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
356 return rp->status;
361 mgmt_set_local_name_complete(hdev, sent, rp->status);
362 else if (!rp->status)
367 return rp->status;
373 struct hci_rp_read_local_name *rp = data;
375 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
377 if (rp->status)
378 return rp->status;
382 memcpy(hdev->dev_name, rp->name, HCI_MAX_NAME_LENGTH);
384 return rp->status;
390 struct hci_ev_status *rp = data;
393 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
397 return rp->status;
401 if (!rp->status) {
411 mgmt_auth_enable_complete(hdev, rp->status);
415 return rp->status;
421 struct hci_ev_status *rp = data;
425 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
427 if (rp->status)
428 return rp->status;
432 return rp->status;
441 return rp->status;
447 struct hci_ev_status *rp = data;
451 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
455 return rp->status;
461 if (rp->status) {
479 return rp->status;
485 struct hci_ev_status *rp = data;
489 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
491 if (rp->status)
492 return rp->status;
496 return rp->status;
505 return rp->status;
511 struct hci_rp_read_class_of_dev *rp = data;
516 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
518 if (rp->status)
519 return rp->status;
521 memcpy(hdev->dev_class, rp->dev_class, 3);
526 return rp->status;
532 struct hci_ev_status *rp = data;
535 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
539 return rp->status;
543 if (!rp->status)
547 mgmt_set_class_of_dev_complete(hdev, sent, rp->status);
551 return rp->status;
557 struct hci_rp_read_voice_setting *rp = data;
560 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
562 if (rp->status)
563 return rp->status;
565 setting = __le16_to_cpu(rp->voice_setting);
568 return rp->status;
577 return rp->status;
583 struct hci_ev_status *rp = data;
587 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
589 if (rp->status)
590 return rp->status;
594 return rp->status;
599 return rp->status;
608 return rp->status;
614 struct hci_rp_read_num_supported_iac *rp = data;
616 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
618 if (rp->status)
619 return rp->status;
621 hdev->num_iac = rp->num_iac;
625 return rp->status;
631 struct hci_ev_status *rp = data;
634 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
638 return rp->status;
642 if (!rp->status) {
649 if (!rp->status) {
658 return rp->status;
664 struct hci_ev_status *rp = data;
667 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
671 return rp->status;
675 if (!rp->status) {
682 if (!hci_dev_test_flag(hdev, HCI_MGMT) && !rp->status) {
691 return rp->status;
697 struct hci_rp_read_local_version *rp = data;
699 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
701 if (rp->status)
702 return rp->status;
706 hdev->hci_ver = rp->hci_ver;
707 hdev->hci_rev = __le16_to_cpu(rp->hci_rev);
708 hdev->lmp_ver = rp->lmp_ver;
709 hdev->manufacturer = __le16_to_cpu(rp->manufacturer);
710 hdev->lmp_subver = __le16_to_cpu(rp->lmp_subver);
713 return rp->status;
719 struct hci_rp_read_enc_key_size *rp = data;
722 u8 status = rp->status;
726 handle = le16_to_cpu(rp->handle);
745 conn->enc_key_size = rp->key_size;
774 struct hci_rp_read_local_commands *rp = data;
776 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
778 if (rp->status)
779 return rp->status;
783 memcpy(hdev->commands, rp->commands, sizeof(hdev->commands));
785 return rp->status;
791 struct hci_rp_read_auth_payload_to *rp = data;
794 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
796 if (rp->status)
797 return rp->status;
801 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle));
803 conn->auth_payload_timeout = __le16_to_cpu(rp->timeout);
807 return rp->status;
813 struct hci_rp_write_auth_payload_to *rp = data;
817 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
821 return rp->status;
825 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle));
827 rp->status = 0xff;
831 if (!rp->status)
837 return rp->status;
843 struct hci_rp_read_local_features *rp = data;
845 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
847 if (rp->status)
848 return rp->status;
850 memcpy(hdev->features, rp->features, 8);
889 return rp->status;
895 struct hci_rp_read_local_ext_features *rp = data;
897 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
899 if (rp->status)
900 return rp->status;
902 if (hdev->max_page < rp->max_page) {
907 hdev->max_page = rp->max_page;
910 if (rp->page < HCI_MAX_PAGES)
911 memcpy(hdev->features[rp->page], rp->features, 8);
913 return rp->status;
919 struct hci_rp_read_buffer_size *rp = data;
921 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
923 if (rp->status)
924 return rp->status;
926 hdev->acl_mtu = __le16_to_cpu(rp->acl_mtu);
927 hdev->sco_mtu = rp->sco_mtu;
928 hdev->acl_pkts = __le16_to_cpu(rp->acl_max_pkt);
929 hdev->sco_pkts = __le16_to_cpu(rp->sco_max_pkt);
945 return rp->status;
951 struct hci_rp_read_bd_addr *rp = data;
953 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
955 if (rp->status)
956 return rp->status;
959 bacpy(&hdev->bdaddr, &rp->bdaddr);
962 bacpy(&hdev->setup_addr, &rp->bdaddr);
964 return rp->status;
970 struct hci_rp_read_local_pairing_opts *rp = data;
972 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
974 if (rp->status)
975 return rp->status;
979 hdev->pairing_opts = rp->pairing_opts;
980 hdev->max_enc_key_size = rp->max_key_size;
983 return rp->status;
989 struct hci_rp_read_page_scan_activity *rp = data;
991 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
993 if (rp->status)
994 return rp->status;
997 hdev->page_scan_interval = __le16_to_cpu(rp->interval);
998 hdev->page_scan_window = __le16_to_cpu(rp->window);
1001 return rp->status;
1007 struct hci_ev_status *rp = data;
1010 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1012 if (rp->status)
1013 return rp->status;
1017 return rp->status;
1022 return rp->status;
1028 struct hci_rp_read_page_scan_type *rp = data;
1030 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1032 if (rp->status)
1033 return rp->status;
1036 hdev->page_scan_type = rp->type;
1038 return rp->status;
1044 struct hci_ev_status *rp = data;
1047 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1049 if (rp->status)
1050 return rp->status;
1056 return rp->status;
1062 struct hci_rp_read_clock *rp = data;
1066 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1068 if (rp->status)
1069 return rp->status;
1078 hdev->clock = le32_to_cpu(rp->clock);
1082 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle));
1084 conn->clock = le32_to_cpu(rp->clock);
1085 conn->clock_accuracy = le16_to_cpu(rp->accuracy);
1090 return rp->status;
1096 struct hci_rp_read_inq_rsp_tx_power *rp = data;
1098 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1100 if (rp->status)
1101 return rp->status;
1103 hdev->inq_tx_power = rp->tx_power;
1105 return rp->status;
1111 struct hci_rp_read_def_err_data_reporting *rp = data;
1113 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1115 if (rp->status)
1116 return rp->status;
1118 hdev->err_data_reporting = rp->err_data_reporting;
1120 return rp->status;
1126 struct hci_ev_status *rp = data;
1129 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1131 if (rp->status)
1132 return rp->status;
1136 return rp->status;
1140 return rp->status;
1146 struct hci_rp_pin_code_reply *rp = data;
1150 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1155 mgmt_pin_code_reply_complete(hdev, &rp->bdaddr, rp->status);
1157 if (rp->status)
1170 return rp->status;
1176 struct hci_rp_pin_code_neg_reply *rp = data;
1178 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1183 mgmt_pin_code_neg_reply_complete(hdev, &rp->bdaddr,
1184 rp->status);
1188 return rp->status;
1194 struct hci_rp_le_read_buffer_size *rp = data;
1196 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1198 if (rp->status)
1199 return rp->status;
1201 hdev->le_mtu = __le16_to_cpu(rp->le_mtu);
1202 hdev->le_pkts = rp->le_max_pkt;
1211 return rp->status;
1217 struct hci_rp_le_read_local_features *rp = data;
1219 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status);
1221 if (rp->status)
1222 return rp->status;
1224 memcpy(hdev->le_features, rp->features, 8);
1226 return rp->status;
1232 struct hci_rp_le_read_adv_tx_power *rp = data;
1234 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1236 if (rp->status)
1237 return rp->status;
1239 hdev->adv_tx_power = rp->tx_power;
1241 return rp->status;
1247 struct hci_rp_user_confirm_reply *rp = data;
1249 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1254 mgmt_user_confirm_reply_complete(hdev, &rp->bdaddr, ACL_LINK, 0,
1255 rp->status);
1259 return rp->status;
1265 struct hci_rp_user_confirm_reply *rp = data;
1267 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1272 mgmt_user_confirm_neg_reply_complete(hdev, &rp->bdaddr,
1273 ACL_LINK, 0, rp->status);
1277 return rp->status;
1283 struct hci_rp_user_confirm_reply *rp = data;
1285 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1290 mgmt_user_passkey_reply_complete(hdev, &rp->bdaddr, ACL_LINK,
1291 0, rp->status);
1295 return rp->status;
1301 struct hci_rp_user_confirm_reply *rp = data;
1303 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1308 mgmt_user_passkey_neg_reply_complete(hdev, &rp->bdaddr,
1309 ACL_LINK, 0, rp->status);
1313 return rp->status;
1319 struct hci_rp_read_local_oob_data *rp = data;
1321 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1323 return rp->status;
1329 struct hci_rp_read_local_oob_ext_data *rp = data;
1331 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1333 return rp->status;
1339 struct hci_ev_status *rp = data;
1342 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1344 if (rp->status)
1345 return rp->status;
1349 return rp->status;
1363 return rp->status;
1369 struct hci_ev_status *rp = data;
1372 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1374 if (rp->status)
1375 return rp->status;
1379 return rp->status;
1388 return rp->status;
1394 struct hci_ev_status *rp = data;
1398 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1400 if (rp->status)
1401 return rp->status;
1409 return rp->status;
1426 return rp->status;
1432 struct hci_ev_status *rp = data;
1436 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1438 if (rp->status)
1439 return rp->status;
1443 return rp->status;
1454 return rp->status;
1460 struct hci_ev_status *rp = data;
1464 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1466 if (rp->status)
1467 return rp->status;
1470 return rp->status;
1485 return rp->status;
1491 struct hci_rp_le_read_transmit_power *rp = data;
1493 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1495 if (rp->status)
1496 return rp->status;
1498 hdev->min_le_tx_power = rp->min_le_tx_power;
1499 hdev->max_le_tx_power = rp->max_le_tx_power;
1501 return rp->status;
1507 struct hci_ev_status *rp = data;
1511 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1513 if (rp->status)
1514 return rp->status;
1518 return rp->status;
1528 return rp->status;
1534 struct hci_ev_status *rp = data;
1537 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1539 if (rp->status)
1540 return rp->status;
1544 return rp->status;
1567 return rp->status;
1576 struct hci_ev_status *rp = data;
1578 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1580 if (rp->status)
1581 return rp->status;
1585 return rp->status;
1632 return rp->status;
1639 struct hci_ev_status *rp = data;
1641 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1643 if (rp->status)
1644 return rp->status;
1648 return rp->status;
1656 return rp->status;
1663 struct hci_ev_status *rp = data;
1666 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1668 if (rp->status)
1669 return rp->status;
1673 return rp->status;
1683 return rp->status;
1778 struct hci_ev_status *rp = data;
1780 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1782 if (rp->status)
1783 return rp->status;
1787 return rp->status;
1791 return rp->status;
1798 struct hci_ev_status *rp = data;
1800 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1802 if (rp->status)
1803 return rp->status;
1807 return rp->status;
1811 return rp->status;
1817 struct hci_rp_le_read_num_supported_adv_sets *rp = data;
1819 bt_dev_dbg(hdev, "status 0x%2.2x No of Adv sets %u", rp->status,
1820 rp->num_of_sets);
1822 if (rp->status)
1823 return rp->status;
1825 hdev->le_num_of_adv_sets = rp->num_of_sets;
1827 return rp->status;
1833 struct hci_rp_le_read_accept_list_size *rp = data;
1835 bt_dev_dbg(hdev, "status 0x%2.2x size %u", rp->status, rp->size);
1837 if (rp->status)
1838 return rp->status;
1840 hdev->le_accept_list_size = rp->size;
1842 return rp->status;
1848 struct hci_ev_status *rp = data;
1850 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1852 if (rp->status)
1853 return rp->status;
1859 return rp->status;
1866 struct hci_ev_status *rp = data;
1868 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1870 if (rp->status)
1871 return rp->status;
1875 return rp->status;
1882 return rp->status;
1889 struct hci_ev_status *rp = data;
1891 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1893 if (rp->status)
1894 return rp->status;
1898 return rp->status;
1905 return rp->status;
1911 struct hci_rp_le_read_supported_states *rp = data;
1913 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1915 if (rp->status)
1916 return rp->status;
1918 memcpy(hdev->le_states, rp->le_states, 8);
1920 return rp->status;
1926 struct hci_rp_le_read_def_data_len *rp = data;
1928 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1930 if (rp->status)
1931 return rp->status;
1933 hdev->le_def_tx_len = le16_to_cpu(rp->tx_len);
1934 hdev->le_def_tx_time = le16_to_cpu(rp->tx_time);
1936 return rp->status;
1943 struct hci_ev_status *rp = data;
1945 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1947 if (rp->status)
1948 return rp->status;
1952 return rp->status;
1957 return rp->status;
1964 struct hci_ev_status *rp = data;
1966 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1968 if (rp->status)
1969 return rp->status;
1973 return rp->status;
1981 return rp->status;
1988 struct hci_ev_status *rp = data;
1990 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1992 if (rp->status)
1993 return rp->status;
1997 return rp->status;
2004 return rp->status;
2010 struct hci_ev_status *rp = data;
2012 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
2014 if (rp->status)
2015 return rp->status;
2021 return rp->status;
2027 struct hci_rp_le_read_resolv_list_size *rp = data;
2029 bt_dev_dbg(hdev, "status 0x%2.2x size %u", rp->status, rp->size);
2031 if (rp->status)
2032 return rp->status;
2034 hdev->le_resolv_list_size = rp->size;
2036 return rp->status;
2042 struct hci_ev_status *rp = data;
2045 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
2047 if (rp->status)
2048 return rp->status;
2052 return rp->status;
2063 return rp->status;
2069 struct hci_rp_le_read_max_data_len *rp = data;
2071 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
2073 if (rp->status)
2074 return rp->status;
2076 hdev->le_max_tx_len = le16_to_cpu(rp->tx_len);
2077 hdev->le_max_tx_time = le16_to_cpu(rp->tx_time);
2078 hdev->le_max_rx_len = le16_to_cpu(rp->rx_len);
2079 hdev->le_max_rx_time = le16_to_cpu(rp->rx_time);
2081 return rp->status;
2088 struct hci_ev_status *rp = data;
2090 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
2092 if (rp->status)
2093 return rp->status;
2097 return rp->status;
2117 return rp->status;
2124 struct hci_ev_status *rp = data;
2126 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
2128 if (rp->status)
2129 return rp->status;
2133 return rp->status;
2139 return rp->status;
2145 struct hci_rp_le_set_ext_adv_params *rp = data;
2149 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
2151 if (rp->status)
2152 return rp->status;
2156 return rp->status;
2162 hdev->adv_tx_power = rp->tx_power;
2166 adv_instance->tx_power = rp->tx_power;
2173 return rp->status;
2179 struct hci_rp_read_rssi *rp = data;
2182 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
2184 if (rp->status)
2185 return rp->status;
2189 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle));
2191 conn->rssi = rp->rssi;
2195 return rp->status;
2202 struct hci_rp_read_tx_power *rp = data;
2205 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
2207 if (rp->status)
2208 return rp->status;
2212 return rp->status;
2216 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle));
2222 conn->tx_power = rp->tx_power;
2225 conn->max_tx_power = rp->tx_power;
2231 return rp->status;
2237 struct hci_ev_status *rp = data;
2240 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
2242 if (rp->status)
2243 return rp->status;
2249 return rp->status;
3765 struct hci_rp_le_read_buffer_size_v2 *rp = data;
3767 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
3769 if (rp->status)
3770 return rp->status;
3772 hdev->le_mtu = __le16_to_cpu(rp->acl_mtu);
3773 hdev->le_pkts = rp->acl_max_pkt;
3774 hdev->iso_mtu = __le16_to_cpu(rp->iso_mtu);
3775 hdev->iso_pkts = rp->iso_max_pkt;
3786 return rp->status;
3808 struct hci_rp_le_set_cig_params *rp = data;
3811 u8 status = rp->status;
3815 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
3818 if (!rp->status && (!cp || rp->num_handles != cp->num_cis ||
3819 rp->cig_id != cp->cig_id)) {
3834 hci_unbound_cis_failed(hdev, rp->cig_id, status);
3845 for (i = 0; i < rp->num_handles; ++i) {
3846 conn = hci_conn_hash_lookup_cis(hdev, NULL, 0, rp->cig_id,
3854 if (hci_conn_set_handle(conn, __le16_to_cpu(rp->handle[i])))
3867 return rp->status;
3873 struct hci_rp_le_setup_iso_path *rp = data;
3877 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
3881 return rp->status;
3889 if (rp->status) {
3890 hci_connect_cfm(conn, rp->status);
3900 hci_connect_cfm(conn, rp->status);
3907 hci_connect_cfm(conn, rp->status);
3910 if (!rp->status && test_bit(HCI_CONN_BIG_SYNC, &conn->flags))
3918 return rp->status;
3929 struct hci_ev_status *rp = data;
3932 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
3934 if (rp->status)
3935 return rp->status;
3939 return rp->status;
3942 return rp->status;
3948 struct hci_ev_status *rp = data;
3953 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
3955 if (rp->status)
3956 return rp->status;
3960 return rp->status;
3992 return rp->status;