Lines Matching refs:atr_res
143 struct st21nfca_atr_res *atr_res;
156 atr_res = (struct st21nfca_atr_res *)skb->data;
157 memset(atr_res, 0, sizeof(struct st21nfca_atr_res));
159 atr_res->length = atr_req->length + 1;
160 atr_res->cmd0 = ST21NFCA_NFCIP1_RES;
161 atr_res->cmd1 = ST21NFCA_NFCIP1_ATR_RES;
163 memcpy(atr_res->nfcid3, atr_req->nfcid3, 6);
164 atr_res->bsi = 0x00;
165 atr_res->bri = 0x00;
166 atr_res->to = ST21NFCA_DEFAULT_TIMEOUT;
167 atr_res->ppi = ST21NFCA_LR_BITS_PAYLOAD_SIZE_254B;
172 atr_res->ppi |= ST21NFCA_GB_BIT;
173 memcpy(atr_res->gbi, atr_req->gbi, gb_len);
174 r = nfc_set_remote_general_bytes(hdev->ndev, atr_res->gbi,
471 struct st21nfca_atr_res *atr_res;
483 atr_res = (struct st21nfca_atr_res *)skb->data;
485 atr_res->gbi,
490 if (atr_res->to >= 0x0e)
493 info->dep_info.to = atr_res->to + 1;
503 if (ST21NFCA_PP2LRI(atr_res->ppi) != info->dep_info.lri)
504 st21nfca_im_send_psl_req(info->hdev, atr_res->did,
505 atr_res->bsi, atr_res->bri,
506 ST21NFCA_PP2LRI(atr_res->ppi));