/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | vldc.c | 301 rv = ldc_up(vport->ldc_handle); in i_vldc_cb() 777 err = ldc_close(vport->ldc_handle); in i_vldc_ldc_close() 781 err = ldc_unreg_callback(vport->ldc_handle); in i_vldc_ldc_close() 785 err = ldc_fini(vport->ldc_handle); in i_vldc_ldc_close() 1136 &vport->ldc_handle)) != 0) { in vldc_set_ldc_mode() 1142 if ((rv = ldc_reg_callback(vport->ldc_handle, in vldc_set_ldc_mode() 1150 if ((rv = ldc_open(vport->ldc_handle)) != 0) { in vldc_set_ldc_mode() 1161 rv = ldc_up(vport->ldc_handle); in vldc_set_ldc_mode() 1183 (void) ldc_close(vport->ldc_handle); in vldc_set_ldc_mode() 1185 (void) ldc_unreg_callback(vport->ldc_handle); in vldc_set_ldc_mode() [all …]
|
H A D | vcc.c | 436 (void) ldc_fini(vport->ldc_handle); in i_vcc_ldc_init() 442 if ((rv = ldc_open(vport->ldc_handle)) != 0) { in i_vcc_ldc_init() 445 (void) ldc_unreg_callback(vport->ldc_handle); in i_vcc_ldc_init() 446 (void) ldc_fini(vport->ldc_handle); in i_vcc_ldc_init() 455 (void) ldc_close(vport->ldc_handle); in i_vcc_ldc_init() 456 (void) ldc_unreg_callback(vport->ldc_handle); in i_vcc_ldc_init() 457 (void) ldc_fini(vport->ldc_handle); in i_vcc_ldc_init() 526 while ((rv = ldc_close(vport->ldc_handle)) == EAGAIN) { in i_vcc_ldc_fini() 538 (void) ldc_unreg_callback(vport->ldc_handle); in i_vcc_ldc_fini() 539 (void) ldc_fini(vport->ldc_handle); in i_vcc_ldc_fini() [all …]
|
H A D | vsw_ldc.c | 643 (void) ldc_fini(ldcp->ldc_handle); in vsw_ldc_attach() 657 if (ldc_status(ldcp->ldc_handle, &istatus) != 0) { in vsw_ldc_attach() 686 (void) ldc_unreg_callback(ldcp->ldc_handle); in vsw_ldc_attach() 773 (void) ldc_fini(ldcp->ldc_handle); in vsw_ldc_detach() 776 ldcp->ldc_handle = 0; in vsw_ldc_detach() 814 rv = ldc_open(ldcp->ldc_handle); in vsw_ldc_init() 838 rv = ldc_up(ldcp->ldc_handle); in vsw_ldc_init() 1103 (void) ldc_down(ldcp->ldc_handle); in vsw_hio_port_reset() 1491 (void) ldc_down(ldcp->ldc_handle); in vsw_conn_task() 1507 (void) ldc_up(ldcp->ldc_handle); in vsw_conn_task() [all …]
|
H A D | vnet_gen.c | 2547 (void) ldc_unreg_callback(ldcp->ldc_handle); in vgen_ldc_attach() 2552 (void) ldc_fini(ldcp->ldc_handle); in vgen_ldc_attach() 2587 (void) ldc_unreg_callback(ldcp->ldc_handle); in vgen_ldc_detach() 2588 (void) ldc_fini(ldcp->ldc_handle); in vgen_ldc_detach() 2622 rv = ldc_open(ldcp->ldc_handle); in vgen_ldc_init() 2698 (void) ldc_close(ldcp->ldc_handle); in vgen_ldc_init() 3213 rv = ldc_chkq(ldcp->ldc_handle, &has_data); in vgen_handle_evt_read() 3921 (void) ldc_down(ldcp->ldc_handle); in vgen_process_reset() 5506 rv = ldc_up(ldcp->ldc_handle); in vgen_ldc_up() 5766 rv = ldc_info(ldcp->ldc_handle, &info); in vgen_mapin_avail() [all …]
|
H A D | vds.c | 482 ldc_handle_t ldc_handle; /* handle for LDC comm */ member 2230 status = ldc_write(ldc_handle, msg, &nbytes); in send_msg() 2328 (void) ldc_up(vd->ldc_handle); in vd_reset_if_needed() 4668 status = ldc_mem_alloc_handle(vd->ldc_handle, in vd_process_dring_reg_msg() 4982 status = ldc_read(ldc_handle, msg, nbytes); in recv_msg() 5249 status = ldc_status(vd->ldc_handle, &lstatus); in vd_recv_msg() 5336 (void) ldc_up(vd->ldc_handle); in vd_handle_ldc_events() 6832 if ((status = ldc_open(vd->ldc_handle)) != 0) { in vds_do_init_vd() 6838 if ((status = ldc_up(vd->ldc_handle)) != 0) { in vds_do_init_vd() 6941 (void) ldc_unreg_callback(vd->ldc_handle); in vds_destroy_vd() [all …]
|
H A D | vnet_rxdring.c | 184 rv = ldc_mem_alloc_handle(ldcp->ldc_handle, &ldcp->rx_data_handle); in vgen_create_rx_dring() 248 rv = ldc_mem_dring_bind(ldcp->ldc_handle, ldcp->rx_dring_handle, in vgen_create_rx_dring() 381 rv = ldc_mem_dring_map(ldcp->ldc_handle, &dcookie, ncookies, num_desc, in vgen_map_tx_dring() 530 rv = ldc_mem_alloc_handle(ldcp->ldc_handle, &ldcp->tx_data_handle); in vgen_map_data() 1474 rv = ldc_write(ldcp->ldc_handle, (caddr_t)msg, &len); in vgen_sendmsg_shm()
|
H A D | vsw_txdring.c | 199 if ((ldc_mem_dring_bind(ldcp->ldc_handle, dp->dring_handle, in vsw_create_tx_dring() 292 if ((ldc_mem_alloc_handle(ldcp->ldc_handle, in vsw_setup_tx_dring() 666 rv = ldc_write(ldcp->ldc_handle, (caddr_t)msgp, &msglen); in vsw_send_msg() 803 (ldcp->ldc_status != LDC_UP) || (ldcp->ldc_handle == 0)) { in vsw_dringsend() 1214 rv = ldc_mem_copy(ldcp->ldc_handle, in vsw_process_dringdata()
|
H A D | vdc.c | 834 &srvr->ldc_handle); in vdc_do_ldc_init() 866 status = ldc_open(srvr->ldc_handle); in vdc_do_ldc_init() 911 status = ldc_down(vdcp->curr_server->ldc_handle); in vdc_stop_ldc_connection() 2052 status = ldc_read(vdc->curr_server->ldc_handle, in vdc_recv() 2570 (void) ldc_close(srvr->ldc_handle); in vdc_terminate_ldc() 2574 (void) ldc_unreg_callback(srvr->ldc_handle); in vdc_terminate_ldc() 2578 (void) ldc_fini(srvr->ldc_handle); in vdc_terminate_ldc() 2579 srvr->ldc_handle = 0; in vdc_terminate_ldc() 2707 vdc->curr_server->ldc_handle, status); in vdc_init_descriptor_ring() 3788 rv = ldc_status(srvr->ldc_handle, &ldc_state); in vdc_handle_cb() [all …]
|
H A D | vsw_rxdring.c | 224 if ((ldc_mem_dring_bind(ldcp->ldc_handle, dp->dring_handle, in vsw_create_rx_dring() 291 rv = ldc_mem_alloc_handle(ldcp->ldc_handle, &dp->data_handle); in vsw_setup_rx_dring() 880 (ldcp->ldc_status != LDC_UP) || (ldcp->ldc_handle == 0)) { in vsw_dringsend_shm() 1262 rv = ldc_write(ldcp->ldc_handle, (caddr_t)msgp, &msglen); in vsw_send_msg_shm()
|
H A D | vnet_txdring.c | 209 rv = ldc_mem_alloc_handle(ldcp->ldc_handle, in vgen_create_tx_dring() 262 rv = ldc_mem_dring_bind(ldcp->ldc_handle, ldcp->tx_dring_handle, in vgen_create_tx_dring() 376 rv = ldc_mem_dring_map(ldcp->ldc_handle, &dcookie, ncookies, num_desc, in vgen_map_rx_dring() 1133 rv = ldc_mem_copy(ldcp->ldc_handle, in vgen_process_dringdata() 1697 rv = ldc_write(ldcp->ldc_handle, (caddr_t)msg, &len); in vgen_sendmsg()
|
/illumos-gate/usr/src/uts/sun4v/sys/ |
H A D | vldc_impl.h | 106 ldc_handle_t ldc_handle; /* Channel handle */ member
|
H A D | vcc_impl.h | 265 ldc_handle_t ldc_handle; /* Channel handle */ member
|
H A D | vsw_ldc.h | 327 ldc_handle_t ldc_handle; /* channel handle */ member
|
H A D | vdc.h | 279 ldc_handle_t ldc_handle; /* Server LDC handle */ member
|
H A D | vnet_gen.h | 280 uint64_t ldc_handle; /* channel handle */ member
|