Lines Matching refs: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)
274 return &dev->targets[i];
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)
776 targets[i].idx = dev->target_next_idx++;
789 kfree(dev->targets);
790 dev->targets = NULL;
792 if (targets) {
793 dev->targets = kmemdup(targets,
797 if (!dev->targets) {
835 tg = &dev->targets[i];
850 memcpy(&dev->targets[i], &dev->targets[i + 1],
853 kfree(dev->targets);
854 dev->targets = NULL;
970 kfree(dev->targets);