Lines Matching refs:atr_req
476 struct digital_atr_req *atr_req; in digital_in_send_atr_req() local
494 atr_req = (struct digital_atr_req *)skb->data; in digital_in_send_atr_req()
495 memset(atr_req, 0, sizeof(struct digital_atr_req)); in digital_in_send_atr_req()
497 atr_req->dir = DIGITAL_NFC_DEP_FRAME_DIR_OUT; in digital_in_send_atr_req()
498 atr_req->cmd = DIGITAL_CMD_ATR_REQ; in digital_in_send_atr_req()
500 memcpy(atr_req->nfcid3, target->nfcid2, NFC_NFCID2_MAXSIZE); in digital_in_send_atr_req()
502 get_random_bytes(atr_req->nfcid3, NFC_NFCID3_MAXSIZE); in digital_in_send_atr_req()
504 atr_req->did = 0; in digital_in_send_atr_req()
505 atr_req->bs = 0; in digital_in_send_atr_req()
506 atr_req->br = 0; in digital_in_send_atr_req()
510 atr_req->pp = DIGITAL_PAYLOAD_BITS_TO_PP(payload_bits); in digital_in_send_atr_req()
513 atr_req->pp |= DIGITAL_GB_BIT; in digital_in_send_atr_req()
1488 struct digital_atr_req *atr_req) in digital_tg_send_atr_res() argument
1511 memcpy(atr_res->nfcid3, atr_req->nfcid3, sizeof(atr_req->nfcid3)); in digital_tg_send_atr_res()
1543 struct digital_atr_req *atr_req; in digital_tg_recv_atr_req() local
1585 atr_req = (struct digital_atr_req *)resp->data; in digital_tg_recv_atr_req()
1587 if (atr_req->dir != DIGITAL_NFC_DEP_FRAME_DIR_OUT || in digital_tg_recv_atr_req()
1588 atr_req->cmd != DIGITAL_CMD_ATR_REQ || in digital_tg_recv_atr_req()
1589 atr_req->did > DIGITAL_DID_MAX) { in digital_tg_recv_atr_req()
1594 payload_bits = DIGITAL_PAYLOAD_PP_TO_BITS(atr_req->pp); in digital_tg_recv_atr_req()
1602 ddev->did = atr_req->did; in digital_tg_recv_atr_req()
1609 rc = digital_tg_send_atr_res(ddev, atr_req); in digital_tg_recv_atr_req()
1619 NFC_COMM_PASSIVE, atr_req->gb, gb_len); in digital_tg_recv_atr_req()