/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/emlxs/ |
H A D | emlxs_els.c | 134 did = LE_SWAP24_LO(pkt->pkt_cmd_fhdr.d_id); in emlxs_els_handle_event() 177 pkt->pkt_resp_fhdr.d_id = pkt->pkt_cmd_fhdr.s_id; in emlxs_els_handle_event() 178 pkt->pkt_resp_fhdr.s_id = pkt->pkt_cmd_fhdr.d_id; in emlxs_els_handle_event() 576 did = LE_SWAP24_LO(pkt->pkt_cmd_fhdr.d_id); in emlxs_handle_sol_flogi() 767 did = LE_SWAP24_LO(pkt->pkt_cmd_fhdr.d_id); in emlxs_handle_sol_fdisc() 837 did = LE_SWAP24_LO(pkt->pkt_cmd_fhdr.d_id); in emlxs_handle_sol_plogi() 838 sid = LE_SWAP24_LO(pkt->pkt_cmd_fhdr.s_id); in emlxs_handle_sol_plogi() 915 did = LE_SWAP24_LO(pkt->pkt_cmd_fhdr.d_id); in emlxs_handle_sol_adisc() 962 did = LE_SWAP24_LO(pkt->pkt_cmd_fhdr.d_id); in emlxs_handle_sol_prli() 1048 did = LE_SWAP24_LO(pkt->pkt_cmd_fhdr.d_id); in emlxs_handle_sol_logo() [all …]
|
H A D | emlxs_diag.c | 190 pkt->pkt_cmd_fhdr.d_id = did; in emlxs_diag_echo_run() 191 pkt->pkt_cmd_fhdr.r_ctl = R_CTL_EXTENDED_SVC | R_CTL_UNSOL_CONTROL; in emlxs_diag_echo_run() 192 pkt->pkt_cmd_fhdr.s_id = port->did; in emlxs_diag_echo_run() 193 pkt->pkt_cmd_fhdr.type = FC_TYPE_EXTENDED_LS; in emlxs_diag_echo_run() 194 pkt->pkt_cmd_fhdr.f_ctl = in emlxs_diag_echo_run() 196 pkt->pkt_cmd_fhdr.seq_id = 0; in emlxs_diag_echo_run() 197 pkt->pkt_cmd_fhdr.df_ctl = 0; in emlxs_diag_echo_run() 198 pkt->pkt_cmd_fhdr.seq_cnt = 0; in emlxs_diag_echo_run() 199 pkt->pkt_cmd_fhdr.ox_id = 0xffff; in emlxs_diag_echo_run() 200 pkt->pkt_cmd_fhdr.rx_id = 0xffff; in emlxs_diag_echo_run() [all …]
|
H A D | emlxs_fct.c | 1868 pkt->pkt_cmd_fhdr.d_id = LE_SWAP24_LO(fx->fx_did); in emlxs_fct_flogi_xchg() 1869 pkt->pkt_cmd_fhdr.r_ctl = in emlxs_fct_flogi_xchg() 1871 pkt->pkt_cmd_fhdr.s_id = LE_SWAP24_LO(fx->fx_sid); in emlxs_fct_flogi_xchg() 1872 pkt->pkt_cmd_fhdr.type = FC_TYPE_EXTENDED_LS; in emlxs_fct_flogi_xchg() 1873 pkt->pkt_cmd_fhdr.f_ctl = F_CTL_FIRST_SEQ | F_CTL_SEQ_INITIATIVE; in emlxs_fct_flogi_xchg() 1874 pkt->pkt_cmd_fhdr.seq_id = 0; in emlxs_fct_flogi_xchg() 1875 pkt->pkt_cmd_fhdr.df_ctl = 0; in emlxs_fct_flogi_xchg() 1876 pkt->pkt_cmd_fhdr.seq_cnt = 0; in emlxs_fct_flogi_xchg() 1877 pkt->pkt_cmd_fhdr.ox_id = 0xffff; in emlxs_fct_flogi_xchg() 1878 pkt->pkt_cmd_fhdr.rx_id = 0xffff; in emlxs_fct_flogi_xchg() [all …]
|
H A D | emlxs_dfc.c | 3229 pkt->pkt_cmd_fhdr.d_id = LE_SWAP24_LO(FABRIC_DID); in emlxs_dfc_destroy_vport() 3230 pkt->pkt_cmd_fhdr.r_ctl = R_CTL_ELS_REQ; in emlxs_dfc_destroy_vport() 3231 pkt->pkt_cmd_fhdr.s_id = LE_SWAP24_LO(vport->did); in emlxs_dfc_destroy_vport() 3232 pkt->pkt_cmd_fhdr.type = FC_TYPE_EXTENDED_LS; in emlxs_dfc_destroy_vport() 3233 pkt->pkt_cmd_fhdr.f_ctl = in emlxs_dfc_destroy_vport() 3235 pkt->pkt_cmd_fhdr.seq_id = 0; in emlxs_dfc_destroy_vport() 3236 pkt->pkt_cmd_fhdr.df_ctl = 0; in emlxs_dfc_destroy_vport() 3237 pkt->pkt_cmd_fhdr.seq_cnt = 0; in emlxs_dfc_destroy_vport() 3238 pkt->pkt_cmd_fhdr.ox_id = 0xFFFF; in emlxs_dfc_destroy_vport() 3239 pkt->pkt_cmd_fhdr.rx_id = 0xFFFF; in emlxs_dfc_destroy_vport() [all …]
|
H A D | emlxs_solaris.c | 2552 switch (pkt->pkt_cmd_fhdr.type) { in emlxs_fca_transport() 2573 switch (pkt->pkt_cmd_fhdr.type) { in emlxs_fca_transport() 3109 pkt->pkt_cmd_fhdr.d_id = ubp->ub_frame.s_id; in emlxs_ub_els_reject() 3110 pkt->pkt_cmd_fhdr.r_ctl = in emlxs_ub_els_reject() 3112 pkt->pkt_cmd_fhdr.s_id = LE_SWAP24_LO(port->did); in emlxs_ub_els_reject() 3113 pkt->pkt_cmd_fhdr.type = FC_TYPE_EXTENDED_LS; in emlxs_ub_els_reject() 3114 pkt->pkt_cmd_fhdr.f_ctl = in emlxs_ub_els_reject() 3116 pkt->pkt_cmd_fhdr.seq_id = 0; in emlxs_ub_els_reject() 3117 pkt->pkt_cmd_fhdr.df_ctl = 0; in emlxs_ub_els_reject() 3118 pkt->pkt_cmd_fhdr.seq_cnt = 0; in emlxs_ub_els_reject() [all …]
|
H A D | emlxs_sli3.c | 2458 (pkt->pkt_cmd_fhdr.type != EMLXS_MENLO_TYPE)) { in emlxs_sli2_bde_setup() 2618 (pkt->pkt_cmd_fhdr.type != EMLXS_MENLO_TYPE)) { in emlxs_sli3_bde_setup() 3635 iocb->ULPCONTEXT = pkt->pkt_cmd_fhdr.rx_id; in emlxs_sli3_prep_fct_iocb() 3692 iocb->ULPCONTEXT = (uint16_t)pkt->pkt_cmd_fhdr.rx_id; in emlxs_sli3_prep_fct_iocb() 3787 did = LE_SWAP24_LO(pkt->pkt_cmd_fhdr.d_id); in emlxs_sli3_prep_fcp_iocb() 3883 did = LE_SWAP24_LO(pkt->pkt_cmd_fhdr.d_id); in emlxs_sli3_prep_ip_iocb() 3920 if (pkt->pkt_cmd_fhdr.f_ctl & F_CTL_FIRST_SEQ) { in emlxs_sli3_prep_ip_iocb() 3923 if (pkt->pkt_cmd_fhdr.f_ctl & F_CTL_SEQ_INITIATIVE) { in emlxs_sli3_prep_ip_iocb() 3928 iocb->un.xseq64.w5.hcsw.Dfctl = pkt->pkt_cmd_fhdr.df_ctl; in emlxs_sli3_prep_ip_iocb() 3929 iocb->un.xseq64.w5.hcsw.Rctl = pkt->pkt_cmd_fhdr.r_ctl; in emlxs_sli3_prep_ip_iocb() [all …]
|
H A D | emlxs_sli4.c | 4245 xrip->XRI, xrip->iotag, cmd_sbp, pkt->pkt_cmd_fhdr.rx_id); in emlxs_sli4_prep_fct_iocb() 4268 wqe->AbortTag = pkt->pkt_cmd_fhdr.rx_id; in emlxs_sli4_prep_fct_iocb() 4310 pkt->pkt_cmd_fhdr.rx_id, did); in emlxs_sli4_prep_fct_iocb() 4315 pkt->pkt_cmd_fhdr.rx_id, did); in emlxs_sli4_prep_fct_iocb() 4531 did = LE_SWAP24_LO(pkt->pkt_cmd_fhdr.d_id); in emlxs_sli4_prep_fcp_iocb() 4634 if (pkt->pkt_cmd_fhdr.f_ctl & F_CTL_CHAINED_SEQ) { in emlxs_sli4_prep_fcp_iocb() 4636 wqe->CCP = pkt->pkt_cmd_fhdr.rsvd; in emlxs_sli4_prep_fcp_iocb() 4688 did = LE_SWAP24_LO(pkt->pkt_cmd_fhdr.d_id); in emlxs_sli4_prep_els_iocb() 4729 pkt->pkt_cmd_fhdr.rx_id, did); in emlxs_sli4_prep_els_iocb() 4734 pkt->pkt_cmd_fhdr.rx_id); in emlxs_sli4_prep_els_iocb() [all …]
|
H A D | emlxs_dhchap.c | 1070 did = pkt->pkt_cmd_fhdr.d_id; in emlxs_cmpl_dhchap_challenge_issue() 1118 did = pkt->pkt_cmd_fhdr.d_id; in emlxs_cmpl_dhchap_success_issue() 1299 did = pkt->pkt_cmd_fhdr.d_id; in emlxs_cmpl_auth_reject_issue() 1442 pkt->pkt_cmd_fhdr.d_id = LE_SWAP24_LO(d_id); in emlxs_prep_els_fc_pkt() 1443 pkt->pkt_cmd_fhdr.r_ctl = R_CTL_ELS_REQ; in emlxs_prep_els_fc_pkt() 1444 pkt->pkt_cmd_fhdr.s_id = LE_SWAP24_LO(port->did); in emlxs_prep_els_fc_pkt() 1445 pkt->pkt_cmd_fhdr.type = FC_TYPE_EXTENDED_LS; in emlxs_prep_els_fc_pkt() 1446 pkt->pkt_cmd_fhdr.f_ctl = in emlxs_prep_els_fc_pkt() 1448 pkt->pkt_cmd_fhdr.seq_id = 0; in emlxs_prep_els_fc_pkt() 1449 pkt->pkt_cmd_fhdr.df_ctl = 0; in emlxs_prep_els_fc_pkt() [all …]
|
H A D | emlxs_fcf.c | 13233 pkt->pkt_cmd_fhdr.d_id = LE_SWAP24_LO(did); in emlxs_vpi_logo_action() 13234 pkt->pkt_cmd_fhdr.r_ctl = in emlxs_vpi_logo_action() 13236 pkt->pkt_cmd_fhdr.s_id = LE_SWAP24_LO(sid); in emlxs_vpi_logo_action() 13237 pkt->pkt_cmd_fhdr.type = FC_TYPE_EXTENDED_LS; in emlxs_vpi_logo_action() 13238 pkt->pkt_cmd_fhdr.f_ctl = in emlxs_vpi_logo_action() 13240 pkt->pkt_cmd_fhdr.seq_id = 0; in emlxs_vpi_logo_action() 13241 pkt->pkt_cmd_fhdr.df_ctl = 0; in emlxs_vpi_logo_action() 13242 pkt->pkt_cmd_fhdr.seq_cnt = 0; in emlxs_vpi_logo_action() 13243 pkt->pkt_cmd_fhdr.ox_id = 0xffff; in emlxs_vpi_logo_action() 13244 pkt->pkt_cmd_fhdr.rx_id = 0xffff; in emlxs_vpi_logo_action() [all …]
|
H A D | emlxs_clock.c | 1423 did = LE_SWAP24_LO(pkt->pkt_cmd_fhdr.d_id); in emlxs_tx_watchdog()
|
H A D | emlxs_fcp.c | 113 did = LE_SWAP24_LO(pkt->pkt_cmd_fhdr.d_id); in emlxs_handle_fcp_event()
|
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/fcoei/ |
H A D | fcoei_lv.c | 738 if (fpkt->pkt_cmd_fhdr.r_ctl == R_CTL_ELS_RSP) { in fcoei_els_send() 865 FFM_R_CTL(fpkt->pkt_cmd_fhdr.r_ctl, frm); in fcoei_initiate_ct_req() 866 FFM_D_ID(fpkt->pkt_cmd_fhdr.d_id, frm); in fcoei_initiate_ct_req() 867 FFM_S_ID(fpkt->pkt_cmd_fhdr.s_id, frm); in fcoei_initiate_ct_req() 868 FFM_TYPE(fpkt->pkt_cmd_fhdr.type, frm); in fcoei_initiate_ct_req() 869 FFM_F_CTL(fpkt->pkt_cmd_fhdr.f_ctl, frm); in fcoei_initiate_ct_req() 1116 FRM2IFM(frm)->ifm_rctl = fpkt->pkt_cmd_fhdr.r_ctl; in fcoei_initiate_fcp_cmd() 1118 FFM_R_CTL(fpkt->pkt_cmd_fhdr.r_ctl, frm); in fcoei_initiate_fcp_cmd() 1119 FFM_D_ID(fpkt->pkt_cmd_fhdr.d_id, frm); in fcoei_initiate_fcp_cmd() 1120 FFM_S_ID(fpkt->pkt_cmd_fhdr.s_id, frm); in fcoei_initiate_fcp_cmd() [all …]
|
H A D | fcoei.c | 1052 FFM_D_ID(fpkt->pkt_cmd_fhdr.d_id, frm); in fcoei_abts_exchange() 1053 FFM_S_ID(fpkt->pkt_cmd_fhdr.s_id, frm); in fcoei_abts_exchange() 1086 xch->xch_fpkt->pkt_cmd_fhdr.r_ctl, in fcoei_complete_xch() 1087 xch->xch_fpkt->pkt_cmd_fhdr.f_ctl, in fcoei_complete_xch() 1088 xch->xch_fpkt->pkt_cmd_fhdr.type, in fcoei_complete_xch()
|
H A D | fcoei.h | 334 xch->xch_oxid = fpkt->pkt_cmd_fhdr.ox_id; \ 335 xch->xch_rxid = fpkt->pkt_cmd_fhdr.rx_id; \
|
/illumos-gate/usr/src/uts/common/io/fibre-channel/ulp/ |
H A D | fcsm.c | 2742 pkt->pkt_cmd_fhdr.d_id = FS_MANAGEMENT_SERVER; in fcsm_ct_init() 2744 pkt->pkt_cmd_fhdr.d_id = FS_NAME_SERVER; in fcsm_ct_init() 2747 pkt->pkt_cmd_fhdr.r_ctl = R_CTL_UNSOL_CONTROL; in fcsm_ct_init() 2748 pkt->pkt_cmd_fhdr.rsvd = 0; in fcsm_ct_init() 2749 pkt->pkt_cmd_fhdr.s_id = fcsm->sm_sid; in fcsm_ct_init() 2750 pkt->pkt_cmd_fhdr.type = FC_TYPE_FC_SERVICES; in fcsm_ct_init() 2751 pkt->pkt_cmd_fhdr.f_ctl = F_CTL_SEQ_INITIATIVE | in fcsm_ct_init() 2753 pkt->pkt_cmd_fhdr.seq_id = 0; in fcsm_ct_init() 2754 pkt->pkt_cmd_fhdr.df_ctl = 0; in fcsm_ct_init() 2755 pkt->pkt_cmd_fhdr.seq_cnt = 0; in fcsm_ct_init() [all …]
|
H A D | fcp.c | 2620 hp = &fpkt->pkt_cmd_fhdr; in fcp_send_scsi_ioctl() 3330 hp = &fpkt->pkt_cmd_fhdr; in fcp_tgt_send_plogi() 5202 hp = &fpkt->pkt_cmd_fhdr; in fcp_send_els() 5235 hp = &fpkt->pkt_cmd_fhdr; in fcp_send_els() 5277 hp = &fpkt->pkt_cmd_fhdr; in fcp_send_els() 5564 state, reason, fpkt->pkt_cmd_fhdr.ox_id, in fcp_unsol_callback() 5565 fpkt->pkt_cmd_fhdr.rx_id); in fcp_unsol_callback() 5578 pkt->pkt_cmd_fhdr.r_ctl = r_ctl; in fcp_unsol_resp_init() 5579 pkt->pkt_cmd_fhdr.d_id = buf->ub_frame.s_id; in fcp_unsol_resp_init() 5580 pkt->pkt_cmd_fhdr.s_id = buf->ub_frame.d_id; in fcp_unsol_resp_init() [all …]
|
H A D | fcip.c | 2651 fc_pkt->pkt_cmd_fhdr.r_ctl = R_CTL_ELS_RSP; in fcip_handle_farp_request() 4194 if (fc_pkt->pkt_cmd_fhdr.d_id == did && in fcip_transport() 6094 fcmd->dest_id.port_id = fc_pkt->pkt_cmd_fhdr.d_id; in fcip_do_farp() 6233 fr_hdr = &fc_pkt->pkt_cmd_fhdr; in fcip_do_plogi() 6295 fr_hdr = &fc_pkt->pkt_cmd_fhdr; in fcip_ipkt_callback() 6695 fr_hdr = &fc_pkt->pkt_cmd_fhdr; in fcip_init_unicast_pkt() 6738 fr_hdr = &fc_pkt->pkt_cmd_fhdr; in fcip_init_broadcast_pkt()
|
/illumos-gate/usr/src/uts/common/io/fibre-channel/impl/ |
H A D | fp.c | 3269 "Retrying ELS for %x", cmd->cmd_pkt.pkt_cmd_fhdr.d_id); in fp_enque_cmd() 4417 pkt->pkt_cmd_fhdr.r_ctl = R_CTL_ELS_REQ; in fp_els_init() 4418 pkt->pkt_cmd_fhdr.d_id = d_id; in fp_els_init() 4419 pkt->pkt_cmd_fhdr.s_id = s_id; in fp_els_init() 4420 pkt->pkt_cmd_fhdr.type = FC_TYPE_EXTENDED_LS; in fp_els_init() 4421 pkt->pkt_cmd_fhdr.f_ctl = F_CTL_SEQ_INITIATIVE | F_CTL_FIRST_SEQ; in fp_els_init() 4422 pkt->pkt_cmd_fhdr.seq_id = 0; in fp_els_init() 4423 pkt->pkt_cmd_fhdr.df_ctl = 0; in fp_els_init() 4424 pkt->pkt_cmd_fhdr.seq_cnt = 0; in fp_els_init() 4425 pkt->pkt_cmd_fhdr.ox_id = 0xffff; in fp_els_init() [all …]
|
H A D | fctl.c | 1472 } else if (FC_IS_REAL_DEVICE(pkt->pkt_cmd_fhdr.d_id)) { in fc_ulp_transport()
|
/illumos-gate/usr/src/uts/common/sys/fibre-channel/impl/ |
H A D | fctl.h | 173 fc_frame_hdr_t pkt_cmd_fhdr; /* command frame hdr */ member
|
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlc/ |
H A D | ql_api.c | 3021 bcopy((void *)&pkt->pkt_cmd_fhdr, (void *)&pkt->pkt_resp_fhdr, in ql_els_send() 3029 pkt->pkt_resp_fhdr.s_id = pkt->pkt_cmd_fhdr.d_id; in ql_els_send() 3046 pkt->pkt_cmd_fhdr.d_id); in ql_els_send() 3135 rval, els.ls_code, pkt->pkt_cmd_fhdr.d_id, sp); in ql_els_send() 3406 QL_PRINT_3(ha, "started, d_id=%xh\n", pkt->pkt_cmd_fhdr.d_id); in ql_transport() 3419 pkt->pkt_resp_fhdr.s_id = pkt->pkt_cmd_fhdr.d_id; in ql_transport() 3420 pkt->pkt_resp_fhdr.f_ctl = pkt->pkt_cmd_fhdr.f_ctl; in ql_transport() 3421 pkt->pkt_resp_fhdr.type = pkt->pkt_cmd_fhdr.type; in ql_transport() 3423 switch (pkt->pkt_cmd_fhdr.r_ctl) { in ql_transport() 3425 if (pkt->pkt_cmd_fhdr.type == FC_TYPE_SCSI_FCP) { in ql_transport() [all …]
|