/linux-6.1.9/drivers/net/ethernet/intel/igc/ |
D | igc_tsn.c | 60 wr32(IGC_TXPBS, I225_TXPBSIZE_DEFAULT); in igc_tsn_disable_offload() 61 wr32(IGC_DTXMXPKTSZ, IGC_DTXMXPKTSZ_DEFAULT); in igc_tsn_disable_offload() 66 wr32(IGC_TQAVCTRL, tqavctrl); in igc_tsn_disable_offload() 69 wr32(IGC_TXQCTL(i), 0); in igc_tsn_disable_offload() 70 wr32(IGC_STQT(i), 0); in igc_tsn_disable_offload() 71 wr32(IGC_ENDQT(i), NSEC_PER_SEC); in igc_tsn_disable_offload() 74 wr32(IGC_QBVCYCLET_S, 0); in igc_tsn_disable_offload() 75 wr32(IGC_QBVCYCLET, NSEC_PER_SEC); in igc_tsn_disable_offload() 93 wr32(IGC_TSAUXC, 0); in igc_tsn_enable_offload() 94 wr32(IGC_DTXMXPKTSZ, IGC_DTXMXPKTSZ_TSN); in igc_tsn_enable_offload() [all …]
|
D | igc_base.c | 32 wr32(IGC_IMC, 0xffffffff); in igc_reset_hw_base() 34 wr32(IGC_RCTL, 0); in igc_reset_hw_base() 35 wr32(IGC_TCTL, IGC_TCTL_PSP); in igc_reset_hw_base() 43 wr32(IGC_CTRL, ctrl | IGC_CTRL_RST); in igc_reset_hw_base() 55 wr32(IGC_IMC, 0xffffffff); in igc_reset_hw_base() 116 wr32(IGC_CTRL, ctrl); in igc_setup_copper_link_base() 340 wr32(IGC_RFCTL, rfctl); in igc_rx_fifo_flush_base() 348 wr32(IGC_RXDCTL(i), in igc_rx_fifo_flush_base() 368 wr32(IGC_RFCTL, rfctl & ~IGC_RFCTL_LEF); in igc_rx_fifo_flush_base() 371 wr32(IGC_RLPML, 0); in igc_rx_fifo_flush_base() [all …]
|
D | igc_ptp.c | 42 wr32(IGC_SYSTIML, ts->tv_nsec); in igc_ptp_write_i225() 43 wr32(IGC_SYSTIMH, ts->tv_sec); in igc_ptp_write_i225() 67 wr32(IGC_TIMINCA, inca); in igc_ptp_adjfine_i225() 204 wr32(IGC_TSSDP, tssdp); in igc_pin_perout() 205 wr32(IGC_CTRL, ctrl); in igc_pin_perout() 206 wr32(IGC_CTRL_EXT, ctrl_ext); in igc_pin_perout() 240 wr32(IGC_TSSDP, tssdp); in igc_pin_extts() 241 wr32(IGC_CTRL, ctrl); in igc_pin_extts() 242 wr32(IGC_CTRL_EXT, ctrl_ext); in igc_pin_extts() 296 wr32(IGC_TSAUXC, tsauxc); in igc_ptp_feature_enable_i225() [all …]
|
D | igc_diag.c | 46 wr32(reg, test_pattern[pat] & write); in reg_pattern_test() 53 wr32(reg, before); in reg_pattern_test() 56 wr32(reg, before); in reg_pattern_test() 68 wr32(reg, write & mask); in reg_set_and_check() 75 wr32(reg, before); in reg_set_and_check() 78 wr32(reg, before); in reg_set_and_check() 97 wr32(IGC_STATUS, toggle); in igc_reg_test() 107 wr32(IGC_STATUS, before); in igc_reg_test()
|
D | igc_mac.c | 29 wr32(IGC_CTRL, ctrl); in igc_disable_pcie_master() 103 wr32(IGC_FCRTL, fcrtl); in igc_set_fc_watermarks() 104 wr32(IGC_FCRTH, fcrth); in igc_set_fc_watermarks() 154 wr32(IGC_FCT, FLOW_CONTROL_TYPE); in igc_setup_link() 155 wr32(IGC_FCAH, FLOW_CONTROL_ADDRESS_HIGH); in igc_setup_link() 156 wr32(IGC_FCAL, FLOW_CONTROL_ADDRESS_LOW); in igc_setup_link() 158 wr32(IGC_FCTTV, hw->fc.pause_time); in igc_setup_link() 223 wr32(IGC_CTRL, ctrl); in igc_force_mac_fc() 341 wr32(IGC_RAL(index), rar_low); in igc_rar_set() 343 wr32(IGC_RAH(index), rar_high); in igc_rar_set() [all …]
|
D | igc_i225.c | 82 wr32(IGC_SWSM, swsm | IGC_SWSM_SWESMBI); in igc_get_hw_semaphore_i225() 140 wr32(IGC_SW_FW_SYNC, swfw_sync); in igc_acquire_swfw_sync_i225() 171 wr32(IGC_SW_FW_SYNC, swfw_sync); in igc_release_swfw_sync_i225() 248 wr32(IGC_SRWR, eewr); in igc_write_nvm_srwr() 383 wr32(IGC_EECD, flup); in igc_update_flash_i225() 544 wr32(IGC_IPCNFG, ipcnfg); in igc_set_eee_i225() 545 wr32(IGC_EEER, eeer); in igc_set_eee_i225() 577 wr32(IGC_LTRC, ltrc); in igc_set_ltr_i225() 638 wr32(IGC_LTRMINV, ltrv); in igc_set_ltr_i225() 645 wr32(IGC_LTRMAXV, ltrv); in igc_set_ltr_i225()
|
D | igc_nvm.c | 52 wr32(IGC_EECD, eecd | IGC_EECD_REQ); in igc_acquire_nvm() 65 wr32(IGC_EECD, eecd); in igc_acquire_nvm() 85 wr32(IGC_EECD, eecd); in igc_release_nvm() 117 wr32(IGC_EERD, eerd); in igc_read_nvm_eerd()
|
D | igc_main.c | 118 wr32(IGC_VET, ETH_P_8021Q); in igc_reset() 160 wr32(IGC_CTRL_EXT, in igc_release_hw_control() 179 wr32(IGC_CTRL_EXT, in igc_get_hw_control() 619 wr32(IGC_RXDCTL(reg_idx), 0); in igc_configure_rx_ring() 622 wr32(IGC_RDBAL(reg_idx), in igc_configure_rx_ring() 624 wr32(IGC_RDBAH(reg_idx), rdba >> 32); in igc_configure_rx_ring() 625 wr32(IGC_RDLEN(reg_idx), in igc_configure_rx_ring() 630 wr32(IGC_RDH(reg_idx), 0); in igc_configure_rx_ring() 648 wr32(IGC_SRRCTL(reg_idx), srrctl); in igc_configure_rx_ring() 665 wr32(IGC_RXDCTL(reg_idx), rxdctl); in igc_configure_rx_ring() [all …]
|
/linux-6.1.9/drivers/net/ethernet/intel/igb/ |
D | igb_ptp.c | 140 wr32(E1000_SYSTIML, ts->tv_nsec); in igb_ptp_write_i210() 141 wr32(E1000_SYSTIMH, (u32)ts->tv_sec); in igb_ptp_write_i210() 216 wr32(E1000_TIMINCA, INCPERIOD_82576 | (incvalue & INCVALUE_82576_MASK)); in igb_ptp_adjfine_82576() 242 wr32(E1000_TIMINCA, inca); in igb_ptp_adjfine_82580() 437 wr32(E1000_TSSDP, tssdp); in igb_pin_extts() 438 wr32(E1000_CTRL, ctrl); in igb_pin_extts() 439 wr32(E1000_CTRL_EXT, ctrl_ext); in igb_pin_extts() 503 wr32(E1000_TSSDP, tssdp); in igb_pin_perout() 504 wr32(E1000_CTRL, ctrl); in igb_pin_perout() 505 wr32(E1000_CTRL_EXT, ctrl_ext); in igb_pin_perout() [all …]
|
D | e1000_82575.c | 202 wr32(E1000_CTRL_EXT, ctrl_ext); in igb_init_phy_params_82575() 504 wr32(E1000_CTRL_EXT, ctrl_ext | E1000_CTRL_I2C_ENA); in igb_set_sfp_media_type_82575() 550 wr32(E1000_CTRL_EXT, ctrl_ext); in igb_set_sfp_media_type_82575() 668 wr32(E1000_CTRL_EXT, ctrl_ext); in igb_get_invariants_82575() 874 wr32(E1000_CTRL_EXT, ctrl_ext & ~E1000_CTRL_EXT_SDP3_DATA); in igb_get_phy_id_82575() 906 wr32(E1000_CTRL_EXT, ctrl_ext); in igb_get_phy_id_82575() 1062 wr32(E1000_82580_PHY_POWER_MGMT, data); in igb_set_d0_lplu_state_82580() 1106 wr32(E1000_82580_PHY_POWER_MGMT, data); in igb_set_d3_lplu_state_82580() 1190 wr32(E1000_SW_FW_SYNC, swfw_sync); in igb_acquire_swfw_sync_82575() 1215 wr32(E1000_SW_FW_SYNC, swfw_sync); in igb_release_swfw_sync_82575() [all …]
|
D | e1000_mac.c | 243 wr32(E1000_VLVF(vlvf_index), 0); in igb_vfta_set() 266 wr32(E1000_VLVF(vlvf_index), bits | vlan | E1000_VLVF_VLANID_ENABLE); in igb_vfta_set() 377 wr32(E1000_RAL(index), rar_low); in igb_rar_set() 379 wr32(E1000_RAH(index), rar_high); in igb_rar_set() 716 wr32(E1000_FCT, FLOW_CONTROL_TYPE); in igb_setup_link() 717 wr32(E1000_FCAH, FLOW_CONTROL_ADDRESS_HIGH); in igb_setup_link() 718 wr32(E1000_FCAL, FLOW_CONTROL_ADDRESS_LOW); in igb_setup_link() 720 wr32(E1000_FCTTV, hw->fc.pause_time); in igb_setup_link() 746 wr32(E1000_TCTL, tctl); in igb_config_collision_dist() 779 wr32(E1000_FCRTL, fcrtl); in igb_set_fc_watermarks() [all …]
|
D | e1000_i210.c | 64 wr32(E1000_SWSM, swsm | E1000_SWSM_SWESMBI); in igb_get_hw_semaphore_i210() 148 wr32(E1000_SW_FW_SYNC, swfw_sync); in igb_acquire_swfw_sync_i210() 172 wr32(E1000_SW_FW_SYNC, swfw_sync); in igb_release_swfw_sync_i210() 250 wr32(E1000_SRWR, eewr); in igb_write_nvm_srwr() 679 wr32(E1000_EECD, flup); in igb_update_flash_i210() 836 wr32(E1000_MDICNFG, reg_val); in igb_pll_workaround_i210() 858 wr32(E1000_CTRL, ctrl|E1000_CTRL_PHY_RST); in igb_pll_workaround_i210() 862 wr32(E1000_CTRL_EXT, ctrl_ext); in igb_pll_workaround_i210() 864 wr32(E1000_WUC, 0); in igb_pll_workaround_i210() 866 wr32(E1000_EEARBC_I210, reg_val); in igb_pll_workaround_i210() [all …]
|
D | igb_main.c | 587 wr32(E1000_I2CPARAMS, i2cctl); in igb_set_i2c_data() 610 wr32(E1000_I2CPARAMS, i2cctl); in igb_set_i2c_clk() 883 wr32(E1000_CTRL_EXT, tmp); in igb_configure_msix() 900 wr32(E1000_GPIE, E1000_GPIE_MSIX_MODE | in igb_configure_msix() 908 wr32(E1000_IVAR_MISC, tmp); in igb_configure_msix() 1148 wr32(E1000_IOVCTL, E1000_IOVCTL_REUSE_VFQ); in igb_set_interrupt_capability() 1488 wr32(E1000_EIAM, regval & ~adapter->eims_enable_mask); in igb_irq_disable() 1489 wr32(E1000_EIMC, adapter->eims_enable_mask); in igb_irq_disable() 1491 wr32(E1000_EIAC, regval & ~adapter->eims_enable_mask); in igb_irq_disable() 1494 wr32(E1000_IAM, 0); in igb_irq_disable() [all …]
|
D | e1000_mbx.c | 249 wr32(E1000_MBVFICR, mask); in igb_check_for_bit_pf() 307 wr32(E1000_VFLRE, BIT(vf_number)); in igb_check_for_rst_pf() 329 wr32(E1000_P2VMAILBOX(vf_number), E1000_P2VMAILBOX_PFU); in igb_obtain_mbx_lock_pf() 357 wr32(E1000_P2VMAILBOX(vf_number), in igb_release_mbx_lock_pf() 392 wr32(E1000_P2VMAILBOX(vf_number), E1000_P2VMAILBOX_STS); in igb_write_mbx_pf() 431 wr32(E1000_P2VMAILBOX(vf_number), E1000_P2VMAILBOX_ACK); in igb_read_mbx_pf() 433 wr32(E1000_P2VMAILBOX(vf_number), in igb_read_mbx_pf()
|
D | e1000_nvm.c | 20 wr32(E1000_EECD, *eecd); in igb_raise_eec_clk() 35 wr32(E1000_EECD, *eecd); in igb_lower_eec_clk() 66 wr32(E1000_EECD, eecd); in igb_shift_out_eec_bits() 78 wr32(E1000_EECD, eecd); in igb_shift_out_eec_bits() 165 wr32(E1000_EECD, eecd | E1000_EECD_REQ); in igb_acquire_nvm() 178 wr32(E1000_EECD, eecd); in igb_acquire_nvm() 200 wr32(E1000_EECD, eecd); in igb_standby_nvm() 204 wr32(E1000_EECD, eecd); in igb_standby_nvm() 242 wr32(E1000_EECD, eecd); in igb_release_nvm() 263 wr32(E1000_EECD, eecd); in igb_ready_nvm_eeprom() [all …]
|
D | igb_ethtool.c | 1223 wr32(reg, (_test[pat] & write)); in reg_pattern_test() 1243 wr32(reg, write & mask); in reg_set_and_check() 1307 wr32(E1000_STATUS, toggle); in igb_reg_test() 1317 wr32(E1000_STATUS, before); in igb_reg_test() 1416 wr32(E1000_IVAR_MISC, E1000_IVAR_VALID << 8); in igb_intr_test() 1417 wr32(E1000_EIMS, BIT(0)); in igb_intr_test() 1437 wr32(E1000_IMC, ~0); in igb_intr_test() 1481 wr32(E1000_ICR, ~0); in igb_intr_test() 1483 wr32(E1000_IMC, mask); in igb_intr_test() 1484 wr32(E1000_ICS, mask); in igb_intr_test() [all …]
|
/linux-6.1.9/drivers/net/ethernet/intel/i40e/ |
D | i40e_ptp.c | 315 wr32(hw, I40E_PRTTSYN_TIME_L, ns & 0xFFFFFFFF); in i40e_ptp_write() 316 wr32(hw, I40E_PRTTSYN_TIME_H, ns >> 32); in i40e_ptp_write() 368 wr32(hw, I40E_PRTTSYN_INC_L, adj & 0xFFFFFFFF); in i40e_ptp_adjfine() 369 wr32(hw, I40E_PRTTSYN_INC_H, adj >> 32); in i40e_ptp_adjfine() 386 wr32(hw, I40E_PRTTSYN_AUX_0(1), 0); in i40e_ptp_set_1pps_signal_hw() 387 wr32(hw, I40E_PRTTSYN_AUX_1(1), I40E_PRTTSYN_AUX_1_INSTNT); in i40e_ptp_set_1pps_signal_hw() 388 wr32(hw, I40E_PRTTSYN_AUX_0(1), I40E_PRTTSYN_AUX_0_OUT_ENABLE); in i40e_ptp_set_1pps_signal_hw() 396 wr32(hw, I40E_PRTTSYN_TGT_L(1), ns & 0xFFFFFFFF); in i40e_ptp_set_1pps_signal_hw() 398 wr32(hw, I40E_PRTTSYN_TGT_H(1), ns >> 32); in i40e_ptp_set_1pps_signal_hw() 399 wr32(hw, I40E_PRTTSYN_CLKO(1), I40E_PTP_HALF_SECOND); in i40e_ptp_set_1pps_signal_hw() [all …]
|
D | i40e_hmc.h | 108 wr32((hw), I40E_PFHMC_SDDATAHIGH, val1); \ 109 wr32((hw), I40E_PFHMC_SDDATALOW, val2); \ 110 wr32((hw), I40E_PFHMC_SDCMD, val3); \ 127 wr32((hw), I40E_PFHMC_SDDATAHIGH, 0); \ 128 wr32((hw), I40E_PFHMC_SDDATALOW, val2); \ 129 wr32((hw), I40E_PFHMC_SDCMD, val3); \ 139 wr32((hw), I40E_PFHMC_PDINV, \
|
D | i40e_adminq.c | 275 wr32(hw, hw->aq.asq.head, 0); in i40e_config_asq_regs() 276 wr32(hw, hw->aq.asq.tail, 0); in i40e_config_asq_regs() 279 wr32(hw, hw->aq.asq.len, (hw->aq.num_asq_entries | in i40e_config_asq_regs() 281 wr32(hw, hw->aq.asq.bal, lower_32_bits(hw->aq.asq.desc_buf.pa)); in i40e_config_asq_regs() 282 wr32(hw, hw->aq.asq.bah, upper_32_bits(hw->aq.asq.desc_buf.pa)); in i40e_config_asq_regs() 304 wr32(hw, hw->aq.arq.head, 0); in i40e_config_arq_regs() 305 wr32(hw, hw->aq.arq.tail, 0); in i40e_config_arq_regs() 308 wr32(hw, hw->aq.arq.len, (hw->aq.num_arq_entries | in i40e_config_arq_regs() 310 wr32(hw, hw->aq.arq.bal, lower_32_bits(hw->aq.arq.desc_buf.pa)); in i40e_config_arq_regs() 311 wr32(hw, hw->aq.arq.bah, upper_32_bits(hw->aq.arq.desc_buf.pa)); in i40e_config_arq_regs() [all …]
|
D | i40e_dcb.c | 1338 wr32(hw, I40E_PRTDCB_RETSC, reg); in i40e_dcb_hw_rx_fifo_config() 1394 wr32(hw, I40E_PRT_SWR_PM_THR, reg); in i40e_dcb_hw_rx_cmd_monitor_config() 1400 wr32(hw, I40E_PRTDCB_RPPMC, reg); in i40e_dcb_hw_rx_cmd_monitor_config() 1446 wr32(hw, I40E_PRTDCB_MFLCN, reg); in i40e_dcb_hw_pfc_config() 1454 wr32(hw, I40E_PRTDCB_FCCFG, reg); in i40e_dcb_hw_pfc_config() 1461 wr32(hw, I40E_PRTMAC_HSEC_CTL_RX_ENABLE_GPP, reg); in i40e_dcb_hw_pfc_config() 1467 wr32(hw, I40E_PRTMAC_HSEC_CTL_RX_ENABLE_PPP, reg); in i40e_dcb_hw_pfc_config() 1474 wr32(hw, I40E_PRTMAC_HSEC_CTL_RX_PAUSE_ENABLE, reg); in i40e_dcb_hw_pfc_config() 1481 wr32(hw, I40E_PRTMAC_HSEC_CTL_TX_PAUSE_ENABLE, reg); in i40e_dcb_hw_pfc_config() 1491 wr32(hw, I40E_PRTMAC_HSEC_CTL_TX_PAUSE_REFRESH_TIMER(i), reg); in i40e_dcb_hw_pfc_config() [all …]
|
/linux-6.1.9/drivers/net/ethernet/intel/iavf/ |
D | iavf_adminq.c | 262 wr32(hw, hw->aq.asq.head, 0); in iavf_config_asq_regs() 263 wr32(hw, hw->aq.asq.tail, 0); in iavf_config_asq_regs() 266 wr32(hw, hw->aq.asq.len, (hw->aq.num_asq_entries | in iavf_config_asq_regs() 268 wr32(hw, hw->aq.asq.bal, lower_32_bits(hw->aq.asq.desc_buf.pa)); in iavf_config_asq_regs() 269 wr32(hw, hw->aq.asq.bah, upper_32_bits(hw->aq.asq.desc_buf.pa)); in iavf_config_asq_regs() 291 wr32(hw, hw->aq.arq.head, 0); in iavf_config_arq_regs() 292 wr32(hw, hw->aq.arq.tail, 0); in iavf_config_arq_regs() 295 wr32(hw, hw->aq.arq.len, (hw->aq.num_arq_entries | in iavf_config_arq_regs() 297 wr32(hw, hw->aq.arq.bal, lower_32_bits(hw->aq.arq.desc_buf.pa)); in iavf_config_arq_regs() 298 wr32(hw, hw->aq.arq.bah, upper_32_bits(hw->aq.arq.desc_buf.pa)); in iavf_config_arq_regs() [all …]
|
/linux-6.1.9/drivers/net/ethernet/intel/ice/ |
D | ice_sriov.c | 90 wr32(&pf->hw, GLINT_DYN_CTL(i), GLINT_DYN_CTL_CLEARPBA_M); in ice_free_vf_res() 116 wr32(hw, VPINT_ALLOC(vf->vf_id), 0); in ice_dis_vf_mappings() 117 wr32(hw, VPINT_ALLOC_PCI(vf->vf_id), 0); in ice_dis_vf_mappings() 128 wr32(hw, GLINT_VECT2FUNC(v), reg); in ice_dis_vf_mappings() 132 wr32(hw, VPLAN_TX_QBASE(vf->vf_id), 0); in ice_dis_vf_mappings() 137 wr32(hw, VPLAN_RX_QBASE(vf->vf_id), 0); in ice_dis_vf_mappings() 218 wr32(hw, GLGEN_VFLRSTAT(reg_idx), BIT(bit_idx)); in ice_free_vfs() 317 wr32(hw, VPINT_ALLOC(vf->vf_id), reg); in ice_ena_vf_msix_mappings() 323 wr32(hw, VPINT_ALLOC_PCI(vf->vf_id), reg); in ice_ena_vf_msix_mappings() 331 wr32(hw, GLINT_VECT2FUNC(v), reg); in ice_ena_vf_msix_mappings() [all …]
|
D | ice_controlq.c | 276 wr32(hw, ring->head, 0); in ice_cfg_cq_regs() 277 wr32(hw, ring->tail, 0); in ice_cfg_cq_regs() 280 wr32(hw, ring->len, (num_entries | ring->len_ena_mask)); in ice_cfg_cq_regs() 281 wr32(hw, ring->bal, lower_32_bits(ring->desc_buf.pa)); in ice_cfg_cq_regs() 282 wr32(hw, ring->bah, upper_32_bits(ring->desc_buf.pa)); in ice_cfg_cq_regs() 319 wr32(hw, cq->rq.tail, (u32)(cq->num_rq_entries - 1)); in ice_cfg_rq_regs() 487 wr32(hw, cq->sq.head, 0); in ice_shutdown_sq() 488 wr32(hw, cq->sq.tail, 0); in ice_shutdown_sq() 489 wr32(hw, cq->sq.len, 0); in ice_shutdown_sq() 490 wr32(hw, cq->sq.bal, 0); in ice_shutdown_sq() [all …]
|
/linux-6.1.9/drivers/infiniband/hw/irdma/ |
D | i40iw_hw.c | 115 wr32(dev->hw, I40E_PFINT_LNKLSTN(idx - 1), reg_val); in i40iw_config_ceq() 119 wr32(dev->hw, I40E_PFINT_DYN_CTLN(idx - 1), reg_val); in i40iw_config_ceq() 126 wr32(dev->hw, i40iw_regs[IRDMA_GLINT_CEQCTL] + 4 * ceq_id, reg_val); in i40iw_config_ceq() 141 wr32(dev->hw, i40iw_regs[IRDMA_GLINT_DYN_CTL] + 4 * (idx - 1), val); in i40iw_ena_irq() 151 wr32(dev->hw, i40iw_regs[IRDMA_GLINT_DYN_CTL] + 4 * (idx - 1), 0); in i40iw_disable_irq()
|
/linux-6.1.9/drivers/gpu/drm/nouveau/nvkm/core/ |
D | gpuobj.c | 77 .wr32 = nvkm_gpuobj_wr32_fast, 85 .wr32 = nvkm_gpuobj_heap_wr32, 140 .wr32 = nvkm_gpuobj_wr32_fast, 148 .wr32 = nvkm_gpuobj_wr32,
|