Home
last modified time | relevance | path

Searched refs:aq_nic_cfg (Results 1 – 20 of 20) sorted by relevance

/Linux-v5.10/drivers/net/ethernet/aquantia/atlantic/
Daq_nic.c54 struct aq_nic_cfg_s *cfg = &self->aq_nic_cfg; in aq_nic_rss_init()
71 struct aq_nic_cfg_s *cfg = &self->aq_nic_cfg; in aq_nic_cfg_update_num_vecs()
98 struct aq_nic_cfg_s *cfg = &self->aq_nic_cfg; in aq_nic_cfg_start()
166 self->aq_nic_cfg.fc.cur = fc; in aq_nic_update_link_status()
223 BIT(self->aq_nic_cfg.link_irq_vec)); in aq_linkstate_threaded_isr()
367 const struct aq_hw_caps_s *aq_hw_caps = self->aq_nic_cfg.aq_hw_caps; in aq_nic_ndev_init()
368 struct aq_nic_cfg_s *aq_nic_cfg = &self->aq_nic_cfg; in aq_nic_ndev_init() local
380 self->ndev->mtu = aq_nic_cfg->mtu - ETH_HLEN; in aq_nic_ndev_init()
409 aq_nic_set_downshift(self, self->aq_nic_cfg.downshift_counter); in aq_nic_init()
410 aq_nic_set_media_detect(self, self->aq_nic_cfg.is_media_detect ? in aq_nic_init()
[all …]
Daq_hw_utils.c45 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()
Daq_vec.c108 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()
Daq_vec.h28 struct aq_nic_cfg_s *aq_nic_cfg);
30 unsigned int idx, struct aq_nic_cfg_s *aq_nic_cfg);
Daq_pci_func.c182 if (self->aq_nic_cfg.link_irq_vec && in aq_pci_func_free_irqs()
183 i == self->aq_nic_cfg.link_irq_vec) in aq_pci_func_free_irqs()
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()
397 aq_nic_deinit(nic, !nic->aq_hw->aq_nic_cfg->wol); in aq_suspend_common()
Daq_ethtool.c291 aq_ptp_ring_idx(nic->aq_nic_cfg.tc_mode); in aq_ethtool_get_strings()
703 if (aq_nic->aq_nic_cfg.eee_speeds) in aq_ethtool_get_eee()
773 int fc = aq_nic->aq_nic_cfg.fc.req; in aq_ethtool_get_pauseparam()
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()
801 aq_nic->aq_hw->aq_nic_cfg->fc.req &= ~AQ_NIC_FC_TX; in aq_ethtool_set_pauseparam()
884 return aq_nic->aq_nic_cfg.priv_flags; in aq_ethtool_get_priv_flags()
929 *val = aq_nic->aq_nic_cfg.is_media_detect ? AQ_HW_MEDIA_DETECT_CNT : 0; in aq_ethtool_get_phy_tunable()
935 *val = (u8)aq_nic->aq_nic_cfg.downshift_counter; in aq_ethtool_get_phy_tunable()
Daq_ring.c140 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()
Daq_nic.h99 ((_ID_) / AQ_NIC_CFG_RING_PER_TC(&(_NIC_)->aq_nic_cfg) * \
101 ((_ID_) % AQ_NIC_CFG_RING_PER_TC(&(_NIC_)->aq_nic_cfg)))
136 struct aq_nic_cfg_s aq_nic_cfg; member
Daq_ring.h173 struct aq_nic_cfg_s *aq_nic_cfg);
177 struct aq_nic_cfg_s *aq_nic_cfg);
Daq_ptp.c963 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()
Daq_filters.c156 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()
Daq_hw.h178 struct aq_nic_cfg_s *aq_nic_cfg; member
304 struct aq_nic_cfg_s *aq_nic_cfg);
Daq_main.c352 struct aq_nic_cfg_s *aq_nic_cfg = aq_nic_get_cfg(self); in aq_validate_mqprio_opt() local
353 const unsigned int tcs_max = min_t(u8, aq_nic_cfg->aq_hw_caps->tcs_max, in aq_validate_mqprio_opt()
/Linux-v5.10/drivers/net/ethernet/aquantia/atlantic/hw_atl2/
Dhw_atl2.c100 struct aq_nic_cfg_s *cfg = self->aq_nic_cfg; in hw_atl2_hw_queue_to_tc_map_set()
150 struct aq_nic_cfg_s *cfg = self->aq_nic_cfg; in hw_atl2_hw_qos_set()
186 hw_atl_b0_set_fc(self, self->aq_nic_cfg->fc.req, tc); in hw_atl2_hw_qos_set()
233 struct aq_nic_cfg_s *nic_cfg = self->aq_nic_cfg; in hw_atl2_hw_init_tx_tc_rate_limit()
342 struct aq_nic_cfg_s *nic_cfg = self->aq_nic_cfg; in hw_atl2_hw_init_tx_path()
368 u8 *prio_tc_map = self->aq_nic_cfg->prio_tc_map; in hw_atl2_hw_init_new_rx_filters()
472 struct aq_nic_cfg_s *cfg = self->aq_nic_cfg; in hw_atl2_hw_init_rx_path()
529 struct aq_nic_cfg_s *aq_nic_cfg = self->aq_nic_cfg; in hw_atl2_hw_init() local
547 self->aq_fw_ops->set_link_speed(self, aq_nic_cfg->link_speed_msk); in hw_atl2_hw_init()
551 hw_atl2_hw_rss_set(self, &aq_nic_cfg->aq_rss); in hw_atl2_hw_init()
[all …]
Dhw_atl2_utils_fw.c241 u32 flow_control = self->aq_nic_cfg->fc.req; in aq_a2_fw_set_mpi_flow_control()
269 self->aq_nic_cfg->eee_speeds); in aq_a2_fw_set_state()
/Linux-v5.10/drivers/net/ethernet/aquantia/atlantic/hw_atl/
Dhw_atl_b0.c154 struct aq_nic_cfg_s *cfg = self->aq_nic_cfg; in hw_atl_b0_hw_qos_set()
195 hw_atl_b0_set_fc(self, self->aq_nic_cfg->fc.req, tc); 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()
240 u32 num_rss_queues = max(1U, self->aq_nic_cfg->num_rss_queues); in hw_atl_b0_hw_rss_set()
274 struct aq_nic_cfg_s *aq_nic_cfg) in hw_atl_b0_hw_offload_set() argument
276 u64 rxcsum = !!(aq_nic_cfg->features & NETIF_F_RXCSUM); in hw_atl_b0_hw_offload_set()
322 aq_nic_cfg->is_lro ? 0xFFFFFFFFU : 0U); in hw_atl_b0_hw_offload_set()
324 aq_nic_cfg->is_lro ? 0xFFFFFFFFU : 0U); in hw_atl_b0_hw_offload_set()
340 struct aq_nic_cfg_s *nic_cfg = self->aq_nic_cfg; in hw_atl_b0_hw_init_tx_tc_rate_limit()
451 struct aq_nic_cfg_s *nic_cfg = self->aq_nic_cfg; in hw_atl_b0_hw_init_tx_path()
[all …]
Dhw_atl_a0.c162 is_rx_flow_control = (AQ_NIC_FC_RX & self->aq_nic_cfg->fc.req); in hw_atl_a0_hw_qos_set()
186 struct aq_nic_cfg_s *cfg = self->aq_nic_cfg; in hw_atl_a0_hw_rss_hash_set()
214 u32 num_rss_queues = max(1U, self->aq_nic_cfg->num_rss_queues); in hw_atl_a0_hw_rss_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
367 self->aq_fw_ops->set_link_speed(self, aq_nic_cfg->link_speed_msk); in hw_atl_a0_hw_init()
374 hw_atl_a0_hw_rss_set(self, &aq_nic_cfg->aq_rss); in hw_atl_a0_hw_init()
375 hw_atl_a0_hw_rss_hash_set(self, &aq_nic_cfg->aq_rss); in hw_atl_a0_hw_init()
387 aq_hw_atl_igcr_table_[aq_nic_cfg->irq_type] in hw_atl_a0_hw_init()
[all …]
Dhw_atl_utils_fw2x.c228 struct aq_nic_cfg_s *cfg = self->aq_nic_cfg; in aq_fw2x_set_state()
235 self->aq_nic_cfg->fc.req); in aq_fw2x_set_state()
370 if (self->aq_nic_cfg->wol & WAKE_PHY) { in aq_fw2x_set_wol()
380 if (self->aq_nic_cfg->wol & WAKE_MAGIC) { in aq_fw2x_set_wol()
411 if (self->aq_nic_cfg->wol) in aq_fw2x_set_power()
533 self->aq_nic_cfg->fc.req); in aq_fw2x_set_flow_control()
Dhw_atl_b0.h38 struct aq_nic_cfg_s *aq_nic_cfg);
Dhw_atl_utils.c593 err = hw_atl_utils_init_ucp(self, self->aq_nic_cfg->aq_hw_caps); in hw_atl_utils_mpi_create()
627 unsigned int mtu = self->aq_nic_cfg ? in hw_atl_utils_mpi_read_stats()
628 self->aq_nic_cfg->mtu : 1514U; in hw_atl_utils_mpi_read_stats()
996 if (self->aq_nic_cfg->wol & WAKE_MAGIC) { in aq_fw1x_set_power()