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