• Home
  • Raw
  • Download

Lines Matching refs:target

444 				struct nfc_target *target, u8 comm_mode,  in pn544_hci_dep_link_up()  argument
450 r = nfc_hci_get_param(hdev, target->hci_reader_gate, in pn544_hci_dep_link_up()
466 r = nfc_dep_link_is_up(hdev->ndev, target->idx, comm_mode, in pn544_hci_dep_link_up()
481 struct nfc_target *target) in pn544_hci_target_from_gate() argument
485 target->supported_protocols = NFC_PROTO_FELICA_MASK; in pn544_hci_target_from_gate()
488 target->supported_protocols = NFC_PROTO_JEWEL_MASK; in pn544_hci_target_from_gate()
489 target->sens_res = 0x0c00; in pn544_hci_target_from_gate()
492 target->supported_protocols = NFC_PROTO_NFC_DEP_MASK; in pn544_hci_target_from_gate()
503 struct nfc_target *target) in pn544_hci_complete_target_discovered() argument
511 if (target->supported_protocols & NFC_PROTO_NFC_DEP_MASK) { in pn544_hci_complete_target_discovered()
518 target->hci_reader_gate = PN544_RF_READER_NFCIP1_INITIATOR_GATE; in pn544_hci_complete_target_discovered()
519 } else if (target->supported_protocols & NFC_PROTO_MIFARE_MASK) { in pn544_hci_complete_target_discovered()
520 if (target->nfcid1_len != 4 && target->nfcid1_len != 7 && in pn544_hci_complete_target_discovered()
521 target->nfcid1_len != 10) in pn544_hci_complete_target_discovered()
526 target->nfcid1, target->nfcid1_len, NULL); in pn544_hci_complete_target_discovered()
527 } else if (target->supported_protocols & NFC_PROTO_FELICA_MASK) { in pn544_hci_complete_target_discovered()
548 target->supported_protocols = NFC_PROTO_NFC_DEP_MASK; in pn544_hci_complete_target_discovered()
549 target->hci_reader_gate = in pn544_hci_complete_target_discovered()
557 } else if (target->supported_protocols & NFC_PROTO_ISO14443_MASK) { in pn544_hci_complete_target_discovered()
562 if (target->sens_res == 0x4403) /* Type 4 Mifare DESFire */ in pn544_hci_complete_target_discovered()
603 struct nfc_target *target, in pn544_hci_im_transceive() argument
610 target->hci_reader_gate); in pn544_hci_im_transceive()
612 switch (target->hci_reader_gate) { in pn544_hci_im_transceive()
614 if (target->supported_protocols & NFC_PROTO_MIFARE_MASK) { in pn544_hci_im_transceive()
633 target->hci_reader_gate, in pn544_hci_im_transceive()
647 return nfc_hci_send_cmd_async(hdev, target->hci_reader_gate, in pn544_hci_im_transceive()
652 return nfc_hci_send_cmd_async(hdev, target->hci_reader_gate, in pn544_hci_im_transceive()
658 return nfc_hci_send_event(hdev, target->hci_reader_gate, in pn544_hci_im_transceive()
682 struct nfc_target *target) in pn544_hci_check_presence() argument
684 pr_debug("supported protocol %d\n", target->supported_protocols); in pn544_hci_check_presence()
685 if (target->supported_protocols & (NFC_PROTO_ISO14443_MASK | in pn544_hci_check_presence()
687 return nfc_hci_send_cmd(hdev, target->hci_reader_gate, in pn544_hci_check_presence()
690 } else if (target->supported_protocols & NFC_PROTO_MIFARE_MASK) { in pn544_hci_check_presence()
691 if (target->nfcid1_len != 4 && target->nfcid1_len != 7 && in pn544_hci_check_presence()
692 target->nfcid1_len != 10) in pn544_hci_check_presence()
697 target->nfcid1, target->nfcid1_len, NULL); in pn544_hci_check_presence()
698 } else if (target->supported_protocols & (NFC_PROTO_JEWEL_MASK | in pn544_hci_check_presence()
701 } else if (target->supported_protocols & NFC_PROTO_NFC_DEP_MASK) { in pn544_hci_check_presence()
702 return nfc_hci_send_cmd(hdev, target->hci_reader_gate, in pn544_hci_check_presence()