nfc_tgt 686 drivers/nfc/pn533/pn533.c static int pn533_target_found_type_a(struct nfc_target *nfc_tgt, u8 *tgt_data, nfc_tgt 698 drivers/nfc/pn533/pn533.c nfc_tgt->supported_protocols = NFC_PROTO_MIFARE_MASK; nfc_tgt 701 drivers/nfc/pn533/pn533.c nfc_tgt->supported_protocols = NFC_PROTO_ISO14443_MASK; nfc_tgt 704 drivers/nfc/pn533/pn533.c nfc_tgt->supported_protocols = NFC_PROTO_NFC_DEP_MASK; nfc_tgt 707 drivers/nfc/pn533/pn533.c nfc_tgt->supported_protocols = NFC_PROTO_ISO14443_MASK | nfc_tgt 712 drivers/nfc/pn533/pn533.c nfc_tgt->sens_res = be16_to_cpu(tgt_type_a->sens_res); nfc_tgt 713 drivers/nfc/pn533/pn533.c nfc_tgt->sel_res = tgt_type_a->sel_res; nfc_tgt 714 drivers/nfc/pn533/pn533.c nfc_tgt->nfcid1_len = tgt_type_a->nfcid_len; nfc_tgt 715 drivers/nfc/pn533/pn533.c memcpy(nfc_tgt->nfcid1, tgt_type_a->nfcid_data, nfc_tgt->nfcid1_len); nfc_tgt 744 drivers/nfc/pn533/pn533.c static int pn533_target_found_felica(struct nfc_target *nfc_tgt, u8 *tgt_data, nfc_tgt 756 drivers/nfc/pn533/pn533.c nfc_tgt->supported_protocols = NFC_PROTO_NFC_DEP_MASK; nfc_tgt 758 drivers/nfc/pn533/pn533.c nfc_tgt->supported_protocols = NFC_PROTO_FELICA_MASK; nfc_tgt 760 drivers/nfc/pn533/pn533.c memcpy(nfc_tgt->sensf_res, &tgt_felica->opcode, 9); nfc_tgt 761 drivers/nfc/pn533/pn533.c nfc_tgt->sensf_res_len = 9; nfc_tgt 763 drivers/nfc/pn533/pn533.c memcpy(nfc_tgt->nfcid2, tgt_felica->nfcid2, NFC_NFCID2_MAXSIZE); nfc_tgt 764 drivers/nfc/pn533/pn533.c nfc_tgt->nfcid2_len = NFC_NFCID2_MAXSIZE; nfc_tgt 796 drivers/nfc/pn533/pn533.c static int pn533_target_found_jewel(struct nfc_target *nfc_tgt, u8 *tgt_data, nfc_tgt 806 drivers/nfc/pn533/pn533.c nfc_tgt->supported_protocols = NFC_PROTO_JEWEL_MASK; nfc_tgt 807 drivers/nfc/pn533/pn533.c nfc_tgt->sens_res = be16_to_cpu(tgt_jewel->sens_res); nfc_tgt 808 drivers/nfc/pn533/pn533.c nfc_tgt->nfcid1_len = 4; nfc_tgt 809 drivers/nfc/pn533/pn533.c memcpy(nfc_tgt->nfcid1, tgt_jewel->jewelid, nfc_tgt->nfcid1_len); nfc_tgt 855 drivers/nfc/pn533/pn533.c static int pn533_target_found_type_b(struct nfc_target *nfc_tgt, u8 *tgt_data, nfc_tgt 865 drivers/nfc/pn533/pn533.c nfc_tgt->supported_protocols = NFC_PROTO_ISO14443_B_MASK; nfc_tgt 874 drivers/nfc/pn533/pn533.c struct nfc_target nfc_tgt; nfc_tgt 883 drivers/nfc/pn533/pn533.c memset(&nfc_tgt, 0, sizeof(struct nfc_target)); nfc_tgt 887 drivers/nfc/pn533/pn533.c rc = pn533_target_found_type_a(&nfc_tgt, tgdata, tgdata_len); nfc_tgt 891 drivers/nfc/pn533/pn533.c rc = pn533_target_found_felica(&nfc_tgt, tgdata, tgdata_len); nfc_tgt 894 drivers/nfc/pn533/pn533.c rc = pn533_target_found_jewel(&nfc_tgt, tgdata, tgdata_len); nfc_tgt 897 drivers/nfc/pn533/pn533.c rc = pn533_target_found_type_b(&nfc_tgt, tgdata, tgdata_len); nfc_tgt 908 drivers/nfc/pn533/pn533.c if (!(nfc_tgt.supported_protocols & dev->poll_protocols)) { nfc_tgt 916 drivers/nfc/pn533/pn533.c nfc_tgt.supported_protocols); nfc_tgt 918 drivers/nfc/pn533/pn533.c dev->tgt_available_prots = nfc_tgt.supported_protocols; nfc_tgt 921 drivers/nfc/pn533/pn533.c nfc_targets_found(dev->nfc_dev, &nfc_tgt, 1);