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