Lines Matching refs:fc_hdr
3195 struct fc_frame_header *fc_hdr; in lpfc_nvme_unsol_ls_handler() local
3204 fc_hdr = nvmebuf->hbuf.virt; in lpfc_nvme_unsol_ls_handler()
3205 oxid = be16_to_cpu(fc_hdr->fh_ox_id); in lpfc_nvme_unsol_ls_handler()
3206 sid = sli4_sid_from_fc_hdr(fc_hdr); in lpfc_nvme_unsol_ls_handler()
3207 did = sli4_did_from_fc_hdr(fc_hdr); in lpfc_nvme_unsol_ls_handler()
3208 fctl = (fc_hdr->fh_f_ctl[0] << 16 | in lpfc_nvme_unsol_ls_handler()
3209 fc_hdr->fh_f_ctl[1] << 8 | in lpfc_nvme_unsol_ls_handler()
3210 fc_hdr->fh_f_ctl[2]); in lpfc_nvme_unsol_ls_handler()
3224 } else if (unlikely(fc_hdr->fh_r_ctl != FC_RCTL_ELS4_REQ)) { in lpfc_nvme_unsol_ls_handler()
14858 struct fc_frame_header *fc_hdr; in lpfc_sli4_sp_handle_rcqe() local
14896 fc_hdr = (struct fc_frame_header *)dma_buf->hbuf.virt; in lpfc_sli4_sp_handle_rcqe()
14898 if (fc_hdr->fh_r_ctl == FC_RCTL_MDS_DIAGS || in lpfc_sli4_sp_handle_rcqe()
14899 fc_hdr->fh_r_ctl == FC_RCTL_DD_UNSOL_DATA) { in lpfc_sli4_sp_handle_rcqe()
15385 struct fc_frame_header *fc_hdr; in lpfc_sli4_nvmet_handle_rcqe() local
15430 fc_hdr = (struct fc_frame_header *)dma_buf->hbuf.virt; in lpfc_sli4_nvmet_handle_rcqe()
15433 fctl = (fc_hdr->fh_f_ctl[0] << 16 | in lpfc_sli4_nvmet_handle_rcqe()
15434 fc_hdr->fh_f_ctl[1] << 8 | in lpfc_sli4_nvmet_handle_rcqe()
15435 fc_hdr->fh_f_ctl[2]); in lpfc_sli4_nvmet_handle_rcqe()
15439 (fc_hdr->fh_seq_cnt != 0)) /* 0 byte swapped is still 0 */ in lpfc_sli4_nvmet_handle_rcqe()
15442 if (fc_hdr->fh_type == FC_TYPE_FCP) { in lpfc_sli4_nvmet_handle_rcqe()
18618 lpfc_fc_frame_check(struct lpfc_hba *phba, struct fc_frame_header *fc_hdr) in lpfc_fc_frame_check() argument
18622 uint32_t *header = (uint32_t *) fc_hdr; in lpfc_fc_frame_check()
18626 switch (fc_hdr->fh_r_ctl) { in lpfc_fc_frame_check()
18656 fc_vft_hdr = (struct fc_vft_header *)fc_hdr; in lpfc_fc_frame_check()
18657 fc_hdr = &((struct fc_frame_header *)fc_vft_hdr)[1]; in lpfc_fc_frame_check()
18658 return lpfc_fc_frame_check(phba, fc_hdr); in lpfc_fc_frame_check()
18664 switch (fc_hdr->fh_type) { in lpfc_fc_frame_check()
18680 fc_hdr->fh_r_ctl, fc_hdr->fh_type, in lpfc_fc_frame_check()
18689 fc_hdr->fh_r_ctl, fc_hdr->fh_type); in lpfc_fc_frame_check()
18702 lpfc_fc_hdr_get_vfi(struct fc_frame_header *fc_hdr) in lpfc_fc_hdr_get_vfi() argument
18704 struct fc_vft_header *fc_vft_hdr = (struct fc_vft_header *)fc_hdr; in lpfc_fc_hdr_get_vfi()
18706 if (fc_hdr->fh_r_ctl != FC_RCTL_VFTH) in lpfc_fc_hdr_get_vfi()
18725 lpfc_fc_frame_to_vport(struct lpfc_hba *phba, struct fc_frame_header *fc_hdr, in lpfc_fc_frame_to_vport() argument
18742 vports[i]->vfi == lpfc_fc_hdr_get_vfi(fc_hdr) && in lpfc_fc_frame_to_vport()
19092 struct fc_frame_header *fc_hdr, bool aborted) in lpfc_sli4_seq_abort_rsp() argument
19105 sid = sli4_sid_from_fc_hdr(fc_hdr); in lpfc_sli4_seq_abort_rsp()
19106 oxid = be16_to_cpu(fc_hdr->fh_ox_id); in lpfc_sli4_seq_abort_rsp()
19107 rxid = be16_to_cpu(fc_hdr->fh_rx_id); in lpfc_sli4_seq_abort_rsp()
19128 fctl = sli4_fctl_from_fc_hdr(fc_hdr); in lpfc_sli4_seq_abort_rsp()
19241 struct fc_frame_header fc_hdr; in lpfc_sli4_handle_unsol_abort() local
19246 memcpy(&fc_hdr, dmabuf->hbuf.virt, sizeof(struct fc_frame_header)); in lpfc_sli4_handle_unsol_abort()
19247 fctl = sli4_fctl_from_fc_hdr(&fc_hdr); in lpfc_sli4_handle_unsol_abort()
19261 lpfc_nvmet_rcv_unsol_abort(vport, &fc_hdr); in lpfc_sli4_handle_unsol_abort()
19266 lpfc_sli4_seq_abort_rsp(vport, &fc_hdr, aborted); in lpfc_sli4_handle_unsol_abort()
19335 struct fc_frame_header *fc_hdr; in lpfc_prep_seq() local
19340 fc_hdr = (struct fc_frame_header *)seq_dmabuf->hbuf.virt; in lpfc_prep_seq()
19345 sid = sli4_sid_from_fc_hdr(fc_hdr); in lpfc_prep_seq()
19356 if (sli4_type_from_fc_hdr(fc_hdr) == FC_TYPE_ELS) { in lpfc_prep_seq()
19359 sli4_did_from_fc_hdr(fc_hdr); in lpfc_prep_seq()
19365 be16_to_cpu(fc_hdr->fh_ox_id); in lpfc_prep_seq()
19455 struct fc_frame_header *fc_hdr; in lpfc_sli4_send_seq_to_ulp() local
19459 fc_hdr = (struct fc_frame_header *)seq_dmabuf->hbuf.virt; in lpfc_sli4_send_seq_to_ulp()
19466 fc_hdr->fh_r_ctl, fc_hdr->fh_type); in lpfc_sli4_send_seq_to_ulp()
19471 iocbq, fc_hdr->fh_r_ctl, in lpfc_sli4_send_seq_to_ulp()
19472 fc_hdr->fh_type)) { in lpfc_sli4_send_seq_to_ulp()
19477 fc_hdr->fh_r_ctl, fc_hdr->fh_type); in lpfc_sli4_send_seq_to_ulp()
19507 struct fc_frame_header *fc_hdr; in lpfc_sli4_handle_mds_loopback() local
19516 fc_hdr = (struct fc_frame_header *)dmabuf->hbuf.virt; in lpfc_sli4_handle_mds_loopback()
19563 wqe->send_frame.fc_hdr_wd0 = be32_to_cpu(*((uint32_t *)fc_hdr)); in lpfc_sli4_handle_mds_loopback()
19564 wqe->send_frame.fc_hdr_wd1 = be32_to_cpu(*((uint32_t *)fc_hdr + 1)); in lpfc_sli4_handle_mds_loopback()
19565 wqe->send_frame.fc_hdr_wd2 = be32_to_cpu(*((uint32_t *)fc_hdr + 2)); in lpfc_sli4_handle_mds_loopback()
19566 wqe->send_frame.fc_hdr_wd3 = be32_to_cpu(*((uint32_t *)fc_hdr + 3)); in lpfc_sli4_handle_mds_loopback()
19567 wqe->send_frame.fc_hdr_wd4 = be32_to_cpu(*((uint32_t *)fc_hdr + 4)); in lpfc_sli4_handle_mds_loopback()
19568 wqe->send_frame.fc_hdr_wd5 = be32_to_cpu(*((uint32_t *)fc_hdr + 5)); in lpfc_sli4_handle_mds_loopback()
19608 struct fc_frame_header *fc_hdr; in lpfc_sli4_handle_received_buffer() local
19614 fc_hdr = (struct fc_frame_header *)dmabuf->hbuf.virt; in lpfc_sli4_handle_received_buffer()
19616 if (fc_hdr->fh_r_ctl == FC_RCTL_MDS_DIAGS || in lpfc_sli4_handle_received_buffer()
19617 fc_hdr->fh_r_ctl == FC_RCTL_DD_UNSOL_DATA) { in lpfc_sli4_handle_received_buffer()
19628 if (lpfc_fc_frame_check(phba, fc_hdr)) { in lpfc_sli4_handle_received_buffer()
19641 if (fc_hdr->fh_r_ctl == 0xF4 && fc_hdr->fh_type == 0xFF) { in lpfc_sli4_handle_received_buffer()
19653 did = sli4_did_from_fc_hdr(fc_hdr); in lpfc_sli4_handle_received_buffer()
19655 vport = lpfc_fc_frame_to_vport(phba, fc_hdr, fcfi, did); in lpfc_sli4_handle_received_buffer()
19678 if (fc_hdr->fh_r_ctl == FC_RCTL_BA_ABTS) { in lpfc_sli4_handle_received_buffer()