/linux-6.3-rc2/drivers/net/ethernet/aquantia/atlantic/hw_atl/ |
A D | hw_atl_llh.c | 18 aq_hw_write_reg_bit(aq_hw, HW_ATL_TS_RESET_ADR, in hw_atl_ts_reset_set() 26 aq_hw_write_reg_bit(aq_hw, HW_ATL_TS_POWER_DOWN_ADR, in hw_atl_ts_power_down_set() 32 u32 hw_atl_ts_power_down_get(struct aq_hw_s *aq_hw) in hw_atl_ts_power_down_get() argument 39 u32 hw_atl_ts_ready_get(struct aq_hw_s *aq_hw) in hw_atl_ts_ready_get() argument 53 u32 hw_atl_ts_data_get(struct aq_hw_s *aq_hw) in hw_atl_ts_data_get() argument 1705 aq_hw_write_reg(aq_hw, in hw_atl_rpfl3l4_ipv6_dest_addr_clear() 1715 aq_hw_write_reg(aq_hw, in hw_atl_rpfl3l4_ipv6_src_addr_clear() 1730 aq_hw_write_reg(aq_hw, in hw_atl_rpfl3l4_ipv4_src_addr_set() 1746 aq_hw_write_reg(aq_hw, in hw_atl_rpfl3l4_ipv6_src_addr_set() 1757 aq_hw_write_reg(aq_hw, in hw_atl_rpfl3l4_ipv6_dest_addr_set() [all …]
|
A D | hw_atl_llh.h | 20 void hw_atl_ts_reset_set(struct aq_hw_s *aq_hw, u32 val); 23 void hw_atl_ts_power_down_set(struct aq_hw_s *aq_hw, u32 val); 26 u32 hw_atl_ts_power_down_get(struct aq_hw_s *aq_hw); 29 u32 hw_atl_ts_ready_get(struct aq_hw_s *aq_hw); 32 u32 hw_atl_ts_ready_latch_high_get(struct aq_hw_s *aq_hw); 35 u32 hw_atl_ts_data_get(struct aq_hw_s *aq_hw); 53 u32 hw_atl_glb_soft_res_get(struct aq_hw_s *aq_hw); 111 u32 hw_atl_reg_glb_mif_id_get(struct aq_hw_s *aq_hw); 148 u32 hw_atl_itr_irq_statuslsw_get(struct aq_hw_s *aq_hw); 151 u32 hw_atl_itr_res_irq_get(struct aq_hw_s *aq_hw); [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/aquantia/atlantic/hw_atl2/ |
A D | hw_atl2_llh.c | 30 aq_hw_write_reg_bit(aq_hw, HW_ATL2_RPF_NEW_EN_ADR, in hw_atl2_rpf_new_enable_set() 46 aq_hw_write_reg_bit(aq_hw, HW_ATL2_RPF_L2_BC_TAG_ADR, in hw_atl2_rpfl2_bc_flr_tag_set() 125 u32 hw_atl2_get_hw_version(struct aq_hw_s *aq_hw) in hw_atl2_get_hw_version() argument 130 void hw_atl2_init_launchtime(struct aq_hw_s *aq_hw) in hw_atl2_init_launchtime() argument 132 u32 hw_ver = hw_atl2_get_hw_version(aq_hw); in hw_atl2_init_launchtime() 134 aq_hw_write_reg_bit(aq_hw, HW_ATL2_LT_CTRL_ADR, in hw_atl2_init_launchtime() 148 aq_hw_write_reg(aq_hw, in hw_atl2_rpf_act_rslvr_record_set() 151 aq_hw_write_reg(aq_hw, in hw_atl2_rpf_act_rslvr_record_set() 154 aq_hw_write_reg(aq_hw, in hw_atl2_rpf_act_rslvr_record_set() 174 data[j] = aq_hw_read_reg(aq_hw, in hw_atl2_mif_shared_buf_get() [all …]
|
A D | hw_atl2_llh.h | 14 void hw_atl2_reg_tx_intr_moder_ctrl_set(struct aq_hw_s *aq_hw, 19 void hw_atl2_rpf_redirection_table2_select_set(struct aq_hw_s *aq_hw, 26 void hw_atl2_rpf_new_enable_set(struct aq_hw_s *aq_hw, u32 enable); 32 void hw_atl2_rpfl2_bc_flr_tag_set(struct aq_hw_s *aq_hw, u32 tag); 42 void hw_atl2_tpb_tx_tc_q_rand_map_en_set(struct aq_hw_s *aq_hw, 61 u32 hw_atl2_get_hw_version(struct aq_hw_s *aq_hw); 63 void hw_atl2_init_launchtime(struct aq_hw_s *aq_hw); 88 u32 hw_atl2_mif_mcp_finished_read_get(struct aq_hw_s *aq_hw); 91 u32 hw_atl2_mif_mcp_boot_reg_get(struct aq_hw_s *aq_hw); 94 void hw_atl2_mif_mcp_boot_reg_set(struct aq_hw_s *aq_hw, u32 val); [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/aquantia/atlantic/ |
A D | aq_phy.c | 12 bool aq_mdio_busy_wait(struct aq_hw_s *aq_hw) in aq_mdio_busy_wait() argument 28 u16 phy_addr = aq_hw->phy_id << 5 | mmd; in aq_mdio_read_word() 39 aq_mdio_busy_wait(aq_hw); in aq_mdio_read_word() 47 aq_mdio_busy_wait(aq_hw); in aq_mdio_read_word() 54 u16 phy_addr = aq_hw->phy_id << 5 | mmd; in aq_mdio_write_word() 65 aq_mdio_busy_wait(aq_hw); in aq_mdio_write_word() 75 aq_mdio_busy_wait(aq_hw); in aq_mdio_write_word() 117 for (aq_hw->phy_id = 0; aq_hw->phy_id < HW_ATL_PHY_ID_MAX; in aq_phy_init_phy_id() 118 ++aq_hw->phy_id) { in aq_phy_init_phy_id() 134 if (!aq_phy_init_phy_id(aq_hw)) in aq_phy_init() [all …]
|
A D | aq_phy.h | 20 bool aq_mdio_busy_wait(struct aq_hw_s *aq_hw); 22 u16 aq_mdio_read_word(struct aq_hw_s *aq_hw, u16 mmd, u16 addr); 24 void aq_mdio_write_word(struct aq_hw_s *aq_hw, u16 mmd, u16 addr, u16 data); 26 u16 aq_phy_read_reg(struct aq_hw_s *aq_hw, u16 mmd, u16 address); 28 void aq_phy_write_reg(struct aq_hw_s *aq_hw, u16 mmd, u16 address, u16 data); 30 bool aq_phy_init_phy_id(struct aq_hw_s *aq_hw); 32 bool aq_phy_init(struct aq_hw_s *aq_hw); 34 void aq_phy_disable_ptp(struct aq_hw_s *aq_hw);
|
A D | aq_vec.c | 16 struct aq_hw_s *aq_hw; member 48 self->aq_hw, in aq_vec_poll() 81 self->aq_hw, in aq_vec_poll() 94 self->aq_hw_ops->hw_irq_enable(self->aq_hw, in aq_vec_poll() 184 struct aq_hw_s *aq_hw) in aq_vec_init() argument 191 self->aq_hw = aq_hw; in aq_vec_init() 199 err = self->aq_hw_ops->hw_ring_tx_init(self->aq_hw, in aq_vec_init() 261 self->aq_hw_ops->hw_ring_tx_stop(self->aq_hw, in aq_vec_stop() 264 self->aq_hw_ops->hw_ring_rx_stop(self->aq_hw, in aq_vec_stop() 350 self->aq_hw_ops->hw_irq_disable(self->aq_hw, in aq_vec_isr_legacy() [all …]
|
A D | aq_pci_func.c | 247 self->aq_hw = kzalloc(sizeof(*self->aq_hw), GFP_KERNEL); in aq_pci_probe() 248 if (!self->aq_hw) { in aq_pci_probe() 256 self->aq_hw->priv = kzalloc(len, GFP_KERNEL); in aq_pci_probe() 257 if (!self->aq_hw->priv) { in aq_pci_probe() 280 if (!self->aq_hw->mmio) { in aq_pci_probe() 329 iounmap(self->aq_hw->mmio); in aq_pci_probe() 331 kfree(self->aq_hw->priv); in aq_pci_probe() 333 kfree(self->aq_hw); in aq_pci_probe() 358 iounmap(self->aq_hw->mmio); in aq_pci_remove() 359 kfree(self->aq_hw->priv); in aq_pci_remove() [all …]
|
A D | aq_ptp.c | 284 aq_nic->aq_hw_ops->hw_adj_clock_freq(aq_nic->aq_hw, in aq_ptp_adjfine() 325 aq_nic->aq_hw_ops->hw_get_ptp_ts(aq_nic->aq_hw, &ns); in aq_ptp_gettime() 602 err = hw_ops->hw_filter_l3l4_set(aq_nic->aq_hw, in aq_ptp_hwtstamp_config_set() 606 err = hw_ops->hw_filter_l2_set(aq_nic->aq_hw, in aq_ptp_hwtstamp_config_set() 613 err = hw_ops->hw_filter_l3l4_set(aq_nic->aq_hw, in aq_ptp_hwtstamp_config_set() 617 err = hw_ops->hw_filter_l2_clear(aq_nic->aq_hw, in aq_ptp_hwtstamp_config_set() 723 aq_nic->aq_hw_ops->hw_irq_enable(aq_nic->aq_hw, in aq_ptp_poll() 1185 hw_atl_utils_mpi_read_stats(aq_nic->aq_hw, &mbox); in aq_ptp_init() 1229 aq_nic->aq_fw_ops->enable_ptp(aq_nic->aq_hw, 1); in aq_ptp_init() 1273 aq_nic->aq_fw_ops->enable_ptp(aq_nic->aq_hw, 0); in aq_ptp_free() [all …]
|
A D | aq_nic.c | 171 self->aq_hw->aq_link_status.mbps); in aq_nic_update_link_status() 177 self->aq_hw->aq_link_status.mbps); in aq_nic_update_link_status() 222 self->aq_hw_ops->hw_irq_enable(self->aq_hw, in aq_linkstate_threaded_isr() 249 self->aq_fw_ops->update_stats(self->aq_hw); in aq_nic_service_task() 422 err = self->aq_hw_ops->hw_init(self->aq_hw, in aq_nic_init() 429 self->aq_hw->phy_id = HW_ATL_PHY_ID_MAX; in aq_nic_init() 430 err = aq_phy_init(self->aq_hw); in aq_nic_init() 439 aq_phy_disable_ptp(self->aq_hw); in aq_nic_init() 1415 self->aq_hw->aq_nic_cfg->wol) in aq_nic_set_power() 1418 self->aq_fw_ops->set_power(self->aq_hw, in aq_nic_set_power() [all …]
|
A D | aq_hw_utils.c | 19 void aq_hw_write_reg_bit(struct aq_hw_s *aq_hw, u32 addr, u32 msk, in aq_hw_write_reg_bit() argument 25 reg_old = aq_hw_read_reg(aq_hw, addr); in aq_hw_write_reg_bit() 29 aq_hw_write_reg(aq_hw, addr, reg_new); in aq_hw_write_reg_bit() 31 aq_hw_write_reg(aq_hw, addr, val); in aq_hw_write_reg_bit() 35 u32 aq_hw_read_reg_bit(struct aq_hw_s *aq_hw, u32 addr, u32 msk, u32 shift) in aq_hw_read_reg_bit() argument 37 return ((aq_hw_read_reg(aq_hw, addr) & msk) >> shift); in aq_hw_read_reg_bit()
|
A D | aq_filters.c | 334 struct aq_hw_s *aq_hw = aq_nic->aq_hw; in aq_add_del_fether() local 345 return aq_hw_ops->hw_filter_l2_set(aq_hw, &data); in aq_add_del_fether() 563 static int aq_set_fl3l4(struct aq_hw_s *aq_hw, in aq_set_fl3l4() argument 570 return aq_hw_ops->hw_filter_l3l4_set(aq_hw, data); in aq_set_fl3l4() 577 struct aq_hw_s *aq_hw = aq_nic->aq_hw; in aq_add_del_fl3l4() local 585 return aq_set_fl3l4(aq_hw, aq_hw_ops, &data); in aq_add_del_fl3l4() 826 struct aq_hw_s *aq_hw = aq_nic->aq_hw; in aq_filters_vlans_update() local 846 err = aq_hw_ops->hw_filter_vlan_set(aq_hw, in aq_filters_vlans_update() 854 err = aq_hw_ops->hw_filter_vlan_ctrl(aq_hw, in aq_filters_vlans_update() 869 struct aq_hw_s *aq_hw = aq_nic->aq_hw; in aq_filters_vlan_offload_off() local [all …]
|
A D | aq_drvinfo.c | 45 err = aq_nic->aq_fw_ops->get_phy_temp(aq_nic->aq_hw, &temp); in aq_hwmon_read() 54 err = aq_nic->aq_fw_ops->get_mac_temp(aq_nic->aq_hw, &temp); in aq_hwmon_read() 56 err = aq_nic->aq_hw_ops->hw_get_mac_temp(aq_nic->aq_hw, &temp); in aq_hwmon_read()
|
A D | aq_ethtool.c | 392 struct aq_hw_s *hw = aq_nic->aq_hw; in aq_ethtool_set_phys_id() 496 err = aq_nic->aq_hw_ops->hw_rss_hash_set(aq_nic->aq_hw, in aq_ethtool_set_rss() 709 err = aq_nic->aq_fw_ops->get_eee_rate(aq_nic->aq_hw, &rate, in aq_ethtool_get_eee() 745 err = aq_nic->aq_fw_ops->get_eee_rate(aq_nic->aq_hw, &rate, in aq_ethtool_set_eee() 760 err = aq_nic->aq_fw_ops->set_eee_rate(aq_nic->aq_hw, rate); in aq_ethtool_set_eee() 776 err = aq_nic->aq_fw_ops->renegotiate(aq_nic->aq_hw); in aq_ethtool_nway_reset() 808 aq_nic->aq_hw->aq_nic_cfg->fc.req |= AQ_NIC_FC_RX; in aq_ethtool_set_pauseparam() 810 aq_nic->aq_hw->aq_nic_cfg->fc.req &= ~AQ_NIC_FC_RX; in aq_ethtool_set_pauseparam() 813 aq_nic->aq_hw->aq_nic_cfg->fc.req |= AQ_NIC_FC_TX; in aq_ethtool_set_pauseparam() 815 aq_nic->aq_hw->aq_nic_cfg->fc.req &= ~AQ_NIC_FC_TX; in aq_ethtool_set_pauseparam() [all …]
|
A D | aq_hw_utils.h | 31 void aq_hw_write_reg_bit(struct aq_hw_s *aq_hw, u32 addr, u32 msk, 33 u32 aq_hw_read_reg_bit(struct aq_hw_s *aq_hw, u32 addr, u32 msk, u32 shift);
|
A D | aq_macsec.c | 322 struct aq_hw_s *hw = nic->aq_hw; in aq_set_txsc() 498 struct aq_hw_s *hw = nic->aq_hw; in aq_clear_txsc() 551 struct aq_hw_s *hw = nic->aq_hw; in aq_update_txsa() 629 struct aq_hw_s *hw = nic->aq_hw; in aq_clear_txsa() 695 struct aq_hw_s *hw = nic->aq_hw; in aq_set_rxsc() 796 struct aq_hw_s *hw = nic->aq_hw; in aq_clear_rxsc() 866 struct aq_hw_s *hw = nic->aq_hw; in aq_update_rxsa() 959 struct aq_hw_s *hw = nic->aq_hw; in aq_clear_rxsa() 1005 struct aq_hw_s *hw = nic->aq_hw; in aq_mdo_get_dev_stats() 1025 struct aq_hw_s *hw = nic->aq_hw; in aq_mdo_get_tx_sc_stats() [all …]
|
A D | aq_vec.h | 38 struct aq_hw_s *aq_hw);
|
A D | aq_main.c | 195 err = aq_nic->aq_hw_ops->hw_set_offload(aq_nic->aq_hw, in aq_ndev_set_features() 397 if (has_min_rate && !ATL_HW_IS_CHIP_FEATURE(self->aq_hw, ANTIGUA)) { in aq_validate_mqprio_opt()
|
A D | aq_nic.h | 132 struct aq_hw_s *aq_hw; member
|
A D | aq_ring.c | 862 aq_nic->aq_hw_ops->extract_hwts(aq_nic->aq_hw, in aq_ring_hwts_rx_clean()
|