Lines Matching refs:resp
107 struct sk_buff *resp);
109 struct sk_buff *resp);
232 struct sk_buff *resp,
252 if (resp->len > skb_tailroom(ddev->chaining_skb)) {
267 skb_put_data(ddev->chaining_skb, resp->data, resp->len);
269 kfree_skb(resp);
270 resp = NULL;
280 resp = ddev->chaining_skb;
284 return resp;
287 kfree_skb(resp);
296 struct sk_buff *resp)
302 if (IS_ERR(resp)) {
303 rc = PTR_ERR(resp);
304 resp = NULL;
308 rc = ddev->skb_check_crc(resp);
314 rc = digital_skb_pull_dep_sod(ddev, resp);
320 psl_res = (struct digital_psl_res *)resp->data;
322 if ((resp->len != sizeof(*psl_res)) ||
353 dev_kfree_skb(resp);
400 struct sk_buff *resp)
408 if (IS_ERR(resp)) {
409 rc = PTR_ERR(resp);
410 resp = NULL;
414 rc = ddev->skb_check_crc(resp);
420 rc = digital_skb_pull_dep_sod(ddev, resp);
426 if (resp->len < sizeof(struct digital_atr_res)) {
431 gb_len = resp->len - sizeof(struct digital_atr_res);
433 atr_res = (struct digital_atr_res *)resp->data;
465 dev_kfree_skb(resp);
687 struct sk_buff *resp)
696 if (IS_ERR(resp)) {
697 rc = PTR_ERR(resp);
698 resp = NULL;
723 rc = digital_skb_pull_dep_sod(ddev, resp);
729 rc = ddev->skb_check_crc(resp);
731 if ((resp->len >= 4) &&
739 kfree_skb(resp);
751 if (resp->len > ddev->local_payload_max) {
757 dep_res = (struct digital_dep_req_res *)resp->data;
759 if (resp->len < size || dep_res->dir != DIGITAL_NFC_DEP_FRAME_DIR_IN ||
778 if (size > resp->len) {
783 skb_pull(resp, size);
799 resp = digital_recv_dep_data_gather(ddev, pfb, resp,
802 if (IS_ERR(resp)) {
803 rc = PTR_ERR(resp);
804 resp = NULL;
808 /* If resp is NULL then we're still chaining so return and
812 if (!resp)
869 rtox = DIGITAL_NFC_DEP_RTOX_VALUE(resp->data[0]);
884 data_exch->cb(data_exch->cb_context, resp, rc);
896 kfree_skb(resp);
901 dev_kfree_skb(resp);
1078 struct sk_buff *resp)
1085 if (IS_ERR(resp)) {
1086 rc = PTR_ERR(resp);
1087 resp = NULL;
1091 rc = ddev->skb_check_crc(resp);
1097 rc = digital_skb_pull_dep_sod(ddev, resp);
1103 if (resp->len > ddev->local_payload_max) {
1109 dep_req = (struct digital_dep_req_res *)resp->data;
1111 if (resp->len < size || dep_req->dir != DIGITAL_NFC_DEP_FRAME_DIR_OUT ||
1120 if (ddev->did && (ddev->did == resp->data[3])) {
1136 if (size > resp->len) {
1141 skb_pull(resp, size);
1153 /* pni of resp PDU equal to the target current pni - 1
1154 * means resp is the previous DEP_REQ PDU received from
1184 resp = digital_recv_dep_data_gather(ddev, pfb, resp,
1186 if (IS_ERR(resp)) {
1187 rc = PTR_ERR(resp);
1188 resp = NULL;
1192 /* If resp is NULL then we're still chaining so return and
1196 if (!resp)
1275 rc = nfc_tm_data_received(ddev->nfc_dev, resp);
1277 resp = NULL;
1289 kfree_skb(resp);
1294 dev_kfree_skb(resp);
1349 void *arg, struct sk_buff *resp)
1353 if (IS_ERR(resp))
1362 dev_kfree_skb(resp);
1399 struct sk_buff *resp)
1406 if (IS_ERR(resp)) {
1407 rc = PTR_ERR(resp);
1408 resp = NULL;
1412 rc = ddev->skb_check_crc(resp);
1418 rc = digital_skb_pull_dep_sod(ddev, resp);
1424 psl_req = (struct digital_psl_req *)resp->data;
1426 if (resp->len != sizeof(struct digital_psl_req) ||
1464 kfree_skb(resp);
1468 void *arg, struct sk_buff *resp)
1472 if (IS_ERR(resp)) {
1478 if (resp->data[0] == DIGITAL_NFC_DEP_NFCA_SOD_SB)
1483 if (resp->data[offset] == DIGITAL_CMD_PSL_REQ)
1484 digital_tg_recv_psl_req(ddev, arg, resp);
1486 digital_tg_recv_dep_req(ddev, arg, resp);
1542 struct sk_buff *resp)
1549 if (IS_ERR(resp)) {
1550 rc = PTR_ERR(resp);
1551 resp = NULL;
1555 if (!resp->len) {
1560 if (resp->data[0] == DIGITAL_NFC_DEP_NFCA_SOD_SB) {
1568 if (resp->len < min_size) {
1575 rc = ddev->skb_check_crc(resp);
1581 rc = digital_skb_pull_dep_sod(ddev, resp);
1587 atr_req = (struct digital_atr_req *)resp->data;
1615 gb_len = resp->len - sizeof(struct digital_atr_req);
1632 dev_kfree_skb(resp);