Lines Matching full:resp

216 				struct sk_buff *resp)  in digital_in_recv_ats()  argument
222 if (IS_ERR(resp)) { in digital_in_recv_ats()
223 rc = PTR_ERR(resp); in digital_in_recv_ats()
224 resp = NULL; in digital_in_recv_ats()
228 if (resp->len < 2) { in digital_in_recv_ats()
233 fsdi = DIGITAL_ATS_FSCI(resp->data[1]); in digital_in_recv_ats()
244 dev_kfree_skb(resp); in digital_in_recv_ats()
273 struct sk_buff *resp) in digital_in_recv_sel_res() argument
280 if (IS_ERR(resp)) { in digital_in_recv_sel_res()
281 rc = PTR_ERR(resp); in digital_in_recv_sel_res()
282 resp = NULL; in digital_in_recv_sel_res()
287 rc = digital_skb_check_crc_a(resp); in digital_in_recv_sel_res()
294 if (resp->len != DIGITAL_SEL_RES_LEN) { in digital_in_recv_sel_res()
299 sel_res = resp->data[0]; in digital_in_recv_sel_res()
335 dev_kfree_skb(resp); in digital_in_recv_sel_res()
388 struct sk_buff *resp) in digital_in_recv_sdd_res() argument
396 if (IS_ERR(resp)) { in digital_in_recv_sdd_res()
397 rc = PTR_ERR(resp); in digital_in_recv_sdd_res()
398 resp = NULL; in digital_in_recv_sdd_res()
402 if (resp->len < DIGITAL_SDD_RES_LEN) { in digital_in_recv_sdd_res()
408 sdd_res = (struct digital_sdd_res *)resp->data; in digital_in_recv_sdd_res()
434 dev_kfree_skb(resp); in digital_in_recv_sdd_res()
477 struct sk_buff *resp) in digital_in_recv_sens_res() argument
482 if (IS_ERR(resp)) { in digital_in_recv_sens_res()
483 rc = PTR_ERR(resp); in digital_in_recv_sens_res()
484 resp = NULL; in digital_in_recv_sens_res()
488 if (resp->len < sizeof(u16)) { in digital_in_recv_sens_res()
499 target->sens_res = __le16_to_cpu(*(__le16 *)resp->data); in digital_in_recv_sens_res()
513 dev_kfree_skb(resp); in digital_in_recv_sens_res()
549 int digital_in_recv_mifare_res(struct sk_buff *resp) in digital_in_recv_mifare_res() argument
556 if (resp->len == DIGITAL_MIFARE_READ_RES_LEN + DIGITAL_CRC_LEN) { in digital_in_recv_mifare_res()
557 if (digital_skb_check_crc_a(resp)) { in digital_in_recv_mifare_res()
566 if (resp->len == 1 && resp->data[0] == DIGITAL_MIFARE_ACK_RES) { in digital_in_recv_mifare_res()
567 resp->data[0] = 0; in digital_in_recv_mifare_res()
576 struct sk_buff *resp) in digital_in_recv_attrib_res() argument
582 if (IS_ERR(resp)) { in digital_in_recv_attrib_res()
583 rc = PTR_ERR(resp); in digital_in_recv_attrib_res()
584 resp = NULL; in digital_in_recv_attrib_res()
588 if (resp->len < sizeof(*attrib_res)) { in digital_in_recv_attrib_res()
594 attrib_res = (struct digital_attrib_res *)resp->data; in digital_in_recv_attrib_res()
605 dev_kfree_skb(resp); in digital_in_recv_attrib_res()
646 struct sk_buff *resp) in digital_in_recv_sensb_res() argument
653 if (IS_ERR(resp)) { in digital_in_recv_sensb_res()
654 rc = PTR_ERR(resp); in digital_in_recv_sensb_res()
655 resp = NULL; in digital_in_recv_sensb_res()
659 if (resp->len != sizeof(*sensb_res)) { in digital_in_recv_sensb_res()
665 sensb_res = (struct digital_sensb_res *)resp->data; in digital_in_recv_sensb_res()
700 dev_kfree_skb(resp); in digital_in_recv_sensb_res()
743 struct sk_buff *resp) in digital_in_recv_sensf_res() argument
750 if (IS_ERR(resp)) { in digital_in_recv_sensf_res()
751 rc = PTR_ERR(resp); in digital_in_recv_sensf_res()
752 resp = NULL; in digital_in_recv_sensf_res()
756 if (resp->len < DIGITAL_SENSF_RES_MIN_LENGTH) { in digital_in_recv_sensf_res()
762 rc = digital_skb_check_crc_f(resp); in digital_in_recv_sensf_res()
769 skb_pull(resp, 1); in digital_in_recv_sensf_res()
773 sensf_res = (struct digital_sensf_res *)resp->data; in digital_in_recv_sensf_res()
775 memcpy(target.sensf_res, sensf_res, resp->len); in digital_in_recv_sensf_res()
776 target.sensf_res_len = resp->len; in digital_in_recv_sensf_res()
790 dev_kfree_skb(resp); in digital_in_recv_sensf_res()
841 void *arg, struct sk_buff *resp) in digital_in_recv_iso15693_inv_res() argument
847 if (IS_ERR(resp)) { in digital_in_recv_iso15693_inv_res()
848 rc = PTR_ERR(resp); in digital_in_recv_iso15693_inv_res()
849 resp = NULL; in digital_in_recv_iso15693_inv_res()
853 if (resp->len != sizeof(*res)) { in digital_in_recv_iso15693_inv_res()
858 res = (struct digital_iso15693_inv_res *)resp->data; in digital_in_recv_iso15693_inv_res()
881 dev_kfree_skb(resp); in digital_in_recv_iso15693_inv_res()
957 struct sk_buff *resp) in digital_tg_recv_sel_req() argument
961 if (IS_ERR(resp)) { in digital_tg_recv_sel_req()
962 rc = PTR_ERR(resp); in digital_tg_recv_sel_req()
963 resp = NULL; in digital_tg_recv_sel_req()
968 rc = digital_skb_check_crc_a(resp); in digital_tg_recv_sel_req()
983 dev_kfree_skb(resp); in digital_tg_recv_sel_req()
1022 struct sk_buff *resp) in digital_tg_recv_sdd_req() argument
1027 if (IS_ERR(resp)) { in digital_tg_recv_sdd_req()
1028 rc = PTR_ERR(resp); in digital_tg_recv_sdd_req()
1029 resp = NULL; in digital_tg_recv_sdd_req()
1033 sdd_req = resp->data; in digital_tg_recv_sdd_req()
1035 if (resp->len < 2 || sdd_req[0] != DIGITAL_CMD_SEL_REQ_CL1 || in digital_tg_recv_sdd_req()
1047 dev_kfree_skb(resp); in digital_tg_recv_sdd_req()
1081 struct sk_buff *resp) in digital_tg_recv_sens_req() argument
1086 if (IS_ERR(resp)) { in digital_tg_recv_sens_req()
1087 rc = PTR_ERR(resp); in digital_tg_recv_sens_req()
1088 resp = NULL; in digital_tg_recv_sens_req()
1092 sens_req = resp->data[0]; in digital_tg_recv_sens_req()
1094 if (!resp->len || (sens_req != DIGITAL_CMD_SENS_REQ && in digital_tg_recv_sens_req()
1106 dev_kfree_skb(resp); in digital_tg_recv_sens_req()
1110 void *arg, struct sk_buff *resp) in digital_tg_recv_atr_or_sensf_req() argument
1112 if (!IS_ERR(resp) && (resp->len >= 2) && in digital_tg_recv_atr_or_sensf_req()
1113 (resp->data[1] == DIGITAL_CMD_SENSF_REQ)) in digital_tg_recv_atr_or_sensf_req()
1114 digital_tg_recv_sensf_req(ddev, arg, resp); in digital_tg_recv_atr_or_sensf_req()
1116 digital_tg_recv_atr_req(ddev, arg, resp); in digital_tg_recv_atr_or_sensf_req()
1174 struct sk_buff *resp) in digital_tg_recv_sensf_req() argument
1179 if (IS_ERR(resp)) { in digital_tg_recv_sensf_req()
1180 rc = PTR_ERR(resp); in digital_tg_recv_sensf_req()
1181 resp = NULL; in digital_tg_recv_sensf_req()
1186 rc = digital_skb_check_crc_f(resp); in digital_tg_recv_sensf_req()
1193 if (resp->len != sizeof(struct digital_sensf_req) + 1) { in digital_tg_recv_sensf_req()
1198 skb_pull(resp, 1); in digital_tg_recv_sensf_req()
1199 sensf_req = (struct digital_sensf_req *)resp->data; in digital_tg_recv_sensf_req()
1212 dev_kfree_skb(resp); in digital_tg_recv_sensf_req()
1263 struct sk_buff *resp) in digital_tg_recv_md_req() argument
1268 if (IS_ERR(resp)) { in digital_tg_recv_md_req()
1269 resp = NULL; in digital_tg_recv_md_req()
1282 digital_tg_recv_sens_req(ddev, arg, resp); in digital_tg_recv_md_req()
1289 digital_tg_recv_sensf_req(ddev, arg, resp); in digital_tg_recv_md_req()
1299 dev_kfree_skb(resp); in digital_tg_recv_md_req()