/Linux-v5.4/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_ethtool.c | 536 regs_buff[0] = IXGBE_READ_REG(hw, IXGBE_CTRL); in ixgbe_get_regs() 537 regs_buff[1] = IXGBE_READ_REG(hw, IXGBE_STATUS); in ixgbe_get_regs() 538 regs_buff[2] = IXGBE_READ_REG(hw, IXGBE_CTRL_EXT); in ixgbe_get_regs() 539 regs_buff[3] = IXGBE_READ_REG(hw, IXGBE_ESDP); in ixgbe_get_regs() 540 regs_buff[4] = IXGBE_READ_REG(hw, IXGBE_EODSDP); in ixgbe_get_regs() 541 regs_buff[5] = IXGBE_READ_REG(hw, IXGBE_LEDCTL); in ixgbe_get_regs() 542 regs_buff[6] = IXGBE_READ_REG(hw, IXGBE_FRTIMER); in ixgbe_get_regs() 543 regs_buff[7] = IXGBE_READ_REG(hw, IXGBE_TCPTIMER); in ixgbe_get_regs() 546 regs_buff[8] = IXGBE_READ_REG(hw, IXGBE_EEC(hw)); in ixgbe_get_regs() 547 regs_buff[9] = IXGBE_READ_REG(hw, IXGBE_EERD); in ixgbe_get_regs() [all …]
|
D | ixgbe_common.c | 151 reg = IXGBE_READ_REG(hw, IXGBE_PCS1GANA); in ixgbe_setup_fc_generic() 227 reg = IXGBE_READ_REG(hw, IXGBE_PCS1GLCTL); in ixgbe_setup_fc_generic() 289 ctrl_ext = IXGBE_READ_REG(hw, IXGBE_CTRL_EXT); in ixgbe_start_hw_generic() 387 IXGBE_READ_REG(hw, IXGBE_CRCERRS); in ixgbe_clear_hw_cntrs_generic() 388 IXGBE_READ_REG(hw, IXGBE_ILLERRC); in ixgbe_clear_hw_cntrs_generic() 389 IXGBE_READ_REG(hw, IXGBE_ERRBC); in ixgbe_clear_hw_cntrs_generic() 390 IXGBE_READ_REG(hw, IXGBE_MSPDC); in ixgbe_clear_hw_cntrs_generic() 392 IXGBE_READ_REG(hw, IXGBE_MPC(i)); in ixgbe_clear_hw_cntrs_generic() 394 IXGBE_READ_REG(hw, IXGBE_MLFC); in ixgbe_clear_hw_cntrs_generic() 395 IXGBE_READ_REG(hw, IXGBE_MRFC); in ixgbe_clear_hw_cntrs_generic() [all …]
|
D | ixgbe_dcb_82598.c | 28 reg = IXGBE_READ_REG(hw, IXGBE_RUPPBMR) | IXGBE_RUPPBMR_MQA; in ixgbe_dcb_config_rx_arbiter_82598() 31 reg = IXGBE_READ_REG(hw, IXGBE_RMCS); in ixgbe_dcb_config_rx_arbiter_82598() 54 reg = IXGBE_READ_REG(hw, IXGBE_RDRXCTL); in ixgbe_dcb_config_rx_arbiter_82598() 60 reg = IXGBE_READ_REG(hw, IXGBE_RXCTRL); in ixgbe_dcb_config_rx_arbiter_82598() 87 reg = IXGBE_READ_REG(hw, IXGBE_DPMCS); in ixgbe_dcb_config_tx_desc_arbiter_82598() 136 reg = IXGBE_READ_REG(hw, IXGBE_PDPMCS); in ixgbe_dcb_config_tx_data_arbiter_82598() 160 reg = IXGBE_READ_REG(hw, IXGBE_DTXCTL); in ixgbe_dcb_config_tx_data_arbiter_82598() 180 reg = IXGBE_READ_REG(hw, IXGBE_RMCS); in ixgbe_dcb_config_pfc_82598() 186 reg = IXGBE_READ_REG(hw, IXGBE_FCTRL); in ixgbe_dcb_config_pfc_82598() 235 reg = IXGBE_READ_REG(hw, IXGBE_RQSMR(i)); in ixgbe_dcb_config_tc_stats_82598() [all …]
|
D | ixgbe_82599.c | 48 fwsm = IXGBE_READ_REG(hw, IXGBE_FWSM(hw)); in ixgbe_mng_enabled() 52 manc = IXGBE_READ_REG(hw, IXGBE_MANC); in ixgbe_mng_enabled() 56 factps = IXGBE_READ_REG(hw, IXGBE_FACTPS(hw)); in ixgbe_mng_enabled() 192 *reg_val = IXGBE_READ_REG(hw, IXGBE_AUTOC); in prot_autoc_read_82599() 278 esdp = IXGBE_READ_REG(hw, IXGBE_ESDP); in ixgbe_init_phy_ops_82599() 351 autoc = IXGBE_READ_REG(hw, IXGBE_AUTOC); in ixgbe_get_link_capabilities_82599() 489 autoc2_reg = IXGBE_READ_REG(hw, IXGBE_AUTOC2); in ixgbe_stop_mac_link_on_d3_82599() 529 autoc_reg = IXGBE_READ_REG(hw, IXGBE_AUTOC); in ixgbe_start_mac_link_82599() 538 links_reg = IXGBE_READ_REG(hw, IXGBE_LINKS); in ixgbe_start_mac_link_82599() 566 u32 esdp_reg = IXGBE_READ_REG(hw, IXGBE_ESDP); in ixgbe_disable_tx_laser_multispeed_fiber() [all …]
|
D | ixgbe_ptp.c | 172 esdp = IXGBE_READ_REG(hw, IXGBE_ESDP); in ixgbe_ptp_setup_sdp_X540() 252 esdp = IXGBE_READ_REG(hw, IXGBE_ESDP); in ixgbe_ptp_setup_sdp_X550() 348 IXGBE_READ_REG(hw, IXGBE_SYSTIMR); in ixgbe_ptp_read_X550() 349 ts.tv_nsec = IXGBE_READ_REG(hw, IXGBE_SYSTIML); in ixgbe_ptp_read_X550() 350 ts.tv_sec = IXGBE_READ_REG(hw, IXGBE_SYSTIMH); in ixgbe_ptp_read_X550() 370 stamp |= (u64)IXGBE_READ_REG(hw, IXGBE_SYSTIML); in ixgbe_ptp_read_82599() 371 stamp |= (u64)IXGBE_READ_REG(hw, IXGBE_SYSTIMH) << 32; in ixgbe_ptp_read_82599() 578 IXGBE_READ_REG(hw, IXGBE_SYSTIMR); in ixgbe_ptp_gettimex() 580 ts->tv_nsec = IXGBE_READ_REG(hw, IXGBE_SYSTIML); in ixgbe_ptp_gettimex() 581 ts->tv_sec = IXGBE_READ_REG(hw, IXGBE_SYSTIMH); in ixgbe_ptp_gettimex() [all …]
|
D | ixgbe_x540.c | 91 ctrl |= IXGBE_READ_REG(hw, IXGBE_CTRL); in ixgbe_reset_hw_X540() 99 ctrl = IXGBE_READ_REG(hw, IXGBE_CTRL); in ixgbe_reset_hw_X540() 197 eec = IXGBE_READ_REG(hw, IXGBE_EEC(hw)); in ixgbe_init_eeprom_params_X540() 499 flup = IXGBE_READ_REG(hw, IXGBE_EEC(hw)) | IXGBE_EEC_FLUP; in ixgbe_update_flash_X540() 509 flup = IXGBE_READ_REG(hw, IXGBE_EEC(hw)); in ixgbe_update_flash_X540() 539 reg = IXGBE_READ_REG(hw, IXGBE_EEC(hw)); in ixgbe_poll_flash_update_done_X540() 581 swfw_sync = IXGBE_READ_REG(hw, IXGBE_SWFW_SYNC(hw)); in ixgbe_acquire_swfw_sync_X540() 604 swfw_sync = IXGBE_READ_REG(hw, IXGBE_SWFW_SYNC(hw)); in ixgbe_acquire_swfw_sync_X540() 650 swfw_sync = IXGBE_READ_REG(hw, IXGBE_SWFW_SYNC(hw)); in ixgbe_release_swfw_sync_X540() 675 swsm = IXGBE_READ_REG(hw, IXGBE_SWSM(hw)); in ixgbe_get_swfw_sync_semaphore() [all …]
|
D | ixgbe_ipsec.c | 33 reg = IXGBE_READ_REG(hw, IXGBE_IPSTXIDX); in ixgbe_ipsec_set_tx_sa() 54 reg = IXGBE_READ_REG(hw, IXGBE_IPSRXIDX); in ixgbe_ipsec_set_rx_item() 155 reg = IXGBE_READ_REG(hw, IXGBE_SECTXCTRL); in ixgbe_ipsec_stop_data() 159 reg = IXGBE_READ_REG(hw, IXGBE_SECRXCTRL); in ixgbe_ipsec_stop_data() 167 t_rdy = IXGBE_READ_REG(hw, IXGBE_SECTXSTAT) & in ixgbe_ipsec_stop_data() 169 r_rdy = IXGBE_READ_REG(hw, IXGBE_SECRXSTAT) & in ixgbe_ipsec_stop_data() 179 reg = IXGBE_READ_REG(hw, IXGBE_MACC); in ixgbe_ipsec_stop_data() 183 reg = IXGBE_READ_REG(hw, IXGBE_HLREG0); in ixgbe_ipsec_stop_data() 195 t_rdy = IXGBE_READ_REG(hw, IXGBE_SECTXSTAT) & in ixgbe_ipsec_stop_data() 197 r_rdy = IXGBE_READ_REG(hw, IXGBE_SECRXSTAT) & in ixgbe_ipsec_stop_data() [all …]
|
D | ixgbe_82598.c | 36 u32 gcr = IXGBE_READ_REG(hw, IXGBE_GCR); in ixgbe_set_pcie_completion_timeout() 187 autoc = IXGBE_READ_REG(hw, IXGBE_AUTOC); in ixgbe_get_link_capabilities_82598() 324 fctrl_reg = IXGBE_READ_REG(hw, IXGBE_FCTRL); in ixgbe_fc_enable_82598() 327 rmcs_reg = IXGBE_READ_REG(hw, IXGBE_RMCS); in ixgbe_fc_enable_82598() 423 autoc_reg = IXGBE_READ_REG(hw, IXGBE_AUTOC); in ixgbe_start_mac_link_82598() 435 links_reg = IXGBE_READ_REG(hw, IXGBE_LINKS); in ixgbe_start_mac_link_82598() 543 links_reg = IXGBE_READ_REG(hw, IXGBE_LINKS); in ixgbe_check_mac_link_82598() 553 links_reg = IXGBE_READ_REG(hw, IXGBE_LINKS); in ixgbe_check_mac_link_82598() 588 u32 curr_autoc = IXGBE_READ_REG(hw, IXGBE_AUTOC); in ixgbe_setup_mac_link_82598() 717 ctrl = IXGBE_READ_REG(hw, IXGBE_CTRL) | IXGBE_CTRL_RST; in ixgbe_reset_hw_82598() [all …]
|
D | ixgbe_main.c | 476 regs[i] = IXGBE_READ_REG(hw, IXGBE_SRRCTL(i)); in ixgbe_regdump() 480 regs[i] = IXGBE_READ_REG(hw, IXGBE_DCA_RXCTRL(i)); in ixgbe_regdump() 484 regs[i] = IXGBE_READ_REG(hw, IXGBE_RDLEN(i)); in ixgbe_regdump() 488 regs[i] = IXGBE_READ_REG(hw, IXGBE_RDH(i)); in ixgbe_regdump() 492 regs[i] = IXGBE_READ_REG(hw, IXGBE_RDT(i)); in ixgbe_regdump() 496 regs[i] = IXGBE_READ_REG(hw, IXGBE_RXDCTL(i)); in ixgbe_regdump() 500 regs[i] = IXGBE_READ_REG(hw, IXGBE_RDBAL(i)); in ixgbe_regdump() 504 regs[i] = IXGBE_READ_REG(hw, IXGBE_RDBAH(i)); in ixgbe_regdump() 508 regs[i] = IXGBE_READ_REG(hw, IXGBE_TDBAL(i)); in ixgbe_regdump() 512 regs[i] = IXGBE_READ_REG(hw, IXGBE_TDBAH(i)); in ixgbe_regdump() [all …]
|
D | ixgbe_sriov.c | 370 u32 vmolr = IXGBE_READ_REG(hw, IXGBE_VMOLR(vf)); in ixgbe_set_vf_multicasts() 393 mta_reg = IXGBE_READ_REG(hw, IXGBE_MTA(vector_reg)); in ixgbe_set_vf_multicasts() 414 u32 vmolr = IXGBE_READ_REG(hw, IXGBE_VMOLR(i)); in ixgbe_restore_vf_multicasts() 420 mta_reg = IXGBE_READ_REG(hw, IXGBE_MTA(vector_reg)); in ixgbe_restore_vf_multicasts() 523 vfre = IXGBE_READ_REG(hw, IXGBE_VFRE(reg_offset)); in ixgbe_set_vf_lpe() 543 max_frs = IXGBE_READ_REG(hw, IXGBE_MAXFRS); in ixgbe_set_vf_lpe() 559 u32 vmolr = IXGBE_READ_REG(hw, IXGBE_VMOLR(vf)); in ixgbe_set_vmolr() 590 vlvfb = IXGBE_READ_REG(hw, IXGBE_VLVFB(word)); in ixgbe_clear_vf_vlans() 601 bits[~word % 2] = IXGBE_READ_REG(hw, IXGBE_VLVFB(word ^ 1)); in ixgbe_clear_vf_vlans() 613 vlvf = IXGBE_READ_REG(hw, IXGBE_VLVF(i)); in ixgbe_clear_vf_vlans() [all …]
|
D | ixgbe_mbx.c | 213 u32 mbvficr = IXGBE_READ_REG(hw, IXGBE_MBVFICR(index)); in ixgbe_check_for_bit_pf() 280 vflre = IXGBE_READ_REG(hw, IXGBE_VFLRE(reg_offset)); in ixgbe_check_for_rst_pf() 286 vflre = IXGBE_READ_REG(hw, IXGBE_VFLREC(reg_offset)); in ixgbe_check_for_rst_pf() 316 p2v_mailbox = IXGBE_READ_REG(hw, IXGBE_PFMAILBOX(vf_number)); in ixgbe_obtain_mbx_lock_pf()
|
D | ixgbe_phy.c | 322 mmngc = IXGBE_READ_REG(hw, IXGBE_MMNGC); in ixgbe_check_reset_blocked() 491 command = IXGBE_READ_REG(hw, IXGBE_MSCA); in ixgbe_read_phy_reg_mdi() 519 command = IXGBE_READ_REG(hw, IXGBE_MSCA); in ixgbe_read_phy_reg_mdi() 532 data = IXGBE_READ_REG(hw, IXGBE_MSRWD); in ixgbe_read_phy_reg_mdi() 596 command = IXGBE_READ_REG(hw, IXGBE_MSCA); in ixgbe_write_phy_reg_mdi() 624 command = IXGBE_READ_REG(hw, IXGBE_MSCA); in ixgbe_write_phy_reg_mdi() 662 #define IXGBE_HW_READ_REG(addr) IXGBE_READ_REG(hw, addr) 720 data = IXGBE_READ_REG(hw, IXGBE_MSRWD); in ixgbe_mii_bus_read_generic() 2231 u32 i2cctl = IXGBE_READ_REG(hw, IXGBE_I2CCTL(hw)); in ixgbe_i2c_start() 2264 u32 i2cctl = IXGBE_READ_REG(hw, IXGBE_I2CCTL(hw)); in ixgbe_i2c_stop() [all …]
|
D | ixgbe_debugfs.c | 91 value = IXGBE_READ_REG(&adapter->hw, reg); in ixgbe_dbg_reg_ops_write() 101 value = IXGBE_READ_REG(&adapter->hw, reg); in ixgbe_dbg_reg_ops_write()
|
D | ixgbe_x550.c | 75 u32 esdp = IXGBE_READ_REG(hw, IXGBE_ESDP); in ixgbe_setup_mux_ctl() 638 eec = IXGBE_READ_REG(hw, IXGBE_EEC(hw)); in ixgbe_init_eeprom_params_X550() 669 command = IXGBE_READ_REG(hw, IXGBE_SB_IOSF_INDIRECT_CTRL); in ixgbe_iosf_wait() 722 *data = IXGBE_READ_REG(hw, IXGBE_SB_IOSF_INDIRECT_DATA); in ixgbe_read_iosf_sb_reg_x550() 897 u32 value = IXGBE_READ_REG(hw, reg); in ixgbe_read_ee_hostif_buffer_X550() 1260 fwsm = IXGBE_READ_REG(hw, IXGBE_FWSM(hw)); in ixgbe_fw_recovery_mode_X550() 1274 rxctrl = IXGBE_READ_REG(hw, IXGBE_RXCTRL); in ixgbe_disable_rx_x550() 1276 pfdtxgswc = IXGBE_READ_REG(hw, IXGBE_PFDTXGSWC); in ixgbe_disable_rx_x550() 1296 rxctrl = IXGBE_READ_REG(hw, IXGBE_RXCTRL); in ixgbe_disable_rx_x550() 3168 hw->phy.nw_mng_if_sel = IXGBE_READ_REG(hw, IXGBE_NW_MNG_IF_SEL); in ixgbe_read_mng_if_sel_x550em() [all …]
|
D | ixgbe_dcb_82599.c | 199 reg = IXGBE_READ_REG(hw, IXGBE_MFLCN); in ixgbe_dcb_config_pfc_82599() 245 reg = IXGBE_READ_REG(hw, IXGBE_RXPBSIZE(i)) - 24576; in ixgbe_dcb_config_pfc_82599()
|
D | ixgbe_fcoe.c | 87 fcbuff = IXGBE_READ_REG(hw, IXGBE_FCDDC(2, xid)); in ixgbe_fcoe_ddp_put() 101 fcbuff = IXGBE_READ_REG(hw, IXGBE_FCBUFF); in ixgbe_fcoe_ddp_put() 283 fcrxctl = IXGBE_READ_REG(hw, IXGBE_FCRXCTRL); in ixgbe_fcoe_ddp_setup()
|
D | ixgbe_dcb.c | 371 reg = IXGBE_READ_REG(hw, IXGBE_RTRUP2TC); in ixgbe_dcb_read_rtrup2tc_82599()
|
D | ixgbe_common.h | 174 #define IXGBE_READ_REG(a, reg) ixgbe_read_reg((a), (reg)) macro
|
/Linux-v5.4/drivers/net/ethernet/intel/ixgbevf/ |
D | ethtool.c | 157 regs_buff[0] = IXGBE_READ_REG(hw, IXGBE_VFCTRL); in ixgbevf_get_regs() 158 regs_buff[1] = IXGBE_READ_REG(hw, IXGBE_VFSTATUS); in ixgbevf_get_regs() 159 regs_buff[2] = IXGBE_READ_REG(hw, IXGBE_VFLINKS); in ixgbevf_get_regs() 160 regs_buff[3] = IXGBE_READ_REG(hw, IXGBE_VFRXMEMWRAP); in ixgbevf_get_regs() 161 regs_buff[4] = IXGBE_READ_REG(hw, IXGBE_VFFRTIMER); in ixgbevf_get_regs() 167 regs_buff[5] = IXGBE_READ_REG(hw, IXGBE_VTEICS); in ixgbevf_get_regs() 168 regs_buff[6] = IXGBE_READ_REG(hw, IXGBE_VTEICS); in ixgbevf_get_regs() 169 regs_buff[7] = IXGBE_READ_REG(hw, IXGBE_VTEIMS); in ixgbevf_get_regs() 170 regs_buff[8] = IXGBE_READ_REG(hw, IXGBE_VTEIMC); in ixgbevf_get_regs() 171 regs_buff[9] = IXGBE_READ_REG(hw, IXGBE_VTEIAC); in ixgbevf_get_regs() [all …]
|
D | vf.c | 168 reg_val = IXGBE_READ_REG(hw, IXGBE_VFRXDCTL(i)); in ixgbevf_stop_hw_vf() 181 IXGBE_READ_REG(hw, IXGBE_VTEICR); in ixgbevf_stop_hw_vf() 186 reg_val = IXGBE_READ_REG(hw, IXGBE_VFTXDCTL(i)); in ixgbevf_stop_hw_vf() 668 links_reg = IXGBE_READ_REG(hw, IXGBE_VFLINKS); in ixgbevf_check_mac_link_vf() 680 links_reg = IXGBE_READ_REG(hw, IXGBE_VFLINKS); in ixgbevf_check_mac_link_vf() 752 links_reg = IXGBE_READ_REG(hw, IXGBE_VFLINKS); in ixgbevf_hv_check_mac_link_vf() 764 links_reg = IXGBE_READ_REG(hw, IXGBE_VFLINKS); in ixgbevf_hv_check_mac_link_vf() 830 reg = IXGBE_READ_REG(hw, IXGBE_VFRXDCTL(0)); in ixgbevf_hv_set_rlpml_vf()
|
D | regs.h | 59 #define IXGBE_WRITE_FLUSH(a) (IXGBE_READ_REG(a, IXGBE_VFSTATUS))
|
D | ixgbevf_main.c | 178 ivar = IXGBE_READ_REG(hw, IXGBE_VTIVAR_MISC); in ixgbevf_set_ivar() 186 ivar = IXGBE_READ_REG(hw, IXGBE_VTIVAR(queue >> 1)); in ixgbevf_set_ivar() 203 u32 head = IXGBE_READ_REG(hw, IXGBE_VFTDH(ring->reg_idx)); in ixgbevf_get_tx_pending() 204 u32 tail = IXGBE_READ_REG(hw, IXGBE_VFTDT(ring->reg_idx)); in ixgbevf_get_tx_pending() 387 IXGBE_READ_REG(hw, IXGBE_VFTDH(tx_ring->reg_idx)), in ixgbevf_clean_tx_irq() 388 IXGBE_READ_REG(hw, IXGBE_VFTDT(tx_ring->reg_idx)), in ixgbevf_clean_tx_irq() 1734 txdctl = IXGBE_READ_REG(hw, IXGBE_VFTXDCTL(reg_idx)); in ixgbevf_configure_tx_ring() 1803 rxdctl = IXGBE_READ_REG(hw, IXGBE_VFRXDCTL(reg_idx)); in ixgbevf_disable_rx_queue() 1812 rxdctl = IXGBE_READ_REG(hw, IXGBE_VFRXDCTL(reg_idx)); in ixgbevf_disable_rx_queue() 1832 rxdctl = IXGBE_READ_REG(hw, IXGBE_VFRXDCTL(reg_idx)); in ixgbevf_rx_desc_queue_enable() [all …]
|
D | mbx.c | 116 u32 v2p_mailbox = IXGBE_READ_REG(hw, IXGBE_VFMAILBOX); in ixgbevf_read_v2p_mailbox()
|
D | vf.h | 172 #define IXGBE_READ_REG(h, r) ixgbevf_read_reg(h, r) macro
|