Home
last modified time | relevance | path

Searched refs:hns3_read_dev (Results 1 – 11 of 11) sorted by relevance

/dpdk/drivers/net/hns3/
H A Dhns3_ptp.c197 ts_cnt = hns3_read_dev(hw, HNS3_TX_1588_BACK_TSP_CNT) & in hns3_timesync_read_tx_timestamp()
202 ns = hns3_read_dev(hw, HNS3_TX_1588_TSP_BACK_0) & TIME_TX_STAMP_NS_MASK; in hns3_timesync_read_tx_timestamp()
203 sec = hns3_read_dev(hw, HNS3_TX_1588_TSP_BACK_1); in hns3_timesync_read_tx_timestamp()
204 tmp = hns3_read_dev(hw, HNS3_TX_1588_TSP_BACK_2) & 0xFFFF; in hns3_timesync_read_tx_timestamp()
212 hns3_read_dev(hw, HNS3_TX_1588_SEQID_BACK); in hns3_timesync_read_tx_timestamp()
226 sec = hns3_read_dev(hw, HNS3_CURR_TIME_OUT_L); in hns3_timesync_read_time()
227 sec |= (uint64_t)(hns3_read_dev(hw, HNS3_CURR_TIME_OUT_H) & 0xFFFF) in hns3_timesync_read_time()
230 ns = hns3_read_dev(hw, HNS3_CURR_TIME_OUT_NS); in hns3_timesync_read_time()
H A Dhns3_regs.c303 *data++ = hns3_read_dev(hw, cmdq_reg_addrs[i]); in hns3_direct_access_regs()
312 *data++ = hns3_read_dev(hw, common_vf_reg_addrs[i]); in hns3_direct_access_regs()
314 *data++ = hns3_read_dev(hw, common_reg_addrs[i]); in hns3_direct_access_regs()
321 *data++ = hns3_read_dev(hw, in hns3_direct_access_regs()
330 *data++ = hns3_read_dev(hw, tqp_intr_reg_addrs[i] + in hns3_direct_access_regs()
H A Dhns3_stats.c454 stats->rpu_rx_drop_cnt += hns3_read_dev(hw, HNS3_RPU_DROP_CNT_REG); in hns3_update_function_rpu_drop_stats()
593 cnt = hns3_read_dev(rxq, HNS3_RING_RX_PKTNUM_RECORD_REG); in hns3_rcb_rx_ring_stats_get()
604 cnt = hns3_read_dev(txq, HNS3_RING_TX_PKTNUM_RECORD_REG); in hns3_rcb_tx_ring_stats_get()
740 (void)hns3_read_dev(rxq, HNS3_RING_RX_PKTNUM_RECORD_REG); in hns3_stats_reset()
757 (void)hns3_read_dev(txq, HNS3_RING_TX_PKTNUM_RECORD_REG); in hns3_stats_reset()
846 xstats[*count].value = hns3_read_dev(hw, in hns3_queue_stats_get()
857 xstats[*count].value = hns3_read_dev(hw, in hns3_queue_stats_get()
H A Dhns3_cmd.c195 head = hns3_read_dev(hw, HNS3_CMDQ_TX_HEAD_REG); in hns3_cmd_csq_clean()
196 addr = hns3_read_dev(hw, HNS3_CMDQ_TX_ADDR_L_REG); in hns3_cmd_csq_clean()
217 uint32_t head = hns3_read_dev(hw, HNS3_CMDQ_TX_HEAD_REG); in hns3_cmd_csq_done()
H A Dhns3_mbx.c213 uint32_t tail = hns3_read_dev(hw, HNS3_CMDQ_RX_TAIL_REG); in hns3_cmd_crq_empty()
412 tail = hns3_read_dev(hw, HNS3_CMDQ_RX_TAIL_REG); in hns3_handle_mbx_msg_out_intr()
H A Dhns3_ethdev_vf.c622 cmdq_stat_reg = hns3_read_dev(hw, HNS3_VECTOR0_CMDQ_STAT_REG); in hns3vf_check_event_cause()
624 rst_ing_reg = hns3_read_dev(hw, HNS3_FUN_RST_ING); in hns3vf_check_event_cause()
628 val = hns3_read_dev(hw, HNS3_VF_RST_ING); in hns3vf_check_event_cause()
1828 val = hns3_read_dev(hw, HNS3_VF_RST_ING); in is_vf_reset_done()
1832 val = hns3_read_dev(hw, HNS3_FUN_RST_ING); in is_vf_reset_done()
H A Dhns3_ethdev.c175 cmdq_src_val = hns3_read_dev(hw, HNS3_VECTOR0_CMDQ_SRC_REG); in hns3_check_event_cause()
304 vector0_int = hns3_read_dev(hw, HNS3_VECTOR0_OTHER_INT_STS_REG); in hns3_interrupt_handler()
305 ras_int = hns3_read_dev(hw, HNS3_RAS_PF_OTHER_INT_STS_REG); in hns3_interrupt_handler()
306 cmdq_int = hns3_read_dev(hw, HNS3_VECTOR0_CMDQ_SRC_REG); in hns3_interrupt_handler()
4492 val = hns3_read_dev(hw, HNS3_VECTOR0_OTER_EN_REG); in hns3_config_all_msix_error()
5593 val = hns3_read_dev(hw, reg); in is_pf_reset_done()
5682 if (hns3_read_dev(hw, HNS3_GLOBAL_RESET_REG) || in hns3_msix_process()
5683 hns3_read_dev(hw, HNS3_FUN_RST_ING)) { in hns3_msix_process()
5696 val = hns3_read_dev(hw, HNS3_GLOBAL_RESET_REG); in hns3_msix_process()
5744 reg_val = hns3_read_dev(hw, HNS3_VECTOR0_OTER_EN_REG); in hns3_record_imp_error()
[all …]
H A Dhns3_ethdev_dump.c332 state = hns3_read_dev(hw, reg_offset + HNS3_RING_EN_REG); in get_queue_enable_state()
334 state = state && hns3_read_dev(hw, reg_offset + in get_queue_enable_state()
H A Dhns3_ethdev.h997 #define hns3_read_dev(a, reg) \ macro
H A Dhns3_intr.c2147 status = hns3_read_dev(hw, HNS3_RAS_PF_OTHER_INT_STS_REG); in hns3_handle_ras_error()
2493 reg_val = hns3_read_dev(hw, HNS3_CMDQ_TX_DEPTH_REG); in hns3_notify_reset_ready()
H A Dhns3_rxtx.c439 reg = hns3_read_dev(txq, HNS3_RING_TX_EN_REG); in hns3_enable_txq()
456 reg = hns3_read_dev(rxq, HNS3_RING_RX_EN_REG); in hns3_enable_rxq()
4707 fbd_num = hns3_read_dev(rxq, HNS3_RING_RX_FBDNUM_REG); in hns3_rx_queue_count()