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