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