Lines Matching refs:fp
85 struct fc_frame *fp; in ft_free_cmd() local
92 fp = cmd->req_frame; in ft_free_cmd()
93 lport = fr_dev(fp); in ft_free_cmd()
94 if (fr_seq(fp)) in ft_free_cmd()
95 lport->tt.seq_release(fr_seq(fp)); in ft_free_cmd()
96 fc_frame_free(fp); in ft_free_cmd()
120 struct fc_frame *fp; in ft_queue_status() local
133 fp = fc_frame_alloc(lport, len); in ft_queue_status()
134 if (!fp) { in ft_queue_status()
139 fcp = fc_frame_payload_get(fp, len); in ft_queue_status()
166 fc_fill_fc_hdr(fp, FC_RCTL_DD_CMD_STATUS, ep->did, ep->sid, FC_TYPE_FCP, in ft_queue_status()
169 rc = lport->tt.seq_send(lport, cmd->seq, fp); in ft_queue_status()
172 "xid <0x%x>\n", __func__, fp, ep->xid); in ft_queue_status()
198 struct fc_frame *fp; in ft_write_pending() local
211 fp = fc_frame_alloc(lport, sizeof(*txrdy)); in ft_write_pending()
212 if (!fp) in ft_write_pending()
215 txrdy = fc_frame_payload_get(fp, sizeof(*txrdy)); in ft_write_pending()
220 fc_fill_fc_hdr(fp, FC_RCTL_DD_DATA_DESC, ep->did, ep->sid, FC_TYPE_FCP, in ft_write_pending()
223 fh = fc_frame_header_get(fp); in ft_write_pending()
240 lport->tt.seq_send(lport, cmd->seq, fp); in ft_write_pending()
252 static void ft_recv_seq(struct fc_seq *sp, struct fc_frame *fp, void *arg) in ft_recv_seq() argument
257 if (IS_ERR(fp)) { in ft_recv_seq()
264 fh = fc_frame_header_get(fp); in ft_recv_seq()
268 ft_recv_write_data(cmd, fp); in ft_recv_seq()
277 fc_frame_free(fp); in ft_recv_seq()
292 struct fc_frame *fp; in ft_send_resp_status() local
305 fp = fc_frame_alloc(lport, len); in ft_send_resp_status()
306 if (!fp) in ft_send_resp_status()
308 fcp = fc_frame_payload_get(fp, len); in ft_send_resp_status()
318 fc_fill_reply_hdr(fp, rx_fp, FC_RCTL_DD_CMD_STATUS, 0); in ft_send_resp_status()
319 sp = fr_seq(fp); in ft_send_resp_status()
321 lport->tt.seq_send(lport, sp, fp); in ft_send_resp_status()
324 lport->tt.frame_send(lport, fp); in ft_send_resp_status()
437 static void ft_recv_cmd(struct ft_sess *sess, struct fc_frame *fp) in ft_recv_cmd() argument
453 cmd->seq = lport->tt.seq_assign(lport, fp); in ft_recv_cmd()
458 cmd->req_frame = fp; /* hold frame during cmd */ in ft_recv_cmd()
466 ft_send_resp_status(lport, fp, SAM_STAT_BUSY, 0); in ft_recv_cmd()
467 fc_frame_free(fp); in ft_recv_cmd()
476 void ft_recv_req(struct ft_sess *sess, struct fc_frame *fp) in ft_recv_req() argument
478 struct fc_frame_header *fh = fc_frame_header_get(fp); in ft_recv_req()
482 ft_recv_cmd(sess, fp); in ft_recv_req()
492 fc_frame_free(fp); in ft_recv_req()