Lines Matching defs:target
194 * The device remains polling for targets until a target is found or
201 pr_debug("dev_name %s initiator protocols 0x%x target protocols 0x%x\n",
284 struct nfc_target *target;
309 target = nfc_find_target(dev, target_index);
310 if (target == NULL) {
315 rc = dev->ops->dep_link_up(dev, target, comm_mode, gb, gb_len);
317 dev->active_target = target;
368 struct nfc_target *target;
370 target = nfc_find_target(dev, target_idx);
371 if (target == NULL)
374 dev->active_target = target;
387 * nfc_activate_target - prepare the target for data exchange
389 * @dev: The nfc device that found the target
390 * @target_idx: index of the target that must be activated
396 struct nfc_target *target;
413 target = nfc_find_target(dev, target_idx);
414 if (target == NULL) {
419 rc = dev->ops->activate_target(dev, target, protocol);
421 dev->active_target = target;
435 * nfc_deactivate_target - deactivate a nfc target
437 * @dev: The nfc device that found the target
438 * @target_idx: index of the target that must be deactivated
478 * @dev: The nfc device that found the target
479 * @target_idx: index of the target
655 /* Only LLCP target mode for now */
808 * nfc_target_lost - inform that an activated target went out of field
810 * @dev: The nfc device that had the activated target in field
811 * @target_idx: the nfc index of the target
813 * The device driver must call this function when the activated target