Lines Matching refs:idx
231 if (dev->targets[i].idx == target_idx) in nfc_find_target()
405 if (dev->active_target->idx != target_idx) { in nfc_deactivate_target()
449 if (dev->active_target->idx != target_idx) { in nfc_data_exchange()
615 targets[i].idx = dev->target_next_idx++; in nfc_targets_found()
675 if (tg->idx == target_idx) in nfc_target_lost()
734 u32 active_target_idx = dev->active_target->idx; in nfc_check_pres_work()
765 const unsigned int *idx = data; in match_idx() local
767 return dev->idx == *idx; in match_idx()
770 struct nfc_dev *nfc_get_device(unsigned int idx) in nfc_get_device() argument
774 d = class_find_device(&nfc_class, NULL, &idx, match_idx); in nfc_get_device()
842 dev->idx = ida_simple_get(&nfc_index_ida, 0, 0, GFP_KERNEL); in nfc_register_device()
843 if (dev->idx < 0) in nfc_register_device()
844 return dev->idx; in nfc_register_device()
847 dev_set_name(&dev->dev, "nfc%d", dev->idx); in nfc_register_device()
891 id = dev->idx; in nfc_unregister_device()