Lines Matching refs:rs

265 	npi_status_t		rs = NPI_SUCCESS;  in nxge_reset_txdma_channel()  local
273 rs = npi_txdma_channel_reset(handle, channel); in nxge_reset_txdma_channel()
275 rs = npi_txdma_channel_control(handle, TXDMA_RESET, in nxge_reset_txdma_channel()
279 if (rs != NPI_SUCCESS) { in nxge_reset_txdma_channel()
280 status = NXGE_ERROR | rs; in nxge_reset_txdma_channel()
320 npi_status_t rs = NPI_SUCCESS; in nxge_init_txdma_channel_event_mask() local
327 rs = npi_txdma_event_mask(handle, OP_SET, channel, mask_p); in nxge_init_txdma_channel_event_mask()
328 if (rs != NPI_SUCCESS) { in nxge_init_txdma_channel_event_mask()
329 status = NXGE_ERROR | rs; in nxge_init_txdma_channel_event_mask()
360 npi_status_t rs = NPI_SUCCESS; in nxge_init_txdma_channel_cntl_stat() local
367 rs = npi_txdma_control_status(handle, OP_SET, channel, in nxge_init_txdma_channel_cntl_stat()
370 if (rs != NPI_SUCCESS) { in nxge_init_txdma_channel_cntl_stat()
371 status = NXGE_ERROR | rs; in nxge_init_txdma_channel_cntl_stat()
409 npi_status_t rs = NPI_SUCCESS; in nxge_enable_txdma_channel() local
419 rs = npi_txdma_ring_config(handle, OP_SET, channel, in nxge_enable_txdma_channel()
422 if (rs != NPI_SUCCESS) { in nxge_enable_txdma_channel()
423 return (NXGE_ERROR | rs); in nxge_enable_txdma_channel()
433 rs = npi_txdma_mbox_config(handle, OP_SET, channel, in nxge_enable_txdma_channel()
436 if (rs != NPI_SUCCESS) { in nxge_enable_txdma_channel()
437 return (NXGE_ERROR | rs); in nxge_enable_txdma_channel()
441 rs = npi_txdma_channel_init_enable(handle, channel); in nxge_enable_txdma_channel()
443 if (rs != NPI_SUCCESS) { in nxge_enable_txdma_channel()
444 return (NXGE_ERROR | rs); in nxge_enable_txdma_channel()
1137 npi_status_t rs = NPI_SUCCESS; in nxge_tx_intr() local
1175 rs = npi_txdma_control_status(handle, OP_GET, channel, &cs); in nxge_tx_intr()
1179 channel, vindex, rs)); in nxge_tx_intr()
1180 if (!rs && cs.bits.ldw.mk) { in nxge_tx_intr()
1184 channel, vindex, rs)); in nxge_tx_intr()
1190 channel, vindex, rs)); in nxge_tx_intr()
1253 npi_status_t rs; in nxge_txdma_channel_disable() local
1263 rs = npi_txdma_channel_disable(handle, channel); in nxge_txdma_channel_disable()
1266 "rs 0x%x", channel, rs)); in nxge_txdma_channel_disable()
1267 if (rs != NPI_SUCCESS) { in nxge_txdma_channel_disable()
1274 "(inject err)", rs, channel)); in nxge_txdma_channel_disable()
1277 rs = npi_txdma_channel_disable(handle, channel); in nxge_txdma_channel_disable()
1282 rs, channel)); in nxge_txdma_channel_disable()
1285 return (rs); in nxge_txdma_channel_disable()
1318 npi_status_t rs; in nxge_txdma_hw_mode() local
1337 rs = 0; in nxge_txdma_hw_mode()
1346 rs = npi_txdma_channel_enable in nxge_txdma_hw_mode()
1351 tdc, rs)); in nxge_txdma_hw_mode()
1353 rs = nxge_txdma_channel_disable in nxge_txdma_hw_mode()
1360 status = ((rs == NPI_SUCCESS) ? NXGE_OK : NXGE_ERROR | rs); in nxge_txdma_hw_mode()
1429 npi_status_t rs = NPI_SUCCESS; in nxge_txdma_stop_inj_err() local
1438 rs = npi_txdma_channel_disable(handle, channel); in nxge_txdma_stop_inj_err()
1439 status = ((rs == NPI_SUCCESS) ? NXGE_OK : NXGE_ERROR | rs); in nxge_txdma_stop_inj_err()
1449 "injecting error", channel, rs)); in nxge_txdma_stop_inj_err()
1456 rs = npi_txdma_channel_disable(handle, channel); in nxge_txdma_stop_inj_err()
1457 status = ((rs == NPI_SUCCESS) ? NXGE_OK : NXGE_ERROR | rs); in nxge_txdma_stop_inj_err()
1458 if (!(rs & NPI_TXDMA_STOP_FAILED)) { in nxge_txdma_stop_inj_err()
1470 " (injected error but still not stopped)", channel, rs)); in nxge_txdma_stop_inj_err()
3157 npi_status_t rs; in nxge_tx_err_evnts() local
3177 if ((rs = npi_txdma_ring_error_get(handle, channel, in nxge_tx_err_evnts()
3179 return (NXGE_ERROR | rs); in nxge_tx_err_evnts()
3287 npi_status_t rs = NPI_SUCCESS; in nxge_txdma_fatal_err_recover() local
3304 rs = npi_txdma_channel_control(handle, TXDMA_STOP, channel); in nxge_txdma_fatal_err_recover()
3305 if (rs != NPI_SUCCESS) { in nxge_txdma_fatal_err_recover()
3319 if ((rs = npi_txdma_channel_control(handle, TXDMA_RESET, channel)) != in nxge_txdma_fatal_err_recover()
3323 " reset channel failed 0x%x", channel, rs)); in nxge_txdma_fatal_err_recover()
3425 npi_status_t rs; in nxge_tx_port_fatal_err_recover() local
3466 rs = npi_txdma_channel_control in nxge_tx_port_fatal_err_recover()
3468 if (rs != NPI_SUCCESS) { in nxge_tx_port_fatal_err_recover()
3498 if ((rs = npi_txdma_channel_control in nxge_tx_port_fatal_err_recover()
3504 "failed 0x%x", tdc, rs)); in nxge_tx_port_fatal_err_recover()