Lines Matching refs:target_idx
268 static struct nfc_target *nfc_find_target(struct nfc_dev *dev, u32 target_idx) in nfc_find_target() argument
273 if (dev->targets[i].idx == target_idx) in nfc_find_target()
363 int nfc_dep_link_is_up(struct nfc_dev *dev, u32 target_idx, in nfc_dep_link_is_up() argument
371 target = nfc_find_target(dev, target_idx); in nfc_dep_link_is_up()
381 nfc_llcp_mac_is_up(dev, target_idx, comm_mode, rf_mode); in nfc_dep_link_is_up()
383 return nfc_genl_dep_link_up_event(dev, target_idx, comm_mode, rf_mode); in nfc_dep_link_is_up()
394 int nfc_activate_target(struct nfc_dev *dev, u32 target_idx, u32 protocol) in nfc_activate_target() argument
400 dev_name(&dev->dev), target_idx, protocol); in nfc_activate_target()
414 target = nfc_find_target(dev, target_idx); in nfc_activate_target()
442 int nfc_deactivate_target(struct nfc_dev *dev, u32 target_idx, u8 mode) in nfc_deactivate_target() argument
447 dev_name(&dev->dev), target_idx); in nfc_deactivate_target()
461 if (dev->active_target->idx != target_idx) { in nfc_deactivate_target()
488 int nfc_data_exchange(struct nfc_dev *dev, u32 target_idx, struct sk_buff *skb, in nfc_data_exchange() argument
494 dev_name(&dev->dev), target_idx, skb->len); in nfc_data_exchange()
505 if (dev->active_target->idx != target_idx) { in nfc_data_exchange()
825 int nfc_target_lost(struct nfc_dev *dev, u32 target_idx) in nfc_target_lost() argument
830 pr_debug("dev_name %s n_target %d\n", dev_name(&dev->dev), target_idx); in nfc_target_lost()
836 if (tg->idx == target_idx) in nfc_target_lost()
859 nfc_genl_target_lost(dev, target_idx); in nfc_target_lost()