/Linux-v5.10/drivers/net/ethernet/aquantia/atlantic/hw_atl/ |
D | hw_atl_llh.c | 16 void hw_atl_ts_reset_set(struct aq_hw_s *aq_hw, u32 val) in hw_atl_ts_reset_set() argument 18 aq_hw_write_reg_bit(aq_hw, HW_ATL_TS_RESET_ADR, in hw_atl_ts_reset_set() 24 void hw_atl_ts_power_down_set(struct aq_hw_s *aq_hw, u32 val) in hw_atl_ts_power_down_set() argument 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 34 return aq_hw_read_reg_bit(aq_hw, HW_ATL_TS_POWER_DOWN_ADR, in hw_atl_ts_power_down_get() 39 u32 hw_atl_ts_ready_get(struct aq_hw_s *aq_hw) in hw_atl_ts_ready_get() argument 41 return aq_hw_read_reg_bit(aq_hw, HW_ATL_TS_READY_ADR, in hw_atl_ts_ready_get() 46 u32 hw_atl_ts_ready_latch_high_get(struct aq_hw_s *aq_hw) in hw_atl_ts_ready_latch_high_get() argument 48 return aq_hw_read_reg_bit(aq_hw, HW_ATL_TS_READY_LATCH_HIGH_ADR, in hw_atl_ts_ready_latch_high_get() [all …]
|
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); 40 void hw_atl_reg_glb_cpu_sem_set(struct aq_hw_s *aq_hw, u32 glb_cpu_sem, 44 u32 hw_atl_reg_glb_cpu_sem_get(struct aq_hw_s *aq_hw, u32 semaphore); 47 void hw_atl_glb_glb_reg_res_dis_set(struct aq_hw_s *aq_hw, u32 glb_reg_res_dis); 50 void hw_atl_glb_soft_res_set(struct aq_hw_s *aq_hw, u32 soft_res); [all …]
|
/Linux-v5.10/drivers/net/ethernet/aquantia/atlantic/hw_atl2/ |
D | hw_atl2_llh.c | 10 void hw_atl2_rpf_redirection_table2_select_set(struct aq_hw_s *aq_hw, in hw_atl2_rpf_redirection_table2_select_set() argument 13 aq_hw_write_reg_bit(aq_hw, HW_ATL2_RPF_PIF_RPF_REDIR2_ENI_ADR, in hw_atl2_rpf_redirection_table2_select_set() 18 void hw_atl2_rpf_rss_hash_type_set(struct aq_hw_s *aq_hw, u32 rss_hash_type) in hw_atl2_rpf_rss_hash_type_set() argument 20 aq_hw_write_reg_bit(aq_hw, HW_ATL2_RPF_PIF_RPF_RSS_HASH_TYPEI_ADR, in hw_atl2_rpf_rss_hash_type_set() 28 void hw_atl2_rpf_new_enable_set(struct aq_hw_s *aq_hw, u32 enable) in hw_atl2_rpf_new_enable_set() argument 30 aq_hw_write_reg_bit(aq_hw, HW_ATL2_RPF_NEW_EN_ADR, in hw_atl2_rpf_new_enable_set() 36 void hw_atl2_rpfl2_uc_flr_tag_set(struct aq_hw_s *aq_hw, u32 tag, u32 filter) in hw_atl2_rpfl2_uc_flr_tag_set() argument 38 aq_hw_write_reg_bit(aq_hw, HW_ATL2_RPFL2UC_TAG_ADR(filter), in hw_atl2_rpfl2_uc_flr_tag_set() 44 void hw_atl2_rpfl2_bc_flr_tag_set(struct aq_hw_s *aq_hw, u32 tag) in hw_atl2_rpfl2_bc_flr_tag_set() argument 46 aq_hw_write_reg_bit(aq_hw, HW_ATL2_RPF_L2_BC_TAG_ADR, in hw_atl2_rpfl2_bc_flr_tag_set() [all …]
|
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, 23 void hw_atl2_rpf_rss_hash_type_set(struct aq_hw_s *aq_hw, u32 rss_hash_type); 26 void hw_atl2_rpf_new_enable_set(struct aq_hw_s *aq_hw, u32 enable); 29 void hw_atl2_rpfl2_uc_flr_tag_set(struct aq_hw_s *aq_hw, u32 tag, u32 filter); 32 void hw_atl2_rpfl2_bc_flr_tag_set(struct aq_hw_s *aq_hw, u32 tag); 35 void hw_atl2_new_rpf_rss_redir_set(struct aq_hw_s *aq_hw, u32 tc, u32 index, 39 void hw_atl2_rpf_vlan_flr_tag_set(struct aq_hw_s *aq_hw, u32 tag, u32 filter); 42 void hw_atl2_tpb_tx_tc_q_rand_map_en_set(struct aq_hw_s *aq_hw, 46 void hw_atl2_tpb_tx_buf_clk_gate_en_set(struct aq_hw_s *aq_hw, u32 clk_gate_en); [all …]
|
/Linux-v5.10/drivers/net/ethernet/aquantia/atlantic/ |
D | aq_phy.c | 12 bool aq_mdio_busy_wait(struct aq_hw_s *aq_hw) in aq_mdio_busy_wait() argument 17 err = readx_poll_timeout_atomic(hw_atl_mdio_busy_get, aq_hw, in aq_mdio_busy_wait() 26 u16 aq_mdio_read_word(struct aq_hw_s *aq_hw, u16 mmd, u16 addr) in aq_mdio_read_word() argument 28 u16 phy_addr = aq_hw->phy_id << 5 | mmd; in aq_mdio_read_word() 31 hw_atl_glb_mdio_iface4_set(aq_hw, (addr & HW_ATL_MDIO_ADDRESS_MSK) << in aq_mdio_read_word() 34 hw_atl_glb_mdio_iface2_set(aq_hw, HW_ATL_MDIO_EXECUTE_OPERATION_MSK | in aq_mdio_read_word() 39 aq_mdio_busy_wait(aq_hw); in aq_mdio_read_word() 42 hw_atl_glb_mdio_iface2_set(aq_hw, HW_ATL_MDIO_EXECUTE_OPERATION_MSK | in aq_mdio_read_word() 47 aq_mdio_busy_wait(aq_hw); in aq_mdio_read_word() 49 return (u16)hw_atl_glb_mdio_iface5_get(aq_hw); in aq_mdio_read_word() [all …]
|
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);
|
D | aq_vec.c | 21 struct aq_hw_s *aq_hw; member 53 self->aq_hw, in aq_vec_poll() 65 err = self->aq_hw_ops->hw_ring_rx_receive(self->aq_hw, in aq_vec_poll() 86 self->aq_hw, in aq_vec_poll() 99 self->aq_hw_ops->hw_irq_enable(self->aq_hw, in aq_vec_poll() 176 struct aq_hw_s *aq_hw) in aq_vec_init() argument 183 self->aq_hw = aq_hw; in aq_vec_init() 191 err = self->aq_hw_ops->hw_ring_tx_init(self->aq_hw, in aq_vec_init() 201 err = self->aq_hw_ops->hw_ring_rx_init(self->aq_hw, in aq_vec_init() 211 err = self->aq_hw_ops->hw_ring_rx_fill(self->aq_hw, in aq_vec_init() [all …]
|
D | aq_pci_func.c | 248 self->aq_hw = kzalloc(sizeof(*self->aq_hw), GFP_KERNEL); in aq_pci_probe() 249 if (!self->aq_hw) { in aq_pci_probe() 253 self->aq_hw->aq_nic_cfg = aq_nic_get_cfg(self); in aq_pci_probe() 254 if (self->aq_hw->aq_nic_cfg->aq_hw_caps->priv_data_len) { in aq_pci_probe() 255 int len = self->aq_hw->aq_nic_cfg->aq_hw_caps->priv_data_len; in aq_pci_probe() 257 self->aq_hw->priv = kzalloc(len, GFP_KERNEL); in aq_pci_probe() 258 if (!self->aq_hw->priv) { in aq_pci_probe() 280 self->aq_hw->mmio = ioremap(mmio_pa, reg_sz); in aq_pci_probe() 281 if (!self->aq_hw->mmio) { in aq_pci_probe() 330 iounmap(self->aq_hw->mmio); in aq_pci_probe() [all …]
|
D | aq_nic.c | 80 if (ATL_HW_IS_CHIP_FEATURE(self->aq_hw, ANTIGUA)) { in aq_nic_cfg_update_num_vecs() 158 int err = self->aq_fw_ops->update_link_status(self->aq_hw); in aq_nic_update_link_status() 165 self->aq_fw_ops->get_flow_control(self->aq_hw, &fc); in aq_nic_update_link_status() 168 if (self->link_status.mbps != self->aq_hw->aq_link_status.mbps) { in aq_nic_update_link_status() 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() 186 self->aq_hw_ops->hw_set_fc(self->aq_hw, fc, 0); in aq_nic_update_link_status() 189 self->link_status = self->aq_hw->aq_link_status; in aq_nic_update_link_status() 200 self->aq_hw_ops->hw_tc_rate_limit_set(self->aq_hw); in aq_nic_update_link_status() 222 self->aq_hw_ops->hw_irq_enable(self->aq_hw, in aq_linkstate_threaded_isr() [all …]
|
D | aq_ptp.c | 284 aq_nic->aq_hw_ops->hw_adj_clock_freq(aq_nic->aq_hw, in aq_ptp_adjfine() 304 aq_nic->aq_hw_ops->hw_adj_sys_clock(aq_nic->aq_hw, delta); in aq_ptp_adjtime() 325 aq_nic->aq_hw_ops->hw_get_ptp_ts(aq_nic->aq_hw, &ns); in aq_ptp_gettime() 350 aq_nic->aq_hw_ops->hw_get_ptp_ts(aq_nic->aq_hw, &now); in aq_ptp_settime() 351 aq_nic->aq_hw_ops->hw_adj_sys_clock(aq_nic->aq_hw, (s64)ns - (s64)now); in aq_ptp_settime() 382 aq_nic->aq_hw_ops->hw_gpio_pulse(aq_nic->aq_hw, pin_index, in aq_ptp_hw_pin_conf() 439 aq_nic->aq_hw_ops->hw_get_ptp_ts(aq_nic->aq_hw, &start); in aq_ptp_pps_pin_configure() 456 aq_nic->aq_hw_ops->hw_extts_gpio_enable(aq_nic->aq_hw, 0, in aq_ptp_extts_pin_ctrl() 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() [all …]
|
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()
|
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() 347 return aq_hw_ops->hw_filter_l2_clear(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 843 err = aq_hw_ops->hw_filter_vlan_ctrl(aq_hw, false); in aq_filters_vlans_update() 848 err = aq_hw_ops->hw_filter_vlan_set(aq_hw, in aq_filters_vlans_update() [all …]
|
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()
|
D | aq_ethtool.c | 382 struct aq_hw_s *hw = aq_nic->aq_hw; in aq_ethtool_set_phys_id() 486 err = aq_nic->aq_hw_ops->hw_rss_hash_set(aq_nic->aq_hw, in aq_ethtool_set_rss() 492 err = aq_nic->aq_hw_ops->hw_rss_set(aq_nic->aq_hw, &cfg->aq_rss); in aq_ethtool_set_rss() 695 err = aq_nic->aq_fw_ops->get_eee_rate(aq_nic->aq_hw, &rate, in aq_ethtool_get_eee() 731 err = aq_nic->aq_fw_ops->get_eee_rate(aq_nic->aq_hw, &rate, in aq_ethtool_set_eee() 746 err = aq_nic->aq_fw_ops->set_eee_rate(aq_nic->aq_hw, rate); in aq_ethtool_set_eee() 762 err = aq_nic->aq_fw_ops->renegotiate(aq_nic->aq_hw); in aq_ethtool_nway_reset() 794 aq_nic->aq_hw->aq_nic_cfg->fc.req |= AQ_NIC_FC_RX; in aq_ethtool_set_pauseparam() 796 aq_nic->aq_hw->aq_nic_cfg->fc.req &= ~AQ_NIC_FC_RX; in aq_ethtool_set_pauseparam() 799 aq_nic->aq_hw->aq_nic_cfg->fc.req |= AQ_NIC_FC_TX; in aq_ethtool_set_pauseparam() [all …]
|
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);
|
D | aq_macsec.c | 328 struct aq_hw_s *hw = nic->aq_hw; in aq_set_txsc() 510 struct aq_hw_s *hw = nic->aq_hw; in aq_clear_txsc() 566 struct aq_hw_s *hw = nic->aq_hw; in aq_update_txsa() 649 struct aq_hw_s *hw = nic->aq_hw; in aq_clear_txsa() 718 struct aq_hw_s *hw = nic->aq_hw; in aq_set_rxsc() 825 struct aq_hw_s *hw = nic->aq_hw; in aq_clear_rxsc() 898 struct aq_hw_s *hw = nic->aq_hw; in aq_update_rxsa() 996 struct aq_hw_s *hw = nic->aq_hw; in aq_clear_rxsa() 1045 struct aq_hw_s *hw = nic->aq_hw; in aq_mdo_get_dev_stats() 1068 struct aq_hw_s *hw = nic->aq_hw; in aq_mdo_get_tx_sc_stats() [all …]
|
D | aq_vec.h | 32 struct aq_hw_s *aq_hw);
|
D | aq_main.c | 180 err = aq_nic->aq_hw_ops->hw_set_offload(aq_nic->aq_hw, in aq_ndev_set_features() 366 if (has_min_rate && !ATL_HW_IS_CHIP_FEATURE(self->aq_hw, ANTIGUA)) { in aq_validate_mqprio_opt()
|
D | aq_nic.h | 128 struct aq_hw_s *aq_hw; member
|
D | aq_ring.c | 510 aq_nic->aq_hw_ops->extract_hwts(aq_nic->aq_hw, in aq_ring_hwts_rx_clean()
|