Lines Matching refs:active_target
155 if (dev->polling || dev->active_target) { in nfc_dev_down()
318 dev->active_target = target; in nfc_dep_link_up()
351 dev->active_target = NULL; in nfc_dep_link_down()
368 if (!dev->active_target && rf_mode == NFC_RF_INITIATOR) { in nfc_dep_link_is_up()
375 dev->active_target = target; in nfc_dep_link_is_up()
409 if (dev->active_target) { in nfc_activate_target()
422 dev->active_target = target; in nfc_activate_target()
456 if (dev->active_target == NULL) { in nfc_deactivate_target()
461 if (dev->active_target->idx != target_idx) { in nfc_deactivate_target()
469 dev->ops->deactivate_target(dev, dev->active_target, mode); in nfc_deactivate_target()
470 dev->active_target = NULL; in nfc_deactivate_target()
504 if (dev->rf_mode == NFC_RF_INITIATOR && dev->active_target != NULL) { in nfc_data_exchange()
505 if (dev->active_target->idx != target_idx) { in nfc_data_exchange()
514 rc = dev->ops->im_transceive(dev, dev->active_target, skb, cb, in nfc_data_exchange()
847 dev->active_target = NULL; in nfc_target_lost()
991 if (dev->active_target && timer_pending(&dev->check_pres_timer) == 0) { in nfc_check_pres_work()
992 rc = dev->ops->check_presence(dev, dev->active_target); in nfc_check_pres_work()
996 u32 active_target_idx = dev->active_target->idx; in nfc_check_pres_work()