Lines Matching refs:resp
400 struct sk_buff *resp; in pn533_send_async_complete() local
411 resp = cmd->resp; in pn533_send_async_complete()
416 dev_kfree_skb(resp); in pn533_send_async_complete()
421 if (!resp) in pn533_send_async_complete()
422 resp = ERR_PTR(-EINTR); in pn533_send_async_complete()
424 if (!IS_ERR(resp)) { in pn533_send_async_complete()
425 skb_pull(resp, dev->ops->rx_header_len); in pn533_send_async_complete()
426 skb_trim(resp, resp->len - dev->ops->rx_tail_len); in pn533_send_async_complete()
429 rc = cmd->complete_cb(dev, cmd->complete_cb_context, resp); in pn533_send_async_complete()
584 struct sk_buff *resp; member
589 struct sk_buff *resp) in pn533_send_sync_complete() argument
593 arg->resp = resp; in pn533_send_sync_complete()
633 return arg.resp; in pn533_send_cmd_sync()
990 static int pn533_start_poll_complete(struct pn533 *dev, struct sk_buff *resp) in pn533_start_poll_complete() argument
999 nbtg = resp->data[0]; in pn533_start_poll_complete()
1000 tg = resp->data[1]; in pn533_start_poll_complete()
1001 tgdata = &resp->data[2]; in pn533_start_poll_complete()
1002 tgdata_len = resp->len - 2; /* nbtg + tg */ in pn533_start_poll_complete()
1072 struct sk_buff *resp) in pn533_tm_get_data_complete() argument
1078 if (IS_ERR(resp)) { in pn533_tm_get_data_complete()
1080 return PTR_ERR(resp); in pn533_tm_get_data_complete()
1083 status = resp->data[0]; in pn533_tm_get_data_complete()
1088 skb_pull(resp, sizeof(status)); in pn533_tm_get_data_complete()
1095 skb_queue_tail(&dev->resp_q, resp); in pn533_tm_get_data_complete()
1114 dev_kfree_skb(resp); in pn533_tm_get_data_complete()
1140 struct sk_buff *resp);
1195 static int pn533_init_target_complete(struct pn533 *dev, struct sk_buff *resp) in pn533_init_target_complete() argument
1201 if (resp->len < ATR_REQ_GB_OFFSET + 1) in pn533_init_target_complete()
1204 mode = resp->data[0]; in pn533_init_target_complete()
1205 cmd = &resp->data[1]; in pn533_init_target_complete()
1208 mode, resp->len); in pn533_init_target_complete()
1218 gb_len = resp->len - (ATR_REQ_GB_OFFSET + 1); in pn533_init_target_complete()
1247 struct sk_buff *resp) in pn533_rf_complete() argument
1251 if (IS_ERR(resp)) { in pn533_rf_complete()
1252 rc = PTR_ERR(resp); in pn533_rf_complete()
1262 dev_kfree_skb(resp); in pn533_rf_complete()
1288 struct sk_buff *resp) in pn533_poll_dep_complete() argument
1295 if (IS_ERR(resp)) in pn533_poll_dep_complete()
1296 return PTR_ERR(resp); in pn533_poll_dep_complete()
1300 rsp = (struct pn533_cmd_jump_dep_response *)resp->data; in pn533_poll_dep_complete()
1307 dev_kfree_skb(resp); in pn533_poll_dep_complete()
1324 target_gt_len = resp->len - 17; in pn533_poll_dep_complete()
1336 dev_kfree_skb(resp); in pn533_poll_dep_complete()
1398 struct sk_buff *resp) in pn533_autopoll_complete() argument
1405 if (IS_ERR(resp)) { in pn533_autopoll_complete()
1406 rc = PTR_ERR(resp); in pn533_autopoll_complete()
1422 nbtg = resp->data[0]; in pn533_autopoll_complete()
1426 apr = (struct pn532_autopoll_resp *)&resp->data[1]; in pn533_autopoll_complete()
1481 dev_kfree_skb(resp); in pn533_autopoll_complete()
1493 struct sk_buff *resp) in pn533_poll_complete() argument
1498 if (IS_ERR(resp)) { in pn533_poll_complete()
1499 rc = PTR_ERR(resp); in pn533_poll_complete()
1519 rc = pn533_init_target_complete(dev, resp); in pn533_poll_complete()
1524 rc = pn533_start_poll_complete(dev, resp); in pn533_poll_complete()
1538 dev_kfree_skb(resp); in pn533_poll_complete()
1766 struct sk_buff *resp; in pn533_activate_target_nfcdep() local
1775 resp = pn533_send_cmd_sync(dev, PN533_CMD_IN_ATR, skb); in pn533_activate_target_nfcdep()
1776 if (IS_ERR(resp)) in pn533_activate_target_nfcdep()
1777 return PTR_ERR(resp); in pn533_activate_target_nfcdep()
1779 rsp = (struct pn533_cmd_activate_response *)resp->data; in pn533_activate_target_nfcdep()
1784 dev_kfree_skb(resp); in pn533_activate_target_nfcdep()
1789 gt_len = resp->len - 16; in pn533_activate_target_nfcdep()
1792 dev_kfree_skb(resp); in pn533_activate_target_nfcdep()
1845 struct sk_buff *resp) in pn533_deactivate_target_complete() argument
1849 if (IS_ERR(resp)) { in pn533_deactivate_target_complete()
1850 rc = PTR_ERR(resp); in pn533_deactivate_target_complete()
1857 rc = resp->data[0] & PN533_CMD_RET_MASK; in pn533_deactivate_target_complete()
1862 dev_kfree_skb(resp); in pn533_deactivate_target_complete()
1897 struct sk_buff *resp) in pn533_in_dep_link_up_complete() argument
1906 if (IS_ERR(resp)) in pn533_in_dep_link_up_complete()
1907 return PTR_ERR(resp); in pn533_in_dep_link_up_complete()
1917 rsp = (struct pn533_cmd_jump_dep_response *)resp->data; in pn533_in_dep_link_up_complete()
1946 target_gt_len = resp->len - 17; in pn533_in_dep_link_up_complete()
1955 dev_kfree_skb(resp); in pn533_in_dep_link_up_complete()
2101 struct sk_buff *resp) in pn533_data_exchange_complete() argument
2108 if (IS_ERR(resp)) { in pn533_data_exchange_complete()
2109 rc = PTR_ERR(resp); in pn533_data_exchange_complete()
2113 status = resp->data[0]; in pn533_data_exchange_complete()
2117 skb_pull(resp, sizeof(status)); in pn533_data_exchange_complete()
2126 skb_queue_tail(&dev->resp_q, resp); in pn533_data_exchange_complete()
2153 dev_kfree_skb(resp); in pn533_data_exchange_complete()
2199 dev->cmd->resp = skb; in pn533_recv_frame()
2323 struct sk_buff *resp) in pn533_tm_send_complete() argument
2327 if (IS_ERR(resp)) in pn533_tm_send_complete()
2328 return PTR_ERR(resp); in pn533_tm_send_complete()
2330 status = resp->data[0]; in pn533_tm_send_complete()
2337 dev_kfree_skb(resp); in pn533_tm_send_complete()
2493 struct sk_buff *resp; in pn533_set_configuration() local
2505 resp = pn533_send_cmd_sync(dev, PN533_CMD_RF_CONFIGURATION, skb); in pn533_set_configuration()
2506 if (IS_ERR(resp)) in pn533_set_configuration()
2507 return PTR_ERR(resp); in pn533_set_configuration()
2509 dev_kfree_skb(resp); in pn533_set_configuration()
2517 struct sk_buff *resp; in pn533_get_firmware_version() local
2523 resp = pn533_send_cmd_sync(dev, PN533_CMD_GET_FIRMWARE_VERSION, skb); in pn533_get_firmware_version()
2524 if (IS_ERR(resp)) in pn533_get_firmware_version()
2525 return PTR_ERR(resp); in pn533_get_firmware_version()
2527 fv->ic = resp->data[0]; in pn533_get_firmware_version()
2528 fv->ver = resp->data[1]; in pn533_get_firmware_version()
2529 fv->rev = resp->data[2]; in pn533_get_firmware_version()
2530 fv->support = resp->data[3]; in pn533_get_firmware_version()
2532 dev_kfree_skb(resp); in pn533_get_firmware_version()
2539 struct sk_buff *resp; in pn533_pasori_fw_reset() local
2547 resp = pn533_send_cmd_sync(dev, 0x18, skb); in pn533_pasori_fw_reset()
2548 if (IS_ERR(resp)) in pn533_pasori_fw_reset()
2549 return PTR_ERR(resp); in pn533_pasori_fw_reset()
2551 dev_kfree_skb(resp); in pn533_pasori_fw_reset()
2578 struct sk_buff *resp; in pn532_sam_configuration() local
2586 resp = pn533_send_cmd_sync(dev, PN533_CMD_SAM_CONFIGURATION, skb); in pn532_sam_configuration()
2587 if (IS_ERR(resp)) in pn532_sam_configuration()
2588 return PTR_ERR(resp); in pn532_sam_configuration()
2590 dev_kfree_skb(resp); in pn532_sam_configuration()