Lines Matching refs:target

600 					   struct nfc_target *target)  in st21nfca_get_iso15693_inventory()  argument
619 memcpy(target->iso15693_uid, inventory_skb->data, inventory_skb->len); in st21nfca_get_iso15693_inventory()
620 target->iso15693_dsfid = inventory_skb->data[1]; in st21nfca_get_iso15693_inventory()
621 target->is_iso15693 = 1; in st21nfca_get_iso15693_inventory()
628 struct nfc_target *target, u8 comm_mode, in st21nfca_hci_dep_link_up() argument
633 info->dep_info.idx = target->idx; in st21nfca_hci_dep_link_up()
648 struct nfc_target *target) in st21nfca_hci_target_from_gate() argument
657 target->supported_protocols = NFC_PROTO_FELICA_MASK; in st21nfca_hci_target_from_gate()
665 target->supported_protocols = NFC_PROTO_JEWEL_MASK; in st21nfca_hci_target_from_gate()
666 target->sens_res = 0x0c00; in st21nfca_hci_target_from_gate()
676 target->supported_protocols = in st21nfca_hci_target_from_gate()
678 if (target->supported_protocols == 0xffffffff) in st21nfca_hci_target_from_gate()
681 target->sens_res = atqa; in st21nfca_hci_target_from_gate()
682 target->sel_res = sak; in st21nfca_hci_target_from_gate()
683 memcpy(target->nfcid1, uid, len); in st21nfca_hci_target_from_gate()
684 target->nfcid1_len = len; in st21nfca_hci_target_from_gate()
689 target->supported_protocols = NFC_PROTO_ISO15693_MASK; in st21nfca_hci_target_from_gate()
690 r = st21nfca_get_iso15693_inventory(hdev, target); in st21nfca_hci_target_from_gate()
703 struct nfc_target *target) in st21nfca_hci_complete_target_discovered() argument
728 memcpy(target->sensf_res, nfcid_skb->data, in st21nfca_hci_complete_target_discovered()
730 target->sensf_res_len = nfcid_skb->len; in st21nfca_hci_complete_target_discovered()
732 if (target->sensf_res[0] == 0x01 && in st21nfca_hci_complete_target_discovered()
733 target->sensf_res[1] == 0xfe) in st21nfca_hci_complete_target_discovered()
734 target->supported_protocols = in st21nfca_hci_complete_target_discovered()
737 target->supported_protocols = in st21nfca_hci_complete_target_discovered()
752 memcpy(target->sensf_res, nfcid_skb->data, in st21nfca_hci_complete_target_discovered()
754 target->sensf_res_len = nfcid_skb->len; in st21nfca_hci_complete_target_discovered()
755 target->supported_protocols = NFC_PROTO_NFC_DEP_MASK; in st21nfca_hci_complete_target_discovered()
757 target->hci_reader_gate = ST21NFCA_RF_READER_F_GATE; in st21nfca_hci_complete_target_discovered()
790 struct nfc_target *target, in st21nfca_hci_im_transceive() argument
797 target->hci_reader_gate, skb->len); in st21nfca_hci_im_transceive()
799 switch (target->hci_reader_gate) { in st21nfca_hci_im_transceive()
801 if (target->supported_protocols == NFC_PROTO_NFC_DEP_MASK) in st21nfca_hci_im_transceive()
805 return nfc_hci_send_cmd_async(hdev, target->hci_reader_gate, in st21nfca_hci_im_transceive()
811 return nfc_hci_send_cmd_async(hdev, target->hci_reader_gate, in st21nfca_hci_im_transceive()
821 return nfc_hci_send_cmd_async(hdev, target->hci_reader_gate, in st21nfca_hci_im_transceive()
838 struct nfc_target *target) in st21nfca_hci_check_presence() argument
842 switch (target->hci_reader_gate) { in st21nfca_hci_check_presence()
852 return nfc_hci_send_cmd(hdev, target->hci_reader_gate, in st21nfca_hci_check_presence()
855 return nfc_hci_send_cmd(hdev, target->hci_reader_gate, in st21nfca_hci_check_presence()