Lines Matching refs:rp
42 ng_hci_read_local_ver_rp rp;
45 n = sizeof(rp);
47 NG_HCI_OCF_READ_LOCAL_VER), (char *) &rp, &n) == ERROR)
50 if (rp.status != 0x00) {
52 hci_status2str(rp.status), rp.status);
56 rp.manufacturer = le16toh(rp.manufacturer);
59 hci_ver2str(rp.hci_version), rp.hci_version);
61 le16toh(rp.hci_revision));
63 hci_lmpver2str(rp.lmp_version), rp.lmp_version);
65 le16toh(rp.lmp_subversion));
67 hci_manufacturer2str(rp.manufacturer), rp.manufacturer);
76 ng_hci_read_local_features_rp rp;
80 n = sizeof(rp);
83 (char *) &rp, &n) == ERROR)
86 if (rp.status != 0x00) {
88 hci_status2str(rp.status), rp.status);
93 for (n = 0; n < sizeof(rp.features); n++)
94 fprintf(stdout, "%#02x ", rp.features[n]);
95 fprintf(stdout, "\n%s\n", hci_features2str(rp.features,
105 ng_hci_read_buffer_size_rp rp;
108 n = sizeof(rp);
111 (char *) &rp, &n) == ERROR)
114 if (rp.status != 0x00) {
116 hci_status2str(rp.status), rp.status);
121 le16toh(rp.max_acl_size));
123 le16toh(rp.num_acl_pkt));
125 rp.max_sco_size);
127 le16toh(rp.num_sco_pkt));
136 ng_hci_read_country_code_rp rp;
139 n = sizeof(rp);
142 (char *) &rp, &n) == ERROR)
145 if (rp.status != 0x00) {
147 hci_status2str(rp.status), rp.status);
152 hci_cc2str(rp.country_code), rp.country_code);
161 ng_hci_read_bdaddr_rp rp;
164 n = sizeof(rp);
166 NG_HCI_OCF_READ_BDADDR), (char *) &rp, &n) == ERROR)
169 if (rp.status != 0x00) {
171 hci_status2str(rp.status), rp.status);
175 fprintf(stdout, "BD_ADDR: %s\n", bt_ntoa(&rp.bdaddr, NULL));