Lines Matching refs:req
216 struct smp_cmd_pairing *req,
230 req->io_capability = conn->hcon->io_capability;
231 req->oob_flag = SMP_OOB_NOT_PRESENT;
232 req->max_key_size = SMP_MAX_ENC_KEY_SIZE;
233 req->init_key_dist = 0;
234 req->resp_key_dist = dist_keys;
235 req->auth_req = (authreq & AUTH_REQ_MASK);
243 rsp->resp_key_dist = req->resp_key_dist & dist_keys;
571 struct smp_cmd_pairing rsp, *req = (void *) skb->data;
591 memcpy(&smp->preq[1], req, sizeof(*req));
592 skb_pull(skb, sizeof(*req));
595 if (req->auth_req & SMP_AUTH_BONDING)
596 auth = req->auth_req;
600 build_pairing_cmd(conn, req, &rsp, auth);
602 key_size = min(req->max_key_size, rsp.max_key_size);
616 ret = tk_request(conn, 0, auth, rsp.io_capability, req->io_capability);
625 struct smp_cmd_pairing *req, *rsp = (void *) skb->data;
638 req = (void *) &smp->preq[1];
640 key_size = min(req->max_key_size, rsp->max_key_size);
651 if ((req->auth_req & SMP_AUTH_BONDING) &&
655 auth |= (req->auth_req | rsp->auth_req) & SMP_AUTH_MITM;
657 ret = tk_request(conn, 0, auth, req->io_capability, rsp->io_capability);
935 struct smp_cmd_pairing *req, *rsp;
950 req = (void *) &smp->preq[1];
954 *keydist &= req->init_key_dist;
957 *keydist &= req->resp_key_dist;