/titanic_50/usr/src/uts/sun4v/io/ |
H A D | vldc.c | 277 rv = ldc_status(vport->ldc_handle, &vport->ldc_status); in i_vldc_cb() 301 rv = ldc_up(vport->ldc_handle); in i_vldc_cb() 309 rv = ldc_status(vport->ldc_handle, &vport->ldc_status); 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() [all …]
|
H A D | vcc.c | 424 if ((rv = ldc_init(vport->ldc_id, &attr, &(vport->ldc_handle))) != 0) { in i_vcc_ldc_init() 432 if ((rv = ldc_reg_callback(vport->ldc_handle, vcc_ldc_cb, in i_vcc_ldc_init() 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() 452 if ((rv = ldc_status(vport->ldc_handle, &vport->ldc_status)) != 0) { 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() [all …]
|
H A D | vsw_ldc.c | 615 status = ldc_init(ldc_id, &attr, &ldcp->ldc_handle); in vsw_ldc_attach() 639 status = ldc_reg_callback(ldcp->ldc_handle, vsw_ldc_cb, (caddr_t)ldcp); in vsw_ldc_attach() 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() 761 while ((rv = ldc_close(ldcp->ldc_handle)) == EAGAIN) { in vsw_ldc_detach() 773 (void) ldc_fini(ldcp->ldc_handle); in vsw_ldc_detach() 776 ldcp->ldc_handle = NULL; in vsw_ldc_detach() 814 rv = ldc_open(ldcp->ldc_handle); in vsw_ldc_init() 822 if (ldc_status(ldcp->ldc_handle, &istatus) != 0) { in vsw_ldc_init() [all …]
|
H A D | vnet_gen.c | 2495 status = ldc_init(ldc_id, &attr, &ldcp->ldc_handle); in vgen_ldc_attach() 2502 status = ldc_reg_callback(ldcp->ldc_handle, vgen_ldc_cb, (caddr_t)ldcp); in vgen_ldc_attach() 2516 (void) ldc_status(ldcp->ldc_handle, &istatus); in vgen_ldc_attach() 2544 (void) ldc_unreg_callback(ldcp->ldc_handle); in vgen_ldc_attach() 2549 (void) ldc_fini(ldcp->ldc_handle); in vgen_ldc_attach() 2584 (void) ldc_unreg_callback(ldcp->ldc_handle); in vgen_ldc_detach() 2585 (void) ldc_fini(ldcp->ldc_handle); in vgen_ldc_detach() 2619 rv = ldc_open(ldcp->ldc_handle); in vgen_ldc_init() 2626 (void) ldc_status(ldcp->ldc_handle, &istatus); in vgen_ldc_init() 2633 rv = ldc_set_cb_mode(ldcp->ldc_handle, LDC_CB_ENABLE); in vgen_ldc_init() [all …]
|
H A D | vds.c | 481 ldc_handle_t ldc_handle; /* handle for LDC comm */ member 2222 send_msg(ldc_handle_t ldc_handle, void *msg, size_t msglen) in send_msg() argument 2229 status = ldc_write(ldc_handle, msg, &nbytes); in send_msg() 2313 if (vd->reset_ldc && ((status = ldc_down(vd->ldc_handle)) != 0)) in vd_reset_if_needed() 2327 (void) ldc_up(vd->ldc_handle); in vd_reset_if_needed() 2549 status = send_msg(task->vd->ldc_handle, task->msg, task->msglen); in vd_notify() 3493 if ((status = ldc_mem_copy(vd->ldc_handle, buf, 0, &nbytes, in vd_do_ioctl() 3559 if ((status = ldc_mem_copy(vd->ldc_handle, buf, 0, &nbytes, in vd_do_ioctl() 3775 if ((status = ldc_mem_copy(vd->ldc_handle, (caddr_t)vd_devid, 0, in vd_get_devid() 3860 if ((rv = ldc_mem_copy(vd->ldc_handle, (char *)&vd_cap, 0, &nbytes, in vd_get_capacity() [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 == NULL)) { in vsw_dringsend() 1214 rv = ldc_mem_copy(ldcp->ldc_handle, in vsw_process_dringdata()
|
H A D | vdc.c | 509 rv = ldc_set_cb_mode(srvr->ldc_handle, LDC_CB_DISABLE); in vdc_detach() 834 &srvr->ldc_handle); in vdc_do_ldc_init() 842 status = ldc_status(srvr->ldc_handle, &ldc_state); in vdc_do_ldc_init() 851 status = ldc_reg_callback(srvr->ldc_handle, vdc_handle_cb, 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() 1657 vdc->curr_server->ldc_handle, status, msglen); in vdc_init_ver_negotiation() 1752 vdc->curr_server->ldc_handle, status, msglen); in vdc_init_attr_negotiation() 2052 status = ldc_read(vdc->curr_server->ldc_handle, in vdc_recv() 2186 status = ldc_write(vdc->curr_server->ldc_handle, pkt, &size); in vdc_send() [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 == NULL)) { 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()
|
/titanic_50/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 | vdc.h | 279 ldc_handle_t ldc_handle; /* Server LDC handle */ member
|
H A D | vsw_ldc.h | 327 ldc_handle_t ldc_handle; /* channel handle */ member
|
H A D | vnet_gen.h | 280 uint64_t ldc_handle; /* channel handle */ member
|