Lines Matching refs:atr_res

154 	struct st21nfca_atr_res *atr_res;  in st21nfca_tm_send_atr_res()  local
167 atr_res = (struct st21nfca_atr_res *)skb->data; in st21nfca_tm_send_atr_res()
168 memset(atr_res, 0, sizeof(struct st21nfca_atr_res)); in st21nfca_tm_send_atr_res()
170 atr_res->length = atr_req->length + 1; in st21nfca_tm_send_atr_res()
171 atr_res->cmd0 = ST21NFCA_NFCIP1_RES; in st21nfca_tm_send_atr_res()
172 atr_res->cmd1 = ST21NFCA_NFCIP1_ATR_RES; in st21nfca_tm_send_atr_res()
174 memcpy(atr_res->nfcid3, atr_req->nfcid3, 6); in st21nfca_tm_send_atr_res()
175 atr_res->bsi = 0x00; in st21nfca_tm_send_atr_res()
176 atr_res->bri = 0x00; in st21nfca_tm_send_atr_res()
177 atr_res->to = ST21NFCA_DEFAULT_TIMEOUT; in st21nfca_tm_send_atr_res()
178 atr_res->ppi = ST21NFCA_LR_BITS_PAYLOAD_SIZE_254B; in st21nfca_tm_send_atr_res()
183 atr_res->ppi |= ST21NFCA_GB_BIT; in st21nfca_tm_send_atr_res()
184 memcpy(atr_res->gbi, atr_req->gbi, gb_len); in st21nfca_tm_send_atr_res()
185 r = nfc_set_remote_general_bytes(hdev->ndev, atr_res->gbi, in st21nfca_tm_send_atr_res()
479 struct st21nfca_atr_res *atr_res; in st21nfca_im_recv_atr_res_cb() local
491 atr_res = (struct st21nfca_atr_res *)skb->data; in st21nfca_im_recv_atr_res_cb()
493 atr_res->gbi, in st21nfca_im_recv_atr_res_cb()
498 if (atr_res->to >= 0x0e) in st21nfca_im_recv_atr_res_cb()
501 info->dep_info.to = atr_res->to + 1; in st21nfca_im_recv_atr_res_cb()
511 if (ST21NFCA_PP2LRI(atr_res->ppi) != info->dep_info.lri) in st21nfca_im_recv_atr_res_cb()
512 st21nfca_im_send_psl_req(info->hdev, atr_res->did, in st21nfca_im_recv_atr_res_cb()
513 atr_res->bsi, atr_res->bri, in st21nfca_im_recv_atr_res_cb()
514 ST21NFCA_PP2LRI(atr_res->ppi)); in st21nfca_im_recv_atr_res_cb()