Lines Matching refs:fp

91 	struct fc_frame *fp;  in ft_free_cmd()  local
98 fp = cmd->req_frame; in ft_free_cmd()
99 lport = fr_dev(fp); in ft_free_cmd()
100 if (fr_seq(fp)) in ft_free_cmd()
101 lport->tt.seq_release(fr_seq(fp)); in ft_free_cmd()
102 fc_frame_free(fp); in ft_free_cmd()
126 struct fc_frame *fp; in ft_queue_status() local
139 fp = fc_frame_alloc(lport, len); in ft_queue_status()
140 if (!fp) { in ft_queue_status()
145 fcp = fc_frame_payload_get(fp, len); in ft_queue_status()
172 fc_fill_fc_hdr(fp, FC_RCTL_DD_CMD_STATUS, ep->did, ep->sid, FC_TYPE_FCP, in ft_queue_status()
175 rc = lport->tt.seq_send(lport, cmd->seq, fp); in ft_queue_status()
178 "xid <0x%x>\n", __func__, fp, ep->xid); in ft_queue_status()
204 struct fc_frame *fp; in ft_write_pending() local
217 fp = fc_frame_alloc(lport, sizeof(*txrdy)); in ft_write_pending()
218 if (!fp) in ft_write_pending()
221 txrdy = fc_frame_payload_get(fp, sizeof(*txrdy)); in ft_write_pending()
226 fc_fill_fc_hdr(fp, FC_RCTL_DD_DATA_DESC, ep->did, ep->sid, FC_TYPE_FCP, in ft_write_pending()
229 fh = fc_frame_header_get(fp); in ft_write_pending()
246 lport->tt.seq_send(lport, cmd->seq, fp); in ft_write_pending()
267 static void ft_recv_seq(struct fc_seq *sp, struct fc_frame *fp, void *arg) in ft_recv_seq() argument
272 if (unlikely(IS_ERR(fp))) { in ft_recv_seq()
279 fh = fc_frame_header_get(fp); in ft_recv_seq()
283 ft_recv_write_data(cmd, fp); in ft_recv_seq()
292 fc_frame_free(fp); in ft_recv_seq()
307 struct fc_frame *fp; in ft_send_resp_status() local
320 fp = fc_frame_alloc(lport, len); in ft_send_resp_status()
321 if (!fp) in ft_send_resp_status()
323 fcp = fc_frame_payload_get(fp, len); in ft_send_resp_status()
333 fc_fill_reply_hdr(fp, rx_fp, FC_RCTL_DD_CMD_STATUS, 0); in ft_send_resp_status()
334 sp = fr_seq(fp); in ft_send_resp_status()
336 lport->tt.seq_send(lport, sp, fp); in ft_send_resp_status()
339 lport->tt.frame_send(lport, fp); in ft_send_resp_status()
452 static void ft_recv_cmd(struct ft_sess *sess, struct fc_frame *fp) in ft_recv_cmd() argument
468 cmd->seq = lport->tt.seq_assign(lport, fp); in ft_recv_cmd()
473 cmd->req_frame = fp; /* hold frame during cmd */ in ft_recv_cmd()
481 ft_send_resp_status(lport, fp, SAM_STAT_BUSY, 0); in ft_recv_cmd()
482 fc_frame_free(fp); in ft_recv_cmd()
491 void ft_recv_req(struct ft_sess *sess, struct fc_frame *fp) in ft_recv_req() argument
493 struct fc_frame_header *fh = fc_frame_header_get(fp); in ft_recv_req()
497 ft_recv_cmd(sess, fp); in ft_recv_req()
507 fc_frame_free(fp); in ft_recv_req()