Lines Matching refs:atr_req
141 struct st21nfca_atr_req *atr_req)
149 gb_len = atr_req->length - sizeof(struct st21nfca_atr_req);
150 skb = alloc_skb(atr_req->length + 1, GFP_KERNEL);
159 atr_res->length = atr_req->length + 1;
163 memcpy(atr_res->nfcid3, atr_req->nfcid3, 6);
173 memcpy(atr_res->gbi, atr_req->gbi, gb_len);
193 struct st21nfca_atr_req *atr_req;
205 atr_req = (struct st21nfca_atr_req *)skb->data;
207 if (atr_req->length < sizeof(struct st21nfca_atr_req))
210 r = st21nfca_tm_send_atr_res(hdev, atr_req);
217 NFC_COMM_PASSIVE, atr_req->gbi, gb_len);
495 struct st21nfca_atr_req *atr_req;
515 atr_req = (struct st21nfca_atr_req *)skb->data;
516 memset(atr_req, 0, sizeof(struct st21nfca_atr_req));
518 atr_req->cmd0 = ST21NFCA_NFCIP1_REQ;
519 atr_req->cmd1 = ST21NFCA_NFCIP1_ATR_REQ;
520 memset(atr_req->nfcid3, 0, NFC_NFCID3_MAXSIZE);
524 memcpy(atr_req->nfcid3, target->sensf_res,
527 get_random_bytes(atr_req->nfcid3, NFC_NFCID3_MAXSIZE);
529 atr_req->did = 0x0;
531 atr_req->bsi = 0x00;
532 atr_req->bri = 0x00;
533 atr_req->ppi = ST21NFCA_LR_BITS_PAYLOAD_SIZE_254B;
535 atr_req->ppi |= ST21NFCA_GB_BIT;
538 atr_req->length = sizeof(struct st21nfca_atr_req) + hdev->gb_len;
545 info->dep_info.bri = atr_req->bri;
546 info->dep_info.bsi = atr_req->bsi;
547 info->dep_info.lri = ST21NFCA_PP2LRI(atr_req->ppi);