Lines Matching refs:target_idx
279 static struct nfc_target *nfc_find_target(struct nfc_dev *dev, u32 target_idx) in nfc_find_target() argument
284 if (dev->targets[i].idx == target_idx) in nfc_find_target()
374 int nfc_dep_link_is_up(struct nfc_dev *dev, u32 target_idx, in nfc_dep_link_is_up() argument
382 target = nfc_find_target(dev, target_idx); in nfc_dep_link_is_up()
392 nfc_llcp_mac_is_up(dev, target_idx, comm_mode, rf_mode); in nfc_dep_link_is_up()
394 return nfc_genl_dep_link_up_event(dev, target_idx, comm_mode, rf_mode); in nfc_dep_link_is_up()
405 int nfc_activate_target(struct nfc_dev *dev, u32 target_idx, u32 protocol) in nfc_activate_target() argument
411 dev_name(&dev->dev), target_idx, protocol); in nfc_activate_target()
425 target = nfc_find_target(dev, target_idx); in nfc_activate_target()
452 int nfc_deactivate_target(struct nfc_dev *dev, u32 target_idx) in nfc_deactivate_target() argument
457 dev_name(&dev->dev), target_idx); in nfc_deactivate_target()
471 if (dev->active_target->idx != target_idx) { in nfc_deactivate_target()
498 int nfc_data_exchange(struct nfc_dev *dev, u32 target_idx, struct sk_buff *skb, in nfc_data_exchange() argument
504 dev_name(&dev->dev), target_idx, skb->len); in nfc_data_exchange()
515 if (dev->active_target->idx != target_idx) { in nfc_data_exchange()
832 int nfc_target_lost(struct nfc_dev *dev, u32 target_idx) in nfc_target_lost() argument
837 pr_debug("dev_name %s n_target %d\n", dev_name(&dev->dev), target_idx); in nfc_target_lost()
843 if (tg->idx == target_idx) in nfc_target_lost()
866 nfc_genl_target_lost(dev, target_idx); in nfc_target_lost()