Lines Matching defs:rq
200 struct hci_request rq;
223 memset(&rq, 0, sizeof(rq));
224 rq.ogf = OGF_LE_CTL;
225 rq.ocf = OCF_LE_SET_RANDOM_ADDRESS;
226 rq.cparam = &cp;
227 rq.clen = LE_SET_RANDOM_ADDRESS_CP_SIZE;
228 rq.rparam = &status;
229 rq.rlen = 1;
231 ret = hci_send_req(dd, &rq, 1000);
243 struct hci_request rq;
263 memset(&rq, 0, sizeof(rq));
264 rq.ogf = OGF_LE_CTL;
265 rq.ocf = OCF_LE_SET_ADVERTISE_ENABLE;
266 rq.cparam = &advertise_cp;
267 rq.clen = LE_SET_ADVERTISE_ENABLE_CP_SIZE;
268 rq.rparam = &status;
269 rq.rlen = 1;
271 ret = hci_send_req(dd, &rq, 1000);
291 struct hci_request rq;
305 memset(&rq, 0, sizeof(rq));
307 rq.ogf = OGF_LE_CTL;
308 rq.ocf = OCF_LE_READ_SUPPORTED_STATES;
309 rq.rparam = &rp;
310 rq.rlen = LE_READ_SUPPORTED_STATES_RP_SIZE;
312 err = hci_send_req(dd, &rq, 1000);
1387 struct hci_request rq;
1396 memset(&rq, 0, sizeof(rq));
1407 rq.ogf = OGF_HOST_CTL;
1408 rq.ocf = OCF_WRITE_INQ_ACTIVITY;
1409 rq.cparam = &cp;
1410 rq.clen = WRITE_INQ_ACTIVITY_CP_SIZE;
1421 if (hci_send_req(s, &rq, 2000) < 0) {
1430 rq.ogf = OGF_HOST_CTL;
1431 rq
1432 rq.rparam = &rp;
1433 rq.rlen = READ_INQ_ACTIVITY_RP_SIZE;
1435 if (hci_send_req(s, &rq, 1000) < 0) {
1456 struct hci_request rq;
1465 memset(&rq, 0, sizeof(rq));
1476 rq.ogf = OGF_HOST_CTL;
1477 rq.ocf = OCF_WRITE_PAGE_ACTIVITY;
1478 rq.cparam = &cp;
1479 rq.clen = WRITE_PAGE_ACTIVITY_CP_SIZE;
1490 if (hci_send_req(s, &rq, 2000) < 0) {
1499 rq.ogf = OGF_HOST_CTL;
1500 rq.ocf = OCF_READ_PAGE_ACTIVITY;
1501 rq.rparam = &rp;
1502 rq.rlen = READ_PAGE_ACTIVITY_RP_SIZE;
1504 if (hci_send_req(s, &rq, 1000) < 0) {
1527 struct hci_request rq;
1536 memset(&rq, 0, sizeof(rq));
1547 rq.ogf = OGF_HOST_CTL;
1548 rq.ocf = OCF_WRITE_PAGE_TIMEOUT;
1549 rq.cparam = &cp;
1550 rq.clen = WRITE_PAGE_TIMEOUT_CP_SIZE;
1557 if (hci_send_req(s, &rq, 2000) < 0) {
1566 rq.ogf = OGF_HOST_CTL;
1567 rq.ocf = OCF_READ_PAGE_TIMEOUT;
1568 rq.rparam = &rp;
1569 rq.rlen = READ_PAGE_TIMEOUT_RP_SIZE;
1571 if (hci_send_req(s, &rq, 1000) < 0) {
1658 struct hci_request rq;
1661 memset(&rq, 0, sizeof(rq));
1662 rq.ogf = OGF_VENDOR_CMD;
1663 rq.ocf = 0x000f;
1664 rq.cparam = NULL;
1665 rq.clen = 0;
1666 rq.rparam = &buf;
1667 rq.rlen = sizeof(buf);
1669 if (hci_send_req(dd, &rq, 1000) < 0) {
1704 struct hci_request rq;
1708 memset(&rq, 0, sizeof(rq));
1709 rq.ogf = OGF_VENDOR_CMD;
1710 rq.ocf = 0x000e;
1711 rq.cparam = req;
1712 rq.clen = sizeof(req);
1713 rq.rparam = &buf;
1714 rq.rlen = sizeof(buf);
1716 if (hci_send_req(dd, &rq, 1000) < 0) {