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()
763 struct nfc_target *targets, int n_targets) in nfc_targets_found() argument
770 targets[i].idx = dev->target_next_idx++; in nfc_targets_found()
783 kfree(dev->targets); in nfc_targets_found()
784 dev->targets = NULL; in nfc_targets_found()
786 if (targets) { in nfc_targets_found()
787 dev->targets = kmemdup(targets, in nfc_targets_found()
791 if (!dev->targets) { in nfc_targets_found()
829 tg = &dev->targets[i]; in nfc_target_lost()
844 memcpy(&dev->targets[i], &dev->targets[i + 1], in nfc_target_lost()
847 kfree(dev->targets); in nfc_target_lost()
848 dev->targets = NULL; in nfc_target_lost()
964 kfree(dev->targets); in nfc_release()