Home | History | Annotate | Download | only in parser

Lines Matching refs:cp

691 	inquiry_cp *cp = frm->ptr;
695 cp->lap[2], cp->lap[1], cp->lap[0], cp->length, cp->num_rsp);
700 periodic_inquiry_cp *cp = frm->ptr;
704 btohs(cp->max_period), btohs(cp->min_period),
705 cp->lap[2], cp->lap[1], cp->lap[0], cp->length, cp->num_rsp);
710 create_conn_cp *cp = frm->ptr;
711 uint16_t ptype = btohs(cp->pkt_type);
712 uint16_t clkoffset = btohs(cp->clock_offset);
716 p_ba2str(&cp->bdaddr, addr);
718 addr, ptype, cp->role_switch,
731 disconnect_cp *cp = frm->ptr;
734 printf("handle %d reason 0x%2.2x\n", btohs(cp->handle), cp->reason);
737 printf("Reason: %s\n", status2str(cp->reason));
742 add_sco_cp *cp = frm->ptr;
743 uint16_t ptype = btohs(cp->pkt_type);
747 printf("handle %d ptype 0x%4.4x\n", btohs(cp->handle), ptype);
759 accept_conn_req_cp *cp = frm->ptr;
763 p_ba2str(&cp->bdaddr, addr);
764 printf("bdaddr %s role 0x%2.2x\n", addr, cp->role);
767 printf("Role: %s\n", role2str(cp->role));
772 reject_conn_req_cp *cp = frm->ptr;
776 p_ba2str(&cp->bdaddr, addr);
777 printf("bdaddr %s reason 0x%2.2x\n", addr, cp->reason);
780 printf("Reason: %s\n", status2str(cp->reason));
785 pin_code_reply_cp *cp = frm->ptr;
789 p_ba2str(&cp->bdaddr, addr);
792 memset(pin, '*', cp->pin_len);
794 memcpy(pin, cp->pin_code, cp->pin_len);
795 printf("bdaddr %s len %d pin \'%s\'\n", addr, cp->pin_len, pin);
800 link_key_reply_cp *cp = frm->ptr;
805 p_ba2str(&cp->bdaddr, addr);
811 printf("%2.2X", cp->link_key[i]);
827 user_passkey_reply_cp *cp = frm->ptr;
831 p_ba2str(&cp->bdaddr, addr);
832 printf("bdaddr %s passkey %d\n", addr, btohl(cp->passkey));
837 remote_oob_data_reply_cp *cp = frm->ptr;
842 p_ba2str(&cp->bdaddr, addr);
848 printf("%02x", cp->hash[i]);
854 printf("%02x", cp->randomizer[i]);
860 io_capability_reply_cp *cp = frm->ptr;
864 p_ba2str(&cp->bdaddr, addr);
866 addr, cp->capability, cp->oob_data,
867 cp->authentication);
871 capability2str(cp->capability),
872 cp->oob_data == 0x00 ? "not present" : "available");
875 printf("Authentication: %s\n", authentication2str(cp->authentication));
880 set_conn_encrypt_cp *cp = frm->ptr;
883 printf("handle %d encrypt 0x%2.2x\n", btohs(cp->handle), cp->encrypt);
888 remote_name_req_cp *cp = frm->ptr;
889 uint16_t clkoffset = btohs(cp->clock_offset);
893 p_ba2str(&cp->bdaddr, addr);
895 addr, cp->pscan_rep_mode,
901 master_link_key_cp *cp = frm->ptr;
904 printf("flag %d\n", cp->key_flag);
909 read_remote_ext_features_cp *cp = frm->ptr;
912 printf("handle %d page %d\n", btohs(cp->handle), cp->page_num);
917 setup_sync_conn_cp *cp = frm->ptr;
921 btohs(cp->handle), btohs(cp->voice_setting),
922 btohs(cp->pkt_type));
927 accept_sync_conn_req_cp *cp = frm->ptr;
931 p_ba2str(&cp->bdaddr, addr);
933 addr, btohs(cp->voice_setting), btohs(cp->pkt_type));
938 hold_mode_cp *cp = frm->ptr;
941 printf("handle %d max %d min %d\n", btohs(cp->handle),
942 btohs(cp->max_interval), btohs(cp->min_interval));
947 sniff_mode_cp *cp = frm->ptr;
951 btohs(cp->handle), btohs(cp->max_interval),
952 btohs(cp->min_interval), btohs(cp->attempt), btohs(cp->timeout));
957 qos_setup_cp *cp = frm->ptr;
960 printf("handle %d flags 0x%2.2x\n", btohs(cp->handle), cp->flags);
963 printf("Service type: %d\n", cp->qos.service_type);
965 printf("Token rate: %d\n", btohl(cp->qos.token_rate));
967 printf("Peak bandwith: %d\n", btohl(cp->qos.peak_bandwidth));
969 printf("Latency: %d\n", btohl(cp->qos.latency));
971 printf("Delay variation: %d\n", btohl(cp->qos.delay_variation));
976 write_link_policy_cp *cp = frm->ptr;
977 uint16_t policy = btohs(cp->policy);
981 printf("handle %d policy 0x%2.2x\n", btohs(cp->handle), policy);
1009 sniff_subrating_cp *cp = frm->ptr;
1012 printf("handle %d\n", btohs(cp->handle));
1015 printf("max latency %d\n", btohs(cp->max_latency));
1019 btohs(cp->min_remote_timeout), btohs(cp->min_local_timeout));
1024 set_event_mask_cp *cp = frm->ptr;
1030 printf("%2.2x", cp->mask[i]);
1036 set_event_flt_cp *cp = frm->ptr;
1041 printf("type %d condition %d\n", cp->flt_type,
1042 (cp->flt_type == 0) ? 0 : cp->cond_type);
1044 switch (cp->flt_type) {
1052 switch (cp->cond_type) {
1057 memcpy(dev_class, cp->condition, 3);
1058 memcpy(dev_mask, cp->condition + 3, 3);
1064 p_ba2str((bdaddr_t *) cp->condition, addr);
1075 switch (cp->cond_type) {
1089 write_pin_type_cp *cp = frm->ptr;
1092 printf("type %d\n", cp->pin_type);
1097 read_stored_link_key_cp *cp = frm->ptr;
1101 p_ba2str(&cp->bdaddr, addr);
1102 printf("bdaddr %s all %d\n", addr, cp->read_all);
1132 change_local_name_cp *cp = frm->ptr;
1137 for (i = 0; i < 248 && cp->name[i]; i++)
1138 if (isprint(cp->name[i]))
1139 name[i] = cp->name[i];
1149 write_class_of_dev_cp *cp = frm->ptr;
1153 cp->dev_class[2], cp->dev_class[1], cp->dev_class[0]);
1158 write_voice_setting_cp *cp = frm->ptr;
1161 printf("voice setting 0x%4.4x\n", btohs(cp->voice_setting));
1166 write_current_iac_lap_cp *cp = frm->ptr;
1169 for (i = 0; i < cp->num_current_iac; i++) {
1171 printf("IAC 0x%2.2x%2.2x%2.2x", cp->lap[i][2], cp->lap[i][1], cp->lap[i][0]);
1172 if (cp->lap[i][2] == 0x9e && cp->lap[i][1] == 0x8b) {
1173 switch (cp->lap[i][0]) {
1196 write_page_timeout_cp *cp = frm->ptr;
1199 printf("timeout %d\n", btohs(cp->timeout));
1204 write_page_activity_cp *cp = frm->ptr;
1207 printf("interval %d window %d\n", btohs(cp->interval), btohs(cp->window));
1212 write_inquiry_scan_type_cp *cp = frm->ptr;
1215 printf("type %d\n", cp->type);
1220 write_inquiry_mode_cp *cp = frm->ptr;
1223 printf("mode %d\n", cp->mode);
1228 set_afh_classification_cp *cp = frm->ptr;
1234 printf("%02x", cp->map[i]);
1240 write_link_supervision_timeout_cp *cp = frm->ptr;
1244 btohs(cp->handle), btohs(cp->timeout));
1249 write_ext_inquiry_response_cp *cp = frm->ptr;
1252 printf("fec 0x%2.2x\n", cp->fec);
1262 write_inquiry_transmit_power_level_cp *cp = frm->ptr;
1265 printf("level %d\n", cp->level);
1270 write_default_error_data_reporting_cp *cp = frm->ptr;
1273 printf("reporting %d\n", cp->reporting);
1278 enhanced_flush_cp *cp = frm->ptr;
1281 printf("handle %d type %d\n", btohs(cp->handle), cp->type);
1286 send_keypress_notify_cp *cp = frm->ptr;
1290 p_ba2str(&cp->bdaddr, addr);
1291 printf("bdaddr %s type %d\n", addr, cp->type);
1296 read_transmit_power_level_cp *cp = frm->ptr;
1300 btohs(cp->handle), cp->type,
1301 cp->type ? "maximum" : "current");
1306 read_local_ext_features_cp *cp = frm->ptr;
1309 printf("page %d\n", cp->page_num);
1314 read_clock_cp *cp = frm->ptr;
1318 btohs(cp->handle), cp->which_clock,
1319 cp->which_clock ? "piconet" : "local");
1324 host_buffer_size_cp *cp = frm->ptr;
1328 btohs(cp->acl_mtu), btohs(cp->acl_max_pkt),
1329 cp->sco_mtu, btohs(cp->sco_max_pkt));