Lines Matching full:resp
95 struct sk_buff *resp);
474 struct sk_buff *resp; member
817 struct sk_buff *resp = cmd->resp; in port100_send_async_complete() local
826 dev_kfree_skb(resp); in port100_send_async_complete()
830 skb_put(resp, port100_rx_frame_size(resp->data)); in port100_send_async_complete()
831 skb_pull(resp, PORT100_FRAME_HEADER_LEN); in port100_send_async_complete()
832 skb_trim(resp, resp->len - PORT100_FRAME_TAIL_LEN); in port100_send_async_complete()
834 cmd->complete_cb(dev, cmd->complete_cb_context, resp); in port100_send_async_complete()
846 struct sk_buff *resp; in port100_send_cmd_async() local
858 resp = alloc_skb(resp_len, GFP_KERNEL); in port100_send_cmd_async()
859 if (!resp) in port100_send_cmd_async()
864 dev_kfree_skb(resp); in port100_send_cmd_async()
870 cmd->resp = resp; in port100_send_cmd_async()
879 rc = port100_send_frame_async(dev, req, resp, resp_len); in port100_send_cmd_async()
882 dev_kfree_skb(resp); in port100_send_cmd_async()
890 struct sk_buff *resp; member
903 struct sk_buff *resp) in port100_send_sync_complete() argument
907 arg->resp = resp; in port100_send_sync_complete()
928 return arg.resp; in port100_send_cmd_sync()
981 struct sk_buff *resp; in port100_set_command_type() local
990 resp = port100_send_cmd_sync(dev, PORT100_CMD_SET_COMMAND_TYPE, skb); in port100_set_command_type()
991 if (IS_ERR(resp)) in port100_set_command_type()
992 return PTR_ERR(resp); in port100_set_command_type()
994 rc = resp->data[0]; in port100_set_command_type()
996 dev_kfree_skb(resp); in port100_set_command_type()
1004 struct sk_buff *resp; in port100_get_command_type_mask() local
1011 resp = port100_send_cmd_sync(dev, PORT100_CMD_GET_COMMAND_TYPE, skb); in port100_get_command_type_mask()
1012 if (IS_ERR(resp)) in port100_get_command_type_mask()
1015 if (resp->len < 8) in port100_get_command_type_mask()
1018 mask = be64_to_cpu(*(__be64 *)resp->data); in port100_get_command_type_mask()
1020 dev_kfree_skb(resp); in port100_get_command_type_mask()
1028 struct sk_buff *resp; in port100_get_firmware_version() local
1035 resp = port100_send_cmd_sync(dev, PORT100_CMD_GET_FIRMWARE_VERSION, in port100_get_firmware_version()
1037 if (IS_ERR(resp)) in port100_get_firmware_version()
1040 fw_ver = le16_to_cpu(*(__le16 *)resp->data); in port100_get_firmware_version()
1042 dev_kfree_skb(resp); in port100_get_firmware_version()
1050 struct sk_buff *skb, *resp; in port100_switch_rf() local
1062 resp = port100_send_cmd_sync(dev, PORT100_CMD_SWITCH_RF, skb); in port100_switch_rf()
1064 if (IS_ERR(resp)) in port100_switch_rf()
1065 return PTR_ERR(resp); in port100_switch_rf()
1067 dev_kfree_skb(resp); in port100_switch_rf()
1076 struct sk_buff *resp; in port100_in_set_rf() local
1089 resp = port100_send_cmd_sync(dev, PORT100_CMD_IN_SET_RF, skb); in port100_in_set_rf()
1091 if (IS_ERR(resp)) in port100_in_set_rf()
1092 return PTR_ERR(resp); in port100_in_set_rf()
1094 rc = resp->data[0]; in port100_in_set_rf()
1096 dev_kfree_skb(resp); in port100_in_set_rf()
1106 struct sk_buff *resp; in port100_in_set_framing() local
1131 resp = port100_send_cmd_sync(dev, PORT100_CMD_IN_SET_PROTOCOL, skb); in port100_in_set_framing()
1133 if (IS_ERR(resp)) in port100_in_set_framing()
1134 return PTR_ERR(resp); in port100_in_set_framing()
1136 rc = resp->data[0]; in port100_in_set_framing()
1138 dev_kfree_skb(resp); in port100_in_set_framing()
1156 struct sk_buff *resp) in port100_in_comm_rf_complete() argument
1163 if (IS_ERR(resp)) { in port100_in_comm_rf_complete()
1164 rc = PTR_ERR(resp); in port100_in_comm_rf_complete()
1168 if (resp->len < 4) { in port100_in_comm_rf_complete()
1175 status = le32_to_cpu(*(__le32 *)resp->data); in port100_in_comm_rf_complete()
1177 skb_pull(resp, sizeof(u32)); in port100_in_comm_rf_complete()
1192 skb_pull(resp, 1); in port100_in_comm_rf_complete()
1197 kfree_skb(resp); in port100_in_comm_rf_complete()
1198 resp = ERR_PTR(rc); in port100_in_comm_rf_complete()
1201 cb(dev->nfc_digital_dev, cb_arg->complete_arg, resp); in port100_in_comm_rf_complete()
1233 struct sk_buff *resp; in port100_tg_set_rf() local
1246 resp = port100_send_cmd_sync(dev, PORT100_CMD_TG_SET_RF, skb); in port100_tg_set_rf()
1248 if (IS_ERR(resp)) in port100_tg_set_rf()
1249 return PTR_ERR(resp); in port100_tg_set_rf()
1251 rc = resp->data[0]; in port100_tg_set_rf()
1253 dev_kfree_skb(resp); in port100_tg_set_rf()
1263 struct sk_buff *resp; in port100_tg_set_framing() local
1288 resp = port100_send_cmd_sync(dev, PORT100_CMD_TG_SET_PROTOCOL, skb); in port100_tg_set_framing()
1290 if (IS_ERR(resp)) in port100_tg_set_framing()
1291 return PTR_ERR(resp); in port100_tg_set_framing()
1293 rc = resp->data[0]; in port100_tg_set_framing()
1295 dev_kfree_skb(resp); in port100_tg_set_framing()
1333 struct sk_buff *resp) in port100_tg_comm_rf_complete() argument
1340 if (IS_ERR(resp)) in port100_tg_comm_rf_complete()
1343 hdr = (struct port100_tg_comm_rf_res *)resp->data; in port100_tg_comm_rf_complete()
1349 kfree_skb(resp); in port100_tg_comm_rf_complete()
1350 resp = ERR_PTR(-ETIMEDOUT); in port100_tg_comm_rf_complete()
1355 skb_pull(resp, sizeof(struct port100_tg_comm_rf_res)); in port100_tg_comm_rf_complete()
1358 kfree_skb(resp); in port100_tg_comm_rf_complete()
1361 resp = ERR_PTR(-ETIMEDOUT); in port100_tg_comm_rf_complete()
1363 resp = ERR_PTR(-EIO); in port100_tg_comm_rf_complete()
1367 cb(dev->nfc_digital_dev, cb_arg->complete_arg, resp); in port100_tg_comm_rf_complete()