/linux/drivers/net/ethernet/aquantia/atlantic/ |
A D | aq_nic.c | 166 self->aq_nic_cfg.fc.cur = fc; in aq_nic_update_link_status() 374 struct aq_nic_cfg_s *aq_nic_cfg = &self->aq_nic_cfg; in aq_nic_ndev_init() local 836 self->aq_nic_cfg.mtu = new_mtu; in aq_nic_set_mtu() 862 self->aq_nic_cfg.aq_hw_caps, in aq_nic_get_regs() 1030 if (self->aq_nic_cfg.is_autoneg) in aq_nic_get_link_ksettings() 1147 self->aq_nic_cfg.is_autoneg = true; in aq_nic_set_link_ksettings() 1184 self->aq_nic_cfg.is_autoneg = false; in aq_nic_set_link_ksettings() 1193 self->aq_nic_cfg.link_speed_msk = rate; in aq_nic_set_link_ksettings() 1201 return &self->aq_nic_cfg; in aq_nic_get_cfg() 1260 if (self->aq_nic_cfg.is_polling) in aq_nic_stop() [all …]
|
A D | aq_hw_utils.c | 45 readl(hw->mmio + hw->aq_nic_cfg->aq_hw_caps->hw_alive_check_addr) == U32_MAX) in aq_hw_read_reg() 64 if (hw->aq_nic_cfg->aq_hw_caps->op64bit) in aq_hw_read_reg64() 70 readl(hw->mmio + hw->aq_nic_cfg->aq_hw_caps->hw_alive_check_addr) == U32_MAX) in aq_hw_read_reg64() 78 if (hw->aq_nic_cfg->aq_hw_caps->op64bit) in aq_hw_write_reg64() 103 switch (hw->aq_nic_cfg->tc_mode) { in aq_hw_num_tcs() 117 switch (hw->aq_nic_cfg->tc_mode) { in aq_hw_q_per_tc()
|
A D | aq_vec.c | 108 struct aq_nic_cfg_s *aq_nic_cfg) in aq_vec_alloc() argument 119 idx + aq_nic_cfg->aq_rss.base_cpu_number; in aq_vec_alloc() 135 unsigned int idx, struct aq_nic_cfg_s *aq_nic_cfg) in aq_vec_ring_alloc() argument 141 for (i = 0; i < aq_nic_cfg->tcs; ++i) { in aq_vec_ring_alloc() 142 const unsigned int idx_ring = AQ_NIC_CFG_TCVEC2RING(aq_nic_cfg, in aq_vec_ring_alloc() 146 idx_ring, aq_nic_cfg); in aq_vec_ring_alloc() 157 idx_ring, aq_nic_cfg); in aq_vec_ring_alloc()
|
A D | aq_pci_func.c | 181 if (self->aq_nic_cfg.link_irq_vec && in aq_pci_func_free_irqs() 182 i == self->aq_nic_cfg.link_irq_vec) in aq_pci_func_free_irqs() 252 self->aq_hw->aq_nic_cfg = aq_nic_get_cfg(self); in aq_pci_probe() 253 if (self->aq_hw->aq_nic_cfg->aq_hw_caps->priv_data_len) { in aq_pci_probe() 254 int len = self->aq_hw->aq_nic_cfg->aq_hw_caps->priv_data_len; in aq_pci_probe() 396 aq_nic_deinit(nic, !nic->aq_hw->aq_nic_cfg->wol); in aq_suspend_common() 420 aq_nic_deinit(nic, !nic->aq_hw->aq_nic_cfg->wol); in atl_resume_common()
|
A D | aq_ethtool.c | 291 aq_ptp_ring_idx(nic->aq_nic_cfg.tc_mode); in aq_ethtool_get_strings() 707 if (aq_nic->aq_nic_cfg.eee_speeds) in aq_ethtool_get_eee() 777 int fc = aq_nic->aq_nic_cfg.fc.req; in aq_ethtool_get_pauseparam() 798 aq_nic->aq_hw->aq_nic_cfg->fc.req |= AQ_NIC_FC_RX; in aq_ethtool_set_pauseparam() 800 aq_nic->aq_hw->aq_nic_cfg->fc.req &= ~AQ_NIC_FC_RX; in aq_ethtool_set_pauseparam() 803 aq_nic->aq_hw->aq_nic_cfg->fc.req |= AQ_NIC_FC_TX; in aq_ethtool_set_pauseparam() 805 aq_nic->aq_hw->aq_nic_cfg->fc.req &= ~AQ_NIC_FC_TX; in aq_ethtool_set_pauseparam() 888 return aq_nic->aq_nic_cfg.priv_flags; in aq_ethtool_get_priv_flags() 933 *val = aq_nic->aq_nic_cfg.is_media_detect ? AQ_HW_MEDIA_DETECT_CNT : 0; in aq_ethtool_get_phy_tunable() 939 *val = (u8)aq_nic->aq_nic_cfg.downshift_counter; in aq_ethtool_get_phy_tunable()
|
A D | aq_vec.h | 28 struct aq_nic_cfg_s *aq_nic_cfg); 30 unsigned int idx, struct aq_nic_cfg_s *aq_nic_cfg);
|
A D | aq_ring.c | 140 struct aq_nic_cfg_s *aq_nic_cfg) in aq_ring_tx_alloc() argument 146 self->size = aq_nic_cfg->txds; in aq_ring_tx_alloc() 147 self->dx_size = aq_nic_cfg->aq_hw_caps->txd_size; in aq_ring_tx_alloc() 167 struct aq_nic_cfg_s *aq_nic_cfg) in aq_ring_rx_alloc() argument 173 self->size = aq_nic_cfg->rxds; in aq_ring_rx_alloc() 174 self->dx_size = aq_nic_cfg->aq_hw_caps->rxd_size; in aq_ring_rx_alloc() 178 if (aq_nic_cfg->rxpageorder > self->page_order) in aq_ring_rx_alloc() 179 self->page_order = aq_nic_cfg->rxpageorder; in aq_ring_rx_alloc()
|
A D | aq_nic.h | 101 ((_ID_) / AQ_NIC_CFG_RING_PER_TC(&(_NIC_)->aq_nic_cfg) * \ 103 ((_ID_) % AQ_NIC_CFG_RING_PER_TC(&(_NIC_)->aq_nic_cfg))) 138 struct aq_nic_cfg_s aq_nic_cfg; member
|
A D | aq_ring.h | 173 struct aq_nic_cfg_s *aq_nic_cfg); 177 struct aq_nic_cfg_s *aq_nic_cfg);
|
A D | aq_ptp.c | 963 tx_ring_idx = aq_ptp_ring_idx(aq_nic->aq_nic_cfg.tc_mode); in aq_ptp_ring_alloc() 966 tx_ring_idx, &aq_nic->aq_nic_cfg); in aq_ptp_ring_alloc() 972 rx_ring_idx = aq_ptp_ring_idx(aq_nic->aq_nic_cfg.tc_mode); in aq_ptp_ring_alloc() 975 rx_ring_idx, &aq_nic->aq_nic_cfg); in aq_ptp_ring_alloc() 982 aq_nic->aq_nic_cfg.rxds, in aq_ptp_ring_alloc() 983 aq_nic->aq_nic_cfg.aq_hw_caps->rxd_size); in aq_ptp_ring_alloc() 989 err = aq_ptp_skb_ring_init(&aq_ptp->skb_ring, aq_nic->aq_nic_cfg.rxds); in aq_ptp_ring_alloc()
|
A D | aq_filters.c | 156 struct aq_nic_cfg_s *cfg = &aq_nic->aq_nic_cfg; in aq_check_approve_fvlan() 267 struct aq_nic_cfg_s *cfg = &aq_nic->aq_nic_cfg; in aq_rule_is_not_correct() 858 aq_nic->aq_nic_cfg.is_vlan_force_promisc = false; in aq_filters_vlans_update() 861 aq_nic->aq_nic_cfg.is_vlan_force_promisc = true; in aq_filters_vlans_update() 883 aq_nic->aq_nic_cfg.is_vlan_force_promisc = true; in aq_filters_vlan_offload_off()
|
A D | aq_main.c | 354 struct aq_nic_cfg_s *aq_nic_cfg = aq_nic_get_cfg(self); in aq_validate_mqprio_opt() local 355 const unsigned int tcs_max = min_t(u8, aq_nic_cfg->aq_hw_caps->tcs_max, in aq_validate_mqprio_opt()
|
A D | aq_hw.h | 180 struct aq_nic_cfg_s *aq_nic_cfg; member 306 struct aq_nic_cfg_s *aq_nic_cfg);
|
/linux/drivers/net/ethernet/aquantia/atlantic/hw_atl2/ |
A D | hw_atl2.c | 114 struct aq_nic_cfg_s *cfg = self->aq_nic_cfg; in hw_atl2_hw_queue_to_tc_map_set() 164 struct aq_nic_cfg_s *cfg = self->aq_nic_cfg; in hw_atl2_hw_qos_set() 247 struct aq_nic_cfg_s *nic_cfg = self->aq_nic_cfg; in hw_atl2_hw_init_tx_tc_rate_limit() 356 struct aq_nic_cfg_s *nic_cfg = self->aq_nic_cfg; in hw_atl2_hw_init_tx_path() 486 struct aq_nic_cfg_s *cfg = self->aq_nic_cfg; in hw_atl2_hw_init_rx_path() 543 struct aq_nic_cfg_s *aq_nic_cfg = self->aq_nic_cfg; in hw_atl2_hw_init() local 565 hw_atl2_hw_rss_set(self, &aq_nic_cfg->aq_rss); in hw_atl2_hw_init() 581 [(aq_nic_cfg->vecs > 1U) ? in hw_atl2_hw_init() 593 hw_atl_b0_hw_offload_set(self, aq_nic_cfg); in hw_atl2_hw_init() 631 struct aq_nic_cfg_s *cfg = self->aq_nic_cfg; in hw_atl2_hw_multicast_list_set() [all …]
|
A D | hw_atl2_utils_fw.c | 239 u32 flow_control = self->aq_nic_cfg->fc.req; in aq_a2_fw_set_mpi_flow_control() 267 self->aq_nic_cfg->eee_speeds); in aq_a2_fw_set_state()
|
/linux/drivers/net/ethernet/aquantia/atlantic/hw_atl/ |
A D | hw_atl_b0.c | 154 struct aq_nic_cfg_s *cfg = self->aq_nic_cfg; in hw_atl_b0_hw_qos_set() 212 struct aq_nic_cfg_s *cfg = self->aq_nic_cfg; in hw_atl_b0_hw_rss_hash_set() 274 struct aq_nic_cfg_s *aq_nic_cfg) in hw_atl_b0_hw_offload_set() argument 569 struct aq_nic_cfg_s *aq_nic_cfg = self->aq_nic_cfg; in hw_atl_b0_hw_init() local 608 [(aq_nic_cfg->vecs > 1U) ? in hw_atl_b0_hw_init() 621 if (aq_nic_cfg->link_irq_vec) in hw_atl_b0_hw_init() 623 aq_nic_cfg->link_irq_vec, 3U); in hw_atl_b0_hw_init() 625 hw_atl_b0_hw_offload_set(self, aq_nic_cfg); in hw_atl_b0_hw_init() 946 if (self->aq_nic_cfg->is_vlan_rx_strip && in hw_atl_b0_hw_ring_rx_receive() 957 if (self->aq_nic_cfg->is_rss) { in hw_atl_b0_hw_ring_rx_receive() [all …]
|
A D | hw_atl_a0.c | 186 struct aq_nic_cfg_s *cfg = self->aq_nic_cfg; in hw_atl_a0_hw_rss_hash_set() 248 struct aq_nic_cfg_s *aq_nic_cfg) in hw_atl_a0_hw_offload_set() argument 285 struct aq_nic_cfg_s *cfg = self->aq_nic_cfg; in hw_atl_a0_hw_init_rx_path() 359 struct aq_nic_cfg_s *aq_nic_cfg = self->aq_nic_cfg; in hw_atl_a0_hw_init() local 388 [(aq_nic_cfg->vecs > 1U) ? 1 : 0]); in hw_atl_a0_hw_init() 399 hw_atl_a0_hw_offload_set(self, aq_nic_cfg); in hw_atl_a0_hw_init() 696 if (self->aq_nic_cfg->is_rss) { in hw_atl_a0_hw_ring_rx_receive() 757 struct aq_nic_cfg_s *cfg = self->aq_nic_cfg; in hw_atl_a0_hw_packet_filter_set() 785 struct aq_nic_cfg_s *cfg = self->aq_nic_cfg; in hw_atl_a0_hw_multicast_list_set() 824 if (self->aq_nic_cfg->itr) { in hw_atl_a0_hw_interrupt_moderation_set() [all …]
|
A D | hw_atl_utils_fw2x.c | 225 struct aq_nic_cfg_s *cfg = self->aq_nic_cfg; in aq_fw2x_set_state() 232 self->aq_nic_cfg->fc.req); in aq_fw2x_set_state() 367 if (self->aq_nic_cfg->wol & WAKE_PHY) { in aq_fw2x_set_wol() 377 if (self->aq_nic_cfg->wol & WAKE_MAGIC) { in aq_fw2x_set_wol() 408 if (self->aq_nic_cfg->wol) in aq_fw2x_set_power() 530 self->aq_nic_cfg->fc.req); in aq_fw2x_set_flow_control()
|
A D | hw_atl_b0.h | 38 struct aq_nic_cfg_s *aq_nic_cfg);
|
A D | hw_atl_utils.c | 603 err = hw_atl_utils_init_ucp(self, self->aq_nic_cfg->aq_hw_caps); in hw_atl_utils_mpi_create() 637 unsigned int mtu = self->aq_nic_cfg ? in hw_atl_utils_mpi_read_stats() 638 self->aq_nic_cfg->mtu : 1514U; in hw_atl_utils_mpi_read_stats() 1017 if (self->aq_nic_cfg->wol & WAKE_MAGIC) { in aq_fw1x_set_power()
|