Lines Matching refs:handle

42 hpi_rxdma_cfg_logical_page_handle(hpi_handle_t handle, uint8_t rdc,  in hpi_rxdma_cfg_logical_page_handle()  argument
48 HPI_ERROR_MSG((handle.function, HPI_ERR_CTL, in hpi_rxdma_cfg_logical_page_handle()
55 page_hdl.bits.handle = (uint32_t)page_handle; in hpi_rxdma_cfg_logical_page_handle()
57 RXDMA_REG_WRITE64(handle, RDC_PAGE_HANDLE, rdc, page_hdl.value); in hpi_rxdma_cfg_logical_page_handle()
63 hpi_rxdma_cfg_rdc_wait_for_qst(hpi_handle_t handle, uint8_t rdc) in hpi_rxdma_cfg_rdc_wait_for_qst() argument
69 RXDMA_REG_READ64(handle, RDC_RX_CFG1, rdc, &cfg.value); in hpi_rxdma_cfg_rdc_wait_for_qst()
73 RXDMA_REG_READ64(handle, RDC_RX_CFG1, rdc, &cfg.value); in hpi_rxdma_cfg_rdc_wait_for_qst()
84 hpi_rxdma_cfg_rdc_ctl(hpi_handle_t handle, uint8_t rdc, uint8_t op) in hpi_rxdma_cfg_rdc_ctl() argument
92 HPI_ERROR_MSG((handle.function, HPI_ERR_CTL, in hpi_rxdma_cfg_rdc_ctl()
99 RXDMA_REG_READ64(handle, RDC_RX_CFG1, rdc, &cfg.value); in hpi_rxdma_cfg_rdc_ctl()
101 RXDMA_REG_WRITE64(handle, RDC_RX_CFG1, rdc, cfg.value); in hpi_rxdma_cfg_rdc_ctl()
104 RXDMA_REG_READ64(handle, RDC_RX_CFG1, rdc, &cfg.value); in hpi_rxdma_cfg_rdc_ctl()
108 RXDMA_REG_READ64(handle, RDC_RX_CFG1, rdc, &cfg.value); in hpi_rxdma_cfg_rdc_ctl()
116 RXDMA_REG_READ64(handle, RDC_RX_CFG1, rdc, &cfg.value); in hpi_rxdma_cfg_rdc_ctl()
118 RXDMA_REG_WRITE64(handle, RDC_RX_CFG1, rdc, cfg.value); in hpi_rxdma_cfg_rdc_ctl()
121 if (hpi_rxdma_cfg_rdc_wait_for_qst(handle, in hpi_rxdma_cfg_rdc_ctl()
123 HPI_ERROR_MSG((handle.function, HPI_ERR_CTL, in hpi_rxdma_cfg_rdc_ctl()
134 RXDMA_REG_WRITE64(handle, RDC_RX_CFG1, rdc, cfg.value); in hpi_rxdma_cfg_rdc_ctl()
136 RXDMA_REG_READ64(handle, RDC_RX_CFG1, rdc, &cfg.value); in hpi_rxdma_cfg_rdc_ctl()
140 RXDMA_REG_READ64(handle, RDC_RX_CFG1, rdc, &cfg.value); in hpi_rxdma_cfg_rdc_ctl()
143 HPI_ERROR_MSG((handle.function, HPI_ERR_CTL, in hpi_rxdma_cfg_rdc_ctl()
158 hpi_rxdma_cfg_rdc_enable(hpi_handle_t handle, uint8_t rdc) in hpi_rxdma_cfg_rdc_enable() argument
160 return (hpi_rxdma_cfg_rdc_ctl(handle, rdc, RXDMA_OP_ENABLE)); in hpi_rxdma_cfg_rdc_enable()
164 hpi_rxdma_cfg_rdc_disable(hpi_handle_t handle, uint8_t rdc) in hpi_rxdma_cfg_rdc_disable() argument
166 return (hpi_rxdma_cfg_rdc_ctl(handle, rdc, RXDMA_OP_DISABLE)); in hpi_rxdma_cfg_rdc_disable()
170 hpi_rxdma_cfg_rdc_reset(hpi_handle_t handle, uint8_t rdc) in hpi_rxdma_cfg_rdc_reset() argument
172 return (hpi_rxdma_cfg_rdc_ctl(handle, rdc, RXDMA_OP_RESET)); in hpi_rxdma_cfg_rdc_reset()
176 hpi_rxdma_cfg_rdc_rcr_ctl(hpi_handle_t handle, uint8_t rdc, in hpi_rxdma_cfg_rdc_rcr_ctl() argument
182 HPI_ERROR_MSG((handle.function, HPI_ERR_CTL, in hpi_rxdma_cfg_rdc_rcr_ctl()
187 RXDMA_REG_READ64(handle, RDC_RCR_CFG_B, rdc, &rcr_cfgb.value); in hpi_rxdma_cfg_rdc_rcr_ctl()
204 HPI_ERROR_MSG((handle.function, HPI_ERR_CTL, in hpi_rxdma_cfg_rdc_rcr_ctl()
209 RXDMA_REG_WRITE64(handle, RDC_RCR_CFG_B, rdc, rcr_cfgb.value); in hpi_rxdma_cfg_rdc_rcr_ctl()
214 hpi_rxdma_cfg_rdc_rcr_threshold(hpi_handle_t handle, uint8_t rdc, in hpi_rxdma_cfg_rdc_rcr_threshold() argument
217 return (hpi_rxdma_cfg_rdc_rcr_ctl(handle, rdc, in hpi_rxdma_cfg_rdc_rcr_threshold()
222 hpi_rxdma_cfg_rdc_rcr_timeout(hpi_handle_t handle, uint8_t rdc, in hpi_rxdma_cfg_rdc_rcr_timeout() argument
225 return (hpi_rxdma_cfg_rdc_rcr_ctl(handle, rdc, in hpi_rxdma_cfg_rdc_rcr_timeout()
233 hpi_rxdma_cfg_rdc_ring(hpi_handle_t handle, uint8_t rdc, in hpi_rxdma_cfg_rdc_ring() argument
245 HPI_ERROR_MSG((handle.function, HPI_ERR_CTL, in hpi_rxdma_cfg_rdc_ring()
285 page_handle.bits.handle = (rdc_desc_cfg->rbr_addr >> 44) && 0xfffff; in hpi_rxdma_cfg_rdc_ring()
293 HPI_ERROR_MSG((handle.function, HPI_ERR_CTL, in hpi_rxdma_cfg_rdc_ring()
304 HPI_DEBUG_MSG((handle.function, HPI_RDC_CTL, in hpi_rxdma_cfg_rdc_ring()
317 HPI_ERROR_MSG((handle.function, HPI_ERR_CTL, in hpi_rxdma_cfg_rdc_ring()
334 HPI_ERROR_MSG((handle.function, HPI_ERR_CTL, in hpi_rxdma_cfg_rdc_ring()
354 HPI_ERROR_MSG((handle.function, HPI_ERR_CTL, in hpi_rxdma_cfg_rdc_ring()
374 HPI_ERROR_MSG((handle.function, HPI_ERR_CTL, in hpi_rxdma_cfg_rdc_ring()
394 HPI_ERROR_MSG((handle.function, HPI_ERR_CTL, in hpi_rxdma_cfg_rdc_ring()
414 HPI_ERROR_MSG((handle.function, HPI_ERR_CTL, in hpi_rxdma_cfg_rdc_ring()
428 HPI_ERROR_MSG((handle.function, HPI_ERR_CTL, in hpi_rxdma_cfg_rdc_ring()
435 RXDMA_REG_WRITE64(handle, RDC_RX_CFG1, rdc, cfg1.value); in hpi_rxdma_cfg_rdc_ring()
436 RXDMA_REG_WRITE64(handle, RDC_RX_CFG2, rdc, cfg2.value); in hpi_rxdma_cfg_rdc_ring()
438 RXDMA_REG_WRITE64(handle, RDC_RBR_CFG_A, rdc, cfga.value); in hpi_rxdma_cfg_rdc_ring()
439 RXDMA_REG_WRITE64(handle, RDC_RBR_CFG_B, rdc, cfgb.value); in hpi_rxdma_cfg_rdc_ring()
441 RXDMA_REG_WRITE64(handle, RDC_RCR_CFG_A, rdc, rcr_cfga.value); in hpi_rxdma_cfg_rdc_ring()
442 RXDMA_REG_WRITE64(handle, RDC_RCR_CFG_B, rdc, rcr_cfgb.value); in hpi_rxdma_cfg_rdc_ring()
444 RXDMA_REG_WRITE64(handle, RDC_PAGE_HANDLE, rdc, page_handle.value); in hpi_rxdma_cfg_rdc_ring()
450 hpi_rxdma_ring_perr_stat_get(hpi_handle_t handle, in hpi_rxdma_ring_perr_stat_get() argument
457 HXGE_REG_RD64(handle, RDC_PREF_PAR_LOG, &pre_log->value); in hpi_rxdma_ring_perr_stat_get()
458 HXGE_REG_RD64(handle, RDC_SHADOW_PAR_LOG, &sha_log->value); in hpi_rxdma_ring_perr_stat_get()
467 hpi_rxdma_cfg_clock_div_set(hpi_handle_t handle, uint16_t count) in hpi_rxdma_cfg_clock_div_set() argument
476 HPI_DEBUG_MSG((handle.function, HPI_RDC_CTL, in hpi_rxdma_cfg_clock_div_set()
479 handle.regp, handle.regh, clk_div.value)); in hpi_rxdma_cfg_clock_div_set()
481 HXGE_REG_WR64(handle, offset, clk_div.value); in hpi_rxdma_cfg_clock_div_set()
488 hpi_rxdma_rdc_rbr_stat_get(hpi_handle_t handle, uint8_t rdc, in hpi_rxdma_rdc_rbr_stat_get() argument
492 HPI_ERROR_MSG((handle.function, HPI_ERR_CTL, in hpi_rxdma_rdc_rbr_stat_get()
497 RXDMA_REG_READ64(handle, RDC_RBR_QLEN, rdc, &rbr_stat->value); in hpi_rxdma_rdc_rbr_stat_get()
503 hpi_rxdma_rdc_rcr_qlen_get(hpi_handle_t handle, uint8_t rdc, in hpi_rxdma_rdc_rcr_qlen_get() argument
509 HPI_ERROR_MSG((handle.function, HPI_ERR_CTL, in hpi_rxdma_rdc_rcr_qlen_get()
514 RXDMA_REG_READ64(handle, RDC_RCR_QLEN, rdc, &stats.value); in hpi_rxdma_rdc_rcr_qlen_get()
516 HPI_DEBUG_MSG((handle.function, HPI_RDC_CTL, in hpi_rxdma_rdc_rcr_qlen_get()
523 hpi_rxdma_channel_rbr_empty_clear(hpi_handle_t handle, uint8_t channel) in hpi_rxdma_channel_rbr_empty_clear() argument
528 HPI_ERROR_MSG((handle.function, HPI_ERR_CTL, in hpi_rxdma_channel_rbr_empty_clear()
533 RXDMA_REG_READ64(handle, RDC_STAT, channel, &cs.value); in hpi_rxdma_channel_rbr_empty_clear()
535 RXDMA_REG_WRITE64(handle, RDC_STAT, channel, cs.value); in hpi_rxdma_channel_rbr_empty_clear()
544 hpi_rxdma_control_status(hpi_handle_t handle, io_op_t op_mode, uint8_t channel, in hpi_rxdma_control_status() argument
551 HPI_ERROR_MSG((handle.function, HPI_ERR_CTL, in hpi_rxdma_control_status()
558 RXDMA_REG_READ64(handle, RDC_STAT, channel, &cs_p->value); in hpi_rxdma_control_status()
562 RXDMA_REG_WRITE64(handle, RDC_STAT, channel, cs_p->value); in hpi_rxdma_control_status()
566 RXDMA_REG_READ64(handle, RDC_STAT, channel, &cs.value); in hpi_rxdma_control_status()
567 RXDMA_REG_WRITE64(handle, RDC_STAT, channel, in hpi_rxdma_control_status()
572 HPI_ERROR_MSG((handle.function, HPI_ERR_CTL, in hpi_rxdma_control_status()
585 hpi_rxdma_event_mask(hpi_handle_t handle, io_op_t op_mode, uint8_t channel, in hpi_rxdma_event_mask() argument
592 HPI_ERROR_MSG((handle.function, HPI_ERR_CTL, in hpi_rxdma_event_mask()
599 RXDMA_REG_READ64(handle, RDC_INT_MASK, channel, &mask_p->value); in hpi_rxdma_event_mask()
603 RXDMA_REG_WRITE64(handle, RDC_INT_MASK, channel, mask_p->value); in hpi_rxdma_event_mask()
607 RXDMA_REG_READ64(handle, RDC_INT_MASK, channel, &mask.value); in hpi_rxdma_event_mask()
608 RXDMA_REG_WRITE64(handle, RDC_INT_MASK, channel, in hpi_rxdma_event_mask()
613 HPI_ERROR_MSG((handle.function, HPI_ERR_CTL, in hpi_rxdma_event_mask()