Lines Matching refs:target

588 					   struct nfc_target *target)  in st21nfca_get_iso15693_inventory()  argument
607 memcpy(target->iso15693_uid, inventory_skb->data, inventory_skb->len); in st21nfca_get_iso15693_inventory()
608 target->iso15693_dsfid = inventory_skb->data[1]; in st21nfca_get_iso15693_inventory()
609 target->is_iso15693 = 1; in st21nfca_get_iso15693_inventory()
616 struct nfc_target *target, u8 comm_mode, in st21nfca_hci_dep_link_up() argument
621 info->dep_info.idx = target->idx; in st21nfca_hci_dep_link_up()
636 struct nfc_target *target) in st21nfca_hci_target_from_gate() argument
645 target->supported_protocols = NFC_PROTO_FELICA_MASK; in st21nfca_hci_target_from_gate()
653 target->supported_protocols = NFC_PROTO_JEWEL_MASK; in st21nfca_hci_target_from_gate()
654 target->sens_res = 0x0c00; in st21nfca_hci_target_from_gate()
664 target->supported_protocols = in st21nfca_hci_target_from_gate()
666 if (target->supported_protocols == 0xffffffff) in st21nfca_hci_target_from_gate()
669 target->sens_res = atqa; in st21nfca_hci_target_from_gate()
670 target->sel_res = sak; in st21nfca_hci_target_from_gate()
671 memcpy(target->nfcid1, uid, len); in st21nfca_hci_target_from_gate()
672 target->nfcid1_len = len; in st21nfca_hci_target_from_gate()
677 target->supported_protocols = NFC_PROTO_ISO15693_MASK; in st21nfca_hci_target_from_gate()
678 r = st21nfca_get_iso15693_inventory(hdev, target); in st21nfca_hci_target_from_gate()
691 struct nfc_target *target) in st21nfca_hci_complete_target_discovered() argument
716 memcpy(target->sensf_res, nfcid_skb->data, in st21nfca_hci_complete_target_discovered()
718 target->sensf_res_len = nfcid_skb->len; in st21nfca_hci_complete_target_discovered()
720 if (target->sensf_res[0] == 0x01 && in st21nfca_hci_complete_target_discovered()
721 target->sensf_res[1] == 0xfe) in st21nfca_hci_complete_target_discovered()
722 target->supported_protocols = in st21nfca_hci_complete_target_discovered()
725 target->supported_protocols = in st21nfca_hci_complete_target_discovered()
740 memcpy(target->sensf_res, nfcid_skb->data, in st21nfca_hci_complete_target_discovered()
742 target->sensf_res_len = nfcid_skb->len; in st21nfca_hci_complete_target_discovered()
743 target->supported_protocols = NFC_PROTO_NFC_DEP_MASK; in st21nfca_hci_complete_target_discovered()
745 target->hci_reader_gate = ST21NFCA_RF_READER_F_GATE; in st21nfca_hci_complete_target_discovered()
778 struct nfc_target *target, in st21nfca_hci_im_transceive() argument
785 target->hci_reader_gate, skb->len); in st21nfca_hci_im_transceive()
787 switch (target->hci_reader_gate) { in st21nfca_hci_im_transceive()
789 if (target->supported_protocols == NFC_PROTO_NFC_DEP_MASK) in st21nfca_hci_im_transceive()
793 return nfc_hci_send_cmd_async(hdev, target->hci_reader_gate, in st21nfca_hci_im_transceive()
799 return nfc_hci_send_cmd_async(hdev, target->hci_reader_gate, in st21nfca_hci_im_transceive()
809 return nfc_hci_send_cmd_async(hdev, target->hci_reader_gate, in st21nfca_hci_im_transceive()
826 struct nfc_target *target) in st21nfca_hci_check_presence() argument
830 switch (target->hci_reader_gate) { in st21nfca_hci_check_presence()
840 return nfc_hci_send_cmd(hdev, target->hci_reader_gate, in st21nfca_hci_check_presence()
843 return nfc_hci_send_cmd(hdev, target->hci_reader_gate, in st21nfca_hci_check_presence()