Home | History | Annotate | Download | only in tools

Lines Matching refs:cr

515 	struct hci_conn_info_req *cr;
667 cr = malloc(sizeof(*cr) + sizeof(struct hci_conn_info));
668 if (cr) {
669 bacpy(&cr->bdaddr, &(info+i)->bdaddr);
670 cr->type = ACL_LINK;
671 if (ioctl(dd, HCIGETCONNINFO, (unsigned long) cr) < 0) {
675 handle = htobs(cr->conn_info->handle);
678 free(cr);
837 struct hci_conn_info_req *cr;
881 cr = malloc(sizeof(*cr) + sizeof(struct hci_conn_info));
882 if (!cr) {
888 bacpy(&cr->bdaddr, &bdaddr);
889 cr->type = ACL_LINK;
890 if (ioctl(dd, HCIGETCONNINFO, (unsigned long) cr) < 0) {
901 handle = htobs(cr->conn_info->handle);
1265 struct hci_conn_info_req *cr;
1302 cr = malloc(sizeof(*cr) + sizeof(struct hci_conn_info));
1303 if (!cr) {
1308 bacpy(&cr->bdaddr, &bdaddr);
1309 cr->type = ACL_LINK;
1310 if (ioctl(dd, HCIGETCONNINFO, (unsigned long) cr) < 0) {
1315 if (hci_disconnect(dd, htobs(cr->conn_info->handle),
1319 free(cr);
1404 struct hci_conn_info_req *cr;
1440 cr = malloc(sizeof(*cr) + sizeof(struct hci_conn_info));
1441 if (!cr) {
1446 bacpy(&cr->bdaddr, &bdaddr);
1447 cr->type = ACL_LINK;
1448 if (ioctl(dd, HCIGETCONNINFO, (unsigned long) cr) < 0) {
1453 if (hci_read_rssi(dd, htobs(cr->conn_info->handle), &rssi, 1000) < 0) {
1460 free(cr);
1478 struct hci_conn_info_req *cr;
1514 cr = malloc(sizeof(*cr) + sizeof(struct hci_conn_info));
1515 if (!cr) {
1520 bacpy(&cr->bdaddr, &bdaddr);
1521 cr->type = ACL_LINK;
1522 if (ioctl(dd, HCIGETCONNINFO, (unsigned long) cr) < 0) {
1527 if (hci_read_link_quality(dd, htobs(cr->conn_info->handle), &lq, 1000) < 0) {
1534 free(cr);
1552 struct hci_conn_info_req *cr;
1590 cr = malloc(sizeof(*cr) + sizeof(struct hci_conn_info));
1591 if (!cr) {
1596 bacpy(&cr->bdaddr, &bdaddr);
1597 cr->type = ACL_LINK;
1598 if (ioctl(dd, HCIGETCONNINFO, (unsigned long) cr) < 0) {
1603 if (hci_read_transmit_power_level(dd, htobs(cr->conn_info->handle), type, &level, 1000) < 0) {
1611 free(cr);
1629 struct hci_conn_info_req *cr;
1666 cr = malloc(sizeof(*cr
1667 if (!cr) {
1672 bacpy(&cr->bdaddr, &bdaddr);
1673 cr->type = ACL_LINK;
1674 if (ioctl(dd, HCIGETCONNINFO, (unsigned long) cr) < 0) {
1679 handle = htobs(cr->conn_info->handle);
1695 free(cr);
1713 struct hci_conn_info_req *cr;
1753 cr = malloc(sizeof(*cr) + sizeof(struct hci_conn_info));
1754 if (!cr) {
1759 bacpy(&cr->bdaddr, &bdaddr);
1760 cr->type = ACL_LINK;
1761 if (ioctl(dd, HCIGETCONNINFO, (unsigned long) cr) < 0) {
1766 cp.handle = htobs(cr->conn_info->handle);
1783 free(cr);
1801 struct hci_conn_info_req *cr;
1837 cr = malloc(sizeof(*cr) + sizeof(struct hci_conn_info));
1838 if (!cr) {
1843 bacpy(&cr->bdaddr, &bdaddr);
1844 cr->type = ACL_LINK;
1845 if (ioctl(dd, HCIGETCONNINFO, (unsigned long) cr) < 0) {
1852 if (hci_read_link_policy(dd, htobs(cr->conn_info->handle),
1875 if (hci_write_link_policy(dd, htobs(cr->conn_info->handle),
1882 free(cr);
1900 struct hci_conn_info_req *cr;
1936 cr = malloc(sizeof(*cr) + sizeof(struct hci_conn_info));
1937 if (!cr) {
1942 bacpy(&cr->bdaddr, &bdaddr);
1943 cr->type = ACL_LINK;
1944 if (ioctl(dd, HCIGETCONNINFO, (unsigned long) cr) < 0) {
1950 if (hci_read_link_supervision_timeout(dd, htobs(cr->conn_info->handle),
1966 if (hci_write_link_supervision_timeout(dd, htobs(cr->conn_info->handle),
1973 free(cr);
1991 struct hci_conn_info_req *cr;
2026 cr = malloc(sizeof(*cr) + sizeof(struct hci_conn_info));
2027 if (!cr) {
2032 bacpy(&cr->bdaddr, &bdaddr);
2033 cr->type = ACL_LINK;
2034 if (ioctl(dd, HCIGETCONNINFO, (unsigned long) cr) < 0) {
2039 if (hci_authenticate_link(dd, htobs(cr->conn_info->handle), 25000) < 0) {
2044 free(cr);
2062 struct hci_conn_info_req *cr;
2098 cr = malloc(sizeof(*cr) + sizeof(struct hci_conn_info));
2099 if (!cr) {
2104 bacpy(&cr->bdaddr, &bdaddr);
2105 cr->type = ACL_LINK;
2106 if (ioctl(dd, HCIGETCONNINFO, (unsigned long) cr) < 0) {
2113 if (hci_encrypt_link(dd, htobs(cr->conn_info->handle), encrypt, 25000) < 0) {
2118 free(cr);
2136 struct hci_conn_info_req *cr;
2171 cr = malloc(sizeof(*cr) + sizeof(struct hci_conn_info));
2172 if (!cr) {
2177 bacpy(&cr->bdaddr, &bdaddr);
2178 cr->type = ACL_LINK;
2179 if (ioctl(dd, HCIGETCONNINFO, (unsigned long) cr) < 0) {
2184 if (hci_change_link_key(dd, htobs(cr->conn_info->handle), 25000) < 0) {
2189 free(cr);
2207 struct hci_conn_info_req *cr;
2243 cr = malloc(sizeof(*cr) + sizeof(struct hci_conn_info));
2244 if (!cr) {
2249 bacpy(&cr->bdaddr, &bdaddr);
2250 cr->type = ACL_LINK;
2251 if (ioctl(dd, HCIGETCONNINFO, (unsigned long) cr) < 0) {
2256 if (hci_read_clock_offset(dd, htobs(cr->conn_info->handle), &offset, 1000) < 0) {
2263 free(cr);
2281 struct hci_conn_info_req *cr;
2321 cr = malloc(sizeof(*cr) + sizeof(struct hci_conn_info));
2322 if (!cr) {
2327 bacpy(&cr->bdaddr, &bdaddr);
2328 cr->type = ACL_LINK;
2329 if (ioctl(dd, HCIGETCONNINFO, (unsigned long) cr) < 0) {
2331 free(cr);
2335 handle = htobs(cr->conn_info->handle);
2338 free(cr);