Lines Matching refs:resp

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