Lines Matching refs:fp

848  * @fp: The I/O frame
864 static bool fcoe_oem_match(struct fc_frame *fp)
866 struct fc_frame_header *fh = fc_frame_header_get(fp);
869 if (fc_fcp_is_read(fr_fsp(fp)) &&
870 (fr_fsp(fp)->data_len > fcoe_ddp_min))
872 else if ((fr_fsp(fp) == NULL) &&
875 fcp = fc_frame_payload_get(fp, sizeof(*fcp));
1581 * @fp: The frame to be transmitted
1585 static int fcoe_xmit(struct fc_lport *lport, struct fc_frame *fp)
1603 WARN_ON((fr_len(fp) % sizeof(u32)) != 0);
1605 fh = fc_frame_header_get(fp);
1606 skb = fp_skb(fp);
1618 sof = fr_sof(fp);
1619 eof = fr_eof(fp);
1634 crc = fcoe_fc_crc(fp);
1698 if (lport->seq_offload && fr_max_payload(fp)) {
1700 skb_shinfo(skb)->gso_size = fr_max_payload(fp);
1712 fr_dev(fp) = lport;
1729 * @fp: The received frame
1734 struct fc_frame *fp)
1739 struct sk_buff *skb = (struct sk_buff *)fp;
1748 fr_flags(fp) &= ~FCPHF_CRC_UNCHECKED;
1750 fr_flags(fp) |= FCPHF_CRC_UNCHECKED;
1753 fh = fc_frame_header_get(fp);
1759 if (is_fip_mode(ctlr) && fc_frame_payload_op(fp) == ELS_LOGO &&
1765 if (!(fr_flags(fp) & FCPHF_CRC_UNCHECKED) ||
1766 le32_to_cpu(fr_crc(fp)) == ~crc32(~0, skb->data, skb->len)) {
1767 fr_flags(fp) &= ~FCPHF_CRC_UNCHECKED;
1790 struct fc_frame *fp;
1837 fp = (struct fc_frame *)skb;
1838 fc_frame_init(fp);
1839 fr_dev(fp) = lport;
1840 fr_sof(fp) = hp->fcoe_sof;
1845 fr_eof(fp) = crc_eof.fcoe_eof;
1846 fr_crc(fp) = crc_eof.fcoe_crc32;
1850 if (!fcoe_filter_frames(lport, fp)) {
1852 fc_exch_recv(lport, fp);
2728 * @fp: response frame, or error encoded in a pointer (timeout)
2734 static void fcoe_flogi_resp(struct fc_seq *seq, struct fc_frame *fp, void *arg)
2741 if (IS_ERR(fp))
2744 mac = fr_cb(fp)->granted_mac;
2747 fcoe_ctlr_recv_flogi(fip, lport, fp);
2751 fc_lport_flogi_resp(seq, fp, lport);
2757 * @fp: response frame, or error encoded in a pointer (timeout)
2763 static void fcoe_logo_resp(struct fc_seq *seq, struct fc_frame *fp, void *arg)
2768 if (!IS_ERR(fp))
2770 fc_lport_logo_resp(seq, fp, lport);
2783 struct fc_frame *fp, unsigned int op,
2792 struct fc_frame_header *fh = fc_frame_header_get(fp);
2799 return fc_elsct_send(lport, did, fp, op, fcoe_flogi_resp,
2805 return fc_elsct_send(lport, did, fp, op, fcoe_logo_resp,
2808 return fc_elsct_send(lport, did, fp, op, resp, arg, timeout);
2915 struct fc_frame *fp;
2926 fp = fc_frame_alloc(lport,
2929 if (!fp)
2931 lport->tt.elsct_send(lport, FC_FID_DIR_SERV, fp, FC_NS_RSPN_ID,
2949 * @fp: the received frame, if any, that caused the port_id to be set.
2958 u32 port_id, struct fc_frame *fp)
2964 if (fp && fc_frame_payload_op(fp) == ELS_FLOGI)
2965 fcoe_ctlr_recv_flogi(ctlr, lport, fp);