Lines Matching refs:fp

71 	struct fc_frame *fp;
77 fp = cmd->req_frame;
78 if (fr_seq(fp))
79 fc_seq_release(fr_seq(fp));
80 fc_frame_free(fp);
103 struct fc_frame *fp;
116 fp = fc_frame_alloc(lport, len);
117 if (!fp) {
122 fcp = fc_frame_payload_get(fp, len);
149 fc_fill_fc_hdr(fp, FC_RCTL_DD_CMD_STATUS, ep->did, ep->sid, FC_TYPE_FCP,
152 rc = fc_seq_send(lport, cmd->seq, fp);
155 "xid <0x%x>\n", __func__, fp, ep->xid);
180 struct fc_frame *fp;
193 fp = fc_frame_alloc(lport, sizeof(*txrdy));
194 if (!fp)
197 txrdy = fc_frame_payload_get(fp, sizeof(*txrdy));
202 fc_fill_fc_hdr(fp, FC_RCTL_DD_DATA_DESC, ep->did, ep->sid, FC_TYPE_FCP,
205 fh = fc_frame_header_get(fp);
222 fc_seq_send(lport, cmd->seq, fp);
229 static void ft_recv_seq(struct fc_seq *sp, struct fc_frame *fp, void *arg)
234 if (IS_ERR(fp)) {
241 fh = fc_frame_header_get(fp);
245 ft_recv_write_data(cmd, fp);
254 fc_frame_free(fp);
269 struct fc_frame *fp;
282 fp = fc_frame_alloc(lport, len);
283 if (!fp)
285 fcp = fc_frame_payload_get(fp, len);
295 fc_fill_reply_hdr(fp, rx_fp, FC_RCTL_DD_CMD_STATUS, 0);
296 sp = fr_seq(fp);
298 fc_seq_send(lport, sp, fp);
301 lport->tt.frame_send(lport, fp);
420 static void ft_recv_cmd(struct ft_sess *sess, struct fc_frame *fp)
437 cmd->seq = fc_seq_assign(lport, fp);
442 cmd->req_frame = fp; /* hold frame during cmd */
450 ft_send_resp_status(lport, fp, SAM_STAT_BUSY, 0);
451 fc_frame_free(fp);
460 void ft_recv_req(struct ft_sess *sess, struct fc_frame *fp)
462 struct fc_frame_header *fh = fc_frame_header_get(fp);
466 ft_recv_cmd(sess, fp);
476 fc_frame_free(fp);