Lines Matching refs:handle

33 static npi_status_t npi_txdma_control_reset_wait(npi_handle_t handle,
35 static npi_status_t npi_txdma_control_stop_wait(npi_handle_t handle,
37 static npi_status_t npi_txdma_control_resume_wait(npi_handle_t handle,
127 npi_txdma_dump_tdc_regs(npi_handle_t handle, uint8_t tdc) in npi_txdma_dump_tdc_regs() argument
135 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_txdma_dump_tdc_regs()
143 NPI_REG_DUMP_MSG((handle.function, NPI_REG_CTL, in npi_txdma_dump_tdc_regs()
149 TXDMA_REG_READ64(handle, tdc_dmc_offset[i], tdc, &value); in npi_txdma_dump_tdc_regs()
150 offset = NXGE_TXDMA_OFFSET(tdc_dmc_offset[i], handle.is_vraddr, in npi_txdma_dump_tdc_regs()
152 NPI_REG_DUMP_MSG((handle.function, NPI_REG_CTL, "0x%08llx " in npi_txdma_dump_tdc_regs()
158 NPI_REG_DUMP_MSG((handle.function, NPI_REG_CTL, in npi_txdma_dump_tdc_regs()
178 npi_txdma_dump_fzc_regs(npi_handle_t handle) in npi_txdma_dump_fzc_regs() argument
184 NPI_REG_DUMP_MSG((handle.function, NPI_REG_CTL, in npi_txdma_dump_fzc_regs()
189 NXGE_REG_RD64(handle, tx_fzc_offset[i], &value); in npi_txdma_dump_fzc_regs()
190 NPI_REG_DUMP_MSG((handle.function, NPI_REG_CTL, "0x%08llx " in npi_txdma_dump_fzc_regs()
195 NPI_REG_DUMP_MSG((handle.function, NPI_REG_CTL, in npi_txdma_dump_fzc_regs()
202 npi_txdma_tdc_regs_zero(npi_handle_t handle, uint8_t tdc) in npi_txdma_tdc_regs_zero() argument
209 NPI_REG_DUMP_MSG((handle.function, NPI_REG_CTL, in npi_txdma_tdc_regs_zero()
216 NPI_REG_DUMP_MSG((handle.function, NPI_REG_CTL, in npi_txdma_tdc_regs_zero()
223 TXDMA_REG_WRITE64(handle, tdc_dmc_offset[i], tdc, value); in npi_txdma_tdc_regs_zero()
226 NPI_REG_DUMP_MSG((handle.function, NPI_REG_CTL, in npi_txdma_tdc_regs_zero()
230 NPI_REG_DUMP_MSG((handle.function, NPI_REG_CTL, in npi_txdma_tdc_regs_zero()
252 npi_txdma_mode32_set(npi_handle_t handle, boolean_t mode_enable) in npi_txdma_mode32_set() argument
262 NXGE_REG_WR64(handle, TX_ADDR_MD_REG, mode32.value); in npi_txdma_mode32_set()
291 npi_txdma_log_page_set(npi_handle_t handle, uint8_t channel, in npi_txdma_log_page_set() argument
302 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_txdma_log_page_set()
308 TX_LOG_REG_WRITE64(handle, TX_LOG_PAGE_VLD_REG, channel, 0); in npi_txdma_log_page_set()
309 TX_LOG_REG_READ64(handle, TX_LOG_PAGE_VLD_REG, channel, &val); in npi_txdma_log_page_set()
311 NPI_DEBUG_MSG((handle.function, NPI_TDC_CTL, in npi_txdma_log_page_set()
316 TX_LOG_REG_READ64(handle, TX_LOG_PAGE_VLD_REG, channel, &val); in npi_txdma_log_page_set()
325 TX_LOG_REG_WRITE64(handle, TX_LOG_PAGE_MASK1_REG, in npi_txdma_log_page_set()
327 TX_LOG_REG_WRITE64(handle, TX_LOG_PAGE_VAL1_REG, in npi_txdma_log_page_set()
329 TX_LOG_REG_WRITE64(handle, TX_LOG_PAGE_RELO1_REG, in npi_txdma_log_page_set()
332 TX_LOG_REG_WRITE64(handle, TX_LOG_PAGE_MASK2_REG, in npi_txdma_log_page_set()
334 TX_LOG_REG_WRITE64(handle, TX_LOG_PAGE_VAL2_REG, in npi_txdma_log_page_set()
336 TX_LOG_REG_WRITE64(handle, TX_LOG_PAGE_RELO2_REG, in npi_txdma_log_page_set()
340 TX_LOG_REG_WRITE64(handle, TX_LOG_PAGE_VLD_REG, channel, in npi_txdma_log_page_set()
343 NPI_DEBUG_MSG((handle.function, NPI_REG_CTL, in npi_txdma_log_page_set()
353 (void) npi_txdma_log_page_get(handle, channel, &cfg); in npi_txdma_log_page_set()
355 (void) npi_txdma_log_page_get(handle, channel, &cfg); in npi_txdma_log_page_set()
384 npi_txdma_log_page_get(npi_handle_t handle, uint8_t channel, in npi_txdma_log_page_get() argument
393 NPI_ERROR_MSG((handle.function, NPI_REG_CTL, in npi_txdma_log_page_get()
401 TX_LOG_REG_READ64(handle, TX_LOG_PAGE_VLD_REG, channel, &val); in npi_txdma_log_page_get()
403 NPI_DEBUG_MSG((handle.function, NPI_TDC_CTL, in npi_txdma_log_page_get()
412 TX_LOG_REG_READ64(handle, TX_LOG_PAGE_MASK1_REG, channel, &val); in npi_txdma_log_page_get()
414 TX_LOG_REG_READ64(handle, TX_LOG_PAGE_VAL1_REG, channel, &val); in npi_txdma_log_page_get()
416 TX_LOG_REG_READ64(handle, TX_LOG_PAGE_RELO1_REG, channel, &val); in npi_txdma_log_page_get()
420 TX_LOG_REG_READ64(handle, TX_LOG_PAGE_MASK2_REG, channel, &val); in npi_txdma_log_page_get()
422 TX_LOG_REG_READ64(handle, TX_LOG_PAGE_VAL2_REG, channel, &val); in npi_txdma_log_page_get()
424 TX_LOG_REG_READ64(handle, TX_LOG_PAGE_RELO2_REG, channel, &val); in npi_txdma_log_page_get()
454 npi_txdma_log_page_handle_set(npi_handle_t handle, uint8_t channel, in npi_txdma_log_page_handle_set() argument
461 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_txdma_log_page_handle_set()
468 TX_LOG_REG_WRITE64(handle, TX_LOG_PAGE_HDL_REG, in npi_txdma_log_page_handle_set()
502 npi_txdma_log_page_config(npi_handle_t handle, io_op_t op_mode, in npi_txdma_log_page_config() argument
511 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_txdma_log_page_config()
522 return (npi_txdma_log_page_get(handle, channel, in npi_txdma_log_page_config()
526 TX_LOG_REG_READ64(handle, TX_LOG_PAGE_MASK1_REG, in npi_txdma_log_page_config()
530 TX_LOG_REG_READ64(handle, TX_LOG_PAGE_MASK2_REG, in npi_txdma_log_page_config()
538 TX_LOG_REG_READ64(handle, TX_LOG_PAGE_VAL1_REG, in npi_txdma_log_page_config()
542 TX_LOG_REG_READ64(handle, TX_LOG_PAGE_VAL2_REG, in npi_txdma_log_page_config()
550 TX_LOG_REG_READ64(handle, TX_LOG_PAGE_RELO1_REG, in npi_txdma_log_page_config()
554 TX_LOG_REG_READ64(handle, TX_LOG_PAGE_VAL2_REG, in npi_txdma_log_page_config()
561 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_txdma_log_page_config()
580 return (npi_txdma_log_page_set(handle, channel, in npi_txdma_log_page_config()
584 TX_LOG_REG_WRITE64(handle, in npi_txdma_log_page_config()
588 TX_LOG_REG_WRITE64(handle, in npi_txdma_log_page_config()
596 TX_LOG_REG_WRITE64(handle, in npi_txdma_log_page_config()
600 TX_LOG_REG_WRITE64(handle, in npi_txdma_log_page_config()
608 TX_LOG_REG_WRITE64(handle, in npi_txdma_log_page_config()
612 TX_LOG_REG_WRITE64(handle, in npi_txdma_log_page_config()
619 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_txdma_log_page_config()
629 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_txdma_log_page_config()
662 npi_txdma_log_page_vld_config(npi_handle_t handle, io_op_t op_mode, in npi_txdma_log_page_vld_config() argument
670 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_txdma_log_page_vld_config()
679 TX_LOG_REG_READ64(handle, TX_LOG_PAGE_VLD_REG, channel, in npi_txdma_log_page_vld_config()
684 TX_LOG_REG_WRITE64(handle, TX_LOG_PAGE_VLD_REG, in npi_txdma_log_page_vld_config()
689 TX_LOG_REG_READ64(handle, TX_LOG_PAGE_VLD_REG, channel, in npi_txdma_log_page_vld_config()
691 TX_LOG_REG_WRITE64(handle, TX_LOG_PAGE_VLD_REG, in npi_txdma_log_page_vld_config()
696 TX_LOG_REG_WRITE64(handle, TX_LOG_PAGE_VLD_REG, in npi_txdma_log_page_vld_config()
701 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_txdma_log_page_vld_config()
733 npi_txdma_channel_reset(npi_handle_t handle, uint8_t channel) in npi_txdma_channel_reset() argument
735 NPI_DEBUG_MSG((handle.function, NPI_TDC_CTL, in npi_txdma_channel_reset()
739 return (npi_txdma_channel_control(handle, TXDMA_RESET, channel)); in npi_txdma_channel_reset()
760 npi_txdma_channel_init_enable(npi_handle_t handle, uint8_t channel) in npi_txdma_channel_init_enable() argument
762 return (npi_txdma_channel_control(handle, TXDMA_INIT_START, channel)); in npi_txdma_channel_init_enable()
784 npi_txdma_channel_enable(npi_handle_t handle, uint8_t channel) in npi_txdma_channel_enable() argument
786 return (npi_txdma_channel_control(handle, TXDMA_START, channel)); in npi_txdma_channel_enable()
808 npi_txdma_channel_disable(npi_handle_t handle, uint8_t channel) in npi_txdma_channel_disable() argument
810 return (npi_txdma_channel_control(handle, TXDMA_STOP, channel)); in npi_txdma_channel_disable()
832 npi_txdma_channel_resume(npi_handle_t handle, uint8_t channel) in npi_txdma_channel_resume() argument
834 return (npi_txdma_channel_control(handle, TXDMA_RESUME, channel)); in npi_txdma_channel_resume()
855 npi_txdma_channel_mmk_clear(npi_handle_t handle, uint8_t channel) in npi_txdma_channel_mmk_clear() argument
857 return (npi_txdma_channel_control(handle, TXDMA_CLEAR_MMK, channel)); in npi_txdma_channel_mmk_clear()
879 npi_txdma_channel_mbox_enable(npi_handle_t handle, uint8_t channel) in npi_txdma_channel_mbox_enable() argument
881 return (npi_txdma_channel_control(handle, TXDMA_MBOX_ENABLE, channel)); in npi_txdma_channel_mbox_enable()
913 npi_txdma_channel_control(npi_handle_t handle, txdma_cs_cntl_t control, in npi_txdma_channel_control() argument
921 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_txdma_channel_control()
931 TXDMA_REG_READ64(handle, TX_CS_REG, channel, &cs.value); in npi_txdma_channel_control()
933 TXDMA_REG_WRITE64(handle, TX_CS_REG, channel, cs.value); in npi_txdma_channel_control()
934 return (npi_txdma_control_reset_wait(handle, channel)); in npi_txdma_channel_control()
938 TXDMA_REG_WRITE64(handle, TX_CS_REG, channel, cs.value); in npi_txdma_channel_control()
948 TXDMA_REG_WRITE64(handle, TX_CS_REG, channel, cs.value); in npi_txdma_channel_control()
949 return (npi_txdma_control_reset_wait(handle, channel)); in npi_txdma_channel_control()
953 TXDMA_REG_READ64(handle, TX_CS_REG, channel, &cs.value); in npi_txdma_channel_control()
955 TXDMA_REG_WRITE64(handle, TX_CS_REG, channel, cs.value); in npi_txdma_channel_control()
960 TXDMA_REG_READ64(handle, TX_CS_REG, channel, &cs.value); in npi_txdma_channel_control()
962 TXDMA_REG_WRITE64(handle, TX_CS_REG, channel, cs.value); in npi_txdma_channel_control()
963 status = npi_txdma_control_stop_wait(handle, channel); in npi_txdma_channel_control()
965 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_txdma_channel_control()
973 TXDMA_REG_READ64(handle, TX_CS_REG, channel, &cs.value); in npi_txdma_channel_control()
975 TXDMA_REG_WRITE64(handle, TX_CS_REG, channel, cs.value); in npi_txdma_channel_control()
976 return (npi_txdma_control_resume_wait(handle, channel)); in npi_txdma_channel_control()
980 TXDMA_REG_READ64(handle, TX_CS_REG, channel, &cs.value); in npi_txdma_channel_control()
982 TXDMA_REG_WRITE64(handle, TX_CS_REG, channel, cs.value); in npi_txdma_channel_control()
990 TXDMA_REG_READ64(handle, TX_CS_REG, channel, &cs.value); in npi_txdma_channel_control()
992 TXDMA_REG_WRITE64(handle, TX_CS_REG, channel, cs.value); in npi_txdma_channel_control()
997 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_txdma_channel_control()
1030 npi_txdma_control_status(npi_handle_t handle, io_op_t op_mode, in npi_txdma_control_status() argument
1038 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_txdma_control_status()
1047 TXDMA_REG_READ64(handle, TX_CS_REG, channel, &cs_p->value); in npi_txdma_control_status()
1051 TXDMA_REG_WRITE64(handle, TX_CS_REG, channel, cs_p->value); in npi_txdma_control_status()
1055 TXDMA_REG_READ64(handle, TX_CS_REG, channel, &txcs.value); in npi_txdma_control_status()
1056 TXDMA_REG_WRITE64(handle, TX_CS_REG, channel, in npi_txdma_control_status()
1061 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_txdma_control_status()
1095 npi_txdma_event_mask(npi_handle_t handle, io_op_t op_mode, in npi_txdma_event_mask() argument
1103 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_txdma_event_mask()
1112 TXDMA_REG_READ64(handle, TX_ENT_MSK_REG, channel, in npi_txdma_event_mask()
1117 TXDMA_REG_WRITE64(handle, TX_ENT_MSK_REG, channel, in npi_txdma_event_mask()
1122 TXDMA_REG_READ64(handle, TX_ENT_MSK_REG, channel, &mask.value); in npi_txdma_event_mask()
1123 TXDMA_REG_WRITE64(handle, TX_ENT_MSK_REG, channel, in npi_txdma_event_mask()
1128 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_txdma_event_mask()
1161 npi_txdma_event_mask_config(npi_handle_t handle, io_op_t op_mode, in npi_txdma_event_mask_config() argument
1170 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_txdma_event_mask_config()
1180 TXDMA_REG_READ64(handle, TX_ENT_MSK_REG, channel, in npi_txdma_event_mask_config()
1185 TXDMA_REG_WRITE64(handle, TX_ENT_MSK_REG, channel, in npi_txdma_event_mask_config()
1190 TXDMA_REG_READ64(handle, TX_ENT_MSK_REG, channel, &value); in npi_txdma_event_mask_config()
1191 TXDMA_REG_WRITE64(handle, TX_ENT_MSK_REG, channel, in npi_txdma_event_mask_config()
1196 TXDMA_REG_WRITE64(handle, TX_ENT_MSK_REG, channel, in npi_txdma_event_mask_config()
1200 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_txdma_event_mask_config()
1226 npi_txdma_event_mask_mk_out(npi_handle_t handle, uint8_t channel) in npi_txdma_event_mask_mk_out() argument
1233 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_txdma_event_mask_mk_out()
1240 TXDMA_REG_READ64(handle, TX_ENT_MSK_REG, channel, &event_mask); in npi_txdma_event_mask_mk_out()
1241 TXDMA_REG_WRITE64(handle, TX_ENT_MSK_REG, channel, in npi_txdma_event_mask_mk_out()
1263 npi_txdma_event_mask_mk_in(npi_handle_t handle, uint8_t channel) in npi_txdma_event_mask_mk_in() argument
1270 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_txdma_event_mask_mk_in()
1277 TXDMA_REG_READ64(handle, TX_ENT_MSK_REG, channel, &event_mask); in npi_txdma_event_mask_mk_in()
1278 TXDMA_REG_WRITE64(handle, TX_ENT_MSK_REG, channel, in npi_txdma_event_mask_mk_in()
1308 npi_txdma_ring_addr_set(npi_handle_t handle, uint8_t channel, in npi_txdma_ring_addr_set() argument
1316 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_txdma_ring_addr_set()
1325 TXDMA_REG_WRITE64(handle, TX_RNG_CFIG_REG, channel, cfg.value); in npi_txdma_ring_addr_set()
1354 npi_txdma_ring_config(npi_handle_t handle, io_op_t op_mode, in npi_txdma_ring_config() argument
1361 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_txdma_ring_config()
1370 TXDMA_REG_READ64(handle, TX_RNG_CFIG_REG, channel, reg_data); in npi_txdma_ring_config()
1374 TXDMA_REG_WRITE64(handle, TX_RNG_CFIG_REG, channel, in npi_txdma_ring_config()
1379 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_txdma_ring_config()
1412 npi_txdma_mbox_config(npi_handle_t handle, io_op_t op_mode, in npi_txdma_mbox_config() argument
1421 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_txdma_mbox_config()
1432 TXDMA_REG_READ64(handle, TXDMA_MBH_REG, channel, &mh.value); in npi_txdma_mbox_config()
1433 TXDMA_REG_READ64(handle, TXDMA_MBL_REG, channel, &ml.value); in npi_txdma_mbox_config()
1442 TXDMA_REG_WRITE64(handle, TXDMA_MBL_REG, channel, ml.value); in npi_txdma_mbox_config()
1445 TXDMA_REG_WRITE64(handle, TXDMA_MBH_REG, channel, mh.value); in npi_txdma_mbox_config()
1450 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_txdma_mbox_config()
1485 npi_txdma_desc_gather_set(npi_handle_t handle, in npi_txdma_desc_gather_set() argument
1494 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_txdma_desc_gather_set()
1502 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_txdma_desc_gather_set()
1513 NPI_DEBUG_MSG((handle.function, NPI_TDC_CTL, in npi_txdma_desc_gather_set()
1522 NPI_DEBUG_MSG((handle.function, NPI_TDC_CTL, in npi_txdma_desc_gather_set()
1526 NXGE_MEM_PIO_WRITE64(handle, desc_p->value); in npi_txdma_desc_gather_set()
1547 npi_txdma_desc_gather_sop_set(npi_handle_t handle, in npi_txdma_desc_gather_sop_set() argument
1558 NXGE_MEM_PIO_WRITE64(handle, desc_p->value); in npi_txdma_desc_gather_sop_set()
1563 npi_txdma_desc_gather_sop_set_1(npi_handle_t handle, in npi_txdma_desc_gather_sop_set_1() argument
1576 NXGE_MEM_PIO_WRITE64(handle, desc_p->value); in npi_txdma_desc_gather_sop_set_1()
1582 npi_txdma_desc_set_xfer_len(npi_handle_t handle, in npi_txdma_desc_set_xfer_len() argument
1590 NPI_DEBUG_MSG((handle.function, NPI_TDC_CTL, in npi_txdma_desc_set_xfer_len()
1594 NXGE_MEM_PIO_WRITE64(handle, desc_p->value); in npi_txdma_desc_set_xfer_len()
1600 npi_txdma_desc_set_zero(npi_handle_t handle, uint16_t entries) in npi_txdma_desc_set_zero() argument
1610 NXGE_REG_WR64(handle, offset, 0); in npi_txdma_desc_set_zero()
1618 npi_txdma_desc_mem_get(npi_handle_t handle, uint16_t index, in npi_txdma_desc_mem_get() argument
1623 npi_txdma_dump_desc_one(handle, desc_p, index); in npi_txdma_desc_mem_get()
1651 npi_txdma_desc_kick_reg_set(npi_handle_t handle, uint8_t channel, in npi_txdma_desc_kick_reg_set() argument
1659 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_txdma_desc_kick_reg_set()
1666 NPI_DEBUG_MSG((handle.function, NPI_TDC_CTL, in npi_txdma_desc_kick_reg_set()
1677 TXDMA_REG_WRITE64(handle, TX_RING_KICK_REG, channel, kick.value); in npi_txdma_desc_kick_reg_set()
1704 npi_txdma_desc_kick_reg_get(npi_handle_t handle, uint8_t channel, in npi_txdma_desc_kick_reg_get() argument
1711 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_txdma_desc_kick_reg_get()
1718 TXDMA_REG_READ64(handle, TX_RING_KICK_REG, channel, &kick_p->value); in npi_txdma_desc_kick_reg_get()
1744 npi_txdma_ring_head_get(npi_handle_t handle, uint8_t channel, in npi_txdma_ring_head_get() argument
1751 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_txdma_ring_head_get()
1758 TXDMA_REG_READ64(handle, TX_RING_HDL_REG, channel, &hdl_p->value); in npi_txdma_ring_head_get()
1765 npi_txdma_channel_mbox_get(npi_handle_t handle, uint8_t channel, in npi_txdma_channel_mbox_get() argument
1775 npi_txdma_channel_pre_state_get(npi_handle_t handle, uint8_t channel, in npi_txdma_channel_pre_state_get() argument
1782 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_txdma_channel_pre_state_get()
1789 TXDMA_REG_READ64(handle, TX_DMA_PRE_ST_REG, channel, &prep->value); in npi_txdma_channel_pre_state_get()
1795 npi_txdma_ring_error_get(npi_handle_t handle, uint8_t channel, in npi_txdma_ring_error_get() argument
1804 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_txdma_ring_error_get()
1812 TXDMA_REG_READ64(handle, TX_RNG_ERR_LOGH_REG, channel, &logh.value); in npi_txdma_ring_error_get()
1813 TXDMA_REG_READ64(handle, TX_RNG_ERR_LOGL_REG, channel, &logl.value); in npi_txdma_ring_error_get()
1824 npi_txdma_inj_par_error_clear(npi_handle_t handle) in npi_txdma_inj_par_error_clear() argument
1826 NXGE_REG_WR64(handle, TDMC_INJ_PAR_ERR_REG, 0); in npi_txdma_inj_par_error_clear()
1832 npi_txdma_inj_par_error_set(npi_handle_t handle, uint32_t err_bits) in npi_txdma_inj_par_error_set() argument
1838 NXGE_REG_WR64(handle, TDMC_INJ_PAR_ERR_REG, inj.value); in npi_txdma_inj_par_error_set()
1844 npi_txdma_inj_par_error_update(npi_handle_t handle, uint32_t err_bits) in npi_txdma_inj_par_error_update() argument
1849 NXGE_REG_RD64(handle, TDMC_INJ_PAR_ERR_REG, &inj.value); in npi_txdma_inj_par_error_update()
1851 NXGE_REG_WR64(handle, TDMC_INJ_PAR_ERR_REG, inj.value); in npi_txdma_inj_par_error_update()
1857 npi_txdma_inj_par_error_get(npi_handle_t handle, uint32_t *err_bits) in npi_txdma_inj_par_error_get() argument
1862 NXGE_REG_RD64(handle, TDMC_INJ_PAR_ERR_REG, &inj.value); in npi_txdma_inj_par_error_get()
1869 npi_txdma_dbg_sel_set(npi_handle_t handle, uint8_t dbg_sel) in npi_txdma_dbg_sel_set() argument
1876 NXGE_REG_WR64(handle, TDMC_DBG_SEL_REG, dbg.value); in npi_txdma_dbg_sel_set()
1882 npi_txdma_training_vector_set(npi_handle_t handle, uint32_t training_vector) in npi_txdma_training_vector_set() argument
1889 NXGE_REG_WR64(handle, TDMC_TRAINING_REG, vec.value); in npi_txdma_training_vector_set()
1909 npi_txdma_dump_desc_one(npi_handle_t handle, p_tx_desc_t desc_p, int desc_index) in npi_txdma_dump_desc_one() argument
1918 NPI_DEBUG_MSG((handle.function, NPI_TDC_CTL, in npi_txdma_dump_desc_one()
1924 desp->value = NXGE_MEM_PIO_READ64(handle); in npi_txdma_dump_desc_one()
1930 NPI_DEBUG_MSG((handle.function, NPI_TDC_CTL, "\n\t: value 0x%llx\n" in npi_txdma_dump_desc_one()
1940 NPI_DEBUG_MSG((handle.function, NPI_TDC_CTL, in npi_txdma_dump_desc_one()
1947 npi_txdma_dump_hdr(npi_handle_t handle, p_tx_pkt_header_t hdrp) in npi_txdma_dump_hdr() argument
1949 NPI_DEBUG_MSG((handle.function, NPI_TDC_CTL, in npi_txdma_dump_hdr()
1951 NPI_DEBUG_MSG((handle.function, NPI_TDC_CTL, in npi_txdma_dump_hdr()
1968 NPI_DEBUG_MSG((handle.function, NPI_TDC_CTL, in npi_txdma_dump_hdr()
1973 npi_txdma_inj_int_error_set(npi_handle_t handle, uint8_t channel, in npi_txdma_inj_int_error_set() argument
1980 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_txdma_inj_int_error_set()
1987 TXDMA_REG_WRITE64(handle, TDMC_INTR_DBG_REG, channel, erp->value); in npi_txdma_inj_int_error_set()
1996 npi_txdma_control_reset_wait(npi_handle_t handle, uint8_t channel) in npi_txdma_control_reset_wait() argument
2004 TXDMA_REG_READ64(handle, TX_CS_REG, channel, &txcs.value); in npi_txdma_control_reset_wait()
2012 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_txdma_control_reset_wait()
2021 npi_txdma_control_stop_wait(npi_handle_t handle, uint8_t channel) in npi_txdma_control_stop_wait() argument
2028 TXDMA_REG_READ64(handle, TX_CS_REG, channel, &txcs.value); in npi_txdma_control_stop_wait()
2036 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_txdma_control_stop_wait()
2046 npi_txdma_control_resume_wait(npi_handle_t handle, uint8_t channel) in npi_txdma_control_resume_wait() argument
2053 TXDMA_REG_READ64(handle, TX_CS_REG, channel, &txcs.value); in npi_txdma_control_resume_wait()
2061 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_txdma_control_resume_wait()