Home
last modified time | relevance | path

Searched refs:vport (Results 1 – 19 of 19) sorted by relevance

/titanic_41/usr/src/uts/sun4v/io/
H A Dvcc.c83 static int i_vcc_ldc_init(vcc_t *vccp, vcc_port_t *vport);
91 static int i_vcc_close_port(vcc_port_t *vport);
92 static int i_vcc_write_ldc(vcc_port_t *vport, vcc_msg_t *buf);
93 static int i_vcc_read_ldc(vcc_port_t *vport, char *data_buf, size_t *sz);
322 i_vcc_can_use_port(vcc_minor_t *minorp, vcc_port_t *vport) in i_vcc_can_use_port() argument
324 if (vport->minorp != minorp) { in i_vcc_can_use_port()
329 if (vport->valid_pid == VCC_NO_PID_BLOCKING) { in i_vcc_can_use_port()
334 if (vport->valid_pid != ddi_get_pid()) { in i_vcc_can_use_port()
344 i_vcc_wait_port_status(vcc_port_t *vport, kcondvar_t *cv, uint32_t status) in i_vcc_wait_port_status() argument
349 ASSERT(mutex_owned(&vport->lock)); in i_vcc_wait_port_status()
[all …]
H A Dvldc.c259 vldc_port_t *vport = (vldc_port_t *)arg; in i_vldc_cb() local
263 ASSERT(vport != NULL); in i_vldc_cb()
264 ASSERT(vport->minorp != NULL); in i_vldc_cb()
267 "event=0x%lx\n", vport->inst, vport->number, vport->ldc_id, event); in i_vldc_cb()
270 mutex_enter(&vport->minorp->lock); in i_vldc_cb()
272 if (vport->status == VLDC_PORT_CLOSED) { in i_vldc_cb()
276 old_status = vport->ldc_status; in i_vldc_cb()
277 rv = ldc_status(vport->ldc_handle, &vport->ldc_status); in i_vldc_cb()
280 "rv=%d\n", vport->inst, vport->number, rv); in i_vldc_cb()
281 mutex_exit(&vport->minorp->lock); in i_vldc_cb()
[all …]
/titanic_41/usr/src/lib/sun_fc/common/
H A DHandleNPIVPort.cc54 port(myPort), active(false), vport(myvPort) { in HandleNPIVPort()
85 vport->getPortWWN(), newState); in validate()
109 ret = (portWWN == vport->getPortWWN()); in match()
122 return (*vport == *(port->getPortByIndex(index))); in match()
137 HBA_NPIVATTRIBUTES attributes = vport->getPortAttributes(newState); in getPortAttributes()
H A DHandlePort.cc195 HBANPIVPort* vport = port->getPortByIndex(index); in getHandleNPIVPortByIndex() local
196 return (getHandleNPIVPort(vport->getPortWWN())); in getHandleNPIVPortByIndex()
206 HBANPIVPort* vport = port->getPort(wwn); in getHandleNPIVPort() local
207 npivportHandles[wwn] = new HandleNPIVPort(handle, this, hba, port, vport); in getHandleNPIVPort()
H A DHandleNPIVPort.h51 HBA *hba, HBAPort *port, HBANPIVPort *vport);
66 HBANPIVPort *vport; variable
/titanic_41/usr/src/uts/common/io/fibre-channel/fca/emlxs/
H A Demlxs_dfc.c2916 emlxs_port_t *vport; in emlxs_dfc_create_vport() local
2967 vport = &VPORT(vpi); in emlxs_dfc_create_vport()
2969 if ((bcmp((caddr_t)&vport->wwnn, in emlxs_dfc_create_vport()
2971 (bcmp((caddr_t)&vport->wwpn, in emlxs_dfc_create_vport()
2973 if (!(vport->flag & EMLXS_PORT_CONFIG) && in emlxs_dfc_create_vport()
2974 (vport->flag & EMLXS_PORT_BOUND)) { in emlxs_dfc_create_vport()
2994 vport = &VPORT(vpi); in emlxs_dfc_create_vport()
2996 if (!(vport->flag & EMLXS_PORT_CONFIG)) { in emlxs_dfc_create_vport()
3076 bcopy((caddr_t)dfc_vport->wwnn, (caddr_t)&vport->wwnn, 8); in emlxs_dfc_create_vport()
3077 bcopy((caddr_t)dfc_vport->wwpn, (caddr_t)&vport->wwpn, 8); in emlxs_dfc_create_vport()
[all …]
H A Demlxs.conf284 vport-restrict-login=1;
H A Demlxs_fcp.c1469 emlxs_port_online(emlxs_port_t *vport) in emlxs_port_online() argument
1471 emlxs_hba_t *hba = vport->hba; in emlxs_port_online()
1486 if ((vport->vpi > 0) && in emlxs_port_online()
1492 if (!(vport->flag & EMLXS_PORT_BOUND) || in emlxs_port_online()
1493 !(vport->flag & EMLXS_PORT_ENABLED)) { in emlxs_port_online()
1503 emlxs_fcp_tag_nodes(vport); in emlxs_port_online()
1504 while ((nlp = emlxs_find_tagged_node(vport))) { in emlxs_port_online()
1506 (void) emlxs_rpi_resume_notify(vport, in emlxs_port_online()
1567 !(hba->flag & FC_LOOPBACK_MODE) && (vport->ulp_statec != state)) { in emlxs_port_online()
1569 vport->ulp_statec = state; in emlxs_port_online()
[all …]
H A Demlxs_solaris.c1451 emlxs_port_t *vport; in emlxs_fca_bind_port() local
1658 vport = port; in emlxs_fca_bind_port()
1660 if (vport->vpi == 0) { in emlxs_fca_bind_port()
1670 port = vport; in emlxs_fca_bind_port()
6479 emlxs_port_t *vport; in emlxs_mode_init() local
6592 vport = &VPORT(i); in emlxs_mode_init()
6595 mode_mask = vport->mode_mask & port->mode_mask; in emlxs_mode_init()
6599 vport->flag |= EMLXS_INI_ENABLED; in emlxs_mode_init()
6601 vport->flag &= ~EMLXS_INI_ENABLED; in emlxs_mode_init()
6605 vport->flag |= EMLXS_TGT_ENABLED; in emlxs_mode_init()
[all …]
H A Demlxs_sli3.c1910 emlxs_port_t *vport; in emlxs_sli3_hba_init() local
1990 vport = &VPORT(i); in emlxs_sli3_hba_init()
1991 vport->hba = hba; in emlxs_sli3_hba_init()
1992 vport->vpi = i; in emlxs_sli3_hba_init()
1994 vpip = &vport->VPIobj; in emlxs_sli3_hba_init()
1997 vpip->port = vport; in emlxs_sli3_hba_init()
1999 vport->vpip = vpip; in emlxs_sli3_hba_init()
2040 emlxs_port_t *vport; in emlxs_sli3_hba_reset() local
2223 vport = &VPORT(i); in emlxs_sli3_hba_reset()
2225 vport->flag &= EMLXS_PORT_RESET_MASK; in emlxs_sli3_hba_reset()
[all …]
H A Demlxs_fcf.c1922 emlxs_port_t *vport; in emlxs_fcf_fini() local
1962 vport = &VPORT(i); in emlxs_fcf_fini()
1963 rpip = vport->vpip->fabric_rpip; in emlxs_fcf_fini()
2002 emlxs_port_t *vport; in emlxs_fcf_init() local
2050 vport = &VPORT(i); in emlxs_fcf_init()
2051 vpip = &vport->VPIobj; in emlxs_fcf_init()
2056 vpip->port = vport; in emlxs_fcf_init()
2058 vport->vpip = vpip; in emlxs_fcf_init()
3627 emlxs_port_t *vport; in emlxs_fc_fcftab_sparm_mbcmpl() local
3707 vport = &VPORT(i); in emlxs_fc_fcftab_sparm_mbcmpl()
[all …]
H A Demlxs_mbox.c1789 emlxs_port_t *vport; in emlxs_clear_la_mbcmpl() local
1872 vport = &VPORT(i); in emlxs_clear_la_mbcmpl()
1874 if (!(vport->flag & EMLXS_PORT_BOUND) || in emlxs_clear_la_mbcmpl()
1875 !(vport->did)) { in emlxs_clear_la_mbcmpl()
1879 (void) emlxs_mb_reg_vpi(vport, NULL); in emlxs_clear_la_mbcmpl()
2231 emlxs_port_t *vport; in emlxs_read_sparam_mbcmpl() local
2287 vport = &VPORT(i); in emlxs_read_sparam_mbcmpl()
2288 if (! (vport->flag & EMLXS_PORT_BOUND)) { in emlxs_read_sparam_mbcmpl()
2293 (caddr_t)&vport->sparam, in emlxs_read_sparam_mbcmpl()
2296 bcopy((caddr_t)&vport->wwnn, in emlxs_read_sparam_mbcmpl()
[all …]
H A Demlxs_event.c98 emlxs_port_t *vport; in emlxs_event_queue_destroy() local
114 vport = &VPORT(i); in emlxs_event_queue_destroy()
116 if (vport->sd_event_mask) { in emlxs_event_queue_destroy()
117 vport->sd_event_mask = 0; in emlxs_event_queue_destroy()
H A Demlxs_sli4.c2183 emlxs_port_t *vport; in emlxs_sli4_hba_init() local
2201 vport = &VPORT(i); in emlxs_sli4_hba_init()
2202 vport->hba = hba; in emlxs_sli4_hba_init()
2203 vport->vpi = i; in emlxs_sli4_hba_init()
2205 vpip = &vport->VPIobj; in emlxs_sli4_hba_init()
2208 vpip->port = vport; in emlxs_sli4_hba_init()
2210 vport->vpip = vpip; in emlxs_sli4_hba_init()
2250 emlxs_port_t *vport; in emlxs_sli4_hba_reset() local
2368 vport = &VPORT(i); in emlxs_sli4_hba_reset()
2370 vport->flag &= EMLXS_PORT_RESET_MASK; in emlxs_sli4_hba_reset()
[all …]
H A Demlxs_mem.c256 emlxs_port_t *vport; in emlxs_mem_free_buffer() local
329 vport = &VPORT(j); in emlxs_mem_free_buffer()
330 if (vport->node_count) { in emlxs_mem_free_buffer()
331 emlxs_node_destroy_all(vport); in emlxs_mem_free_buffer()
H A Demlxs_els.c562 emlxs_port_t *vport; in emlxs_handle_sol_flogi() local
613 vport = &VPORT(i); in emlxs_handle_sol_flogi()
615 if (!(vport->flag & EMLXS_PORT_BOUND)) { in emlxs_handle_sol_flogi()
619 vport->sparam.cmn.altBbCredit = altBbCredit; in emlxs_handle_sol_flogi()
1360 if ((vvl.un0.w0.oui == 0x0000C9) && (vvl.un1.w1.vport)) { in emlxs_process_unsol_plogi()
H A Demlxs_node.c916 (vvl.un1.w1.vport)) { in emlxs_node_create()
H A Demlxs_fct.c921 emlxs_port_t *vport; local
924 vport = &VPORT(i);
926 if (!(vport->flag & EMLXS_PORT_ENABLED)) {
930 emlxs_fct_unbind_port(vport);
/titanic_41/usr/src/uts/common/sys/fibre-channel/fca/emlxs/
H A Demlxs_hw.h1311 uint32_t vport:1; /* Word 1, Bit 31 */ member
1316 uint32_t vport:1; /* Word 1, Bit 31 */ member