Lines Matching +full:0 +full:x9f

31 #define PN544_WRITE		0x3f
32 #define PN544_TEST_SWP 0x21
37 #define PN544_RF_READER_A_AUTO_ACTIVATION 0x10
38 #define PN544_RF_READER_A_CMD_CONTINUE_ACTIVATION 0x12
39 #define PN544_MIFARE_CMD 0x21
42 #define PN544_RF_READER_CMD_PRESENCE_CHECK 0x30
43 #define PN544_RF_READER_CMD_ACTIVATE_NEXT 0x32
46 #define PN544_ID_MGMT_FULL_VERSION_SW 0x10
48 #define PN544_RF_READER_ISO15693_GATE 0x12
50 #define PN544_RF_READER_F_GATE 0x14
51 #define PN544_FELICA_ID 0x04
52 #define PN544_FELICA_RAW 0x20
54 #define PN544_RF_READER_JEWEL_GATE 0x15
55 #define PN544_JEWEL_RAW_CMD 0x23
57 #define PN544_RF_READER_NFCIP1_INITIATOR_GATE 0x30
58 #define PN544_RF_READER_NFCIP1_TARGET_GATE 0x31
60 #define PN544_SYS_MGMT_GATE 0x90
61 #define PN544_SYS_MGMT_INFO_NOTIFICATION 0x02
63 #define PN544_POLLING_LOOP_MGMT_GATE 0x94
64 #define PN544_DEP_MODE 0x01
65 #define PN544_DEP_ATR_REQ 0x02
66 #define PN544_DEP_ATR_RES 0x03
67 #define PN544_DEP_MERGE 0x0D
68 #define PN544_PL_RDPHASES 0x06
69 #define PN544_PL_EMULATION 0x07
70 #define PN544_PL_NFCT_DEACTIVATED 0x09
72 #define PN544_SWP_MGMT_GATE 0xA0
73 #define PN544_SWP_DEFAULT_MODE 0x01
75 #define PN544_NFC_WI_MGMT_GATE 0xA1
76 #define PN544_NFC_ESE_DEFAULT_MODE 0x01
78 #define PN544_HCI_EVT_SND_DATA 0x01
79 #define PN544_HCI_EVT_ACTIVATED 0x02
80 #define PN544_HCI_EVT_DEACTIVATED 0x03
81 #define PN544_HCI_EVT_RCV_DATA 0x04
82 #define PN544_HCI_EVT_CONTINUE_MI 0x05
83 #define PN544_HCI_EVT_SWITCH_MODE 0x03
85 #define PN544_HCI_CMD_ATTREQUEST 0x12
86 #define PN544_HCI_CMD_CONTINUE_ACTIVATION 0x13
129 int r = 0; in pn544_hci_open()
140 if (r == 0) in pn544_hci_open()
172 {{0x9f, 0x9a}, 0x00}, in pn544_hci_ready()
174 {{0x98, 0x10}, 0xbc}, in pn544_hci_ready()
176 {{0x9e, 0x71}, 0x00}, in pn544_hci_ready()
178 {{0x98, 0x09}, 0x00}, in pn544_hci_ready()
180 {{0x9e, 0xb4}, 0x00}, in pn544_hci_ready()
182 {{0x9c, 0x01}, 0x08}, in pn544_hci_ready()
184 {{0x9e, 0xaa}, 0x01}, in pn544_hci_ready()
186 {{0x9b, 0xd1}, 0x17}, in pn544_hci_ready()
187 {{0x9b, 0xd2}, 0x58}, in pn544_hci_ready()
188 {{0x9b, 0xd3}, 0x10}, in pn544_hci_ready()
189 {{0x9b, 0xd4}, 0x47}, in pn544_hci_ready()
190 {{0x9b, 0xd5}, 0x0c}, in pn544_hci_ready()
191 {{0x9b, 0xd6}, 0x37}, in pn544_hci_ready()
192 {{0x9b, 0xdd}, 0x33}, in pn544_hci_ready()
194 {{0x9b, 0x84}, 0x00}, in pn544_hci_ready()
195 {{0x99, 0x81}, 0x79}, in pn544_hci_ready()
196 {{0x99, 0x31}, 0x79}, in pn544_hci_ready()
198 {{0x98, 0x00}, 0x3f}, in pn544_hci_ready()
200 {{0x9f, 0x09}, 0x02}, in pn544_hci_ready()
202 {{0x9f, 0x0a}, 0x05}, in pn544_hci_ready()
204 {{0x9e, 0xd1}, 0xa1}, in pn544_hci_ready()
205 {{0x99, 0x23}, 0x01}, in pn544_hci_ready()
207 {{0x9e, 0x74}, 0x00}, in pn544_hci_ready()
208 {{0x9e, 0x90}, 0x00}, in pn544_hci_ready()
209 {{0x9f, 0x28}, 0x10}, in pn544_hci_ready()
211 {{0x9f, 0x35}, 0x04}, in pn544_hci_ready()
213 {{0x9f, 0x36}, 0x11}, in pn544_hci_ready()
215 {{0x9c, 0x31}, 0x00}, in pn544_hci_ready()
217 {{0x9c, 0x32}, 0x00}, in pn544_hci_ready()
219 {{0x9c, 0x19}, 0x0a}, in pn544_hci_ready()
221 {{0x9c, 0x1a}, 0x0a}, in pn544_hci_ready()
223 {{0x9c, 0x0c}, 0x00}, in pn544_hci_ready()
225 {{0x9c, 0x0d}, 0x00}, in pn544_hci_ready()
227 {{0x9c, 0x12}, 0x00}, in pn544_hci_ready()
229 {{0x9c, 0x13}, 0x00}, in pn544_hci_ready()
231 {{0x98, 0xa2}, 0x09}, in pn544_hci_ready()
233 {{0x98, 0x93}, 0x00}, in pn544_hci_ready()
235 {{0x98, 0x7d}, 0x08}, in pn544_hci_ready()
236 {{0x98, 0x7e}, 0x00}, in pn544_hci_ready()
237 {{0x9f, 0xc8}, 0x00}, in pn544_hci_ready()
245 param[0] = 0; in pn544_hci_ready()
247 param[1] = p->adr[0]; in pn544_hci_ready()
253 if (r < 0) in pn544_hci_ready()
261 if (res_skb->data[0] != p->value) { in pn544_hci_ready()
271 param[0] = NFC_HCI_UICC_HOST_ID; in pn544_hci_ready()
274 if (r < 0) in pn544_hci_ready()
277 param[0] = 0x3d; in pn544_hci_ready()
280 if (r < 0) in pn544_hci_ready()
283 param[0] = 0x0; in pn544_hci_ready()
286 if (r < 0) in pn544_hci_ready()
290 NFC_HCI_EVT_END_OPERATION, NULL, 0); in pn544_hci_ready()
291 if (r < 0) in pn544_hci_ready()
294 param[0] = 0x1; in pn544_hci_ready()
297 if (r < 0) in pn544_hci_ready()
300 param[0] = 0x0; in pn544_hci_ready()
303 if (r < 0) in pn544_hci_ready()
308 if (r < 0) in pn544_hci_ready()
322 return 0; in pn544_hci_ready()
335 u8 phases = 0; in pn544_hci_start_poll()
339 u8 i_mode = 0x3f; /* Enable all supported modes */ in pn544_hci_start_poll()
340 u8 t_mode = 0x0f; in pn544_hci_start_poll()
341 u8 t_merge = 0x01; /* Enable merge by default */ in pn544_hci_start_poll()
343 pr_info(DRIVER_DESC ": %s protocols 0x%x 0x%x\n", in pn544_hci_start_poll()
347 NFC_HCI_EVT_END_OPERATION, NULL, 0); in pn544_hci_start_poll()
348 if (r < 0) in pn544_hci_start_poll()
351 duration[0] = 0x18; in pn544_hci_start_poll()
352 duration[1] = 0x6a; in pn544_hci_start_poll()
355 if (r < 0) in pn544_hci_start_poll()
358 activated = 0; in pn544_hci_start_poll()
361 if (r < 0) in pn544_hci_start_poll()
376 if (r < 0) in pn544_hci_start_poll()
383 if (hdev->gb == NULL || hdev->gb_len == 0) { in pn544_hci_start_poll()
392 NFC_HCI_EVT_END_OPERATION, NULL, 0); in pn544_hci_start_poll()
393 if (r < 0) in pn544_hci_start_poll()
399 if (r < 0) in pn544_hci_start_poll()
405 if (r < 0) in pn544_hci_start_poll()
410 NFC_HCI_EVT_READER_REQUESTED, NULL, 0); in pn544_hci_start_poll()
411 if (r < 0) in pn544_hci_start_poll()
414 NFC_HCI_EVT_END_OPERATION, NULL, 0); in pn544_hci_start_poll()
420 if (r < 0) in pn544_hci_start_poll()
425 if (r < 0) in pn544_hci_start_poll()
430 if (r < 0) in pn544_hci_start_poll()
435 NFC_HCI_EVT_READER_REQUESTED, NULL, 0); in pn544_hci_start_poll()
436 if (r < 0) in pn544_hci_start_poll()
438 NFC_HCI_EVT_END_OPERATION, NULL, 0); in pn544_hci_start_poll()
452 if (r < 0) in pn544_hci_dep_link_up()
455 if (rgb_skb->len == 0 || rgb_skb->len > NFC_GB_MAXSIZE) { in pn544_hci_dep_link_up()
465 if (r == 0) in pn544_hci_dep_link_up()
477 NFC_HCI_EVT_END_OPERATION, NULL, 0); in pn544_hci_dep_link_down()
489 target->sens_res = 0x0c00; in pn544_hci_target_from_gate()
498 return 0; in pn544_hci_target_from_gate()
506 int r = 0; in pn544_hci_complete_target_discovered()
514 PN544_HCI_CMD_CONTINUE_ACTIVATION, NULL, 0, NULL); in pn544_hci_complete_target_discovered()
515 if (r < 0) in pn544_hci_complete_target_discovered()
530 if (r < 0) in pn544_hci_complete_target_discovered()
538 /* Type F NFC-DEP IDm has prefix 0x01FE */ in pn544_hci_complete_target_discovered()
539 if ((uid_skb->data[0] == 0x01) && (uid_skb->data[1] == 0xfe)) { in pn544_hci_complete_target_discovered()
544 NULL, 0, NULL); in pn544_hci_complete_target_discovered()
545 if (r < 0) in pn544_hci_complete_target_discovered()
562 if (target->sens_res == 0x4403) /* Type 4 Mifare DESFire */ in pn544_hci_complete_target_discovered()
565 NULL, 0, NULL); in pn544_hci_complete_target_discovered()
580 if (err == 0) in pn544_hci_data_exchange_cb()
585 if (err == 0) in pn544_hci_data_exchange_cb()
591 #define MIFARE_CMD_AUTH_KEY_A 0x60
592 #define MIFARE_CMD_AUTH_KEY_B 0x61
599 * <= 0: driver handled the data exchange
620 (skb->data[0] == MIFARE_CMD_AUTH_KEY_A || in pn544_hci_im_transceive()
621 skb->data[0] == MIFARE_CMD_AUTH_KEY_B)) { in pn544_hci_im_transceive()
640 *(u8 *)skb_push(skb, 1) = 0; in pn544_hci_im_transceive()
641 *(u8 *)skb_push(skb, 1) = 0; in pn544_hci_im_transceive()
656 *(u8 *)skb_push(skb, 1) = 0; in pn544_hci_im_transceive()
671 *(u8 *)skb_push(skb, 1) = 0; in pn544_hci_tm_send()
689 NULL, 0, NULL); in pn544_hci_check_presence()
704 NULL, 0, NULL); in pn544_hci_check_presence()
707 return 0; in pn544_hci_check_presence()
712 * <= 0: driver handled the event, skb consumed
730 if (r < 0) in pn544_hci_event_received()
744 NULL, 0); in pn544_hci_event_received()
752 if (skb->data[0] != 0) { in pn544_hci_event_received()
753 pr_debug("data0 %d\n", skb->data[0]); in pn544_hci_event_received()
783 u32 se_idx = 0; in pn544_hci_discover_se()
784 u8 ese_mode = 0x01; /* Default mode */ in pn544_hci_discover_se()
789 NULL, 0, &res_skb); in pn544_hci_discover_se()
791 if (r == 0) { in pn544_hci_discover_se()
792 if (res_skb->len == 2 && res_skb->data[0] == 0x00) in pn544_hci_discover_se()
801 if (r == 0) in pn544_hci_discover_se()
807 #define PN544_SE_MODE_OFF 0x00
808 #define PN544_SE_MODE_ON 0x01
818 {0x00, {0x9e, 0xd9}, 0x23}, in pn544_hci_enable_se()
819 {0x00, {0x9e, 0xda}, 0x21}, in pn544_hci_enable_se()
820 {0x00, {0x9e, 0xdb}, 0x22}, in pn544_hci_enable_se()
821 {0x00, {0x9e, 0xdc}, 0x24}, in pn544_hci_enable_se()
835 if (r < 0) in pn544_hci_enable_se()
843 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()