usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10002
emlxs_dfc_sd_set_event(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10018
event = dfc->data1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10019
pid = dfc->data3;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10020
enable = dfc->flag;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10023
bcopy((void *)dfc->buf3, (void *)wwpn, 8);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10059
if (dfc->buf1) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10060
bcopy((void *) &dfc_event->last_id, dfc->buf1,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
101
static int32_t emlxs_dfc_destroy_vport(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10107
emlxs_dfc_sd_get_event(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10115
event = dfc->data1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10116
pid = dfc->data2;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10119
bcopy((void *)dfc->buf4, (void *)wwpn, 8);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10149
dfc_event->dataout = dfc->buf1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10150
dfc_event->size = dfc->buf1_size;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10151
dfc_event->last_id = dfc->data3;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10154
sleep = (dfc->flag & 0x01) ? 1 : 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10161
if (dfc->buf2) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10162
bcopy((void *) &dfc_event->size, dfc->buf2,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10169
if (dfc->buf3) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10170
bcopy((void *) &dfc_event->last_id, dfc->buf3,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10181
emlxs_dfc_send_scsi_fcp(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10194
if (!dfc->buf1 ||
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10195
(dfc->buf1_size != sizeof (dfc_send_scsi_fcp_cmd_info_t))) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10197
"%s: Null buffer1 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10204
if (!dfc->buf2 || (dfc->buf2_size != sizeof (FCP_CMND))) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10206
"%s: Null buffer2 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10213
if (!dfc->buf3 && dfc->buf3_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10215
"%s: Null buffer3 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10222
if (!dfc->buf4 || !dfc->buf4_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10224
"%s: Null buffer4 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10230
cmdinfo = (dfc_send_scsi_fcp_cmd_info_t *)dfc->buf1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10238
emlxs_dfc_xlate(dfc->cmd), emlxs_wwn_xlate(buffer,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10249
"%s: WWPN does not exists. %s", emlxs_dfc_xlate(dfc->cmd),
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10258
dfc->buf3_size, KM_NOSLEEP))) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10261
emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10269
bcopy((void *)dfc->buf2, (void *)fcp_cmd, sizeof (FCP_CMND));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10290
if ((fcp_cmd->fcpCntl3 == WRITE_DATA) && dfc->buf3_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10292
bcopy((void *)dfc->buf3, (void *)pkt->pkt_data, dfc->buf3_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
103
static int32_t emlxs_dfc_get_vportinfo(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10316
if (pkt->pkt_data_resid < dfc->buf3_size)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10317
dfc->buf3_size -= pkt->pkt_data_resid;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10319
dfc->buf3_size = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10322
SCSI_RSP_CNT(cmdinfo) = dfc->buf3_size;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10329
if (dfc->flag) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10339
bcopy(ptr, (void *)dfc->buf4, SCSI_SNS_CNT(cmdinfo));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10343
bcopy((void *)pkt->pkt_data, (void *)dfc->buf3,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10361
emlxs_dfc_get_persist_linkdown(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10370
"%s: FCoE not supported.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10375
if (!dfc->buf1 || !dfc->buf1_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10377
"%s: Null buffer1 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10383
bcopy((void *)&linkdown, dfc->buf1, sizeof (uint16_t));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10392
emlxs_dfc_set_persist_linkdown(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10400
"%s: FCoE not supported.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10405
if (dfc->data1) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10418
emlxs_dfc_get_fcflist(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10429
if (!dfc->buf1 || !dfc->buf1_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10431
"%s: Null buffer1 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10436
if (dfc->buf1_size < sizeof (DFC_FCoEFCFList_t)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10439
emlxs_dfc_xlate(dfc->cmd), dfc->buf1_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10446
"%s: FCoE not supported.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10453
"%s: HBA not ready.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10462
bcopy(dfc->buf1, (void *)fcflist, sizeof (DFC_FCoEFCFList_t));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
105
static int32_t emlxs_dfc_npiv_resource(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10503
bcopy((void *)fcflist, dfc->buf1, i);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10513
emlxs_dfc_send_mbox4(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10528
"%s: SLI Mode %d not supported.", emlxs_dfc_xlate(dfc->cmd),
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10534
if (!dfc->buf1 || !dfc->buf1_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10536
"%s: Null buffer1 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10541
if (!dfc->buf2 || !dfc->buf2_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10543
"%s: Null buffer2 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10548
if ((dfc->buf1_size != dfc->buf2_size) ||
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10549
(dfc->buf1_size < sizeof (MAILBOX4))) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10552
emlxs_dfc_xlate(dfc->cmd), dfc->buf1_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10559
bcopy(dfc->buf1, (void *)mb4, sizeof (MAILBOX4));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10574
emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10582
(dfc->buf1_size - sizeof (MAILBOX4)))) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10585
emlxs_dfc_xlate(dfc->cmd), dfc->buf1_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10597
emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10603
bcopy((uint8_t *)dfc->buf1 + sizeof (MAILBOX4),
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10634
emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10641
(dfc->buf1_size - sizeof (MAILBOX4))) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10644
emlxs_dfc_xlate(dfc->cmd), dfc->buf1_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10658
emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10664
bcopy((uint8_t *)dfc->buf1 + sizeof (MAILBOX4),
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10682
(dfc->buf1_size - sizeof (MAILBOX4))) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10685
emlxs_dfc_xlate(dfc->cmd), dfc->buf1_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10697
emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
107
static int32_t emlxs_dfc_npiv_test(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10703
bcopy((uint8_t *)dfc->buf1 + sizeof (MAILBOX4),
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10717
(dfc->buf1_size - sizeof (MAILBOX4))) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10720
emlxs_dfc_xlate(dfc->cmd), dfc->buf1_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10732
emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10738
bcopy((uint8_t *)dfc->buf1 + sizeof (MAILBOX4),
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10755
emlxs_dfc_xlate(dfc->cmd), mb4->mbxCommand);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10765
emlxs_dfc_xlate(dfc->cmd), mb4->mbxCommand);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10776
emlxs_dfc_xlate(dfc->cmd), mb4->mbxCommand);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10797
emlxs_dfc_xlate(dfc->cmd), mb4->mbxCommand);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10807
emlxs_dfc_xlate(dfc->cmd), mb4->mbxCommand);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10828
"%s: %s sent. (%x %x %x %x)", emlxs_dfc_xlate(dfc->cmd),
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10838
emlxs_dfc_xlate(dfc->cmd),
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10842
bcopy((void *)mb4, dfc->buf2, sizeof (MAILBOX4));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10844
bcopy(mp->virt, (uint8_t *)dfc->buf2 + sizeof (MAILBOX4),
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10856
emlxs_dfc_xlate(dfc->cmd), mb4->mbxCommand);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10887
emlxs_dfc_rd_be_fcf(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10901
if (!dfc->buf1 || !dfc->buf1_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10903
"%s: Null buffer1 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10911
index = dfc->data1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10946
bcopy((void *)fcfrec, (void *)dfc->buf1, dfc->buf1_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10948
(void *)dfc->buf2, dfc->buf2_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10951
"%s: %s failed. mbxstatus=0x%x", emlxs_dfc_xlate(dfc->cmd),
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10978
emlxs_dfc_set_be_dcbx(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
11008
dcbx_mode->params.request.dcbx_mode = dfc->data1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
11011
"%s requested on port %d.", emlxs_dfc_xlate(dfc->cmd), port_num);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
11016
"%s: %s failed. mbxstatus=0x%x", emlxs_dfc_xlate(dfc->cmd),
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
11033
emlxs_dfc_get_be_dcbx(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
11065
"%s requested on port %d.", emlxs_dfc_xlate(dfc->cmd), port_num);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
11070
"%s: %s failed. mbxstatus=0x%x", emlxs_dfc_xlate(dfc->cmd),
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
11078
(void *)dfc->buf1, dfc->buf1_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
11092
emlxs_dfc_get_qos(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
11099
"%s: FCoE not supported.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
11104
if (dfc->buf1_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
11105
bcopy((void *)&hba->qos_linkspeed, (void *)dfc->buf1,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
11106
dfc->buf1_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
112
static int32_t emlxs_dfc_init_auth(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
114
static int32_t emlxs_dfc_get_auth_cfg(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
116
static int32_t emlxs_dfc_set_auth_cfg(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
118
static int32_t emlxs_dfc_get_auth_pwd(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
120
static int32_t emlxs_dfc_set_auth_pwd(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
122
static int32_t emlxs_dfc_get_auth_status(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
125
dfc_t *dfc, int32_t mode);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
127
dfc_t *dfc, int32_t mode);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
131
static int32_t emlxs_dfc_sd_set_bucket(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
134
dfc_t *dfc, int32_t mode);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
135
static int32_t emlxs_dfc_sd_get_bucket(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
138
dfc_t *dfc, int32_t mode);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
140
dfc_t *dfc, int32_t mode);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
142
dfc_t *dfc, int32_t mode);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
143
static int32_t emlxs_dfc_sd_get_data(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
145
static int32_t emlxs_dfc_sd_set_event(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
147
static int32_t emlxs_dfc_sd_get_event(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
151
static int32_t emlxs_dfc_send_scsi_fcp(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
154
static int32_t emlxs_fcio_manage(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
213
dfc_t *dfc, int32_t mode);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
215
dfc_t *dfc, int32_t mode);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
218
static int32_t emlxs_dfc_get_fcflist(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
220
static int32_t emlxs_dfc_send_mbox4(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
222
static int emlxs_dfc_rd_be_fcf(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
224
static int emlxs_dfc_set_be_dcbx(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
226
static int emlxs_dfc_get_be_dcbx(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
228
static int emlxs_dfc_get_qos(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
237
int (*func)(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2963
emlxs_dfc_create_vport(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2975
options = dfc->data1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2977
if (!dfc->buf1 || !dfc->buf1_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2979
"%s: Null buffer1 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2984
if (dfc->buf1_size < sizeof (dfc_vportinfo_t)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2987
emlxs_dfc_xlate(dfc->cmd), dfc->buf1_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2992
dfc_vport = (dfc_vportinfo_t *)dfc->buf1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2998
emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3006
emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3032
emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3055
emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3078
emlxs_dfc_xlate(dfc->cmd), vpi);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3164
emlxs_dfc_destroy_vport(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3174
if (!dfc->buf1 || !dfc->buf1_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3176
"%s: Null buffer1 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3182
if (dfc->buf1_size < 8) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3185
emlxs_dfc_xlate(dfc->cmd), dfc->buf1_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3192
bcopy((void *)dfc->buf1, (void *)wwpn, 8);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3200
"%s: WWPN does not exists. %s", emlxs_dfc_xlate(dfc->cmd),
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3214
emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3276
emlxs_dfc_get_vportinfo(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3287
if (!dfc->buf1 || !dfc->buf1_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3289
"%s: Null buffer1 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
33
static int32_t emlxs_dfc_get_rev(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3300
emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3344
if (max_count > dfc->buf1_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3347
emlxs_dfc_xlate(dfc->cmd), max_count, dfc->buf1_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3353
bcopy((void *)dfc_vport_list, (void *)dfc->buf1, dfc->buf1_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3405
emlxs_dfc_npiv_resource(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3413
if (!dfc->buf1 || !dfc->buf1_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3415
"%s: Null buffer1 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3420
if (dfc->buf1_size < sizeof (dfc_vport_resource_t)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3423
emlxs_dfc_xlate(dfc->cmd), dfc->buf1_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3428
vres = (dfc_vport_resource_t *)dfc->buf1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3462
emlxs_dfc_xlate(dfc->cmd), mb->mbxCommand);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3470
"%s: %s failed. status=%x", emlxs_dfc_xlate(dfc->cmd),
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
35
static int32_t emlxs_dfc_get_hbainfo(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3503
emlxs_dfc_npiv_test(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3519
if (!dfc->buf1 || !dfc->buf1_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3521
"%s: Null buffer1 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3526
if (dfc->buf1_size < sizeof (uint32_t)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3529
emlxs_dfc_xlate(dfc->cmd), dfc->buf1_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
363
emlxs_dfc_func(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3661
"%s: Unable to send packet.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
37
static int32_t emlxs_dfc_get_hbastats(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3716
emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
372
if (dfc->cmd == emlxs_dfc_table[i].code) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3727
emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
373
if ((dfc->cmd != EMLXS_FCIO_CMD) ||
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3732
emlxs_dfc_xlate(dfc->cmd),
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
374
(dfc->data1 != FCIO_DIAG) ||
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
375
(dfc->data2 != EMLXS_LOG_GET)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3754
bcopy((void *)&checklist, (void *)dfc->buf1, sizeof (uint32_t));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3773
emlxs_dfc_get_rev(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3778
if (!dfc->buf1 || !dfc->buf1_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3780
"%s: Null buffer1 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3785
if (dfc->buf1_size < sizeof (uint32_t)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3788
emlxs_dfc_xlate(dfc->cmd), dfc->buf1_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3794
bcopy((void *)&rev, (void *)dfc->buf1, sizeof (uint32_t));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3803
emlxs_dfc_get_hbainfo(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
381
rval = emlxs_dfc_table[i].func(hba, dfc, mode);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3811
if (!dfc->buf1 || !dfc->buf1_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3813
"%s: Null buffer1 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3818
if (dfc->buf1_size < sizeof (dfc_hbainfo_t)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3821
emlxs_dfc_xlate(dfc->cmd), dfc->buf1_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3826
hbainfo = (dfc_hbainfo_t *)dfc->buf1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
387
"Unknown DFC command. (0x%x)", dfc->cmd);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
39
static int32_t emlxs_dfc_get_drvstats(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
41
static int32_t emlxs_dfc_set_diag(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4110
emlxs_dfc_get_hbastats(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4118
if (!dfc->buf1 || !dfc->buf1_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4120
"%s: Null buffer1 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4125
if (dfc->buf1_size < sizeof (dfc_hbastats_t)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4128
emlxs_dfc_xlate(dfc->cmd), dfc->buf1_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4145
emlxs_dfc_xlate(dfc->cmd), mb->mbxCommand);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4153
"%s: %s failed. status=%x", emlxs_dfc_xlate(dfc->cmd),
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4160
stats = (dfc_hbastats_t *)dfc->buf1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4181
emlxs_dfc_xlate(dfc->cmd), mb->mbxCommand);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4189
"%s: %s failed. status=%x", emlxs_dfc_xlate(dfc->cmd),
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4274
emlxs_dfc_get_drvstats(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4280
if (!dfc->buf1 || !dfc->buf1_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4282
"%s: Null buffer1 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4287
stats = (dfc_drvstats_t *)dfc->buf1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
43
static int32_t emlxs_dfc_send_mbox(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
45
static int32_t emlxs_dfc_read_pci(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4626
emlxs_dfc_set_diag(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4632
if (!dfc->buf1 || !dfc->buf1_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4634
"%s: Null buffer1 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4639
if (dfc->buf1_size < sizeof (uint32_t)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4642
emlxs_dfc_xlate(dfc->cmd), dfc->buf1_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4647
flag = emlxs_set_hba_mode(hba, dfc->flag);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4648
bcopy((void *)&flag, (void *)dfc->buf1, sizeof (uint32_t));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4658
emlxs_dfc_send_mbox(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4676
"%s: SLI Mode %d not supported.", emlxs_dfc_xlate(dfc->cmd),
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4682
if (!dfc->buf1 || !dfc->buf1_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4684
"%s: Null buffer1 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4689
if (!dfc->buf2 || !dfc->buf2_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4691
"%s: Null buffer2 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4696
if (dfc->buf1_size > MAILBOX_CMD_BSIZE) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4699
emlxs_dfc_xlate(dfc->cmd), dfc->buf1_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
47
static int32_t emlxs_dfc_write_pci(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4704
if (dfc->buf3_size || dfc->buf4_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4705
if (dfc->buf3_size && !dfc->buf3) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4708
emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4713
if (dfc->buf3_size > MBOX_EXTENSION_SIZE) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4716
emlxs_dfc_xlate(dfc->cmd), dfc->buf3_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4721
if (dfc->buf4_size && !dfc->buf4) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4724
emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4729
if (dfc->buf4_size > MBOX_EXTENSION_SIZE) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4732
emlxs_dfc_xlate(dfc->cmd), dfc->buf3_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4737
extsize = (dfc->buf3_size > dfc->buf4_size) ?
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4738
dfc->buf3_size : dfc->buf4_size;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4741
if (dfc->buf3_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4742
bcopy((void *)dfc->buf3, (void *)extbuf,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4743
dfc->buf3_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4750
bcopy((void *)dfc->buf1, (void *)mb, dfc->buf1_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4761
"cmd=%x", emlxs_dfc_xlate(dfc->cmd), mb->mbxCommand);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4784
emlxs_dfc_xlate(dfc->cmd), mb->mbxCommand);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4811
emlxs_dfc_xlate(dfc->cmd), mb->mbxCommand,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4829
emlxs_dfc_xlate(dfc->cmd), mb->mbxCommand, did);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4871
emlxs_dfc_xlate(dfc->cmd), mb->mbxCommand, did);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4891
emlxs_dfc_xlate(dfc->cmd), mb->mbxCommand);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
49
static int32_t emlxs_dfc_get_cfg(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4901
emlxs_dfc_xlate(dfc->cmd), mb->mbxCommand);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4923
emlxs_dfc_xlate(dfc->cmd), mb->mbxCommand);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4933
emlxs_dfc_xlate(dfc->cmd), mb->mbxCommand);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4955
emlxs_dfc_xlate(dfc->cmd), mb->mbxCommand);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4965
emlxs_dfc_xlate(dfc->cmd), mb->mbxCommand);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4987
emlxs_dfc_xlate(dfc->cmd), mb->mbxCommand);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4997
emlxs_dfc_xlate(dfc->cmd), mb->mbxCommand);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5008
emlxs_dfc_xlate(dfc->cmd), mb->mbxCommand);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5031
emlxs_dfc_xlate(dfc->cmd), mb->mbxCommand);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5041
emlxs_dfc_xlate(dfc->cmd), mb->mbxCommand);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5064
emlxs_dfc_xlate(dfc->cmd), mb->mbxCommand, did);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5074
emlxs_dfc_xlate(dfc->cmd), mb->mbxCommand);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5088
emlxs_dfc_xlate(dfc->cmd), mb->mbxCommand);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5098
emlxs_dfc_xlate(dfc->cmd), mb->mbxCommand);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
51
static int32_t emlxs_dfc_set_cfg(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5109
emlxs_dfc_xlate(dfc->cmd), mb->mbxCommand);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5133
emlxs_dfc_xlate(dfc->cmd), mb->mbxCommand);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5143
emlxs_dfc_xlate(dfc->cmd), mb->mbxCommand);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5162
emlxs_dfc_xlate(dfc->cmd), mb->mbxCommand);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5195
"%s: %s sent. (%x %x %x %x)", emlxs_dfc_xlate(dfc->cmd),
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5205
emlxs_dfc_xlate(dfc->cmd),
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5210
bcopy((void *)mb, (void *)dfc->buf2, dfc->buf2_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5220
emlxs_dfc_xlate(dfc->cmd), mb->mbxCommand);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5228
if (dfc->buf4_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5229
bcopy((void *)extbuf, (void *)dfc->buf4, dfc->buf4_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5287
emlxs_dfc_read_pci(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5298
offset = dfc->data1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5299
cnt = dfc->data2;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
53
static int32_t emlxs_dfc_send_menlo(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5300
outsz = dfc->buf1_size;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5303
"%s: offset=%x count=%d", emlxs_dfc_xlate(dfc->cmd), offset, cnt);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5305
if (!dfc->buf1_size || !dfc->buf1) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5307
"%s: Null buffer1 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5315
emlxs_dfc_xlate(dfc->cmd), offset);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5323
emlxs_dfc_xlate(dfc->cmd), cnt);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5331
emlxs_dfc_xlate(dfc->cmd), outsz);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5346
emlxs_dfc_xlate(dfc->cmd), offset, cnt, max);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5359
bptr = (uint32_t *)dfc->buf1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5384
emlxs_dfc_write_pci(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5396
offset = dfc->data1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5397
cnt = dfc->data2;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5400
"%s: offset=%x count=%d", emlxs_dfc_xlate(dfc->cmd), offset, cnt);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5402
if (!dfc->buf1 || !dfc->buf1_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5404
"%s: Null buffer1 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5412
emlxs_dfc_xlate(dfc->cmd), offset);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5417
if (cnt > dfc->buf1_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5420
emlxs_dfc_xlate(dfc->cmd), cnt);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5428
emlxs_dfc_xlate(dfc->cmd), cnt);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5443
emlxs_dfc_xlate(dfc->cmd), offset, cnt, max);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5448
bptr = (uint32_t *)dfc->buf1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5488
emlxs_dfc_get_cfg(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5496
if (!dfc->buf1 || !dfc->buf1_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5498
"%s: Null buffer1 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
55
static int32_t emlxs_dfc_send_ct(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5503
count = dfc->buf1_size / sizeof (dfc_cfgparam_t);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5509
cfgparam = (dfc_cfgparam_t *)dfc->buf1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5580
emlxs_dfc_set_cfg(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5587
index = dfc->data1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5588
new_value = dfc->data2;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5595
emlxs_dfc_xlate(dfc->cmd), rc);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5613
emlxs_dfc_send_ct(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5628
cmd_buf = dfc->buf1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5629
cmd_size = dfc->buf1_size;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5630
rsp_buf = dfc->buf2;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5631
rsp_size = dfc->buf2_size;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5632
timeout = dfc->data1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5639
"%s: csize=%d rsize=%d", emlxs_dfc_xlate(dfc->cmd), cmd_size,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5645
"%s: Null buffer1 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5653
"%s: Null buffer2 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5659
if (!dfc->buf3 || !dfc->buf3_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5661
"%s: Null buffer3 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5667
if (!dfc->buf4 || !dfc->buf4_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5669
"%s: Null buffer4 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5678
emlxs_dfc_xlate(dfc->cmd), rsp_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5687
emlxs_dfc_xlate(dfc->cmd), cmd_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5693
if (dfc->buf3_size < sizeof (dfc_destid_t)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5696
emlxs_dfc_xlate(dfc->cmd), dfc->buf3_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
57
static int32_t emlxs_dfc_send_ct_rsp(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5702
if (dfc->buf4_size < sizeof (uint32_t)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5705
emlxs_dfc_xlate(dfc->cmd), dfc->buf4_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5711
destid = (dfc_destid_t *)dfc->buf3;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5718
emlxs_dfc_xlate(dfc->cmd), emlxs_wwn_xlate(buffer,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5729
emlxs_dfc_xlate(dfc->cmd), destid->d_id);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5744
emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5777
"%s: Unable to send packet.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5800
bcopy((void *)&rsp_size, (void *)dfc->buf4, sizeof (uint32_t));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5817
emlxs_dfc_send_ct_rsp(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5827
cmd_buf = dfc->buf1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5828
cmd_size = dfc->buf1_size;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5829
rx_id = dfc->flag;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5833
emlxs_dfc_xlate(dfc->cmd), cmd_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5837
"%s: Null buffer1 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5846
emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5879
"%s: Unable to send packet.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
59
static int32_t emlxs_dfc_write_flash(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5915
emlxs_dfc_send_menlo(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5925
"%s: csize=%d rsize=%d", emlxs_dfc_xlate(dfc->cmd), dfc->buf1_size,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5926
dfc->buf2_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5932
emlxs_dfc_xlate(dfc->cmd), hba->model_info.vendor_id,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5939
if (!dfc->buf1_size || !dfc->buf1) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5941
"%s: Null buffer1 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5947
if (!dfc->buf2_size || !dfc->buf2) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5949
"%s: Null buffer2 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5955
if (!dfc->buf3 || !dfc->buf3_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5957
"%s: Null buffer3 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5963
if (dfc->buf3_size < sizeof (uint32_t)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5966
emlxs_dfc_xlate(dfc->cmd), dfc->buf3_size,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5973
cmd_size = dfc->buf1_size;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5974
cmd_buf = (uint8_t *)dfc->buf1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5976
rsp_size = dfc->buf2_size;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5977
rsp_buf = (uint8_t *)dfc->buf2;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5985
bcopy((void *)rsp_buf, (void *)dfc->buf2, rsp_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5986
bcopy((void *)&rsp_size, (void *)dfc->buf3, sizeof (uint32_t));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
61
static int32_t emlxs_dfc_read_flash(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
63
static int32_t emlxs_dfc_send_els(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
65
static int32_t emlxs_dfc_loopback_test(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6540
emlxs_dfc_write_flash(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6551
emlxs_dfc_xlate(dfc->cmd), hba->bus_type);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6558
"%s: Adapter not offline.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6563
if (!dfc->buf1 || !dfc->buf1_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6565
"%s: Null buffer1 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6570
offset = dfc->data1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6571
cnt = dfc->data2;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6576
emlxs_dfc_xlate(dfc->cmd), offset);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6581
if (cnt > dfc->buf1_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6584
emlxs_dfc_xlate(dfc->cmd), cnt);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6592
emlxs_dfc_xlate(dfc->cmd), cnt, offset);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6601
bptr = (uint8_t *)dfc->buf1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6625
emlxs_dfc_read_flash(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6637
emlxs_dfc_xlate(dfc->cmd), hba->bus_type);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6644
"%s: Adapter not offline.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6649
if (!dfc->buf1 || !dfc->buf1_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6651
"%s: Null buffer1 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6656
offset = dfc->data1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6657
count = dfc->data2;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6658
outsz = dfc->buf1_size;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6663
emlxs_dfc_xlate(dfc->cmd), offset);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6671
emlxs_dfc_xlate(dfc->cmd), count, offset);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6680
bptr = (uint8_t *)dfc->buf1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
67
static int32_t emlxs_dfc_reset_port(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6702
emlxs_dfc_send_els(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6717
cmd_buf = dfc->buf1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6718
cmd_size = dfc->buf1_size;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6719
rsp_buf = dfc->buf2;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6720
rsp_size = dfc->buf2_size;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6726
"%s: Null buffer1 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6734
"%s: Null buffer2 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6740
if (!dfc->buf3 || !dfc->buf3_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6742
"%s: Null buffer3 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6748
if (dfc->buf3_size < sizeof (dfc_destid_t)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6751
emlxs_dfc_xlate(dfc->cmd), dfc->buf3_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6757
if (!dfc->buf4 || !dfc->buf4_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6759
"%s: Null buffer4 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6765
if (dfc->buf4_size < sizeof (uint32_t)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6768
emlxs_dfc_xlate(dfc->cmd), dfc->buf4_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6774
destid = (dfc_destid_t *)dfc->buf3;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6781
emlxs_dfc_xlate(dfc->cmd), emlxs_wwn_xlate(buffer,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6792
emlxs_dfc_xlate(dfc->cmd), destid->d_id);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6807
emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6841
bzero((void *)dfc->buf4, sizeof (uint32_t));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6859
bcopy((void *)&rsp_size, (void *)dfc->buf4,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6875
bzero((void *)dfc->buf4, sizeof (uint32_t));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6881
bcopy((void *)&rsp_size, (void *)dfc->buf4, sizeof (uint32_t));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6897
emlxs_dfc_get_ioinfo(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
69
static int32_t emlxs_dfc_get_dump_region(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6903
if (!dfc->buf1 || !dfc->buf1_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6905
"%s: Null buffer1 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6910
if (dfc->buf1_size < sizeof (dfc_ioinfo_t)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6913
emlxs_dfc_xlate(dfc->cmd), dfc->buf1_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6918
ioinfo = (dfc_ioinfo_t *)dfc->buf1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6967
emlxs_dfc_get_linkinfo(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6972
if (!dfc->buf1 || !dfc->buf1_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6974
"%s: Null buffer1 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6979
if (dfc->buf1_size < sizeof (dfc_linkinfo_t)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6982
emlxs_dfc_xlate(dfc->cmd), dfc->buf1_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6987
linkinfo = (dfc_linkinfo_t *)dfc->buf1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7051
emlxs_dfc_get_fctstat(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7057
if (!dfc->buf1 || !dfc->buf1_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7059
"%s: Null buffer1 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7064
if (dfc->buf1_size < sizeof (emlxs_tgtport_stat_t)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7067
emlxs_dfc_xlate(dfc->cmd), dfc->buf1_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7072
dfcstat = (dfc_tgtport_stat_t *)dfc->buf1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
71
static int32_t emlxs_dfc_loopback_mode(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7107
if (dfc->flag) { /* Clear counters after read */
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7138
emlxs_dfc_get_nodeinfo(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7147
port = &VPORT(dfc->data1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7149
if (!dfc->buf1 || !dfc->buf1_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7151
"%s: NULL buffer1 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7156
if (dfc->buf1_size < (sizeof (dfc_node_t) * MAX_NODES)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7159
emlxs_dfc_xlate(dfc->cmd), dfc->buf1_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7164
if (!dfc->buf2 || !dfc->buf2_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7166
"%s: NULL buffer2 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7171
if (dfc->buf2_size < sizeof (uint32_t)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7174
emlxs_dfc_xlate(dfc->cmd), dfc->buf2_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7185
dnp = (dfc_node_t *)dfc->buf1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7228
bcopy((void *)&node_count, (void *)dfc->buf2, sizeof (uint32_t));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7236
emlxs_dfc_read_mem(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7244
offset = dfc->data1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7245
size = dfc->data2;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7247
if (!dfc->buf1 || !dfc->buf1_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7249
"%s: Null buffer1 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7254
if (size > dfc->buf1_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7255
size = dfc->buf1_size;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7261
emlxs_dfc_xlate(dfc->cmd), offset);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7269
emlxs_dfc_xlate(dfc->cmd), size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7283
emlxs_dfc_xlate(dfc->cmd), offset);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7294
BE_SWAP32_BCOPY((uint8_t *)slim, (uint8_t *)dfc->buf1, size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7297
READ_SLIM_COPY(hba, (uint32_t *)dfc->buf1, (uint32_t *)slim,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
73
static int32_t emlxs_dfc_get_ioinfo(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7318
emlxs_dfc_write_mem(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7326
offset = dfc->data1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7327
size = dfc->data2;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7329
if (!dfc->buf1 || !dfc->buf1_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7331
"%s: Null buffer1 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7336
if (size > dfc->buf1_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7337
size = dfc->buf1_size;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7343
emlxs_dfc_xlate(dfc->cmd), offset);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7351
emlxs_dfc_xlate(dfc->cmd), size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7365
emlxs_dfc_xlate(dfc->cmd), offset);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7376
BE_SWAP32_BCOPY((uint8_t *)dfc->buf1, (uint8_t *)slim, size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7379
WRITE_SLIM_COPY(hba, (uint32_t *)dfc->buf1, (uint32_t *)slim,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7400
emlxs_dfc_write_ctlreg(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7406
offset = dfc->data1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7407
value = dfc->data2;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7411
"%s: FCoE not supported.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7418
"%s: Adapter not offline.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7426
emlxs_dfc_xlate(dfc->cmd), offset);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7434
emlxs_dfc_xlate(dfc->cmd), offset);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7458
emlxs_dfc_read_ctlreg(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7464
offset = dfc->data1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7468
"%s: FCoE not supported.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7476
emlxs_dfc_xlate(dfc->cmd), offset);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7484
emlxs_dfc_xlate(dfc->cmd), offset);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7489
if (!dfc->buf1 || !dfc->buf1_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7491
"%s: Null buffer1 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7496
if (dfc->buf1_size < sizeof (uint32_t)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7499
emlxs_dfc_xlate(dfc->cmd), dfc->buf1_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
75
static int32_t emlxs_dfc_get_linkinfo(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7505
bcopy((void *)&value, (void *)dfc->buf1, sizeof (uint32_t));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7524
emlxs_dfc_set_event(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7534
event = dfc->data1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7535
pid = dfc->data2;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7536
enable = dfc->flag;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7539
"%s: %s. pid=%d enable=%d", emlxs_dfc_xlate(dfc->cmd),
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7556
emlxs_dfc_xlate(dfc->cmd), emlxs_dfc_event_xlate(event),
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7563
if (dfc->buf1_size < sizeof (uint32_t)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7564
dfc->buf1 = NULL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7565
} else if (!dfc->buf1) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7566
dfc->buf1_size = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7596
emlxs_dfc_xlate(dfc->cmd),
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7614
if (dfc->buf1) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7615
bcopy((void *)&dfc_event->last_id, dfc->buf1,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7643
emlxs_dfc_xlate(dfc->cmd),
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7676
emlxs_dfc_get_eventinfo(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7685
if (!dfc->buf1 || !dfc->buf1_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7687
"%s: Null buffer1 buffer.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7692
event_count = dfc->buf1_size / sizeof (HBA_EVENTINFO);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7697
emlxs_dfc_xlate(dfc->cmd), dfc->buf1_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
77
static int32_t emlxs_dfc_read_mem(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7702
if (!dfc->buf2 || !dfc->buf2_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7704
"%s: Null buffer2 buffer.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7709
if (dfc->buf2_size < sizeof (uint32_t)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7712
emlxs_dfc_xlate(dfc->cmd), dfc->buf2_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7717
if (!dfc->buf3 || !dfc->buf3_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7719
"%s: Null buffer3 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7724
if (dfc->buf3_size < sizeof (uint32_t)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7727
emlxs_dfc_xlate(dfc->cmd), dfc->buf3_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7733
emlxs_dfc_xlate(dfc->cmd), event_count);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7742
emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7749
bcopy((void *)event_buffer, dfc->buf1,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7753
bcopy((void *)&event_count, dfc->buf2, sizeof (uint32_t));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7754
bcopy((void *)&missed, dfc->buf3, sizeof (uint32_t));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7758
emlxs_dfc_xlate(dfc->cmd), event_count, hba->hba_event.missed,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7774
emlxs_dfc_get_event(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7784
event = dfc->data1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7785
pid = dfc->data2;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7787
if (!dfc->buf1_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7788
dfc->buf1 = NULL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7789
} else if (!dfc->buf1) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7790
dfc->buf1_size = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7793
if (dfc->buf2_size < sizeof (uint32_t)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7794
dfc->buf2 = NULL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7795
} else if (!dfc->buf2) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7796
dfc->buf2_size = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7799
if (dfc->buf3_size < sizeof (uint32_t)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7800
dfc->buf3 = NULL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7801
} else if (!dfc->buf3) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7802
dfc->buf3_size = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7807
emlxs_dfc_xlate(dfc->cmd), emlxs_dfc_event_xlate(event), pid,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7808
dfc->buf1_size, dfc->buf1, dfc->buf2_size, dfc->buf2, dfc->data3);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7823
emlxs_dfc_xlate(dfc->cmd), emlxs_dfc_event_xlate(event),
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7832
emlxs_dfc_xlate(dfc->cmd), emlxs_dfc_event_xlate(event),
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7839
dfc_event->dataout = dfc->buf1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7840
dfc_event->size = dfc->buf1_size;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7841
dfc_event->last_id = dfc->data3;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7844
sleep = (dfc->flag & 0x01) ? 1 : 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7848
if (dfc->buf2) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7849
bcopy((void *)&dfc_event->size, dfc->buf2, sizeof (uint32_t));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7852
if (dfc->buf3) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7853
bcopy((void *)&dfc_event->last_id, dfc->buf3,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7859
emlxs_dfc_xlate(dfc->cmd), emlxs_dfc_event_xlate(event), pid,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
79
static int32_t emlxs_dfc_write_mem(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
803
emlxs_fcio_manage(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
81
static int32_t emlxs_dfc_write_ctlreg(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
811
vpi = (dfc->data4 < MAX_VPORTS)? dfc->data4:0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8145
emlxs_dfc_get_dump_region(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
815
fcio.fcio_flags = dfc->flag;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8154
emlxs_dfc_xlate(dfc->cmd), dfc->data1, dfc->buf1_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8156
if (!dfc->buf1 || !dfc->buf1_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
816
fcio.fcio_cmd = dfc->data1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8160
if (!dfc->buf2 || !dfc->buf2_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8162
"%s: Null buffer2 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8167
if (dfc->buf2_size < sizeof (uint32_t)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
817
fcio.fcio_cmd_flags = dfc->data2;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8170
emlxs_dfc_xlate(dfc->cmd), dfc->buf2_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8177
rval = emlxs_get_dump_region(hba, dfc->data1, NULL, &size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
818
fcio.fcio_xfer = dfc->data3;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8184
if (dfc->buf1_size < size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8187
emlxs_dfc_xlate(dfc->cmd), dfc->buf1_size, size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8194
rval = emlxs_get_dump_region(hba, dfc->data1, dfc->buf1, &size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
820
if (dfc->buf1_size && dfc->buf1) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8202
bcopy((void *) &size, (void *) dfc->buf2, sizeof (uint32_t));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
821
fcio.fcio_ilen = dfc->buf1_size;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
822
fcio.fcio_ibuf = dfc->buf1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
825
if (dfc->buf2_size && dfc->buf2) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
826
fcio.fcio_olen = dfc->buf2_size;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
827
fcio.fcio_obuf = dfc->buf2;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
83
static int32_t emlxs_dfc_read_ctlreg(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
830
if (dfc->buf3_size && dfc->buf3) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
831
fcio.fcio_alen = dfc->buf3_size;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
832
fcio.fcio_abuf = dfc->buf3;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
835
if (!dfc->buf4 || (dfc->buf4_size < sizeof (uint32_t))) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
839
emlxs_dfc_xlate(dfc->cmd), emlxs_fcio_xlate(dfc->data1),
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
840
dfc->buf4, dfc->buf4_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
849
dfc->flag = fcio.fcio_flags;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
85
static int32_t emlxs_dfc_get_event(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
850
dfc->data1 = fcio.fcio_cmd;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
851
dfc->data2 = fcio.fcio_cmd_flags;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
852
dfc->data3 = fcio.fcio_xfer;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8549
emlxs_dfc_loopback_mode(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8566
"%s: FCoE not supported.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8572
switch (dfc->flag) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8576
"%s: Disabling Loopback.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8581
emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8593
"%s: Enabling ILB.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8599
emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
860
bcopy((void *)&fcio.fcio_errno, (void *)dfc->buf4, sizeof (uint32_t));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8616
"%s: Enabling ELB.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8622
emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8632
emlxs_dfc_xlate(dfc->cmd), dfc->flag);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8641
emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8651
emlxs_dfc_xlate(dfc->cmd), new_mode);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8674
emlxs_dfc_xlate(dfc->cmd), mb->mbxCommand);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8682
"%s: %s failed. status=%x", emlxs_dfc_xlate(dfc->cmd),
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8692
timeout = dfc->data1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
87
static int32_t emlxs_dfc_set_event(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8708
"%s: Linkdown timeout.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8728
emlxs_dfc_xlate(dfc->cmd), mb->mbxCommand);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8736
"%s: %s failed. status=%x", emlxs_dfc_xlate(dfc->cmd),
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8752
"%s: Linkup timeout.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8763
emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8782
emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8789
"%s: Node created. node=%p", emlxs_dfc_xlate(dfc->cmd), ndlp);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8796
emlxs_dfc_xlate(dfc->cmd), new_mode);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8822
emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8829
"%s: XRI created. xri=%d", emlxs_dfc_xlate(dfc->cmd),
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8839
emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8847
"%s: XRI reserved. xri=%d", emlxs_dfc_xlate(dfc->cmd),
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8868
emlxs_dfc_xlate(dfc->cmd), rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8882
emlxs_dfc_loopback_test(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8894
"%s: FCoE not supported.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
89
static int32_t emlxs_dfc_get_eventinfo(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8905
emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8915
"%s: Adapter offline.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8923
"%s: Link not up.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8929
if (!dfc->buf1 || !dfc->buf1_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8931
"%s: NULL buffer1 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8937
if (!dfc->buf2 || !dfc->buf2_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8939
"%s: NULL buffer2 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8945
if (dfc->buf1_size > MAX_CT_PAYLOAD) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8948
emlxs_dfc_xlate(dfc->cmd), dfc->buf1_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8959
"%s: Host node not found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8967
"%s: Host XRI not found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8973
pkt = emlxs_pkt_alloc(port, dfc->buf1_size + 16,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8974
dfc->buf2_size + 16, 0, KM_SLEEP);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8978
"%s: Unable to allocate pkt.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8987
bcopy((void *)dfc->buf1, (void *)&CtCmd->un.data, dfc->buf1_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9069
bcopy((void *)&CtCmd->un.data, (void *)dfc->buf2, dfc->buf2_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9074
emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
91
static int32_t emlxs_dfc_get_nodeinfo(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9100
emlxs_dfc_reset_port(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9105
switch (dfc->flag) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9125
emlxs_dfc_xlate(dfc->cmd), dfc->flag);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9273
emlxs_dfc_init_auth(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9280
if (!dfc->buf1 || !dfc->buf1_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9282
"%s: Null buffer1 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9287
if (dfc->buf1_size < 8) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9290
emlxs_dfc_xlate(dfc->cmd), dfc->buf1_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9295
if (!dfc->buf2 || !dfc->buf2_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9297
"%s: Null buffer2 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9302
if (dfc->buf2_size < 8) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9305
emlxs_dfc_xlate(dfc->cmd), dfc->buf1_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9310
lwwpn = (uint8_t *)dfc->buf1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9311
rwwpn = (uint8_t *)dfc->buf2;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9323
emlxs_dfc_get_auth_cfg(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9329
if (!dfc->buf1 || !dfc->buf1_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9331
"%s: Null buffer1 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9336
if (dfc->buf1_size < sizeof (dfc_fcsp_config_t)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9339
emlxs_dfc_xlate(dfc->cmd), dfc->buf1_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9344
fcsp_config = (dfc_fcsp_config_t *)dfc->buf1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9358
emlxs_dfc_set_auth_cfg(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9365
if (!dfc->buf1 || !dfc->buf1_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9367
"%s: Null buffer1 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9372
if (dfc->buf1_size < sizeof (dfc_fcsp_config_t)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9375
emlxs_dfc_xlate(dfc->cmd), dfc->buf1_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9380
if (!dfc->buf2 || !dfc->buf2_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9382
"%s: Null buffer2 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9387
if (dfc->buf2_size < sizeof (dfc_password_t)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9390
emlxs_dfc_xlate(dfc->cmd), dfc->buf1_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9395
fcsp_config = (dfc_fcsp_config_t *)dfc->buf1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9396
dfc_pwd = (dfc_password_t *)dfc->buf2;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9398
switch (dfc->flag) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9420
emlxs_dfc_get_auth_pwd(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9426
if (!dfc->buf1 || !dfc->buf1_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9428
"%s: Null buffer1 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9433
if (dfc->buf1_size < sizeof (dfc_auth_password_t)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9436
emlxs_dfc_xlate(dfc->cmd), dfc->buf1_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9442
dfc_pwd = (dfc_auth_password_t *)dfc->buf1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9455
emlxs_dfc_set_auth_pwd(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9461
if (!dfc->buf1 || !dfc->buf1_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9463
"%s: Null buffer1 found.", emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9468
if (dfc->buf1_size < sizeof (dfc_auth_password_t)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9471
emlxs_dfc_xlate(dfc->cmd), dfc->buf1_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9476
dfc_pwd = (dfc_auth_password_t *)dfc->buf1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9489
emlxs_dfc_get_auth_status(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9495
if (!dfc->buf1 || !dfc->buf1_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9498
emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
95
static int32_t emlxs_dfc_get_fctstat(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9503
if (dfc->buf1_size < sizeof (dfc_auth_status_t)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9506
emlxs_dfc_xlate(dfc->cmd), dfc->buf1_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9511
fcsp_status = (dfc_auth_status_t *)dfc->buf1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9524
emlxs_dfc_get_auth_cfg_table(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9534
if (!dfc->buf2 || !dfc->buf2_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9537
emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9543
if (dfc->buf2_size < sizeof (uint32_t)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9546
emlxs_dfc_xlate(dfc->cmd), dfc->buf2_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9552
bcopy((void *)&hba->auth_cfg_count, (void *)dfc->buf2,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9555
if (!dfc->buf1 || !dfc->buf1_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9561
count = dfc->buf1_size / sizeof (dfc_fcsp_config_t);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9565
emlxs_dfc_xlate(dfc->cmd), count, hba->auth_cfg_count);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9572
(dfc_fcsp_config_t *)dfc->buf1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9581
emlxs_dfc_get_auth_key_table(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9591
if (!dfc->buf2 || !dfc->buf2_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9594
emlxs_dfc_xlate(dfc->cmd));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9600
if (dfc->buf2_size < sizeof (uint32_t)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9603
emlxs_dfc_xlate(dfc->cmd), dfc->buf2_size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9609
bcopy((void *)&hba->auth_key_count, (void *)dfc->buf2,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9612
if (!dfc->buf1 || !dfc->buf1_size) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9618
count = dfc->buf1_size / sizeof (dfc_auth_password_t);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9622
emlxs_dfc_xlate(dfc->cmd), count, hba->auth_key_count);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9629
(dfc_auth_password_t *)dfc->buf1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9642
emlxs_dfc_sd_set_bucket(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9648
type = dfc->data1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9649
search_type = dfc->data2;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9662
bcopy(dfc->buf3, (void *) &emlxs_sd_bucket,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9673
emlxs_dfc_sd_destroy_bucket(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9678
type = dfc->data1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9700
emlxs_dfc_sd_get_bucket(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9705
type = dfc->data1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9714
bcopy(&emlxs_sd_bucket, dfc->buf3,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9726
emlxs_dfc_sd_start_collection(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9734
if (dfc->data1 != SD_SCSI_IO_LATENCY_TYPE) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9745
bcopy((void *)dfc->buf3, (void *)wwpn, 8);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9788
emlxs_dfc_sd_stop_collection(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9796
if (dfc->data1 != SD_SCSI_IO_LATENCY_TYPE) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9807
bcopy((void *)dfc->buf3, (void *)wwpn, 8);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9851
emlxs_dfc_sd_reset_collection(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9859
if (dfc->data1 != SD_SCSI_IO_LATENCY_TYPE) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9870
bcopy((void *)dfc->buf3, (void *)wwpn, 8);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
99
static int32_t emlxs_dfc_create_vport(emlxs_hba_t *hba, dfc_t *dfc,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9901
emlxs_dfc_sd_get_data(emlxs_hba_t *hba, dfc_t *dfc, int32_t mode)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9911
if (dfc->data1 != SD_SCSI_IO_LATENCY_TYPE) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9922
bcopy((void *)dfc->buf3, (void *)wwpn, 8);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9932
bufsize = dfc->buf4_size;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9967
(void *)((char *)dfc->buf4 + skip_bytes),
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9973
(void *)((char *)dfc->buf4 + skip_bytes),
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9992
bcopy((void *)&count, (void *)dfc->buf2, sizeof (uint16_t));
usr/src/uts/common/sys/fibre-channel/fca/emlxs/emlxs_extern.h
830
extern int32_t emlxs_dfc_manage(emlxs_hba_t *hba, void *dfc,