Lines Matching refs:atr_res
403 struct digital_atr_res *atr_res; in digital_in_recv_atr_res() local
433 atr_res = (struct digital_atr_res *)resp->data; in digital_in_recv_atr_res()
435 wt = DIGITAL_ATR_RES_TO_WT(atr_res->to); in digital_in_recv_atr_res()
440 payload_bits = DIGITAL_PAYLOAD_PP_TO_BITS(atr_res->pp); in digital_in_recv_atr_res()
448 rc = nfc_set_remote_general_bytes(ddev->nfc_dev, atr_res->gb, gb_len); in digital_in_recv_atr_res()
1492 struct digital_atr_res *atr_res; in digital_tg_send_atr_res() local
1507 atr_res = (struct digital_atr_res *)skb->data; in digital_tg_send_atr_res()
1509 memset(atr_res, 0, sizeof(struct digital_atr_res)); in digital_tg_send_atr_res()
1511 atr_res->dir = DIGITAL_NFC_DEP_FRAME_DIR_IN; in digital_tg_send_atr_res()
1512 atr_res->cmd = DIGITAL_CMD_ATR_RES; in digital_tg_send_atr_res()
1513 memcpy(atr_res->nfcid3, atr_req->nfcid3, sizeof(atr_req->nfcid3)); in digital_tg_send_atr_res()
1514 atr_res->to = DIGITAL_NFC_DEP_TG_MAX_WT; in digital_tg_send_atr_res()
1518 atr_res->pp = DIGITAL_PAYLOAD_BITS_TO_PP(payload_bits); in digital_tg_send_atr_res()
1523 atr_res->pp |= DIGITAL_GB_BIT; in digital_tg_send_atr_res()
1524 memcpy(atr_res->gb, gb, gb_len); in digital_tg_send_atr_res()