Lines Matching refs:targets

473 	struct nfc_target *targets;  in microread_target_discovered()  local
478 targets = kzalloc(sizeof(struct nfc_target), GFP_KERNEL); in microread_target_discovered()
479 if (targets == NULL) { in microread_target_discovered()
484 targets->hci_reader_gate = gate; in microread_target_discovered()
488 targets->supported_protocols = in microread_target_discovered()
490 targets->sens_res = in microread_target_discovered()
492 targets->sel_res = skb->data[MICROREAD_EMCF_A_SAK]; in microread_target_discovered()
493 targets->nfcid1_len = skb->data[MICROREAD_EMCF_A_LEN]; in microread_target_discovered()
494 if (targets->nfcid1_len > sizeof(targets->nfcid1)) { in microread_target_discovered()
498 memcpy(targets->nfcid1, &skb->data[MICROREAD_EMCF_A_UID], in microread_target_discovered()
499 targets->nfcid1_len); in microread_target_discovered()
502 targets->supported_protocols = in microread_target_discovered()
504 targets->sens_res = in microread_target_discovered()
506 targets->sel_res = skb->data[MICROREAD_EMCF_A3_SAK]; in microread_target_discovered()
507 targets->nfcid1_len = skb->data[MICROREAD_EMCF_A3_LEN]; in microread_target_discovered()
508 if (targets->nfcid1_len > sizeof(targets->nfcid1)) { in microread_target_discovered()
512 memcpy(targets->nfcid1, &skb->data[MICROREAD_EMCF_A3_UID], in microread_target_discovered()
513 targets->nfcid1_len); in microread_target_discovered()
516 targets->supported_protocols = NFC_PROTO_ISO14443_B_MASK; in microread_target_discovered()
517 memcpy(targets->nfcid1, &skb->data[MICROREAD_EMCF_B_UID], 4); in microread_target_discovered()
518 targets->nfcid1_len = 4; in microread_target_discovered()
521 targets->supported_protocols = NFC_PROTO_JEWEL_MASK; in microread_target_discovered()
522 targets->sens_res = in microread_target_discovered()
524 memcpy(targets->nfcid1, &skb->data[MICROREAD_EMCF_T1_UID], 4); in microread_target_discovered()
525 targets->nfcid1_len = 4; in microread_target_discovered()
528 targets->supported_protocols = NFC_PROTO_FELICA_MASK; in microread_target_discovered()
529 memcpy(targets->nfcid1, &skb->data[MICROREAD_EMCF_T3_UID], 8); in microread_target_discovered()
530 targets->nfcid1_len = 8; in microread_target_discovered()
537 r = nfc_targets_found(hdev->ndev, targets, 1); in microread_target_discovered()
540 kfree(targets); in microread_target_discovered()