Lines Matching refs:targets
286 struct nfc_target *targets; in nfc_hci_target_discovered() local
294 targets = kzalloc(sizeof(struct nfc_target), GFP_KERNEL); in nfc_hci_target_discovered()
295 if (targets == NULL) in nfc_hci_target_discovered()
315 targets->supported_protocols = in nfc_hci_target_discovered()
317 if (targets->supported_protocols == 0xffffffff) { in nfc_hci_target_discovered()
322 targets->sens_res = be16_to_cpu(*(__be16 *)atqa_skb->data); in nfc_hci_target_discovered()
323 targets->sel_res = sak_skb->data[0]; in nfc_hci_target_discovered()
335 memcpy(targets->nfcid1, uid_skb->data, uid_skb->len); in nfc_hci_target_discovered()
336 targets->nfcid1_len = uid_skb->len; in nfc_hci_target_discovered()
340 targets); in nfc_hci_target_discovered()
346 targets->supported_protocols = NFC_PROTO_ISO14443_B_MASK; in nfc_hci_target_discovered()
350 r = hdev->ops->target_from_gate(hdev, gate, targets); in nfc_hci_target_discovered()
358 targets); in nfc_hci_target_discovered()
366 if (targets->hci_reader_gate == 0x00) in nfc_hci_target_discovered()
367 targets->hci_reader_gate = gate; in nfc_hci_target_discovered()
369 r = nfc_targets_found(hdev->ndev, targets, 1); in nfc_hci_target_discovered()
372 kfree(targets); in nfc_hci_target_discovered()