Lines Matching refs:target

193 				struct nfc_target *target,  in nci_add_new_protocol()  argument
230 target->sens_res = nfca_poll->sens_res; in nci_add_new_protocol()
231 target->sel_res = nfca_poll->sel_res; in nci_add_new_protocol()
232 target->nfcid1_len = nfca_poll->nfcid1_len; in nci_add_new_protocol()
233 if (target->nfcid1_len > 0) { in nci_add_new_protocol()
234 memcpy(target->nfcid1, nfca_poll->nfcid1, in nci_add_new_protocol()
235 target->nfcid1_len); in nci_add_new_protocol()
240 target->sensb_res_len = nfcb_poll->sensb_res_len; in nci_add_new_protocol()
241 if (target->sensb_res_len > 0) { in nci_add_new_protocol()
242 memcpy(target->sensb_res, nfcb_poll->sensb_res, in nci_add_new_protocol()
243 target->sensb_res_len); in nci_add_new_protocol()
248 target->sensf_res_len = nfcf_poll->sensf_res_len; in nci_add_new_protocol()
249 if (target->sensf_res_len > 0) { in nci_add_new_protocol()
250 memcpy(target->sensf_res, nfcf_poll->sensf_res, in nci_add_new_protocol()
251 target->sensf_res_len); in nci_add_new_protocol()
256 target->is_iso15693 = 1; in nci_add_new_protocol()
257 target->iso15693_dsfid = nfcv_poll->dsfid; in nci_add_new_protocol()
258 memcpy(target->iso15693_uid, nfcv_poll->uid, NFC_ISO15693_UID_MAXSIZE); in nci_add_new_protocol()
264 target->supported_protocols |= protocol; in nci_add_new_protocol()
274 struct nfc_target *target; in nci_add_new_target() local
278 target = &ndev->targets[i]; in nci_add_new_target()
279 if (target->logical_idx == ntf->rf_discovery_id) { in nci_add_new_target()
281 nci_add_new_protocol(ndev, target, ntf->rf_protocol, in nci_add_new_target()
294 target = &ndev->targets[ndev->n_targets]; in nci_add_new_target()
296 rc = nci_add_new_protocol(ndev, target, ntf->rf_protocol, in nci_add_new_target()
300 target->logical_idx = ntf->rf_discovery_id; in nci_add_new_target()
303 pr_debug("logical idx %d, n_targets %d\n", target->logical_idx, in nci_add_new_target()
454 struct nfc_target *target; in nci_target_auto_activated() local
457 target = &ndev->targets[ndev->n_targets]; in nci_target_auto_activated()
459 rc = nci_add_new_protocol(ndev, target, ntf->rf_protocol, in nci_target_auto_activated()
465 target->logical_idx = ntf->rf_discovery_id; in nci_target_auto_activated()
469 target->logical_idx, ndev->n_targets); in nci_target_auto_activated()