Lines Matching refs:params
439 fprintf(stderr, "%s: HCI event params too long (%ib)\n",
457 void *params, int len)
465 memcpy(packet, params, len);
472 evt_cmd_status params = {
478 bt_hci_event(hci, EVT_CMD_STATUS, ¶ms, EVT_CMD_STATUS_SIZE);
486 evt_cmd_complete *params = (evt_cmd_complete *) packet;
491 params->ncmd = 1;
492 params->opcode = hci->last_cmd;
518 inquiry_info params = {
531 bt_hci_event(hci, EVT_INQUIRY_RESULT, ¶ms, INQUIRY_INFO_SIZE);
537 inquiry_info_with_rssi params = {
551 ¶ms, INQUIRY_INFO_WITH_RSSI_SIZE);
711 evt_conn_complete params;
713 params.status = HCI_NO_CONNECTION;
714 params.handle = 0;
715 bacpy(¶ms.bdaddr, bdaddr);
716 params.link_type = ACL_LINK;
717 params.encr_mode = 0x00; /* Encryption not required */
718 bt_hci_event(hci, EVT_CONN_COMPLETE, ¶ms, EVT_CONN_COMPLETE_SIZE);
725 evt_conn_complete params;
753 params.status = status;
754 params.handle = HNDL(handle);
755 bacpy(¶ms.bdaddr, &host->bd_addr);
756 params.link_type = ACL_LINK;
757 params.encr_mode = 0x00; /* Encryption not required */
758 bt_hci_event(hci, EVT_CONN_COMPLETE, ¶ms, EVT_CONN_COMPLETE_SIZE);
772 evt_conn_request params;
785 bacpy(¶ms.bdaddr, &link->host->bd_addr);
786 memcpy(¶ms.dev_class, &link->host->class, sizeof(params.dev_class));
787 params.link_type = ACL_LINK;
788 bt_hci_event(hci, EVT_CONN_REQUEST, ¶ms, EVT_CONN_REQUEST_SIZE);
829 evt_conn_complete params;
867 params.status = status;
868 params.handle = HNDL(handle);
869 params.link_type = ACL_LINK;
870 bacpy(¶ms.bdaddr, &link->slave->bd_addr);
871 params.encr_mode = 0x00; /* Encryption not required */
872 bt_hci_event(hci, EVT_CONN_COMPLETE, ¶ms, EVT_CONN_COMPLETE_SIZE);
881 evt_disconn_complete params;
901 params.status = HCI_SUCCESS;
902 params.handle = HNDL(handle);
903 params.reason = HCI_CONNECTION_TERMINATED;
905 ¶ms, EVT_DISCONN_COMPLETE_SIZE);
913 evt_disconn_complete params;
917 params.status = HCI_SUCCESS;
918 params.handle = HNDL(handle);
919 params.reason = hci->device.reject_reason;
921 ¶ms, EVT_DISCONN_COMPLETE_SIZE);
929 evt_disconn_complete params;
935 params.status = HCI_SUCCESS;
936 params.handle = HNDL(handle);
937 params.reason = hci->device.reject_reason;
939 ¶ms, EVT_DISCONN_COMPLETE_SIZE);
945 evt_remote_name_req_complete params;
956 params.status = HCI_SUCCESS;
957 bacpy(¶ms.bdaddr, &slave->bd_addr);
958 len = snprintf(params.name, sizeof(params.name),
960 memset(params.name + len, 0, sizeof(params.name) - len);
962 ¶ms, EVT_REMOTE_NAME_REQ_COMPLETE_SIZE);
970 evt_read_remote_features_complete params;
979 params.status = HCI_SUCCESS;
980 params.handle = HNDL(handle);
981 params.features[0] = (slave->lmp_caps >> 0) & 0xff;
982 params.features[1] = (slave->lmp_caps >> 8) & 0xff;
983 params.features[2] = (slave->lmp_caps >> 16) & 0xff;
984 params.features[3] = (slave->lmp_caps >> 24) & 0xff;
985 params.features[4] = (slave->lmp_caps >> 32) & 0xff;
986 params.features[5] = (slave->lmp_caps >> 40) & 0xff;
987 params.features[6] = (slave->lmp_caps >> 48) & 0xff;
988 params.features[7] = (slave->lmp_caps >> 56) & 0xff;
990 ¶ms, EVT_READ_REMOTE_FEATURES_COMPLETE_SIZE);
997 evt_read_remote_version_complete params;
1006 params.status = HCI_SUCCESS;
1007 params.handle = HNDL(handle);
1008 params.lmp_ver = 0x03;
1009 params.manufacturer = cpu_to_le16(0xa000);
1010 params.lmp_subver = cpu_to_le16(0xa607);
1012 ¶ms, EVT_READ_REMOTE_VERSION_COMPLETE_SIZE);
1020 evt_read_clock_offset_complete params;
1029 params.status = HCI_SUCCESS;
1030 params.handle = HNDL(handle);
1032 params.clock_offset = slave->clkoff; /* Note: no swapping */
1034 ¶ms, EVT_READ_CLOCK_OFFSET_COMPLETE_SIZE);
1042 evt_mode_change params = {
1049 bt_hci_event(hci, EVT_MODE_CHANGE, ¶ms, EVT_MODE_CHANGE_SIZE);
1294 create_conn_cancel_rp params = {
1299 bt_hci_event_complete(hci, ¶ms, CREATE_CONN_CANCEL_RP_SIZE);
1305 evt_auth_complete params = {
1310 bt_hci_event(hci, EVT_AUTH_COMPLETE, ¶ms, EVT_AUTH_COMPLETE_SIZE);
1316 evt_encrypt_change params = {
1322 bt_hci_event(hci, EVT_ENCRYPT_CHANGE, ¶ms, EVT_ENCRYPT_CHANGE_SIZE);
1328 remote_name_req_cancel_rp params = {
1333 bt_hci_event_complete(hci, ¶ms, REMOTE_NAME_REQ_CANCEL_RP_SIZE);
1339 evt_read_remote_ext_features_complete params = {
1346 ¶ms, EVT_READ_REMOTE_EXT_FEATURES_COMPLETE_SIZE);
1352 read_lmp_handle_rp params = {
1359 bt_hci_event_complete(hci, ¶ms, READ_LMP_HANDLE_RP_SIZE);
1365 role_discovery_rp params = {
1371 bt_hci_event_complete(hci, ¶ms, ROLE_DISCOVERY_RP_SIZE);
1377 flush_rp params = {
1382 bt_hci_event_complete(hci, ¶ms, FLUSH_RP_SIZE);
1387 read_local_name_rp params;
1388 params.status = HCI_SUCCESS;
1389 memset(params.name, 0, sizeof(params.name));
1391 strncpy(params.name, hci->device.lmp_name, sizeof(params.name));
1393 bt_hci_event_complete(hci, ¶ms, READ_LOCAL_NAME_RP_SIZE);
1399 read_conn_accept_timeout_rp params = {
1404 bt_hci_event_complete(hci, ¶ms, READ_CONN_ACCEPT_TIMEOUT_RP_SIZE);
1409 read_scan_enable_rp params = {
1416 bt_hci_event_complete(hci, ¶ms, READ_SCAN_ENABLE_RP_SIZE);
1421 read_class_of_dev_rp params;
1423 params.status = HCI_SUCCESS;
1424 memcpy(params.dev_class, hci->device.class, sizeof(params.dev_class));
1426 bt_hci_event_complete(hci, ¶ms, READ_CLASS_OF_DEV_RP_SIZE);
1431 read_voice_setting_rp params = {
1436 bt_hci_event_complete(hci, ¶ms, READ_VOICE_SETTING_RP_SIZE);
1442 read_inquiry_mode_rp params = {
1447 bt_hci_event_complete(hci, ¶ms, READ_INQUIRY_MODE_RP_SIZE);
1454 evt_num_comp_pkts *params = (void *) ((uint8_t *) buf + 1);
1456 params->num_hndl = 1;
1457 params->connection->handle = HNDL(handle);
1458 params->connection->num_packets = cpu_to_le16(packets);
1460 bt_hci_event(hci, EVT_NUM_COMP_PKTS, params, EVT_NUM_COMP_PKTS_SIZE(1));