usr/src/lib/sun_fc/common/HandleNPIVPort.cc
109
ret = (portWWN == vport->getPortWWN());
usr/src/lib/sun_fc/common/HandleNPIVPort.cc
122
return (*vport == *(port->getPortByIndex(index)));
usr/src/lib/sun_fc/common/HandleNPIVPort.cc
137
HBA_NPIVATTRIBUTES attributes = vport->getPortAttributes(newState);
usr/src/lib/sun_fc/common/HandleNPIVPort.cc
85
vport->getPortWWN(), newState);
usr/src/lib/sun_fc/common/HandleNPIVPort.h
51
HBA *hba, HBAPort *port, HBANPIVPort *vport);
usr/src/lib/sun_fc/common/HandleNPIVPort.h
66
HBANPIVPort *vport;
usr/src/lib/sun_fc/common/HandlePort.cc
195
HBANPIVPort* vport = port->getPortByIndex(index);
usr/src/lib/sun_fc/common/HandlePort.cc
196
return (getHandleNPIVPort(vport->getPortWWN()));
usr/src/lib/sun_fc/common/HandlePort.cc
206
HBANPIVPort* vport = port->getPort(wwn);
usr/src/lib/sun_fc/common/HandlePort.cc
207
npivportHandles[wwn] = new HandleNPIVPort(handle, this, hba, port, vport);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10004
emlxs_port_t *vport;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10026
vport = emlxs_vport_find_wwpn(hba, wwpn);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10028
if (!vport) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10036
dfc_event = &vport->sd_events[i];
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10057
emlxs_get_sd_event(vport, dfc_event, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10064
vport->sd_event_mask |= event;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10068
dfc_event = &vport->sd_events[i];
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10081
(void) emlxs_kill_dfc_event(vport, dfc_event);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10086
dfc_event = &vport->sd_events[i];
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10097
vport->sd_event_mask &= ~event;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10109
emlxs_port_t *vport;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10122
vport = emlxs_vport_find_wwpn(hba, wwpn);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10124
if (!vport) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10132
dfc_event = &vport->sd_events[i];
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10143
if (!(vport->sd_event_mask & dfc_event->event)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10156
emlxs_get_sd_event(vport, dfc_event, sleep);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2967
emlxs_port_t *vport;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3018
vport = &VPORT(vpi);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3020
if ((bcmp((caddr_t)&vport->wwnn,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3022
(bcmp((caddr_t)&vport->wwpn,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3024
if (!(vport->flag & EMLXS_PORT_CONFIG) &&
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3025
(vport->flag & EMLXS_PORT_BOUND)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3045
vport = &VPORT(vpi);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3047
if (!(vport->flag & EMLXS_PORT_CONFIG)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3127
bcopy((caddr_t)dfc_vport->wwnn, (caddr_t)&vport->wwnn, 8);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3128
bcopy((caddr_t)dfc_vport->wwpn, (caddr_t)&vport->wwpn, 8);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3129
(void) strncpy((caddr_t)vport->snn, (caddr_t)dfc_vport->snn,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3130
(sizeof (vport->snn)-1));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3131
(void) strncpy((caddr_t)vport->spn, (caddr_t)dfc_vport->spn,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3132
(sizeof (vport->spn)-1));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3133
vport->flag |= (EMLXS_PORT_CONFIG | EMLXS_PORT_ENABLED);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3136
vport->options &= ~EMLXS_OPT_RESTRICT_MASK;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3137
vport->flag &= ~EMLXS_PORT_RESTRICTED;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3139
vport->options |= EMLXS_OPT_RESTRICT;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3140
vport->flag |= EMLXS_PORT_RESTRICTED;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3143
vport->options |= EMLXS_OPT_UNRESTRICT;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3145
vport->flag |= EMLXS_PORT_RESTRICTED;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3149
if (vport->flag & EMLXS_PORT_BOUND) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3154
emlxs_port_online(vport);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3167
emlxs_port_t *vport;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3195
vport = emlxs_vport_find_wwpn(hba, wwpn);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3198
if (!vport || !(vport->flag & EMLXS_PORT_CONFIG)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3207
if (vport->did) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3209
if (!(pkt = emlxs_pkt_alloc(vport,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3231
pkt->pkt_cmd_fhdr.s_id = LE_SWAP24_LO(vport->did);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3245
els->un.logo.un.nPortId32 = LE_SWAP32(vport->did);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3246
bcopy(&vport->wwpn, &els->un.logo.portName, 8);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3256
(void) emlxs_port_offline(vport, 0xffffffff);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3259
vport->flag &= ~(EMLXS_PORT_CONFIG | EMLXS_PORT_ENABLED);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3279
emlxs_port_t *vport;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3307
vport = &VPORT(i);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3310
if (!(vport->flag & EMLXS_PORT_CONFIG)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3314
bcopy(vport->snn, dfc_vport->snn, 256);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3315
bcopy(vport->spn, dfc_vport->spn, 256);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3316
bcopy(&vport->wwpn, dfc_vport->wwpn, 8);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3317
bcopy(&vport->wwnn, dfc_vport->wwnn, 8);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3318
dfc_vport->port_id = vport->did;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3319
dfc_vport->vpi = vport->vpi;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3320
dfc_vport->ulp_statec = vport->ulp_statec;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3323
if (vport->flag & EMLXS_PORT_ENABLED) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3327
if (vport->flag & EMLXS_PORT_BOUND) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3331
if (vport->flag & EMLXS_PORT_IP_UP) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3335
if (vport->flag & EMLXS_PORT_RESTRICTED) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3434
emlxs_port_t *vport;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3440
vport = &VPORT(i);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3441
total_rpi += vport->vpip->rpi_online;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3506
emlxs_port_t *vport = &VPORT(hba->vpi_max);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3590
vport = &VPORT(i);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3591
if (vport->did) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3598
(void) emlxs_vpi_port_bind_notify(vport);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3603
vport->vpi = hba->vpi_max;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3604
vport->hba = hba;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3606
if (!(pkt = emlxs_pkt_alloc(vport,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3640
bcopy((caddr_t)wwn, (caddr_t)&vport->wwnn, 8);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3646
bcopy((caddr_t)wwn, (caddr_t)&vport->wwpn, 8);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3648
bcopy((void *)&els->un.logi, (void *)&vport->sparam,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3668
(void) emlxs_vpi_port_unbind_notify(vport, 1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3671
if (!(pkt1 = emlxs_pkt_alloc(vport,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3742
(void) EMLXS_SLI_UNREG_NODE(vport, 0, 0, 0, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3744
(void) emlxs_mb_unreg_vpi(vport);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9728
emlxs_port_t *vport;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9748
vport = emlxs_vport_find_wwpn(hba, wwpn);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9750
if (!vport) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9756
rw_enter(&vport->node_rwlock, RW_READER);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9757
if (vport->sd_io_latency_state == SD_COLLECTING) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9759
rw_exit(&vport->node_rwlock);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9764
nlp = vport->node_table[i];
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9774
vport->sd_io_latency_state = SD_COLLECTING;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9775
rw_exit(&vport->node_rwlock);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9790
emlxs_port_t *vport;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9810
vport = emlxs_vport_find_wwpn(hba, wwpn);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9812
if (!vport) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9817
rw_enter(&vport->node_rwlock, RW_READER);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9818
if (vport->sd_io_latency_state != SD_COLLECTING) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9820
rw_exit(&vport->node_rwlock);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9823
vport->sd_io_latency_state = SD_STOPPED;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9824
rw_exit(&vport->node_rwlock);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9830
vport = &temp_hba->port[j];
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9831
if (vport->sd_io_latency_state == SD_COLLECTING)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9853
emlxs_port_t *vport;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9873
vport = emlxs_vport_find_wwpn(hba, wwpn);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9875
if (!vport) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9881
rw_enter(&vport->node_rwlock, RW_READER);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9883
nlp = vport->node_table[i];
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9892
rw_exit(&vport->node_rwlock);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9903
emlxs_port_t *vport;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9925
vport = emlxs_vport_find_wwpn(hba, wwpn);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9927
if (!vport) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9938
rw_enter(&vport->node_rwlock, RW_READER);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9940
nlp = vport->node_table[i];
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9946
rw_exit(&vport->node_rwlock);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9961
rw_enter(&vport->node_rwlock, RW_READER);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9963
nlp = vport->node_table[i];
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9989
rw_exit(&vport->node_rwlock);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_els.c
1360
if ((vvl.un0.w0.oui == 0x0000C9) && (vvl.un1.w1.vport)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_els.c
562
emlxs_port_t *vport;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_els.c
613
vport = &VPORT(i);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_els.c
615
if (!(vport->flag & EMLXS_PORT_BOUND)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_els.c
619
vport->sparam.cmn.altBbCredit = altBbCredit;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_event.c
115
vport = &VPORT(i);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_event.c
117
if (vport->sd_event_mask) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_event.c
118
vport->sd_event_mask = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_event.c
99
emlxs_port_t *vport;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10177
emlxs_port_t *vport;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10213
vport = &VPORT(i);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10214
vpip = vport->vpip;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10216
if (!(vport->flag & EMLXS_PORT_BOUND) ||
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10230
vport = &VPORT(i);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10231
vpip = vport->vpip;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10233
if (!(vport->flag & EMLXS_PORT_BOUND) ||
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10369
emlxs_port_t *vport;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10411
vport = &VPORT(i);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10412
vpip = vport->vpip;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10424
(void) emlxs_vpi_event(vport, FCF_EVENT_VPI_OFFLINE, vpip);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10440
emlxs_port_t *vport;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10458
vport = &VPORT(i);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10459
vpip = vport->vpip;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10472
(void) emlxs_vpi_event(vport, FCF_EVENT_VPI_PAUSE, vpip);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11001
emlxs_port_t *vport;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11040
vport = &VPORT(i);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11041
vpip = vport->vpip;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11043
if (!(vport->flag & EMLXS_PORT_BOUND) ||
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11062
(void) emlxs_vpi_event(vport, FCF_EVENT_VPI_ONLINE, vpip);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13151
emlxs_port_t *vport = vpip->port;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13210
sid = (vport->did)? vport->did:vport->prev_did;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13218
pkt = emlxs_pkt_alloc(vport,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13251
bcopy((uint8_t *)&vport->wwpn,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
1922
emlxs_port_t *vport;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
1962
vport = &VPORT(i);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
1963
rpip = vport->vpip->fabric_rpip;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
2002
emlxs_port_t *vport;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
2050
vport = &VPORT(i);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
2051
vpip = &vport->VPIobj;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
2056
vpip->port = vport;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
2058
vport->vpip = vpip;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3627
emlxs_port_t *vport;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3707
vport = &VPORT(i);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3708
vpip = vport->vpip;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3710
if (!(vport->flag & EMLXS_PORT_BOUND) ||
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3716
(caddr_t)&vport->sparam,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3719
bcopy((caddr_t)&vport->wwnn,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3720
(caddr_t)&vport->sparam.nodeName,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3723
bcopy((caddr_t)&vport->wwpn,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3724
(caddr_t)&vport->sparam.portName,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4927
emlxs_port_t *vport;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4944
vport = &VPORT(vpi);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4945
vpip = vport->vpip;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4954
rval = emlxs_vpi_event(vport, FCF_EVENT_VPI_PAUSE, vpip);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
6783
emlxs_port_t *vport;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
6829
vport = &VPORT(i);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
6830
vpip = vport->vpip;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
9607
emlxs_port_t *vport;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
9661
vport = &VPORT(i);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
9662
vpip = vport->vpip;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
9664
if (!(vport->flag & EMLXS_PORT_BOUND) ||
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
9678
(void) emlxs_vpi_event(vport, FCF_EVENT_VPI_ONLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcp.c
1472
emlxs_port_online(emlxs_port_t *vport)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcp.c
1474
emlxs_hba_t *hba = vport->hba;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcp.c
1489
if ((vport->vpi > 0) &&
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcp.c
1495
if (!(vport->flag & EMLXS_PORT_BOUND) ||
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcp.c
1496
!(vport->flag & EMLXS_PORT_ENABLED)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcp.c
1506
emlxs_fcp_tag_nodes(vport);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcp.c
1507
while ((nlp = emlxs_find_tagged_node(vport))) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcp.c
1509
(void) emlxs_rpi_resume_notify(vport,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcp.c
1574
!(hba->flag & FC_LOOPBACK_MODE) && (vport->ulp_statec != state)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcp.c
1576
vport->ulp_statec = state;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcp.c
1578
if ((vport->vpi > 0) && !(hba->flag & FC_NPIV_LINKUP)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcp.c
1587
if (vport->flag & EMLXS_PORT_BOUND) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcp.c
1588
if (vport->vpi == 0) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcp.c
1598
if (vport->mode == MODE_INITIATOR) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcp.c
1599
emlxs_fca_link_up(vport);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcp.c
1602
else if (vport->mode == MODE_TARGET) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcp.c
1603
emlxs_fct_link_up(vport);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcp.c
1607
if (vport->vpi == 0) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcp.c
1619
if (vport->vpi == 0) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcp.c
1629
emlxs_ub_flush(vport);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
924
emlxs_port_t *vport;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
927
vport = &VPORT(i);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
929
if (!(vport->flag & EMLXS_PORT_ENABLED)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
933
emlxs_fct_unbind_port(vport);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_mbox.c
1857
emlxs_port_t *vport;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_mbox.c
1940
vport = &VPORT(i);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_mbox.c
1942
if (!(vport->flag & EMLXS_PORT_BOUND) ||
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_mbox.c
1943
!(vport->did)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_mbox.c
1947
(void) emlxs_mb_reg_vpi(vport, NULL);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_mbox.c
2303
emlxs_port_t *vport;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_mbox.c
2359
vport = &VPORT(i);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_mbox.c
2360
if (! (vport->flag & EMLXS_PORT_BOUND)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_mbox.c
2365
(caddr_t)&vport->sparam,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_mbox.c
2368
bcopy((caddr_t)&vport->wwnn,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_mbox.c
2369
(caddr_t)&vport->sparam.nodeName,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_mbox.c
2372
bcopy((caddr_t)&vport->wwpn,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_mbox.c
2373
(caddr_t)&vport->sparam.portName,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_mem.c
294
emlxs_port_t *vport;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_mem.c
367
vport = &VPORT(j);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_mem.c
368
if (vport->node_count) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_mem.c
369
emlxs_node_destroy_all(vport);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_node.c
916
(vvl.un1.w1.vport)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
1915
emlxs_port_t *vport;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
1995
vport = &VPORT(i);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
1996
vport->hba = hba;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
1997
vport->vpi = i;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
1999
vpip = &vport->VPIobj;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
2002
vpip->port = vport;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
2004
vport->vpip = vpip;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
2045
emlxs_port_t *vport;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
2228
vport = &VPORT(i);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
2230
vport->flag &= EMLXS_PORT_RESET_MASK;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
2231
vport->did = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
2232
vport->prev_did = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
2233
vport->lip_type = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
2234
bzero(&vport->fabric_sparam, sizeof (SERV_PARM));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
2235
bzero(&vport->prev_fabric_sparam, sizeof (SERV_PARM));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
2237
bzero((caddr_t)&vport->node_base, sizeof (NODELIST));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
2238
vport->node_base.nlp_Rpi = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
2239
vport->node_base.nlp_DID = 0xffffff;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
2240
vport->node_base.nlp_list_next = NULL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
2241
vport->node_base.nlp_list_prev = NULL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
2242
vport->node_base.nlp_active = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
2243
vport->node_count = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
2245
if (vport->ub_count < EMLXS_UB_TOKEN_OFFSET) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
2246
vport->ub_count = EMLXS_UB_TOKEN_OFFSET;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
6756
emlxs_port_t *vport;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
6887
vport = &VPORT(i);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
6889
if (!(vport->flag & EMLXS_PORT_BOUND) ||
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
6890
!(vport->flag &
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
6895
emlxs_port_online(vport);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
2531
emlxs_port_t *vport;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
2549
vport = &VPORT(i);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
2550
vport->hba = hba;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
2551
vport->vpi = i;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
2553
vpip = &vport->VPIobj;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
2556
vpip->port = vport;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
2558
vport->vpip = vpip;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
2598
emlxs_port_t *vport;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
2726
vport = &VPORT(i);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
2728
vport->flag &= EMLXS_PORT_RESET_MASK;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
2729
vport->did = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
2730
vport->prev_did = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
2731
vport->lip_type = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
2732
bzero(&vport->fabric_sparam, sizeof (SERV_PARM));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
2733
bzero(&vport->prev_fabric_sparam, sizeof (SERV_PARM));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
2735
bzero((caddr_t)&vport->node_base, sizeof (NODELIST));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
2736
vport->node_base.nlp_Rpi = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
2737
vport->node_base.nlp_DID = 0xffffff;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
2738
vport->node_base.nlp_list_next = NULL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
2739
vport->node_base.nlp_list_prev = NULL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
2740
vport->node_base.nlp_active = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
2741
vport->node_count = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
2743
if (vport->ub_count < EMLXS_UB_TOKEN_OFFSET) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
2744
vport->ub_count = EMLXS_UB_TOKEN_OFFSET;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
6271
emlxs_port_t *vport;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
6514
vport = &VPORT(i);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
6516
if (vport->did == fchdr.d_id) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
6517
port = vport;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
10371
emlxs_port_t *vport;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
10379
vport = sbp->port;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
10382
(vport->sd_io_latency_state != SD_COLLECTING)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
10391
ndlp = emlxs_node_find_did(vport, did, 1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
1452
emlxs_port_t *vport;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
1663
vport = port;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
1665
if (vport->vpi == 0) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
1675
port = vport;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
6491
emlxs_port_t *vport;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
6604
vport = &VPORT(i);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
6607
mode_mask = vport->mode_mask & port->mode_mask;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
6611
vport->flag |= EMLXS_INI_ENABLED;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
6613
vport->flag &= ~EMLXS_INI_ENABLED;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
6617
vport->flag |= EMLXS_TGT_ENABLED;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
6619
vport->flag &= ~EMLXS_TGT_ENABLED;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
6650
emlxs_port_t *vport;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
6663
vport = &VPORT(i);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
6664
vport->mode = (vport->flag & EMLXS_INI_ENABLED)?
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
6671
vport = &VPORT(i);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
6672
vport->mode = (vport->flag & EMLXS_TGT_ENABLED)?
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
6692
emlxs_port_t *vport;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
6746
vport = &VPORT(i);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
6755
vport->mode_mask = mode_mask & vport_mode_mask;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
6757
if (vport->mode_mask != cfg_vport_mode_mask) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
6760
i, emlxs_mode_xlate(vport->mode_mask));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
6766
vport = &VPORT(i);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
6767
vport->mode_mask = MODE_INITIATOR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
6807
emlxs_port_t *vport;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
6819
vport = &VPORT(i);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
6820
vport->flag &= ~EMLXS_INI_ENABLED;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
7974
emlxs_port_t *vport;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
8036
vport = &VPORT(vpi);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
8038
if (vport->flag & EMLXS_PORT_ENABLED) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
8069
vport = &VPORT(vpi);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
8071
if (vport->flag & EMLXS_PORT_ENABLED) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
8095
vport = &VPORT(vpi);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
8097
if (!(vport->flag & EMLXS_PORT_CONFIG)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
8101
if (vport->options & EMLXS_OPT_RESTRICT_MASK) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
8106
vport->flag |= EMLXS_PORT_RESTRICTED;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
8108
vport->flag &= ~EMLXS_PORT_RESTRICTED;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
9044
emlxs_port_t *vport;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
9125
vport = &VPORT(i);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
9127
if (!(vport->flag & EMLXS_INI_BOUND)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
9131
if (did == vport->did) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
9293
vvl->un1.w1.vport = (port->vpi > 0) ? 1 : 0;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
698
struct init_qm_vport_params *vport;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
720
vport = &(qm_info->qm_vport_params[i]);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
722
qm_info->start_vport + i, vport->vport_rl, vport->vport_wfq);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
724
DP_VERBOSE(p_hwfn, ECORE_MSG_HW, "%d ", vport->first_tx_pq_id[tc]);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
861
u8 vport,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
873
vport_update_params.vport_id = vport;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2_api.h
214
u8 vport,
usr/src/uts/common/sys/fibre-channel/fca/emlxs/emlxs_hw.h
1339
uint32_t vport:1; /* Word 1, Bit 31 */
usr/src/uts/common/sys/fibre-channel/fca/emlxs/emlxs_hw.h
1344
uint32_t vport:1; /* Word 1, Bit 31 */
usr/src/uts/sun4v/io/vcc.c
1067
vcc_port_t *vport;
usr/src/uts/sun4v/io/vcc.c
1099
vport = &vccp->port[i];
usr/src/uts/sun4v/io/vcc.c
1100
mutex_enter(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
1102
if (vport->status & VCC_PORT_OPEN) {
usr/src/uts/sun4v/io/vcc.c
1103
(void) i_vcc_close_port(vport);
usr/src/uts/sun4v/io/vcc.c
1110
(void) i_vcc_delete_port(vccp, vport);
usr/src/uts/sun4v/io/vcc.c
1112
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
1113
cv_destroy(&vport->read_cv);
usr/src/uts/sun4v/io/vcc.c
1114
cv_destroy(&vport->write_cv);
usr/src/uts/sun4v/io/vcc.c
1115
mutex_destroy(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
1147
vcc_port_t *vport;
usr/src/uts/sun4v/io/vcc.c
1159
vport = &(vccp->port[portno]);
usr/src/uts/sun4v/io/vcc.c
1161
mutex_enter(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
1163
if ((vport->status & VCC_PORT_AVAIL) == 0) {
usr/src/uts/sun4v/io/vcc.c
1165
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
1169
if (vport->status & VCC_PORT_OPEN) {
usr/src/uts/sun4v/io/vcc.c
1173
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
1179
vport)) != 0) {
usr/src/uts/sun4v/io/vcc.c
1180
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
1185
vport->status |= VCC_PORT_OPEN;
usr/src/uts/sun4v/io/vcc.c
1186
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
1194
if (vport->ldc_id == VCC_INVALID_CHANNEL) {
usr/src/uts/sun4v/io/vcc.c
1195
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
1201
if ((vport->status & VCC_PORT_LDC_CHANNEL_READY) == 0) {
usr/src/uts/sun4v/io/vcc.c
1202
rv = i_vcc_ldc_init(vccp, vport);
usr/src/uts/sun4v/io/vcc.c
1204
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
1209
vport->status |= VCC_PORT_LDC_CHANNEL_READY;
usr/src/uts/sun4v/io/vcc.c
1212
vport->status |= VCC_PORT_USE_READ_LDC | VCC_PORT_USE_WRITE_LDC|
usr/src/uts/sun4v/io/vcc.c
1216
vport->status |= VCC_PORT_NONBLOCK;
usr/src/uts/sun4v/io/vcc.c
1219
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
1226
i_vcc_close_port(vcc_port_t *vport)
usr/src/uts/sun4v/io/vcc.c
1229
if ((vport->status & VCC_PORT_OPEN) == 0) {
usr/src/uts/sun4v/io/vcc.c
1233
ASSERT(mutex_owned(&vport->lock));
usr/src/uts/sun4v/io/vcc.c
1235
if (vport->status & VCC_PORT_LDC_CHANNEL_READY) {
usr/src/uts/sun4v/io/vcc.c
1237
i_vcc_ldc_fini(vport);
usr/src/uts/sun4v/io/vcc.c
1238
vport->status &= ~VCC_PORT_LDC_CHANNEL_READY;
usr/src/uts/sun4v/io/vcc.c
1242
vport->status |= VCC_PORT_TERM_RD | VCC_PORT_TERM_WR;
usr/src/uts/sun4v/io/vcc.c
1243
vport->status &= ~VCC_PORT_NONBLOCK;
usr/src/uts/sun4v/io/vcc.c
1244
vport->status &= ~VCC_PORT_OPEN;
usr/src/uts/sun4v/io/vcc.c
1245
vport->valid_pid = VCC_NO_PID_BLOCKING;
usr/src/uts/sun4v/io/vcc.c
1248
cv_broadcast(&vport->read_cv);
usr/src/uts/sun4v/io/vcc.c
1249
cv_broadcast(&vport->write_cv);
usr/src/uts/sun4v/io/vcc.c
1265
vcc_port_t *vport;
usr/src/uts/sun4v/io/vcc.c
1279
vport = &(vccp->port[portno]);
usr/src/uts/sun4v/io/vcc.c
1286
mutex_enter(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
1288
if ((vport->status & VCC_PORT_OPEN) == 0) {
usr/src/uts/sun4v/io/vcc.c
1289
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
1298
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
1306
vport)) != 0) {
usr/src/uts/sun4v/io/vcc.c
1307
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
1311
rv = i_vcc_close_port(vport);
usr/src/uts/sun4v/io/vcc.c
1312
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
1330
vcc_port_t *vport;
usr/src/uts/sun4v/io/vcc.c
1338
vport = &vccp->port[i];
usr/src/uts/sun4v/io/vcc.c
1344
if ((vport->status & VCC_PORT_AVAIL) == 0) {
usr/src/uts/sun4v/io/vcc.c
1349
mutex_enter(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
1353
vport->status |= VCC_PORT_ADDED;
usr/src/uts/sun4v/io/vcc.c
1355
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
1362
cons.cons_no = vport->number;
usr/src/uts/sun4v/io/vcc.c
1363
cons.tcp_port = vport->tcp_port;
usr/src/uts/sun4v/io/vcc.c
1365
vport->minorp->domain_name, MAXPATHLEN);
usr/src/uts/sun4v/io/vcc.c
1367
(void) memcpy(cons.group_name, vport->group_name,
usr/src/uts/sun4v/io/vcc.c
1369
vport->status &= ~VCC_PORT_ADDED;
usr/src/uts/sun4v/io/vcc.c
1370
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
1378
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
1392
vport = &vccp->port[VCC_CONTROL_PORT];
usr/src/uts/sun4v/io/vcc.c
1393
mutex_enter(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
1394
vport->pollevent |= VCC_POLL_ADD_PORT;
usr/src/uts/sun4v/io/vcc.c
1395
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
1409
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
1426
vcc_port_t *vport;
usr/src/uts/sun4v/io/vcc.c
1431
vport = &(vccp->port[i]);
usr/src/uts/sun4v/io/vcc.c
1433
if ((vport->status & VCC_PORT_AVAIL) == 0) {
usr/src/uts/sun4v/io/vcc.c
1438
if (vport->status & port_status) {
usr/src/uts/sun4v/io/vcc.c
1446
vport = &vccp->port[VCC_CONTROL_PORT];
usr/src/uts/sun4v/io/vcc.c
1449
mutex_enter(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
1450
vport->pollevent &= ~event;
usr/src/uts/sun4v/io/vcc.c
1451
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
1460
vcc_port_t *vport;
usr/src/uts/sun4v/io/vcc.c
1474
vport = &vccp->port[portno];
usr/src/uts/sun4v/io/vcc.c
1476
if ((vport->status & VCC_PORT_AVAIL) == 0) {
usr/src/uts/sun4v/io/vcc.c
1480
mutex_enter(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
1481
vport->status &= ~VCC_PORT_ADDED;
usr/src/uts/sun4v/io/vcc.c
1486
cons.cons_no = vport->number;
usr/src/uts/sun4v/io/vcc.c
1487
cons.tcp_port = vport->tcp_port;
usr/src/uts/sun4v/io/vcc.c
1489
(void) memcpy(cons.domain_name, vport->minorp->domain_name, MAXPATHLEN);
usr/src/uts/sun4v/io/vcc.c
1491
(void) memcpy(cons.group_name, vport->group_name, MAXPATHLEN);
usr/src/uts/sun4v/io/vcc.c
1493
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
1503
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
1521
vcc_port_t *vport;
usr/src/uts/sun4v/io/vcc.c
1525
vport = &(vccp->port[VCC_CONTROL_PORT]);
usr/src/uts/sun4v/io/vcc.c
1527
if ((vport->pollevent & VCC_POLL_ADD_PORT) == 0) {
usr/src/uts/sun4v/io/vcc.c
1574
vcc_port_t *vport;
usr/src/uts/sun4v/io/vcc.c
1577
vport = &(vccp->port[i]);
usr/src/uts/sun4v/io/vcc.c
1579
if ((vport->status & VCC_PORT_AVAIL) == 0) {
usr/src/uts/sun4v/io/vcc.c
1583
ASSERT(!mutex_owned(&vport->lock));
usr/src/uts/sun4v/io/vcc.c
1587
mutex_enter(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
1588
vport->status &= ~VCC_PORT_OPEN;
usr/src/uts/sun4v/io/vcc.c
1591
vport->pollevent = 0;
usr/src/uts/sun4v/io/vcc.c
1592
vport->pollflag = 0;
usr/src/uts/sun4v/io/vcc.c
1593
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
1596
if (vport->status & VCC_PORT_ADDED) {
usr/src/uts/sun4v/io/vcc.c
1598
mutex_enter(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
1599
vport->status &= ~VCC_PORT_ADDED;
usr/src/uts/sun4v/io/vcc.c
1600
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
1605
vport = &vccp->port[VCC_CONTROL_PORT];
usr/src/uts/sun4v/io/vcc.c
1615
vcc_port_t *vport;
usr/src/uts/sun4v/io/vcc.c
1629
vport = &vccp->port[portno];
usr/src/uts/sun4v/io/vcc.c
1631
if ((vport->status & VCC_PORT_AVAIL) == 0) {
usr/src/uts/sun4v/io/vcc.c
1635
mutex_enter(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
1637
rv = i_vcc_close_port(vport);
usr/src/uts/sun4v/io/vcc.c
1640
vport->valid_pid = ddi_get_pid();
usr/src/uts/sun4v/io/vcc.c
1642
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
1652
vcc_port_t *vport;
usr/src/uts/sun4v/io/vcc.c
1667
vport = &vccp->port[console.cons_no];
usr/src/uts/sun4v/io/vcc.c
1668
if ((vport->status & VCC_PORT_AVAIL) == 0) {
usr/src/uts/sun4v/io/vcc.c
1670
} else if (strncmp(console.domain_name, vport->minorp->domain_name,
usr/src/uts/sun4v/io/vcc.c
1673
} else if (strncmp(console.group_name, vport->group_name,
usr/src/uts/sun4v/io/vcc.c
1676
} else if (console.tcp_port != vport->tcp_port) {
usr/src/uts/sun4v/io/vcc.c
1678
} else if (vport->ldc_id == VCC_INVALID_CHANNEL) {
usr/src/uts/sun4v/io/vcc.c
1744
i_vcc_write_ldc(vcc_port_t *vport, vcc_msg_t *buf)
usr/src/uts/sun4v/io/vcc.c
1749
ASSERT(mutex_owned(&vport->lock));
usr/src/uts/sun4v/io/vcc.c
1750
ASSERT((vport->status & VCC_PORT_USE_WRITE_LDC) == 0);
usr/src/uts/sun4v/io/vcc.c
1755
rv = ldc_write(vport->ldc_handle, (caddr_t)buf, &size);
usr/src/uts/sun4v/io/vcc.c
1758
vport->number, rv, size);
usr/src/uts/sun4v/io/vcc.c
1768
if (vport->status & VCC_PORT_NONBLOCK) {
usr/src/uts/sun4v/io/vcc.c
1774
rv = i_vcc_wait_port_status(vport, &vport->write_cv,
usr/src/uts/sun4v/io/vcc.c
1781
vport->status &= ~VCC_PORT_LDC_WRITE_READY;
usr/src/uts/sun4v/io/vcc.c
1795
vcc_port_t *vport;
usr/src/uts/sun4v/io/vcc.c
1802
vport = &(vccp->port[portno]);
usr/src/uts/sun4v/io/vcc.c
1804
if ((vport->status & VCC_PORT_AVAIL) == 0) {
usr/src/uts/sun4v/io/vcc.c
1815
mutex_enter(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
1819
vport)) != 0) {
usr/src/uts/sun4v/io/vcc.c
1820
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
1824
(void) memcpy(&term, &vport->term, sizeof (term));
usr/src/uts/sun4v/io/vcc.c
1825
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
1838
mutex_enter(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
1842
vport)) != 0) {
usr/src/uts/sun4v/io/vcc.c
1843
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
1847
(void) memcpy(&vport->term, &term, sizeof (term));
usr/src/uts/sun4v/io/vcc.c
1848
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
1855
mutex_enter(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
1859
vport)) != 0) {
usr/src/uts/sun4v/io/vcc.c
1860
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
1865
rv = i_vcc_wait_port_status(vport, &vport->write_cv,
usr/src/uts/sun4v/io/vcc.c
1868
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
1872
vport->status &= ~VCC_PORT_USE_WRITE_LDC;
usr/src/uts/sun4v/io/vcc.c
1878
rv = i_vcc_write_ldc(vport, &buf);
usr/src/uts/sun4v/io/vcc.c
1880
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
1882
i_vcc_set_port_status(vport, &vport->write_cv,
usr/src/uts/sun4v/io/vcc.c
1892
mutex_enter(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
1896
vport)) != 0) {
usr/src/uts/sun4v/io/vcc.c
1897
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
1906
vport->status &= ~VCC_PORT_TERM_RD;
usr/src/uts/sun4v/io/vcc.c
1911
vport->status |= VCC_PORT_TERM_RD;
usr/src/uts/sun4v/io/vcc.c
1912
cv_broadcast(&vport->read_cv);
usr/src/uts/sun4v/io/vcc.c
1917
vport->status &= ~VCC_PORT_TERM_WR;
usr/src/uts/sun4v/io/vcc.c
1922
vport->status |= VCC_PORT_TERM_WR;
usr/src/uts/sun4v/io/vcc.c
1923
cv_broadcast(&vport->write_cv);
usr/src/uts/sun4v/io/vcc.c
1927
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
1931
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
1996
vcc_port_t *vport;
usr/src/uts/sun4v/io/vcc.c
2025
vport = &(vccp->port[portno]);
usr/src/uts/sun4v/io/vcc.c
2027
mutex_enter(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
2031
vport)) != 0) {
usr/src/uts/sun4v/io/vcc.c
2032
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
2036
rv = i_vcc_wait_port_status(vport, &vport->read_cv,
usr/src/uts/sun4v/io/vcc.c
2040
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
2046
vport->status &= ~VCC_PORT_USE_READ_LDC;
usr/src/uts/sun4v/io/vcc.c
2051
rv = i_vcc_read_ldc(vport, buf, &size);
usr/src/uts/sun4v/io/vcc.c
2056
if (vport->status & VCC_PORT_NONBLOCK) {
usr/src/uts/sun4v/io/vcc.c
2071
vport->status &= ~VCC_PORT_LDC_DATA_READY;
usr/src/uts/sun4v/io/vcc.c
2073
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
2074
i_vcc_set_port_status(vport, &vport->read_cv,
usr/src/uts/sun4v/io/vcc.c
2076
mutex_enter(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
2078
rv = i_vcc_wait_port_status(vport, &vport->read_cv,
usr/src/uts/sun4v/io/vcc.c
2085
vport->status &= ~VCC_PORT_USE_READ_LDC;
usr/src/uts/sun4v/io/vcc.c
2088
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
2096
i_vcc_set_port_status(vport, &vport->read_cv, VCC_PORT_USE_READ_LDC);
usr/src/uts/sun4v/io/vcc.c
2115
vcc_port_t *vport;
usr/src/uts/sun4v/io/vcc.c
2135
vport = &(vccp->port[portno]);
usr/src/uts/sun4v/io/vcc.c
2141
mutex_enter(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
2145
vport)) != 0) {
usr/src/uts/sun4v/io/vcc.c
2146
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
2150
rv = i_vcc_wait_port_status(vport, &vport->write_cv,
usr/src/uts/sun4v/io/vcc.c
2154
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
2158
vport->status &= ~VCC_PORT_USE_WRITE_LDC;
usr/src/uts/sun4v/io/vcc.c
2159
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
2182
mutex_enter(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
2186
vport)) != 0) {
usr/src/uts/sun4v/io/vcc.c
2187
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
2191
rv = i_vcc_write_ldc(vport, &buf);
usr/src/uts/sun4v/io/vcc.c
2193
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
2203
i_vcc_set_port_status(vport, &vport->write_cv, VCC_PORT_USE_WRITE_LDC);
usr/src/uts/sun4v/io/vcc.c
2213
vcc_port_t *vport;
usr/src/uts/sun4v/io/vcc.c
2233
vport = &(vccp->port[portno]);
usr/src/uts/sun4v/io/vcc.c
2236
mutex_enter(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
2237
rv = i_vcc_delete_port(vccp, vport);
usr/src/uts/sun4v/io/vcc.c
2238
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
2301
vcc_port_t *vport;
usr/src/uts/sun4v/io/vcc.c
2341
vport = &vccp->port[portno];
usr/src/uts/sun4v/io/vcc.c
2343
mutex_enter(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
2344
(void) i_vcc_delete_port(vccp, vport);
usr/src/uts/sun4v/io/vcc.c
2345
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
2351
mutex_enter(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
2352
(void) i_vcc_delete_port(vccp, vport);
usr/src/uts/sun4v/io/vcc.c
2353
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
2361
vport = &vccp->port[VCC_CONTROL_PORT];
usr/src/uts/sun4v/io/vcc.c
2363
if (vport->pollflag & VCC_POLL_CONFIG) {
usr/src/uts/sun4v/io/vcc.c
2365
mutex_enter(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
2366
vport->pollevent |= VCC_POLL_ADD_PORT;
usr/src/uts/sun4v/io/vcc.c
2367
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
2368
pollwakeup(&vport->poll, POLLIN);
usr/src/uts/sun4v/io/vcc.c
2433
vcc_port_t *vport;
usr/src/uts/sun4v/io/vcc.c
2446
vport = &(vccp->port[portno]);
usr/src/uts/sun4v/io/vcc.c
2458
if (vport->pollevent) {
usr/src/uts/sun4v/io/vcc.c
2463
*phpp = &vport->poll;
usr/src/uts/sun4v/io/vcc.c
2465
mutex_enter(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
2466
vport->pollflag |= VCC_POLL_CONFIG;
usr/src/uts/sun4v/io/vcc.c
2467
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
2476
vport->pollevent, vport->pollflag);
usr/src/uts/sun4v/io/vcc.c
325
i_vcc_can_use_port(vcc_minor_t *minorp, vcc_port_t *vport)
usr/src/uts/sun4v/io/vcc.c
327
if (vport->minorp != minorp) {
usr/src/uts/sun4v/io/vcc.c
332
if (vport->valid_pid == VCC_NO_PID_BLOCKING) {
usr/src/uts/sun4v/io/vcc.c
337
if (vport->valid_pid != ddi_get_pid()) {
usr/src/uts/sun4v/io/vcc.c
347
i_vcc_wait_port_status(vcc_port_t *vport, kcondvar_t *cv, uint32_t status)
usr/src/uts/sun4v/io/vcc.c
352
ASSERT(mutex_owned(&vport->lock));
usr/src/uts/sun4v/io/vcc.c
356
if ((vport->status & VCC_PORT_AVAIL) == 0) {
usr/src/uts/sun4v/io/vcc.c
359
vport->number);
usr/src/uts/sun4v/io/vcc.c
363
if ((vport->status & VCC_PORT_OPEN) == 0) {
usr/src/uts/sun4v/io/vcc.c
365
vport->number);
usr/src/uts/sun4v/io/vcc.c
369
if (vport->status & VCC_PORT_LDC_LINK_DOWN) {
usr/src/uts/sun4v/io/vcc.c
373
if ((vport->valid_pid != VCC_NO_PID_BLOCKING) &&
usr/src/uts/sun4v/io/vcc.c
374
(vport->valid_pid != ddi_get_pid())) {
usr/src/uts/sun4v/io/vcc.c
378
if ((vport->status & status) == status) {
usr/src/uts/sun4v/io/vcc.c
386
rv = cv_wait_sig(cv, &vport->lock);
usr/src/uts/sun4v/io/vcc.c
389
vport->number);
usr/src/uts/sun4v/io/vcc.c
399
i_vcc_set_port_status(vcc_port_t *vport, kcondvar_t *cv, uint32_t status)
usr/src/uts/sun4v/io/vcc.c
402
mutex_enter(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
403
vport->status |= status;
usr/src/uts/sun4v/io/vcc.c
405
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
410
i_vcc_ldc_init(vcc_t *vccp, vcc_port_t *vport)
usr/src/uts/sun4v/io/vcc.c
415
ASSERT(mutex_owned(&vport->lock));
usr/src/uts/sun4v/io/vcc.c
416
ASSERT(vport->ldc_id != VCC_INVALID_CHANNEL);
usr/src/uts/sun4v/io/vcc.c
424
if ((rv = ldc_init(vport->ldc_id, &attr, &(vport->ldc_handle))) != 0) {
usr/src/uts/sun4v/io/vcc.c
426
" failed ldc_init %d \n", vport->number, vport->ldc_id, rv);
usr/src/uts/sun4v/io/vcc.c
427
vport->ldc_id = VCC_INVALID_CHANNEL;
usr/src/uts/sun4v/io/vcc.c
432
if ((rv = ldc_reg_callback(vport->ldc_handle, vcc_ldc_cb,
usr/src/uts/sun4v/io/vcc.c
433
(caddr_t)vport)) != 0) {
usr/src/uts/sun4v/io/vcc.c
435
"failed\n", vport->number);
usr/src/uts/sun4v/io/vcc.c
436
(void) ldc_fini(vport->ldc_handle);
usr/src/uts/sun4v/io/vcc.c
437
vport->ldc_id = VCC_INVALID_CHANNEL;
usr/src/uts/sun4v/io/vcc.c
442
if ((rv = ldc_open(vport->ldc_handle)) != 0) {
usr/src/uts/sun4v/io/vcc.c
444
vport->number, vport->ldc_id);
usr/src/uts/sun4v/io/vcc.c
445
(void) ldc_unreg_callback(vport->ldc_handle);
usr/src/uts/sun4v/io/vcc.c
446
(void) ldc_fini(vport->ldc_handle);
usr/src/uts/sun4v/io/vcc.c
447
vport->ldc_id = VCC_INVALID_CHANNEL;
usr/src/uts/sun4v/io/vcc.c
452
if ((rv = ldc_status(vport->ldc_handle, &vport->ldc_status)) != 0) {
usr/src/uts/sun4v/io/vcc.c
454
vport->number);
usr/src/uts/sun4v/io/vcc.c
455
(void) ldc_close(vport->ldc_handle);
usr/src/uts/sun4v/io/vcc.c
456
(void) ldc_unreg_callback(vport->ldc_handle);
usr/src/uts/sun4v/io/vcc.c
457
(void) ldc_fini(vport->ldc_handle);
usr/src/uts/sun4v/io/vcc.c
458
vport->ldc_id = VCC_INVALID_CHANNEL;
usr/src/uts/sun4v/io/vcc.c
467
i_vcc_ldc_fini(vcc_port_t *vport)
usr/src/uts/sun4v/io/vcc.c
474
D1("i_vcc_ldc_fini: port@%lld, ldc_id%%llx\n", vport->number,
usr/src/uts/sun4v/io/vcc.c
475
vport->ldc_id);
usr/src/uts/sun4v/io/vcc.c
477
ASSERT(mutex_owned(&vport->lock));
usr/src/uts/sun4v/io/vcc.c
480
rv = i_vcc_wait_port_status(vport, &vport->write_cv,
usr/src/uts/sun4v/io/vcc.c
484
vport->status &= ~VCC_PORT_USE_WRITE_LDC;
usr/src/uts/sun4v/io/vcc.c
495
(void) i_vcc_write_ldc(vport, &buf);
usr/src/uts/sun4v/io/vcc.c
497
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
498
i_vcc_set_port_status(vport, &vport->write_cv,
usr/src/uts/sun4v/io/vcc.c
500
mutex_enter(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
504
rv = i_vcc_wait_port_status(vport, &vport->read_cv,
usr/src/uts/sun4v/io/vcc.c
508
vport->status &= ~VCC_PORT_USE_READ_LDC;
usr/src/uts/sun4v/io/vcc.c
511
rv = i_vcc_read_ldc(vport, (char *)&buf, &sz);
usr/src/uts/sun4v/io/vcc.c
514
vport->status |= VCC_PORT_USE_READ_LDC;
usr/src/uts/sun4v/io/vcc.c
523
(void) ldc_set_cb_mode(vport->ldc_handle, LDC_CB_DISABLE);
usr/src/uts/sun4v/io/vcc.c
526
while ((rv = ldc_close(vport->ldc_handle)) == EAGAIN) {
usr/src/uts/sun4v/io/vcc.c
530
" %ld\n", vport->ldc_id);
usr/src/uts/sun4v/io/vcc.c
538
(void) ldc_unreg_callback(vport->ldc_handle);
usr/src/uts/sun4v/io/vcc.c
539
(void) ldc_fini(vport->ldc_handle);
usr/src/uts/sun4v/io/vcc.c
548
while (ldc_unreg_callback(vport->ldc_handle) == EAGAIN)
usr/src/uts/sun4v/io/vcc.c
557
i_vcc_read_ldc(vcc_port_t *vport, char *data_buf, size_t *sz)
usr/src/uts/sun4v/io/vcc.c
570
ASSERT((vport->status & VCC_PORT_USE_READ_LDC) == 0);
usr/src/uts/sun4v/io/vcc.c
577
rv = ldc_read(vport->ldc_handle, (caddr_t)&buf, &size);
usr/src/uts/sun4v/io/vcc.c
630
vcc_port_t *vport = (vcc_port_t *)arg;
usr/src/uts/sun4v/io/vcc.c
638
vport->number, event);
usr/src/uts/sun4v/io/vcc.c
644
i_vcc_set_port_status(vport, &vport->write_cv,
usr/src/uts/sun4v/io/vcc.c
652
(void) ldc_chkq(vport->ldc_handle, &hasdata);
usr/src/uts/sun4v/io/vcc.c
658
i_vcc_set_port_status(vport, &vport->read_cv,
usr/src/uts/sun4v/io/vcc.c
665
i_vcc_set_port_status(vport, &vport->write_cv,
usr/src/uts/sun4v/io/vcc.c
667
cv_broadcast(&vport->read_cv);
usr/src/uts/sun4v/io/vcc.c
681
vcc_port_t *vport;
usr/src/uts/sun4v/io/vcc.c
689
vport = &(vccp->port[portno]);
usr/src/uts/sun4v/io/vcc.c
690
if ((vport->status & VCC_PORT_AVAIL) == 0) {
usr/src/uts/sun4v/io/vcc.c
697
if (vport->ldc_id != VCC_INVALID_CHANNEL) {
usr/src/uts/sun4v/io/vcc.c
703
mutex_enter(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
706
vport->ldc_id = ldc_id;
usr/src/uts/sun4v/io/vcc.c
708
if (vport->status & VCC_PORT_OPEN) {
usr/src/uts/sun4v/io/vcc.c
710
if ((rv = i_vcc_ldc_init(vccp, vport)) != 0) {
usr/src/uts/sun4v/io/vcc.c
711
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
716
vport->status |= VCC_PORT_LDC_CHANNEL_READY;
usr/src/uts/sun4v/io/vcc.c
717
cv_broadcast(&vport->read_cv);
usr/src/uts/sun4v/io/vcc.c
718
cv_broadcast(&vport->write_cv);
usr/src/uts/sun4v/io/vcc.c
721
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
724
vport->number, vport->ldc_id, vport->minorp->domain_name);
usr/src/uts/sun4v/io/vcc.c
737
vcc_port_t *vport;
usr/src/uts/sun4v/io/vcc.c
746
vport = &(vccp->port[portno]);
usr/src/uts/sun4v/io/vcc.c
747
if (vport->status & VCC_PORT_AVAIL) {
usr/src/uts/sun4v/io/vcc.c
754
vport->number = portno;
usr/src/uts/sun4v/io/vcc.c
755
vport->ldc_id = VCC_INVALID_CHANNEL;
usr/src/uts/sun4v/io/vcc.c
791
vport->minorp = &vccp->minor_tbl[minor_idx];
usr/src/uts/sun4v/io/vcc.c
794
(void) strlcpy(vport->group_name, group_name, MAXPATHLEN);
usr/src/uts/sun4v/io/vcc.c
796
vport->tcp_port = tcp_port;
usr/src/uts/sun4v/io/vcc.c
798
vport->number, vport->minorp->domain_name,
usr/src/uts/sun4v/io/vcc.c
799
vport->group_name, vport->tcp_port);
usr/src/uts/sun4v/io/vcc.c
821
mutex_enter(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
822
vport->status = VCC_PORT_AVAIL | VCC_PORT_ADDED;
usr/src/uts/sun4v/io/vcc.c
823
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
831
i_vcc_delete_port(vcc_t *vccp, vcc_port_t *vport)
usr/src/uts/sun4v/io/vcc.c
838
ASSERT(mutex_owned(&vport->lock));
usr/src/uts/sun4v/io/vcc.c
840
if ((vport->status & VCC_PORT_AVAIL) == 0) {
usr/src/uts/sun4v/io/vcc.c
845
if (vport->status & VCC_PORT_OPEN) {
usr/src/uts/sun4v/io/vcc.c
847
vport->valid_pid = VCC_NO_PID_BLOCKING;
usr/src/uts/sun4v/io/vcc.c
848
rv = i_vcc_close_port(vport);
usr/src/uts/sun4v/io/vcc.c
853
vport->minorp->domain_name);
usr/src/uts/sun4v/io/vcc.c
858
cv_broadcast(&vport->read_cv);
usr/src/uts/sun4v/io/vcc.c
859
cv_broadcast(&vport->write_cv);
usr/src/uts/sun4v/io/vcc.c
86
static int i_vcc_ldc_init(vcc_t *vccp, vcc_port_t *vport);
usr/src/uts/sun4v/io/vcc.c
860
vport->status = 0;
usr/src/uts/sun4v/io/vcc.c
917
vcc_port_t *vport;
usr/src/uts/sun4v/io/vcc.c
920
vport = &(vccp->port[i]);
usr/src/uts/sun4v/io/vcc.c
921
mutex_destroy(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
922
cv_destroy(&vport->read_cv);
usr/src/uts/sun4v/io/vcc.c
923
cv_destroy(&vport->write_cv);
usr/src/uts/sun4v/io/vcc.c
938
vcc_port_t *vport;
usr/src/uts/sun4v/io/vcc.c
94
static int i_vcc_close_port(vcc_port_t *vport);
usr/src/uts/sun4v/io/vcc.c
95
static int i_vcc_write_ldc(vcc_port_t *vport, vcc_msg_t *buf);
usr/src/uts/sun4v/io/vcc.c
96
static int i_vcc_read_ldc(vcc_port_t *vport, char *data_buf, size_t *sz);
usr/src/uts/sun4v/io/vcc.c
964
vport = &(vccp->port[i]);
usr/src/uts/sun4v/io/vcc.c
965
mutex_init(&vport->lock, NULL, MUTEX_DRIVER, NULL);
usr/src/uts/sun4v/io/vcc.c
966
cv_init(&vport->read_cv, NULL, CV_DRIVER, NULL);
usr/src/uts/sun4v/io/vcc.c
967
cv_init(&vport->write_cv, NULL, CV_DRIVER, NULL);
usr/src/uts/sun4v/io/vcc.c
968
vport->valid_pid = VCC_NO_PID_BLOCKING;
usr/src/uts/sun4v/io/vcc.c
971
vport = &vccp->port[VCC_CONTROL_PORT];
usr/src/uts/sun4v/io/vcc.c
972
mutex_enter(&vport->lock);
usr/src/uts/sun4v/io/vcc.c
974
vport->minorp = &vccp->minor_tbl[VCC_CONTROL_MINOR_IDX];
usr/src/uts/sun4v/io/vcc.c
975
vport->status |= VCC_PORT_AVAIL;
usr/src/uts/sun4v/io/vcc.c
987
mutex_exit(&vport->lock);
usr/src/uts/sun4v/io/vldc.c
1015
vldc_port_t *vport;
usr/src/uts/sun4v/io/vldc.c
1032
vport = &(vldcp->port[portno]);
usr/src/uts/sun4v/io/vldc.c
1036
if (vport->status != VLDC_PORT_CLOSED) {
usr/src/uts/sun4v/io/vldc.c
1041
vport->recv_buf = kmem_alloc(vport->mtu, KM_SLEEP);
usr/src/uts/sun4v/io/vldc.c
1042
vport->send_buf = kmem_alloc(vport->mtu, KM_SLEEP);
usr/src/uts/sun4v/io/vldc.c
1044
if (strcmp(vport->minorp->sname, VLDC_HVCTL_SVCNAME) == 0)
usr/src/uts/sun4v/io/vldc.c
1045
vport->cookie_buf = kmem_alloc(vldc_max_cookie, KM_SLEEP);
usr/src/uts/sun4v/io/vldc.c
1047
vport->is_stream = B_FALSE; /* assume not a stream */
usr/src/uts/sun4v/io/vldc.c
1048
vport->hanged_up = B_FALSE;
usr/src/uts/sun4v/io/vldc.c
1050
vport->status = VLDC_PORT_OPEN;
usr/src/uts/sun4v/io/vldc.c
1095
vldc_set_ldc_mode(vldc_port_t *vport, vldc_t *vldcp, int channel_mode)
usr/src/uts/sun4v/io/vldc.c
1100
ASSERT(MUTEX_HELD(&vport->minorp->lock));
usr/src/uts/sun4v/io/vldc.c
1105
vport->is_stream = B_TRUE;
usr/src/uts/sun4v/io/vldc.c
1109
vport->is_stream = B_FALSE;
usr/src/uts/sun4v/io/vldc.c
1115
if (vport->status == VLDC_PORT_READY) {
usr/src/uts/sun4v/io/vldc.c
1116
rv = i_vldc_ldc_close(vport);
usr/src/uts/sun4v/io/vldc.c
1125
vport->status, channel_mode);
usr/src/uts/sun4v/io/vldc.c
1127
vport->ldc_mode = channel_mode;
usr/src/uts/sun4v/io/vldc.c
1132
attr.mtu = vport->mtu;
usr/src/uts/sun4v/io/vldc.c
1133
attr.mode = vport->ldc_mode;
usr/src/uts/sun4v/io/vldc.c
1135
if ((rv = ldc_init(vport->ldc_id, &attr,
usr/src/uts/sun4v/io/vldc.c
1136
&vport->ldc_handle)) != 0) {
usr/src/uts/sun4v/io/vldc.c
1142
if ((rv = ldc_reg_callback(vport->ldc_handle,
usr/src/uts/sun4v/io/vldc.c
1143
i_vldc_cb, (caddr_t)vport)) != 0) {
usr/src/uts/sun4v/io/vldc.c
1150
if ((rv = ldc_open(vport->ldc_handle)) != 0) {
usr/src/uts/sun4v/io/vldc.c
1155
vport->status = VLDC_PORT_READY;
usr/src/uts/sun4v/io/vldc.c
1161
rv = ldc_up(vport->ldc_handle);
usr/src/uts/sun4v/io/vldc.c
1169
rv = ldc_status(vport->ldc_handle, &vport->ldc_status);
usr/src/uts/sun4v/io/vldc.c
1172
"status, rv=%d\n", vport->inst, vport->number, rv);
usr/src/uts/sun4v/io/vldc.c
1177
vport->ldc_id);
usr/src/uts/sun4v/io/vldc.c
1182
vport->status = VLDC_PORT_OPEN;
usr/src/uts/sun4v/io/vldc.c
1183
(void) ldc_close(vport->ldc_handle);
usr/src/uts/sun4v/io/vldc.c
1185
(void) ldc_unreg_callback(vport->ldc_handle);
usr/src/uts/sun4v/io/vldc.c
1187
(void) ldc_fini(vport->ldc_handle);
usr/src/uts/sun4v/io/vldc.c
1194
i_vldc_ioctl_read_cookie(vldc_port_t *vport, int vldc_instance, void *arg,
usr/src/uts/sun4v/io/vldc.c
1214
mutex_enter(&vport->minorp->lock);
usr/src/uts/sun4v/io/vldc.c
1217
"size 0x%lx to 0x%p\n", vldc_instance, vport->number,
usr/src/uts/sun4v/io/vldc.c
1221
rv = ldc_mem_rdwr_cookie(vport->ldc_handle, vport->cookie_buf,
usr/src/uts/sun4v/io/vldc.c
1226
vldc_instance, vport->number, dst_addr, rv);
usr/src/uts/sun4v/io/vldc.c
1227
mutex_exit(&vport->minorp->lock);
usr/src/uts/sun4v/io/vldc.c
1232
vldc_instance, vport->number);
usr/src/uts/sun4v/io/vldc.c
1234
mutex_exit(&vport->minorp->lock);
usr/src/uts/sun4v/io/vldc.c
1240
rv = ddi_copyout(vport->cookie_buf, src_addr, copy_size, mode);
usr/src/uts/sun4v/io/vldc.c
1262
i_vldc_ioctl_write_cookie(vldc_port_t *vport, int vldc_instance, void *arg,
usr/src/uts/sun4v/io/vldc.c
1275
"to 0x%lx\n", vldc_instance, vport->number, copy_info.src_addr,
usr/src/uts/sun4v/io/vldc.c
1290
if (ddi_copyin((caddr_t)src_addr, vport->cookie_buf,
usr/src/uts/sun4v/io/vldc.c
1295
mutex_enter(&vport->minorp->lock);
usr/src/uts/sun4v/io/vldc.c
1298
rv = ldc_mem_rdwr_cookie(vport->ldc_handle, vport->cookie_buf,
usr/src/uts/sun4v/io/vldc.c
1303
vldc_instance, vport->number, dst_addr, rv);
usr/src/uts/sun4v/io/vldc.c
1304
mutex_exit(&vport->minorp->lock);
usr/src/uts/sun4v/io/vldc.c
1309
vldc_instance, vport->number);
usr/src/uts/sun4v/io/vldc.c
1311
mutex_exit(&vport->minorp->lock);
usr/src/uts/sun4v/io/vldc.c
1331
i_vldc_ioctl_opt_op(vldc_port_t *vport, vldc_t *vldcp, void *arg, int mode)
usr/src/uts/sun4v/io/vldc.c
1348
vldc_cmd.opt_val = vport->mtu;
usr/src/uts/sun4v/io/vldc.c
1361
mutex_enter(&vport->minorp->lock);
usr/src/uts/sun4v/io/vldc.c
1363
if ((vport->status != VLDC_PORT_CLOSED) &&
usr/src/uts/sun4v/io/vldc.c
1364
(new_mtu != vport->mtu)) {
usr/src/uts/sun4v/io/vldc.c
1370
kmem_free(vport->recv_buf, vport->mtu);
usr/src/uts/sun4v/io/vldc.c
1371
vport->recv_buf = kmem_alloc(new_mtu, KM_SLEEP);
usr/src/uts/sun4v/io/vldc.c
1373
kmem_free(vport->send_buf, vport->mtu);
usr/src/uts/sun4v/io/vldc.c
1374
vport->send_buf = kmem_alloc(new_mtu, KM_SLEEP);
usr/src/uts/sun4v/io/vldc.c
1376
vport->mtu = new_mtu;
usr/src/uts/sun4v/io/vldc.c
1379
mutex_exit(&vport->minorp->lock);
usr/src/uts/sun4v/io/vldc.c
1387
vldc_cmd.opt_val = vport->status;
usr/src/uts/sun4v/io/vldc.c
1401
vldc_cmd.opt_val = vport->ldc_mode;
usr/src/uts/sun4v/io/vldc.c
1407
mutex_enter(&vport->minorp->lock);
usr/src/uts/sun4v/io/vldc.c
1408
rv = vldc_set_ldc_mode(vport, vldcp, vldc_cmd.opt_val);
usr/src/uts/sun4v/io/vldc.c
1409
mutex_exit(&vport->minorp->lock);
usr/src/uts/sun4v/io/vldc.c
1435
vldc_port_t *vport;
usr/src/uts/sun4v/io/vldc.c
1455
vport = &(vldcp->port[portno]);
usr/src/uts/sun4v/io/vldc.c
1462
rv = i_vldc_ioctl_opt_op(vport, vldcp, (void *)arg, mode);
usr/src/uts/sun4v/io/vldc.c
1466
if (strcmp(vport->minorp->sname, VLDC_HVCTL_SVCNAME)) {
usr/src/uts/sun4v/io/vldc.c
1470
rv = i_vldc_ioctl_read_cookie(vport, instance,
usr/src/uts/sun4v/io/vldc.c
1475
if (strcmp(vport->minorp->sname, VLDC_HVCTL_SVCNAME)) {
usr/src/uts/sun4v/io/vldc.c
1479
rv = i_vldc_ioctl_write_cookie(vport, instance,
usr/src/uts/sun4v/io/vldc.c
1513
vldc_port_t *vport;
usr/src/uts/sun4v/io/vldc.c
1534
vport = &(vldcp->port[portno]);
usr/src/uts/sun4v/io/vldc.c
1537
if (vport->status != VLDC_PORT_READY) {
usr/src/uts/sun4v/io/vldc.c
1545
size = MIN(vport->mtu, uiop->uio_resid);
usr/src/uts/sun4v/io/vldc.c
1546
rv = ldc_read(vport->ldc_handle, vport->recv_buf, &size);
usr/src/uts/sun4v/io/vldc.c
1553
rv = uiomove(vport->recv_buf, size, UIO_READ, uiop);
usr/src/uts/sun4v/io/vldc.c
1588
vldc_port_t *vport;
usr/src/uts/sun4v/io/vldc.c
1607
vport = &(vldcp->port[portno]);
usr/src/uts/sun4v/io/vldc.c
1610
if (vport->status != VLDC_PORT_READY) {
usr/src/uts/sun4v/io/vldc.c
1620
if (size > vport->mtu) {
usr/src/uts/sun4v/io/vldc.c
1621
if (vport->is_stream) {
usr/src/uts/sun4v/io/vldc.c
1623
size = vport->mtu;
usr/src/uts/sun4v/io/vldc.c
1633
rv = uiomove(vport->send_buf, size, UIO_WRITE, uiop);
usr/src/uts/sun4v/io/vldc.c
1635
rv = ldc_write(vport->ldc_handle, (caddr_t)vport->send_buf,
usr/src/uts/sun4v/io/vldc.c
1662
vldc_port_t *vport;
usr/src/uts/sun4v/io/vldc.c
1681
vport = &(vldcp->port[portno]);
usr/src/uts/sun4v/io/vldc.c
1684
if (vport->status != VLDC_PORT_READY) {
usr/src/uts/sun4v/io/vldc.c
1694
if (vport->ldc_status == LDC_UP) {
usr/src/uts/sun4v/io/vldc.c
1700
if ((ldc_chkq(vport->ldc_handle, &haspkts) == 0) &&
usr/src/uts/sun4v/io/vldc.c
1709
} else if (vport->hanged_up) {
usr/src/uts/sun4v/io/vldc.c
1711
vport->hanged_up = B_FALSE;
usr/src/uts/sun4v/io/vldc.c
1717
*phpp = &vport->poll;
usr/src/uts/sun4v/io/vldc.c
259
vldc_port_t *vport = (vldc_port_t *)arg;
usr/src/uts/sun4v/io/vldc.c
263
ASSERT(vport != NULL);
usr/src/uts/sun4v/io/vldc.c
264
ASSERT(vport->minorp != NULL);
usr/src/uts/sun4v/io/vldc.c
267
"event=0x%lx\n", vport->inst, vport->number, vport->ldc_id, event);
usr/src/uts/sun4v/io/vldc.c
270
mutex_enter(&vport->minorp->lock);
usr/src/uts/sun4v/io/vldc.c
272
if (vport->status == VLDC_PORT_CLOSED) {
usr/src/uts/sun4v/io/vldc.c
276
old_status = vport->ldc_status;
usr/src/uts/sun4v/io/vldc.c
277
rv = ldc_status(vport->ldc_handle, &vport->ldc_status);
usr/src/uts/sun4v/io/vldc.c
280
"rv=%d\n", vport->inst, vport->number, rv);
usr/src/uts/sun4v/io/vldc.c
281
mutex_exit(&vport->minorp->lock);
usr/src/uts/sun4v/io/vldc.c
287
vport->hanged_up = B_FALSE;
usr/src/uts/sun4v/io/vldc.c
297
vport->status = VLDC_PORT_RESET;
usr/src/uts/sun4v/io/vldc.c
298
vport->hanged_up = B_TRUE;
usr/src/uts/sun4v/io/vldc.c
301
rv = ldc_up(vport->ldc_handle);
usr/src/uts/sun4v/io/vldc.c
304
"channel UP rv=%d\n", vport->inst,
usr/src/uts/sun4v/io/vldc.c
305
vport->number, rv);
usr/src/uts/sun4v/io/vldc.c
306
mutex_exit(&vport->minorp->lock);
usr/src/uts/sun4v/io/vldc.c
309
rv = ldc_status(vport->ldc_handle, &vport->ldc_status);
usr/src/uts/sun4v/io/vldc.c
312
"ldc status, rv=%d\n", vport->inst,
usr/src/uts/sun4v/io/vldc.c
313
vport->number, rv);
usr/src/uts/sun4v/io/vldc.c
314
mutex_exit(&vport->minorp->lock);
usr/src/uts/sun4v/io/vldc.c
317
if (vport->ldc_status == LDC_UP) {
usr/src/uts/sun4v/io/vldc.c
319
vport->hanged_up = B_FALSE;
usr/src/uts/sun4v/io/vldc.c
327
vport->status = VLDC_PORT_RESET;
usr/src/uts/sun4v/io/vldc.c
328
vport->hanged_up = B_TRUE;
usr/src/uts/sun4v/io/vldc.c
335
mutex_exit(&vport->minorp->lock);
usr/src/uts/sun4v/io/vldc.c
339
vport->number, pollevents);
usr/src/uts/sun4v/io/vldc.c
340
pollwakeup(&vport->poll, pollevents);
usr/src/uts/sun4v/io/vldc.c
579
vldc_port_t *vport;
usr/src/uts/sun4v/io/vldc.c
603
vport = &(vldcp->port[portno]);
usr/src/uts/sun4v/io/vldc.c
605
if (vport->minorp != NULL) {
usr/src/uts/sun4v/io/vldc.c
611
vport->number = portno;
usr/src/uts/sun4v/io/vldc.c
614
if (i_vldc_get_port_channel(mdp, node, &vport->ldc_id) == -1) {
usr/src/uts/sun4v/io/vldc.c
619
vport->mtu = VLDC_DEFAULT_MTU;
usr/src/uts/sun4v/io/vldc.c
662
vport->inst = vldc_inst;
usr/src/uts/sun4v/io/vldc.c
663
vport->minorp = &vldcp->minor_tbl[minor_idx];
usr/src/uts/sun4v/io/vldc.c
668
vport->inst, vport->number, vport->mtu, vport->ldc_id, sname);
usr/src/uts/sun4v/io/vldc.c
693
vport->status = VLDC_PORT_CLOSED;
usr/src/uts/sun4v/io/vldc.c
704
vldc_port_t *vport;
usr/src/uts/sun4v/io/vldc.c
710
vport = &(vldcp->port[portno]);
usr/src/uts/sun4v/io/vldc.c
711
vminor = vport->minorp;
usr/src/uts/sun4v/io/vldc.c
727
pollwakeup(&vport->poll, POLLHUP);
usr/src/uts/sun4v/io/vldc.c
735
if (vport->status != VLDC_PORT_CLOSED) {
usr/src/uts/sun4v/io/vldc.c
741
ddi_remove_minor_node(vldcp->dip, vport->minorp->sname);
usr/src/uts/sun4v/io/vldc.c
742
vport->minorp = NULL;
usr/src/uts/sun4v/io/vldc.c
763
i_vldc_ldc_close(vldc_port_t *vport)
usr/src/uts/sun4v/io/vldc.c
767
ASSERT(MUTEX_HELD(&vport->minorp->lock));
usr/src/uts/sun4v/io/vldc.c
777
err = ldc_close(vport->ldc_handle);
usr/src/uts/sun4v/io/vldc.c
781
err = ldc_unreg_callback(vport->ldc_handle);
usr/src/uts/sun4v/io/vldc.c
785
err = ldc_fini(vport->ldc_handle);
usr/src/uts/sun4v/io/vldc.c
789
vport->status = VLDC_PORT_OPEN;
usr/src/uts/sun4v/io/vldc.c
798
vldc_port_t *vport;
usr/src/uts/sun4v/io/vldc.c
802
vport = &(vldcp->port[portno]);
usr/src/uts/sun4v/io/vldc.c
804
ASSERT(MUTEX_HELD(&vport->minorp->lock));
usr/src/uts/sun4v/io/vldc.c
807
vport->inst, vport->minorp->portno);
usr/src/uts/sun4v/io/vldc.c
809
vminor = vport->minorp;
usr/src/uts/sun4v/io/vldc.c
811
switch (vport->status) {
usr/src/uts/sun4v/io/vldc.c
815
"state (%d)\n", portno, vport->status);
usr/src/uts/sun4v/io/vldc.c
821
rv = i_vldc_ldc_close(vport);
usr/src/uts/sun4v/io/vldc.c
836
} while (vport->status != VLDC_PORT_CLOSED);
usr/src/uts/sun4v/io/vldc.c
838
if ((rv != 0) || (vport->status == VLDC_PORT_CLOSED))
usr/src/uts/sun4v/io/vldc.c
848
"state (%d)\n", portno, vport->status);
usr/src/uts/sun4v/io/vldc.c
853
ASSERT(vport->status == VLDC_PORT_OPEN);
usr/src/uts/sun4v/io/vldc.c
856
kmem_free(vport->send_buf, vport->mtu);
usr/src/uts/sun4v/io/vldc.c
857
kmem_free(vport->recv_buf, vport->mtu);
usr/src/uts/sun4v/io/vldc.c
860
kmem_free(vport->cookie_buf, vldc_max_cookie);
usr/src/uts/sun4v/io/vldc.c
862
vport->status = VLDC_PORT_CLOSED;