Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/net/ethernet/aquantia/atlantic/
Daq_nic.c41 struct aq_nic_cfg_s *cfg = &self->aq_nic_cfg; in aq_nic_rss_init()
64 struct aq_nic_cfg_s *cfg = &self->aq_nic_cfg; in aq_nic_cfg_start()
185 BIT(self->aq_nic_cfg.link_irq_vec)); in aq_linkstate_threaded_isr()
285 const struct aq_hw_caps_s *aq_hw_caps = self->aq_nic_cfg.aq_hw_caps; in aq_nic_ndev_init()
286 struct aq_nic_cfg_s *aq_nic_cfg = &self->aq_nic_cfg; in aq_nic_ndev_init() local
296 self->ndev->mtu = aq_nic_cfg->mtu - ETH_HLEN; in aq_nic_ndev_init()
377 if (self->aq_nic_cfg.is_polling) { in aq_nic_start()
391 if (self->aq_nic_cfg.link_irq_vec) { in aq_nic_start()
393 self->aq_nic_cfg.link_irq_vec); in aq_nic_start()
400 self->msix_entry_mask |= (1 << self->aq_nic_cfg.link_irq_vec); in aq_nic_start()
[all …]
Daq_ethtool.c414 if (aq_nic->aq_nic_cfg.eee_speeds) in aq_ethtool_get_eee()
484 u32 fc = aq_nic->aq_nic_cfg.flow_control; in aq_ethtool_get_pauseparam()
506 aq_nic->aq_hw->aq_nic_cfg->flow_control |= AQ_NIC_FC_RX; in aq_ethtool_set_pauseparam()
508 aq_nic->aq_hw->aq_nic_cfg->flow_control &= ~AQ_NIC_FC_RX; in aq_ethtool_set_pauseparam()
511 aq_nic->aq_hw->aq_nic_cfg->flow_control |= AQ_NIC_FC_TX; in aq_ethtool_set_pauseparam()
513 aq_nic->aq_hw->aq_nic_cfg->flow_control &= ~AQ_NIC_FC_TX; in aq_ethtool_set_pauseparam()
526 struct aq_nic_cfg_s *aq_nic_cfg = aq_nic_get_cfg(aq_nic); in aq_get_ringparam() local
528 ring->rx_pending = aq_nic_cfg->rxds; in aq_get_ringparam()
529 ring->tx_pending = aq_nic_cfg->txds; in aq_get_ringparam()
531 ring->rx_max_pending = aq_nic_cfg->aq_hw_caps->rxds_max; in aq_get_ringparam()
[all …]
Daq_ring.c126 struct aq_nic_cfg_s *aq_nic_cfg) in aq_ring_tx_alloc() argument
132 self->size = aq_nic_cfg->txds; in aq_ring_tx_alloc()
133 self->dx_size = aq_nic_cfg->aq_hw_caps->txd_size; in aq_ring_tx_alloc()
152 struct aq_nic_cfg_s *aq_nic_cfg) in aq_ring_rx_alloc() argument
158 self->size = aq_nic_cfg->rxds; in aq_ring_rx_alloc()
159 self->dx_size = aq_nic_cfg->aq_hw_caps->rxd_size; in aq_ring_rx_alloc()
163 if (aq_nic_cfg->rxpageorder > self->page_order) in aq_ring_rx_alloc()
164 self->page_order = aq_nic_cfg->rxpageorder; in aq_ring_rx_alloc()
Daq_vec.c104 struct aq_nic_cfg_s *aq_nic_cfg) in aq_vec_alloc() argument
120 idx + aq_nic_cfg->aq_rss.base_cpu_number; in aq_vec_alloc()
131 for (i = 0; i < aq_nic_cfg->tcs; ++i) { in aq_vec_alloc()
137 idx_ring, aq_nic_cfg); in aq_vec_alloc()
148 idx_ring, aq_nic_cfg); in aq_vec_alloc()
Daq_ring.h159 struct aq_nic_cfg_s *aq_nic_cfg);
163 struct aq_nic_cfg_s *aq_nic_cfg);
Daq_filters.c168 if (fsp->ring_cookie > aq_nic->aq_nic_cfg.num_rss_queues) { in aq_check_approve_fvlan()
171 aq_nic->aq_nic_cfg.num_rss_queues - 1); in aq_check_approve_fvlan()
272 if (fsp->ring_cookie >= aq_nic->aq_nic_cfg.num_rss_queues) { in aq_rule_is_not_correct()
276 aq_nic->aq_nic_cfg.num_rss_queues - 1); in aq_rule_is_not_correct()
850 aq_nic->aq_nic_cfg.is_vlan_force_promisc = false; in aq_filters_vlans_update()
853 aq_nic->aq_nic_cfg.is_vlan_force_promisc = true; in aq_filters_vlans_update()
875 aq_nic->aq_nic_cfg.is_vlan_force_promisc = true; in aq_filters_vlan_offload_off()
Daq_vec.h27 struct aq_nic_cfg_s *aq_nic_cfg);
Daq_pci_func.c167 if (self->aq_nic_cfg.link_irq_vec && in aq_pci_func_free_irqs()
168 i == self->aq_nic_cfg.link_irq_vec) in aq_pci_func_free_irqs()
237 self->aq_hw->aq_nic_cfg = aq_nic_get_cfg(self); in aq_pci_probe()
Daq_hw.h121 struct aq_nic_cfg_s *aq_nic_cfg; member
236 struct aq_nic_cfg_s *aq_nic_cfg);
Daq_hw_utils.c42 hw->aq_nic_cfg->aq_hw_caps->hw_alive_check_addr)) in aq_hw_read_reg()
Daq_nic.h94 struct aq_nic_cfg_s aq_nic_cfg; member
/Linux-v5.4/drivers/net/ethernet/aquantia/atlantic/hw_atl/
Dhw_atl_b0.c159 hw_atl_b0_set_fc(self, self->aq_nic_cfg->flow_control, tc); in hw_atl_b0_hw_qos_set()
171 struct aq_nic_cfg_s *cfg = self->aq_nic_cfg; in hw_atl_b0_hw_rss_hash_set()
201 u32 num_rss_queues = max(1U, self->aq_nic_cfg->num_rss_queues); in hw_atl_b0_hw_rss_set()
233 struct aq_nic_cfg_s *aq_nic_cfg) in hw_atl_b0_hw_offload_set() argument
242 hw_atl_rpo_ipv4header_crc_offload_en_set(self, !!(aq_nic_cfg->features & in hw_atl_b0_hw_offload_set()
244 hw_atl_rpo_tcp_udp_crc_offload_en_set(self, !!(aq_nic_cfg->features & in hw_atl_b0_hw_offload_set()
282 aq_nic_cfg->is_lro ? 0xFFFFFFFFU : 0U); in hw_atl_b0_hw_offload_set()
284 aq_nic_cfg->is_lro ? 0xFFFFFFFFU : 0U); in hw_atl_b0_hw_offload_set()
316 struct aq_nic_cfg_s *cfg = self->aq_nic_cfg; in hw_atl_b0_hw_init_rx_path()
401 struct aq_nic_cfg_s *aq_nic_cfg = self->aq_nic_cfg; in hw_atl_b0_hw_init() local
[all …]
Dhw_atl_a0.c158 is_rx_flow_control = (AQ_NIC_FC_RX & self->aq_nic_cfg->flow_control); in hw_atl_a0_hw_qos_set()
182 struct aq_nic_cfg_s *cfg = self->aq_nic_cfg; in hw_atl_a0_hw_rss_hash_set()
212 u32 num_rss_queues = max(1U, self->aq_nic_cfg->num_rss_queues); in hw_atl_a0_hw_rss_set()
244 struct aq_nic_cfg_s *aq_nic_cfg) in hw_atl_a0_hw_offload_set() argument
282 struct aq_nic_cfg_s *cfg = self->aq_nic_cfg; in hw_atl_a0_hw_init_rx_path()
358 struct aq_nic_cfg_s *aq_nic_cfg = self->aq_nic_cfg; in hw_atl_a0_hw_init() local
365 self->aq_fw_ops->set_link_speed(self, aq_nic_cfg->link_speed_msk); in hw_atl_a0_hw_init()
372 hw_atl_a0_hw_rss_set(self, &aq_nic_cfg->aq_rss); in hw_atl_a0_hw_init()
373 hw_atl_a0_hw_rss_hash_set(self, &aq_nic_cfg->aq_rss); in hw_atl_a0_hw_init()
385 aq_hw_atl_igcr_table_[aq_nic_cfg->irq_type] in hw_atl_a0_hw_init()
[all …]
Dhw_atl_utils_fw2x.c172 if (self->aq_nic_cfg->flow_control & AQ_NIC_FC_RX) in aq_fw2x_set_mpi_flow_control()
177 if (self->aq_nic_cfg->flow_control & AQ_NIC_FC_TX) in aq_fw2x_set_mpi_flow_control()
198 struct aq_nic_cfg_s *cfg = self->aq_nic_cfg; in aq_fw2x_set_state()
436 if (self->aq_nic_cfg->wol & AQ_NIC_WOL_ENABLED) { in aq_fw2x_set_power()
Dhw_atl_utils.c505 err = hw_atl_utils_init_ucp(self, self->aq_nic_cfg->aq_hw_caps); in hw_atl_utils_mpi_create()
539 unsigned int mtu = self->aq_nic_cfg ? in hw_atl_utils_mpi_read_stats()
540 self->aq_nic_cfg->mtu : 1514U; in hw_atl_utils_mpi_read_stats()
894 if (self->aq_nic_cfg->wol & AQ_NIC_WOL_ENABLED) { in aq_fw1x_set_power()