Lines Matching refs:handle

40 	npi_handle_t		handle;  in nxge_txc_init()  local
43 handle = NXGE_DEV_NPI_HANDLE(nxgep); in nxge_txc_init()
51 if ((rs = npi_txc_global_enable(handle)) != NPI_SUCCESS) { in nxge_txc_init()
56 if ((rs = npi_txc_port_enable(handle, port)) != NPI_SUCCESS) { in nxge_txc_init()
61 if ((rs = npi_txc_port_dma_enable(handle, port, in nxge_txc_init()
67 npi_txc_global_imask_set(handle, port, 0); in nxge_txc_init()
84 npi_handle_t handle; in nxge_txc_uninit() local
87 handle = NXGE_DEV_NPI_HANDLE(nxgep); in nxge_txc_uninit()
95 if ((rs = npi_txc_global_disable(handle)) != NPI_SUCCESS) { in nxge_txc_uninit()
100 if ((rs = npi_txc_port_disable(handle, port)) != NPI_SUCCESS) { in nxge_txc_uninit()
105 if ((rs = npi_txc_port_dma_enable(handle, port, 0)) != NPI_SUCCESS) { in nxge_txc_uninit()
151 npi_handle_t handle; in nxge_txc_tdc_bind() local
160 handle = NXGE_DEV_NPI_HANDLE(nxgep); in nxge_txc_tdc_bind()
163 (void) npi_txc_control(handle, OP_GET, &txc_control); in nxge_txc_tdc_bind()
167 npi_txc_global_imask_set(handle, port, TXC_INT_MASK_IVAL); in nxge_txc_tdc_bind()
172 TXC_FZC_CNTL_REG_READ64(handle, TXC_PORT_DMA_ENABLE_REG, port, in nxge_txc_tdc_bind()
186 if ((rs = npi_txc_port_dma_enable(handle, port, in nxge_txc_tdc_bind()
194 if ((rs = npi_txc_port_enable(handle, port)) != NPI_SUCCESS) { in nxge_txc_tdc_bind()
203 if ((rs = npi_txc_global_enable(handle)) != NPI_SUCCESS) { in nxge_txc_tdc_bind()
209 npi_txc_global_imask_set(handle, port, 0); in nxge_txc_tdc_bind()
253 npi_handle_t handle; in nxge_txc_tdc_unbind() local
256 handle = NXGE_DEV_NPI_HANDLE(nxgep); in nxge_txc_tdc_unbind()
263 npi_txc_global_imask_set(handle, port, TXC_INT_MASK_IVAL); in nxge_txc_tdc_unbind()
267 TXC_FZC_CNTL_REG_READ64(handle, TXC_PORT_DMA_ENABLE_REG, port, in nxge_txc_tdc_unbind()
273 if ((rs = npi_txc_port_dma_enable(handle, port, in nxge_txc_tdc_unbind()
282 npi_txc_global_imask_set(handle, port, 0); in nxge_txc_tdc_unbind()
299 npi_handle_t handle; in nxge_txc_regs_dump() local
306 handle = NXGE_DEV_NPI_HANDLE(nxgep); in nxge_txc_regs_dump()
308 (void) npi_txc_control(handle, OP_GET, &control); in nxge_txc_regs_dump()
309 (void) npi_txc_port_dma_list_get(handle, nxgep->function_num, &bitmap); in nxge_txc_regs_dump()
315 (void) npi_txc_pkt_xmt_to_mac_get(handle, nxgep->function_num, in nxge_txc_regs_dump()
321 (void) npi_txc_pkt_stuffed_get(handle, nxgep->function_num, in nxge_txc_regs_dump()
327 (void) npi_txc_reorder_get(handle, nxgep->function_num, &cnt1); in nxge_txc_regs_dump()
335 npi_handle_t handle; in nxge_txc_handle_sys_errors() local
342 handle = nxgep->npi_handle; in nxge_txc_handle_sys_errors()
343 npi_txc_global_istatus_get(handle, (txc_int_stat_t *)&istatus.value); in nxge_txc_handle_sys_errors()
389 npi_handle_t handle; in nxge_txc_handle_port_errors() local
397 handle = nxgep->npi_handle; in nxge_txc_handle_port_errors()
406 if ((rs = npi_txc_ro_states_get(handle, portn, in nxge_txc_handle_port_errors()
441 if ((rs = npi_txc_ro_ecc_state_clr(handle, portn)) in nxge_txc_handle_port_errors()
448 TXC_FZC_CNTL_REG_WRITE64(handle, TXC_ROECC_CTL_REG, in nxge_txc_handle_port_errors()
455 if ((rs = npi_txc_sf_states_get(handle, portn, in nxge_txc_handle_port_errors()
475 if ((rs = npi_txc_sf_ecc_state_clr(handle, portn)) in nxge_txc_handle_port_errors()
482 TXC_FZC_CNTL_REG_WRITE64(handle, TXC_SFECC_CTL_REG, portn, 0); in nxge_txc_handle_port_errors()
503 npi_txc_global_istatus_clear(handle, istatus.value); in nxge_txc_handle_port_errors()