Lines Matching defs:handle

42 	npi_handle_t		handle;
45 handle = NXGE_DEV_NPI_HANDLE(nxgep);
53 if ((rs = npi_txc_global_enable(handle)) != NPI_SUCCESS) {
58 if ((rs = npi_txc_port_enable(handle, port)) != NPI_SUCCESS) {
63 if ((rs = npi_txc_port_dma_enable(handle, port,
69 npi_txc_global_imask_set(handle, port, 0);
86 npi_handle_t handle;
89 handle = NXGE_DEV_NPI_HANDLE(nxgep);
97 if ((rs = npi_txc_global_disable(handle)) != NPI_SUCCESS) {
102 if ((rs = npi_txc_port_disable(handle, port)) != NPI_SUCCESS) {
107 if ((rs = npi_txc_port_dma_enable(handle, port, 0)) != NPI_SUCCESS) {
153 npi_handle_t handle;
162 handle = NXGE_DEV_NPI_HANDLE(nxgep);
165 (void) npi_txc_control(handle, OP_GET, &txc_control);
169 npi_txc_global_imask_set(handle, port, TXC_INT_MASK_IVAL);
174 TXC_FZC_CNTL_REG_READ64(handle, TXC_PORT_DMA_ENABLE_REG, port,
188 if ((rs = npi_txc_port_dma_enable(handle, port,
196 if ((rs = npi_txc_port_enable(handle, port)) != NPI_SUCCESS) {
205 if ((rs = npi_txc_global_enable(handle)) != NPI_SUCCESS) {
211 npi_txc_global_imask_set(handle, port, 0);
255 npi_handle_t handle;
258 handle = NXGE_DEV_NPI_HANDLE(nxgep);
265 npi_txc_global_imask_set(handle, port, TXC_INT_MASK_IVAL);
269 TXC_FZC_CNTL_REG_READ64(handle, TXC_PORT_DMA_ENABLE_REG, port,
275 if ((rs = npi_txc_port_dma_enable(handle, port,
284 npi_txc_global_imask_set(handle, port, 0);
301 npi_handle_t handle;
308 handle = NXGE_DEV_NPI_HANDLE(nxgep);
310 (void) npi_txc_control(handle, OP_GET, &control);
311 (void) npi_txc_port_dma_list_get(handle, nxgep->function_num, &bitmap);
317 (void) npi_txc_pkt_xmt_to_mac_get(handle, nxgep->function_num,
323 (void) npi_txc_pkt_stuffed_get(handle, nxgep->function_num,
329 (void) npi_txc_reorder_get(handle, nxgep->function_num, &cnt1);
337 npi_handle_t handle;
344 handle = nxgep->npi_handle;
345 npi_txc_global_istatus_get(handle, (txc_int_stat_t *)&istatus.value);
391 npi_handle_t handle;
399 handle = nxgep->npi_handle;
408 if ((rs = npi_txc_ro_states_get(handle, portn,
443 if ((rs = npi_txc_ro_ecc_state_clr(handle, portn))
450 TXC_FZC_CNTL_REG_WRITE64(handle, TXC_ROECC_CTL_REG,
457 if ((rs = npi_txc_sf_states_get(handle, portn,
477 if ((rs = npi_txc_sf_ecc_state_clr(handle, portn))
484 TXC_FZC_CNTL_REG_WRITE64(handle, TXC_SFECC_CTL_REG, portn, 0);
505 npi_txc_global_istatus_clear(handle, istatus.value);