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);
592 struct sk_buff *resp;
597 struct sk_buff *resp)
601 arg->resp = resp;
641 return arg.resp;
998 static int pn533_start_poll_complete(struct pn533 *dev, struct sk_buff *resp)
1007 nbtg = resp->data[0];
1008 tg = resp->data[1];
1009 tgdata = &resp->data[2];
1010 tgdata_len = resp->len - 2; /* nbtg + tg */
1080 struct sk_buff *resp)
1088 if (IS_ERR(resp)) {
1090 return PTR_ERR(resp);
1093 status = resp->data[0];
1098 skb_pull(resp, sizeof(status));
1105 skb_queue_tail(&dev->resp_q, resp);
1124 dev_kfree_skb(resp);
1152 struct sk_buff *resp);
1211 static int pn533_init_target_complete(struct pn533 *dev, struct sk_buff *resp)
1219 if (resp->len < ATR_REQ_GB_OFFSET + 1)
1222 mode = resp->data[0];
1223 cmd = &resp->data[1];
1226 mode, resp->len);
1236 gb_len = resp->len - (ATR_REQ_GB_OFFSET + 1);
1267 struct sk_buff *resp)
1273 if (IS_ERR(resp)) {
1274 rc = PTR_ERR(resp);
1284 dev_kfree_skb(resp);
1312 struct sk_buff *resp)
1319 if (IS_ERR(resp))
1320 return PTR_ERR(resp);
1324 rsp = (struct pn533_cmd_jump_dep_response *)resp->data;
1331 dev_kfree_skb(resp);
1348 target_gt_len = resp->len - 17;
1360 dev_kfree_skb(resp);
1424 struct sk_buff *resp)
1431 if (IS_ERR(resp)) {
1432 rc = PTR_ERR(resp);
1448 nbtg = resp->data[0];
1452 apr = (struct pn532_autopoll_resp *)&resp->data[1];
1507 dev_kfree_skb(resp);
1519 struct sk_buff *resp)
1526 if (IS_ERR(resp)) {
1527 rc = PTR_ERR(resp);
1547 rc = pn533_init_target_complete(dev, resp);
1552 rc = pn533_start_poll_complete(dev, resp);
1566 dev_kfree_skb(resp);
1794 struct sk_buff *resp;
1805 resp = pn533_send_cmd_sync(dev, PN533_CMD_IN_ATR, skb);
1806 if (IS_ERR(resp))
1807 return PTR_ERR(resp);
1809 rsp = (struct pn533_cmd_activate_response *)resp->data;
1814 dev_kfree_skb(resp);
1819 gt_len = resp->len - 16;
1822 dev_kfree_skb(resp);
1875 struct sk_buff *resp)
1881 if (IS_ERR(resp)) {
1882 rc = PTR_ERR(resp);
1889 rc = resp->data[0] & PN533_CMD_RET_MASK;
1894 dev_kfree_skb(resp);
1931 struct sk_buff *resp)
1940 if (IS_ERR(resp))
1941 return PTR_ERR(resp);
1951 rsp = (struct pn533_cmd_jump_dep_response *)resp->data;
1980 target_gt_len = resp->len - 17;
1989 dev_kfree_skb(resp);
2141 struct sk_buff *resp)
2150 if (IS_ERR(resp)) {
2151 rc = PTR_ERR(resp);
2155 status = resp->data[0];
2159 skb_pull(resp, sizeof(status));
2168 skb_queue_tail(&dev->resp_q, resp);
2195 dev_kfree_skb(resp);
2241 dev->cmd->resp = skb;
2367 struct sk_buff *resp)
2373 if (IS_ERR(resp))
2374 return PTR_ERR(resp);
2376 status = resp->data[0];
2383 dev_kfree_skb(resp);
2545 struct sk_buff *resp;
2559 resp = pn533_send_cmd_sync(dev, PN533_CMD_RF_CONFIGURATION, skb);
2560 if (IS_ERR(resp))
2561 return PTR_ERR(resp);
2563 dev_kfree_skb(resp);
2571 struct sk_buff *resp;
2577 resp = pn533_send_cmd_sync(dev, PN533_CMD_GET_FIRMWARE_VERSION, skb);
2578 if (IS_ERR(resp))
2579 return PTR_ERR(resp);
2581 fv->ic = resp->data[0];
2582 fv->ver = resp->data[1];
2583 fv->rev = resp->data[2];
2584 fv->support = resp->data[3];
2586 dev_kfree_skb(resp);
2593 struct sk_buff *resp;
2603 resp = pn533_send_cmd_sync(dev, 0x18, skb);
2604 if (IS_ERR(resp))
2605 return PTR_ERR(resp);
2607 dev_kfree_skb(resp);
2634 struct sk_buff *resp;
2642 resp = pn533_send_cmd_sync(dev, PN533_CMD_SAM_CONFIGURATION, skb);
2643 if (IS_ERR(resp))
2644 return PTR_ERR(resp);
2646 dev_kfree_skb(resp);