Lines Matching refs:atr_res
415 struct digital_atr_res *atr_res; in digital_in_recv_atr_res() local
445 atr_res = (struct digital_atr_res *)resp->data; in digital_in_recv_atr_res()
447 wt = DIGITAL_ATR_RES_TO_WT(atr_res->to); in digital_in_recv_atr_res()
452 payload_bits = DIGITAL_PAYLOAD_PP_TO_BITS(atr_res->pp); in digital_in_recv_atr_res()
460 rc = nfc_set_remote_general_bytes(ddev->nfc_dev, atr_res->gb, gb_len); in digital_in_recv_atr_res()
1502 struct digital_atr_res *atr_res; in digital_tg_send_atr_res() local
1517 atr_res = (struct digital_atr_res *)skb->data; in digital_tg_send_atr_res()
1519 memset(atr_res, 0, sizeof(struct digital_atr_res)); in digital_tg_send_atr_res()
1521 atr_res->dir = DIGITAL_NFC_DEP_FRAME_DIR_IN; in digital_tg_send_atr_res()
1522 atr_res->cmd = DIGITAL_CMD_ATR_RES; in digital_tg_send_atr_res()
1523 memcpy(atr_res->nfcid3, atr_req->nfcid3, sizeof(atr_req->nfcid3)); in digital_tg_send_atr_res()
1524 atr_res->to = DIGITAL_NFC_DEP_TG_MAX_WT; in digital_tg_send_atr_res()
1528 atr_res->pp = DIGITAL_PAYLOAD_BITS_TO_PP(payload_bits); in digital_tg_send_atr_res()
1533 atr_res->pp |= DIGITAL_GB_BIT; in digital_tg_send_atr_res()
1534 memcpy(atr_res->gb, gb, gb_len); in digital_tg_send_atr_res()