Lines Matching refs:targets
272 if (dev->targets[i].idx == target_idx) in nfc_find_target()
273 return &dev->targets[i]; in nfc_find_target()
764 struct nfc_target *targets, int n_targets) in nfc_targets_found() argument
771 targets[i].idx = dev->target_next_idx++; in nfc_targets_found()
784 kfree(dev->targets); in nfc_targets_found()
785 dev->targets = NULL; in nfc_targets_found()
787 if (targets) { in nfc_targets_found()
788 dev->targets = kmemdup(targets, in nfc_targets_found()
792 if (!dev->targets) { in nfc_targets_found()
830 tg = &dev->targets[i]; in nfc_target_lost()
845 memcpy(&dev->targets[i], &dev->targets[i + 1], in nfc_target_lost()
848 kfree(dev->targets); in nfc_target_lost()
849 dev->targets = NULL; in nfc_target_lost()
965 kfree(dev->targets); in nfc_release()