Lines Matching refs:sdd_res
343 struct digital_sdd_res *sdd_res) in digital_in_send_sel_req() argument
366 memcpy(sel_req->nfcid1, sdd_res->nfcid1, 4); in digital_in_send_sel_req()
367 sel_req->bcc = sdd_res->bcc; in digital_in_send_sel_req()
391 struct digital_sdd_res *sdd_res; in digital_in_recv_sdd_res() local
408 sdd_res = (struct digital_sdd_res *)resp->data; in digital_in_recv_sdd_res()
411 bcc ^= sdd_res->nfcid1[i]; in digital_in_recv_sdd_res()
413 if (bcc != sdd_res->bcc) { in digital_in_recv_sdd_res()
419 if (sdd_res->nfcid1[0] == DIGITAL_SDD_RES_CT) { in digital_in_recv_sdd_res()
427 memcpy(target->nfcid1 + target->nfcid1_len, sdd_res->nfcid1 + offset, in digital_in_recv_sdd_res()
431 rc = digital_in_send_sel_req(ddev, target, sdd_res); in digital_in_recv_sdd_res()
989 struct digital_sdd_res *sdd_res; in digital_tg_send_sdd_res() local
997 sdd_res = (struct digital_sdd_res *)skb->data; in digital_tg_send_sdd_res()
999 sdd_res->nfcid1[0] = 0x08; in digital_tg_send_sdd_res()
1000 get_random_bytes(sdd_res->nfcid1 + 1, 3); in digital_tg_send_sdd_res()
1002 sdd_res->bcc = 0; in digital_tg_send_sdd_res()
1004 sdd_res->bcc ^= sdd_res->nfcid1[i]; in digital_tg_send_sdd_res()