Lines Matching +full:0 +full:x0c00
11 #define DIGITAL_CMD_SENS_REQ 0x26
12 #define DIGITAL_CMD_ALL_REQ 0x52
13 #define DIGITAL_CMD_SEL_REQ_CL1 0x93
14 #define DIGITAL_CMD_SEL_REQ_CL2 0x95
15 #define DIGITAL_CMD_SEL_REQ_CL3 0x97
17 #define DIGITAL_SDD_REQ_SEL_PAR 0x20
19 #define DIGITAL_SDD_RES_CT 0x88
23 #define DIGITAL_SEL_RES_NFCID1_COMPLETE(sel_res) (!((sel_res) & 0x04))
24 #define DIGITAL_SEL_RES_IS_T2T(sel_res) (!((sel_res) & 0x60))
25 #define DIGITAL_SEL_RES_IS_T4T(sel_res) ((sel_res) & 0x20)
26 #define DIGITAL_SEL_RES_IS_NFC_DEP(sel_res) ((sel_res) & 0x40)
28 #define DIGITAL_SENS_RES_IS_T1T(sens_res) (((sens_res) & 0x0C00) == 0x0C00)
30 ((!((sens_res) & 0x001F) && (((sens_res) & 0x0C00) == 0x0C00)) || \
31 (((sens_res) & 0x001F) && ((sens_res) & 0x0C00) != 0x0C00))
34 #define DIGITAL_MIFARE_ACK_RES 0x0A
36 #define DIGITAL_CMD_SENSB_REQ 0x05
40 #define DIGITAL_SENSB_N(n) ((n) & 0x7)
42 #define DIGITAL_CMD_SENSB_RES 0x50
44 #define DIGITAL_CMD_ATTRIB_REQ 0x1D
45 #define DIGITAL_ATTRIB_P1_TR0_DEFAULT (0x0 << 6)
46 #define DIGITAL_ATTRIB_P1_TR1_DEFAULT (0x0 << 4)
49 #define DIGITAL_ATTRIB_P2_LISTEN_POLL_1 (0x0 << 6)
50 #define DIGITAL_ATTRIB_P2_POLL_LISTEN_1 (0x0 << 4)
51 #define DIGITAL_ATTRIB_P2_MAX_FRAME_256 0x8
52 #define DIGITAL_ATTRIB_P4_DID(n) ((n) & 0xf)
54 #define DIGITAL_CMD_SENSF_REQ 0x00
55 #define DIGITAL_CMD_SENSF_RES 0x01
58 #define DIGITAL_SENSF_RES_RD_AP_B1 0x00
59 #define DIGITAL_SENSF_RES_RD_AP_B2 0x8F
61 #define DIGITAL_SENSF_REQ_RC_NONE 0
65 #define DIGITAL_CMD_ISO15693_INVENTORY_REQ 0x01
70 #define DIGITAL_ISO15693_RES_FLAG_ERROR BIT(0)
74 #define DIGITAL_ISO_DEP_I_PCB 0x02
75 #define DIGITAL_ISO_DEP_PNI(pni) ((pni) & 0x01)
77 #define DIGITAL_ISO_DEP_PCB_TYPE(pcb) ((pcb) & 0xC0)
79 #define DIGITAL_ISO_DEP_I_BLOCK 0x00
81 #define DIGITAL_ISO_DEP_BLOCK_HAS_DID(pcb) ((pcb) & 0x08)
87 #define DIGITAL_ATS_FSCI(t0) ((t0) & 0x0F)
88 #define DIGITAL_SENSB_FSCI(pi2) (((pi2) & 0xF0) >> 4)
91 #define DIGITAL_RATS_BYTE1 0xE0
92 #define DIGITAL_RATS_PARAM 0x80
192 return 0; in digital_in_iso_dep_pull_sod()
212 return 0; in digital_in_iso_dep_push_sod()
239 ddev->curr_nfc_dep_pni = 0; in digital_in_recv_ats()
299 sel_res = resp->data[0]; in digital_in_recv_sel_res()
365 sel_req->b2 = 0x70; in digital_in_send_sel_req()
410 for (i = 0, bcc = 0; i < 4; i++) in digital_in_recv_sdd_res()
419 if (sdd_res->nfcid1[0] == DIGITAL_SDD_RES_CT) { in digital_in_recv_sdd_res()
423 offset = 0; in digital_in_recv_sdd_res()
458 if (target->nfcid1_len == 0) in digital_in_send_sdd_req()
562 return 0; in digital_in_recv_mifare_res()
566 if (resp->len == 1 && resp->data[0] == DIGITAL_MIFARE_ACK_RES) { in digital_in_recv_mifare_res()
567 resp->data[0] = 0; in digital_in_recv_mifare_res()
568 return 0; in digital_in_recv_mifare_res()
596 if (attrib_res->mbli_did & 0x0f) { in digital_in_recv_attrib_res()
634 attrib_req->param3 = sensb_res->proto_info[1] & 0x07; in digital_in_send_attrib_req()
635 attrib_req->param4 = DIGITAL_ATTRIB_P4_DID(0); in digital_in_send_attrib_req()
673 if (!(sensb_res->proto_info[1] & BIT(0))) { in digital_in_recv_sensb_res()
731 sensb_req->afi = 0x00; /* All families and sub-families */ in digital_in_send_sensb_req()
732 sensb_req->param = DIGITAL_SENSB_N(0); in digital_in_send_sensb_req()
771 memset(&target, 0, sizeof(struct nfc_target)); in digital_in_recv_sensf_res()
781 if (target.nfcid2[0] == DIGITAL_SENSF_NFCID2_NFC_DEP_B1 && in digital_in_recv_sensf_res()
822 sensf_req->sc1 = 0xFF; in digital_in_send_sensf_req()
823 sensf_req->sc2 = 0xFF; in digital_in_send_sensf_req()
824 sensf_req->rc = 0; in digital_in_send_sensf_req()
825 sensf_req->tsn = 0; in digital_in_send_sensf_req()
917 req->mask_len = 0; in digital_in_send_iso15693_inv_req()
999 sdd_res->nfcid1[0] = 0x08; in digital_tg_send_sdd_res()
1002 sdd_res->bcc = 0; in digital_tg_send_sdd_res()
1003 for (i = 0; i < 4; i++) in digital_tg_send_sdd_res()
1035 if (resp->len < 2 || sdd_req[0] != DIGITAL_CMD_SEL_REQ_CL1 || in digital_tg_recv_sdd_req()
1062 sens_res[0] = (DIGITAL_SENS_RES_NFC_DEP >> 8) & 0xFF; in digital_tg_send_sens_res()
1063 sens_res[1] = DIGITAL_SENS_RES_NFC_DEP & 0xFF; in digital_tg_send_sens_res()
1092 sens_req = resp->data[0]; in digital_tg_recv_sens_req()
1142 memset(sensf_res, 0, size); in digital_tg_send_sensf_res()
1145 sensf_res->nfcid2[0] = DIGITAL_SENSF_NFCID2_NFC_DEP_B1; in digital_tg_send_sensf_res()
1151 sensf_res->rd[0] = sensf_req->sc1; in digital_tg_send_sensf_res()
1155 sensf_res->rd[0] = DIGITAL_SENSF_RES_RD_AP_B1; in digital_tg_send_sensf_res()