Lines Matching refs:nic_reg_write
88 static void nic_reg_write(struct nicpf *nic, u64 offset, u64 val) in nic_reg_write() function
106 nic_reg_write(nic, NIC_PF_MAILBOX_INT, INTR_MASK(vf_cnt)); in nic_enable_mbx_intr()
109 nic_reg_write(nic, NIC_PF_MAILBOX_ENA_W1S, INTR_MASK(vf_cnt)); in nic_enable_mbx_intr()
112 nic_reg_write(nic, NIC_PF_MAILBOX_INT + sizeof(u64), in nic_enable_mbx_intr()
114 nic_reg_write(nic, NIC_PF_MAILBOX_ENA_W1S + sizeof(u64), in nic_enable_mbx_intr()
121 nic_reg_write(nic, NIC_PF_MAILBOX_INT + (mbx_reg << 3), BIT_ULL(vf)); in nic_clear_mbx_intr()
215 nic_reg_write(nic, NIC_PF_SW_SYNC_RX, 0x01); in nic_rcv_queue_sw_sync()
222 nic_reg_write(nic, NIC_PF_SW_SYNC_RX, 0x00); in nic_rcv_queue_sw_sync()
272 nic_reg_write(nic, NIC_PF_LMAC_0_7_CREDIT + (lmac * 8), lmac_credits); in nic_update_hw_frs()
278 nic_reg_write(nic, in nic_update_hw_frs()
310 nic_reg_write(nic, NIC_PF_LMAC_0_7_CFG | (lmac << 3), lmac_cfg); in nic_set_tx_pkt_pad()
343 nic_reg_write(nic, in nic_set_lmac_vf_mapping()
417 nic_reg_write(nic, NIC_PF_CFG, 0x3); in nic_init_hw()
420 nic_reg_write(nic, NIC_PF_BP_CFG, (1ULL << 6) | 0x03); in nic_init_hw()
427 nic_reg_write(nic, NIC_PF_INTF_0_1_SEND_CFG, in nic_init_hw()
430 nic_reg_write(nic, NIC_PF_INTF_0_1_SEND_CFG | (1 << 8), in nic_init_hw()
436 nic_reg_write(nic, NIC_PF_INTFX_SEND_CFG | (i << 3), in nic_init_hw()
440 nic_reg_write(nic, NIC_PF_INTF_0_1_BP_CFG, in nic_init_hw()
442 nic_reg_write(nic, NIC_PF_INTF_0_1_BP_CFG + (1 << 8), in nic_init_hw()
453 nic_reg_write(nic, NIC_PF_PKIND_0_15_CFG | (i << 3), in nic_init_hw()
459 nic_reg_write(nic, NIC_PF_INTR_TIMER_CFG, NICPF_CLK_PER_INT_TICK); in nic_init_hw()
462 nic_reg_write(nic, NIC_PF_RX_ETYPE_0_7, in nic_init_hw()
468 nic_reg_write(nic, NIC_PF_CQM_CFG, NICPF_CQM_MIN_DROP_LEVEL); in nic_init_hw()
489 nic_reg_write(nic, NIC_PF_CHAN_0_255_RX_BP_CFG | (chan << 3), in nic_config_cpi()
491 nic_reg_write(nic, NIC_PF_CHAN_0_255_RX_CFG | (chan << 3), in nic_config_cpi()
507 nic_reg_write(nic, NIC_PF_RSSI_0_4097_RQ | (rssi << 3), in nic_config_cpi()
523 nic_reg_write(nic, NIC_PF_CPI_0_2047_CFG | (cpi << 3), in nic_config_cpi()
528 nic_reg_write(nic, NIC_PF_CPI_0_2047_CFG | (cpi << 3), in nic_config_cpi()
531 nic_reg_write(nic, NIC_PF_MPI_0_2047_CFG | (cpi << 3), in nic_config_cpi()
582 nic_reg_write(nic, NIC_PF_RSSI_0_4097_RQ | (rssi << 3), in nic_config_rss()
595 nic_reg_write(nic, idx_addr | (cpi_base << 3), cpi_cfg); in nic_config_rss()
655 nic_reg_write(nic, NIC_PF_QSET_0_127_SQ_0_7_CFG2 | in nic_tx_channel_cfg()
658 nic_reg_write(nic, NIC_PF_TL4_0_1023_CFG | (tl4 << 3), in nic_tx_channel_cfg()
661 nic_reg_write(nic, NIC_PF_TL3_0_255_CFG | (tl3 << 3), rr_quantum); in nic_tx_channel_cfg()
671 nic_reg_write(nic, NIC_PF_TL3_0_255_CHAN | (tl3 << 3), chan); in nic_tx_channel_cfg()
673 nic_reg_write(nic, NIC_PF_TL3_0_255_CHAN | (tl3 << 3), 0); in nic_tx_channel_cfg()
676 nic_reg_write(nic, NIC_PF_CHAN_0_255_TX_CFG | (chan << 3), 1); in nic_tx_channel_cfg()
679 nic_reg_write(nic, NIC_PF_TL3A_0_63_CFG | (tl2 << 3), tl2); in nic_tx_channel_cfg()
680 nic_reg_write(nic, NIC_PF_TL2_0_63_CFG | (tl2 << 3), rr_quantum); in nic_tx_channel_cfg()
682 nic_reg_write(nic, NIC_PF_TL2_0_63_PRI | (tl2 << 3), 0x00); in nic_tx_channel_cfg()
691 nic_reg_write(nic, NIC_PF_TL2_LMAC | (tl2 << 3), in nic_tx_channel_cfg()
776 nic_reg_write(nic, NIC_PF_CQ_AVG_CFG, in nic_config_loopback()
778 nic_reg_write(nic, NIC_PF_RRM_AVG_CFG, in nic_config_loopback()
796 nic_reg_write(nic, reg_addr, 0); in nic_reset_stat_counters()
805 nic_reg_write(nic, reg_addr, 0); in nic_reset_stat_counters()
816 nic_reg_write(nic, reg_addr, 0); in nic_reset_stat_counters()
820 nic_reg_write(nic, reg_addr, 0); in nic_reset_stat_counters()
834 nic_reg_write(nic, NIC_PF_RX_GENEVE_DEF, in nic_enable_tunnel_parsing()
836 nic_reg_write(nic, NIC_PF_RX_GENEVE_PROT_DEF, in nic_enable_tunnel_parsing()
838 nic_reg_write(nic, NIC_PF_RX_NVGRE_PROT_DEF, in nic_enable_tunnel_parsing()
840 nic_reg_write(nic, NIC_PF_RX_VXLAN_DEF_0_1, in nic_enable_tunnel_parsing()
842 nic_reg_write(nic, NIC_PF_RX_VXLAN_PROT_DEF, in nic_enable_tunnel_parsing()
910 nic_reg_write(nic, NIC_PF_RX_ETYPE_0_7 | (1 << 3), in nic_config_timestamp()
916 nic_reg_write(nic, NIC_PF_RX_ETYPE_0_7 | (1 << 3), in nic_config_timestamp()
920 nic_reg_write(nic, NIC_PF_PKIND_0_15_CFG | (pkind_idx << 3), pkind_val); in nic_config_timestamp()
989 nic_reg_write(nic, reg_addr, cfg); in nic_handle_mbx_intr()
995 nic_reg_write(nic, reg_addr, mbx.rq.cfg); in nic_handle_mbx_intr()
1002 nic_reg_write(nic, NIC_PF_RX_CFG, 0x01); in nic_handle_mbx_intr()
1010 nic_reg_write(nic, reg_addr, mbx.rq.cfg); in nic_handle_mbx_intr()
1019 nic_reg_write(nic, reg_addr, mbx.rq.cfg); in nic_handle_mbx_intr()
1025 nic_reg_write(nic, reg_addr, mbx.sq.cfg); in nic_handle_mbx_intr()