Lines Matching full:targets
189 * nfc_start_poll - start polling for nfc targets
195 * The device remains polling for targets until a target is found or
237 * nfc_stop_poll - stop polling for nfc targets
273 if (dev->targets[i].idx == target_idx) in nfc_find_target()
274 return &dev->targets[i]; in nfc_find_target()
753 * nfc_targets_found - inform that targets were found
755 * @dev: The nfc device that found the targets
756 * @targets: array of nfc targets found
757 * @n_targets: targets array size
759 * The device driver must call this function when one or many nfc targets
761 * polling for targets.
762 * NOTE: This function can be called with targets=NULL and n_targets=0 to
769 struct nfc_target *targets, int n_targets) in nfc_targets_found() argument
776 targets[i].idx = dev->target_next_idx++; in nfc_targets_found()
789 kfree(dev->targets); in nfc_targets_found()
790 dev->targets = NULL; in nfc_targets_found()
792 if (targets) { in nfc_targets_found()
793 dev->targets = kmemdup(targets, in nfc_targets_found()
797 if (!dev->targets) { in nfc_targets_found()
835 tg = &dev->targets[i]; in nfc_target_lost()
850 memcpy(&dev->targets[i], &dev->targets[i + 1], in nfc_target_lost()
853 kfree(dev->targets); in nfc_target_lost()
854 dev->targets = NULL; in nfc_target_lost()
970 kfree(dev->targets); in nfc_release()