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