Lines Matching refs:fp

80  * @fp:	   The RSCN frame
85 static void fc_disc_recv_rscn_req(struct fc_disc *disc, struct fc_frame *fp)
103 rp = fc_frame_payload_get(fp, sizeof(*rp));
114 rp = fc_frame_payload_get(fp, len);
153 lport->tt.seq_els_rsp_send(fp, ELS_LS_ACC, NULL);
175 fc_frame_free(fp);
181 lport->tt.seq_els_rsp_send(fp, ELS_LS_RJT, &rjt_data);
182 fc_frame_free(fp);
188 * @fp: The request frame
194 static void fc_disc_recv_req(struct fc_lport *lport, struct fc_frame *fp)
199 op = fc_frame_payload_op(fp);
203 fc_disc_recv_rscn_req(disc, fp);
209 fc_frame_free(fp);
309 * @fp: The error code encoded as a frame pointer
311 static void fc_disc_error(struct fc_disc *disc, struct fc_frame *fp)
317 PTR_ERR(fp), disc->retry_count,
320 if (!fp || PTR_ERR(fp) == -FC_EX_TIMEOUT) {
327 if (!fp)
340 } else if (PTR_ERR(fp) == -FC_EX_CLOSED) {
359 struct fc_frame *fp;
369 fp = fc_frame_alloc(lport,
372 if (!fp)
375 if (lport->tt.elsct_send(lport, 0, fp,
503 * @fp: The GPN_FT response frame
509 static void fc_disc_gpn_ft_resp(struct fc_seq *sp, struct fc_frame *fp,
523 if (IS_ERR(fp)) {
524 fc_disc_error(disc, fp);
529 WARN_ON(!fc_frame_is_linear(fp)); /* buffer must be contiguous */
530 fh = fc_frame_header_get(fp);
531 len = fr_len(fp) - sizeof(*fh);
533 if (fr_sof(fp) == FC_SOF_I3 && seq_cnt == 0 && disc->seq_count == 0) {
534 cp = fc_frame_payload_get(fp, sizeof(*cp));
537 fr_len(fp));
557 } else if (fr_sof(fp) == FC_SOF_N3 && seq_cnt == disc->seq_count) {
562 seq_cnt, disc->seq_count, fr_sof(fp), fr_eof(fp));
566 fc_disc_error(disc, fp);
569 fc_frame_free(fp);
576 * @fp: The response frame
581 static void fc_disc_gpn_id_resp(struct fc_seq *sp, struct fc_frame *fp,
596 if (PTR_ERR(fp) == -FC_EX_CLOSED)
598 if (IS_ERR(fp))
601 cp = fc_frame_payload_get(fp, sizeof(*cp));
605 if (fr_len(fp) < sizeof(struct fc_frame_header) +
655 struct fc_frame *fp;
657 fp = fc_frame_alloc(lport, sizeof(struct fc_ct_hdr) +
659 if (!fp)
661 if (!lport->tt.elsct_send(lport, rdata->ids.port_id, fp, FC_NS_GPN_ID,