Lines Matching +full:0 +full:x98

32 #define PN544_WRITE		0x3f
33 #define PN544_TEST_SWP 0x21
38 #define PN544_RF_READER_A_AUTO_ACTIVATION 0x10
39 #define PN544_RF_READER_A_CMD_CONTINUE_ACTIVATION 0x12
40 #define PN544_MIFARE_CMD 0x21
43 #define PN544_RF_READER_CMD_PRESENCE_CHECK 0x30
44 #define PN544_RF_READER_CMD_ACTIVATE_NEXT 0x32
47 #define PN544_ID_MGMT_FULL_VERSION_SW 0x10
49 #define PN544_RF_READER_ISO15693_GATE 0x12
51 #define PN544_RF_READER_F_GATE 0x14
52 #define PN544_FELICA_ID 0x04
53 #define PN544_FELICA_RAW 0x20
55 #define PN544_RF_READER_JEWEL_GATE 0x15
56 #define PN544_JEWEL_RAW_CMD 0x23
58 #define PN544_RF_READER_NFCIP1_INITIATOR_GATE 0x30
59 #define PN544_RF_READER_NFCIP1_TARGET_GATE 0x31
61 #define PN544_SYS_MGMT_GATE 0x90
62 #define PN544_SYS_MGMT_INFO_NOTIFICATION 0x02
64 #define PN544_POLLING_LOOP_MGMT_GATE 0x94
65 #define PN544_DEP_MODE 0x01
66 #define PN544_DEP_ATR_REQ 0x02
67 #define PN544_DEP_ATR_RES 0x03
68 #define PN544_DEP_MERGE 0x0D
69 #define PN544_PL_RDPHASES 0x06
70 #define PN544_PL_EMULATION 0x07
71 #define PN544_PL_NFCT_DEACTIVATED 0x09
73 #define PN544_SWP_MGMT_GATE 0xA0
74 #define PN544_SWP_DEFAULT_MODE 0x01
76 #define PN544_NFC_WI_MGMT_GATE 0xA1
77 #define PN544_NFC_ESE_DEFAULT_MODE 0x01
79 #define PN544_HCI_EVT_SND_DATA 0x01
80 #define PN544_HCI_EVT_ACTIVATED 0x02
81 #define PN544_HCI_EVT_DEACTIVATED 0x03
82 #define PN544_HCI_EVT_RCV_DATA 0x04
83 #define PN544_HCI_EVT_CONTINUE_MI 0x05
84 #define PN544_HCI_EVT_SWITCH_MODE 0x03
86 #define PN544_HCI_CMD_ATTREQUEST 0x12
87 #define PN544_HCI_CMD_CONTINUE_ACTIVATION 0x13
130 int r = 0; in pn544_hci_open()
141 if (r == 0) in pn544_hci_open()
173 {{0x9f, 0x9a}, 0x00}, in pn544_hci_ready()
175 {{0x98, 0x10}, 0xbc}, in pn544_hci_ready()
177 {{0x9e, 0x71}, 0x00}, in pn544_hci_ready()
179 {{0x98, 0x09}, 0x00}, in pn544_hci_ready()
181 {{0x9e, 0xb4}, 0x00}, in pn544_hci_ready()
183 {{0x9c, 0x01}, 0x08}, in pn544_hci_ready()
185 {{0x9e, 0xaa}, 0x01}, in pn544_hci_ready()
187 {{0x9b, 0xd1}, 0x17}, in pn544_hci_ready()
188 {{0x9b, 0xd2}, 0x58}, in pn544_hci_ready()
189 {{0x9b, 0xd3}, 0x10}, in pn544_hci_ready()
190 {{0x9b, 0xd4}, 0x47}, in pn544_hci_ready()
191 {{0x9b, 0xd5}, 0x0c}, in pn544_hci_ready()
192 {{0x9b, 0xd6}, 0x37}, in pn544_hci_ready()
193 {{0x9b, 0xdd}, 0x33}, in pn544_hci_ready()
195 {{0x9b, 0x84}, 0x00}, in pn544_hci_ready()
196 {{0x99, 0x81}, 0x79}, in pn544_hci_ready()
197 {{0x99, 0x31}, 0x79}, in pn544_hci_ready()
199 {{0x98, 0x00}, 0x3f}, in pn544_hci_ready()
201 {{0x9f, 0x09}, 0x02}, in pn544_hci_ready()
203 {{0x9f, 0x0a}, 0x05}, in pn544_hci_ready()
205 {{0x9e, 0xd1}, 0xa1}, in pn544_hci_ready()
206 {{0x99, 0x23}, 0x01}, in pn544_hci_ready()
208 {{0x9e, 0x74}, 0x00}, in pn544_hci_ready()
209 {{0x9e, 0x90}, 0x00}, in pn544_hci_ready()
210 {{0x9f, 0x28}, 0x10}, in pn544_hci_ready()
212 {{0x9f, 0x35}, 0x04}, in pn544_hci_ready()
214 {{0x9f, 0x36}, 0x11}, in pn544_hci_ready()
216 {{0x9c, 0x31}, 0x00}, in pn544_hci_ready()
218 {{0x9c, 0x32}, 0x00}, in pn544_hci_ready()
220 {{0x9c, 0x19}, 0x0a}, in pn544_hci_ready()
222 {{0x9c, 0x1a}, 0x0a}, in pn544_hci_ready()
224 {{0x9c, 0x0c}, 0x00}, in pn544_hci_ready()
226 {{0x9c, 0x0d}, 0x00}, in pn544_hci_ready()
228 {{0x9c, 0x12}, 0x00}, in pn544_hci_ready()
230 {{0x9c, 0x13}, 0x00}, in pn544_hci_ready()
232 {{0x98, 0xa2}, 0x09}, in pn544_hci_ready()
234 {{0x98, 0x93}, 0x00}, in pn544_hci_ready()
236 {{0x98, 0x7d}, 0x08}, in pn544_hci_ready()
237 {{0x98, 0x7e}, 0x00}, in pn544_hci_ready()
238 {{0x9f, 0xc8}, 0x00}, in pn544_hci_ready()
246 param[0] = 0; in pn544_hci_ready()
248 param[1] = p->adr[0]; in pn544_hci_ready()
254 if (r < 0) in pn544_hci_ready()
262 if (res_skb->data[0] != p->value) { in pn544_hci_ready()
272 param[0] = NFC_HCI_UICC_HOST_ID; in pn544_hci_ready()
275 if (r < 0) in pn544_hci_ready()
278 param[0] = 0x3d; in pn544_hci_ready()
281 if (r < 0) in pn544_hci_ready()
284 param[0] = 0x0; in pn544_hci_ready()
287 if (r < 0) in pn544_hci_ready()
291 NFC_HCI_EVT_END_OPERATION, NULL, 0); in pn544_hci_ready()
292 if (r < 0) in pn544_hci_ready()
295 param[0] = 0x1; in pn544_hci_ready()
298 if (r < 0) in pn544_hci_ready()
301 param[0] = 0x0; in pn544_hci_ready()
304 if (r < 0) in pn544_hci_ready()
309 if (r < 0) in pn544_hci_ready()
323 return 0; in pn544_hci_ready()
336 u8 phases = 0; in pn544_hci_start_poll()
340 u8 i_mode = 0x3f; /* Enable all supported modes */ in pn544_hci_start_poll()
341 u8 t_mode = 0x0f; in pn544_hci_start_poll()
342 u8 t_merge = 0x01; /* Enable merge by default */ in pn544_hci_start_poll()
344 pr_info(DRIVER_DESC ": %s protocols 0x%x 0x%x\n", in pn544_hci_start_poll()
348 NFC_HCI_EVT_END_OPERATION, NULL, 0); in pn544_hci_start_poll()
349 if (r < 0) in pn544_hci_start_poll()
352 duration[0] = 0x18; in pn544_hci_start_poll()
353 duration[1] = 0x6a; in pn544_hci_start_poll()
356 if (r < 0) in pn544_hci_start_poll()
359 activated = 0; in pn544_hci_start_poll()
362 if (r < 0) in pn544_hci_start_poll()
377 if (r < 0) in pn544_hci_start_poll()
384 if (hdev->gb == NULL || hdev->gb_len == 0) { in pn544_hci_start_poll()
393 NFC_HCI_EVT_END_OPERATION, NULL, 0); in pn544_hci_start_poll()
394 if (r < 0) in pn544_hci_start_poll()
400 if (r < 0) in pn544_hci_start_poll()
406 if (r < 0) in pn544_hci_start_poll()
411 NFC_HCI_EVT_READER_REQUESTED, NULL, 0); in pn544_hci_start_poll()
412 if (r < 0) in pn544_hci_start_poll()
415 NFC_HCI_EVT_END_OPERATION, NULL, 0); in pn544_hci_start_poll()
421 if (r < 0) in pn544_hci_start_poll()
426 if (r < 0) in pn544_hci_start_poll()
431 if (r < 0) in pn544_hci_start_poll()
436 NFC_HCI_EVT_READER_REQUESTED, NULL, 0); in pn544_hci_start_poll()
437 if (r < 0) in pn544_hci_start_poll()
439 NFC_HCI_EVT_END_OPERATION, NULL, 0); in pn544_hci_start_poll()
453 if (r < 0) in pn544_hci_dep_link_up()
456 if (rgb_skb->len == 0 || rgb_skb->len > NFC_GB_MAXSIZE) { in pn544_hci_dep_link_up()
466 if (r == 0) in pn544_hci_dep_link_up()
478 NFC_HCI_EVT_END_OPERATION, NULL, 0); in pn544_hci_dep_link_down()
490 target->sens_res = 0x0c00; in pn544_hci_target_from_gate()
499 return 0; in pn544_hci_target_from_gate()
507 int r = 0; in pn544_hci_complete_target_discovered()
515 PN544_HCI_CMD_CONTINUE_ACTIVATION, NULL, 0, NULL); in pn544_hci_complete_target_discovered()
516 if (r < 0) in pn544_hci_complete_target_discovered()
531 if (r < 0) in pn544_hci_complete_target_discovered()
539 /* Type F NFC-DEP IDm has prefix 0x01FE */ in pn544_hci_complete_target_discovered()
540 if ((uid_skb->data[0] == 0x01) && (uid_skb->data[1] == 0xfe)) { in pn544_hci_complete_target_discovered()
545 NULL, 0, NULL); in pn544_hci_complete_target_discovered()
546 if (r < 0) in pn544_hci_complete_target_discovered()
563 if (target->sens_res == 0x4403) /* Type 4 Mifare DESFire */ in pn544_hci_complete_target_discovered()
566 NULL, 0, NULL); in pn544_hci_complete_target_discovered()
581 if (err == 0) in pn544_hci_data_exchange_cb()
586 if (err == 0) in pn544_hci_data_exchange_cb()
592 #define MIFARE_CMD_AUTH_KEY_A 0x60
593 #define MIFARE_CMD_AUTH_KEY_B 0x61
600 * <= 0: driver handled the data exchange
621 (skb->data[0] == MIFARE_CMD_AUTH_KEY_A || in pn544_hci_im_transceive()
622 skb->data[0] == MIFARE_CMD_AUTH_KEY_B)) { in pn544_hci_im_transceive()
641 *(u8 *)skb_push(skb, 1) = 0; in pn544_hci_im_transceive()
642 *(u8 *)skb_push(skb, 1) = 0; in pn544_hci_im_transceive()
657 *(u8 *)skb_push(skb, 1) = 0; in pn544_hci_im_transceive()
672 *(u8 *)skb_push(skb, 1) = 0; in pn544_hci_tm_send()
690 NULL, 0, NULL); in pn544_hci_check_presence()
705 NULL, 0, NULL); in pn544_hci_check_presence()
708 return 0; in pn544_hci_check_presence()
713 * <= 0: driver handled the event, skb consumed
731 if (r < 0) in pn544_hci_event_received()
745 NULL, 0); in pn544_hci_event_received()
753 if (skb->data[0] != 0) { in pn544_hci_event_received()
754 pr_debug("data0 %d\n", skb->data[0]); in pn544_hci_event_received()
784 u32 se_idx = 0; in pn544_hci_discover_se()
785 u8 ese_mode = 0x01; /* Default mode */ in pn544_hci_discover_se()
790 NULL, 0, &res_skb); in pn544_hci_discover_se()
792 if (r == 0) { in pn544_hci_discover_se()
793 if (res_skb->len == 2 && res_skb->data[0] == 0x00) in pn544_hci_discover_se()
802 if (r == 0) in pn544_hci_discover_se()
808 #define PN544_SE_MODE_OFF 0x00
809 #define PN544_SE_MODE_ON 0x01
819 {0x00, {0x9e, 0xd9}, 0x23}, in pn544_hci_enable_se()
820 {0x00, {0x9e, 0xda}, 0x21}, in pn544_hci_enable_se()
821 {0x00, {0x9e, 0xdb}, 0x22}, in pn544_hci_enable_se()
822 {0x00, {0x9e, 0xdc}, 0x24}, in pn544_hci_enable_se()
836 if (r < 0) in pn544_hci_enable_se()
844 if (res_skb->data[0] != p->value) { in pn544_hci_enable_se()
942 info->hdev = nfc_hci_allocate_device(&pn544_hci_ops, &init_data, 0, in pn544_hci_probe()
960 return 0; in pn544_hci_probe()