Home
last modified time | relevance | path

Searched refs:aq_nic (Results 1 – 14 of 14) sorted by relevance

/Linux-v6.1/drivers/net/ethernet/aquantia/atlantic/
Daq_ptp.h35 int aq_ptp_init(struct aq_nic_s *aq_nic, unsigned int idx_vec);
37 void aq_ptp_unregister(struct aq_nic_s *aq_nic);
38 void aq_ptp_free(struct aq_nic_s *aq_nic);
40 int aq_ptp_irq_alloc(struct aq_nic_s *aq_nic);
41 void aq_ptp_irq_free(struct aq_nic_s *aq_nic);
43 int aq_ptp_ring_alloc(struct aq_nic_s *aq_nic);
44 void aq_ptp_ring_free(struct aq_nic_s *aq_nic);
46 int aq_ptp_ring_init(struct aq_nic_s *aq_nic);
47 int aq_ptp_ring_start(struct aq_nic_s *aq_nic);
48 void aq_ptp_ring_stop(struct aq_nic_s *aq_nic);
[all …]
Daq_ptp.c53 struct aq_nic_s *aq_nic; member
96 void aq_ptp_tm_offset_set(struct aq_nic_s *aq_nic, unsigned int mbps) in aq_ptp_tm_offset_set() argument
98 struct aq_ptp_s *aq_ptp = aq_nic->aq_ptp; in aq_ptp_tm_offset_set()
266 netdev_err(aq_ptp->aq_nic->ndev, in aq_ptp_tx_timeout_check()
281 struct aq_nic_s *aq_nic = aq_ptp->aq_nic; in aq_ptp_adjfine() local
283 mutex_lock(&aq_nic->fwreq_mutex); in aq_ptp_adjfine()
284 aq_nic->aq_hw_ops->hw_adj_clock_freq(aq_nic->aq_hw, in aq_ptp_adjfine()
286 mutex_unlock(&aq_nic->fwreq_mutex); in aq_ptp_adjfine()
300 struct aq_nic_s *aq_nic = aq_ptp->aq_nic; in aq_ptp_adjtime() local
304 aq_nic->aq_hw_ops->hw_adj_sys_clock(aq_nic->aq_hw, delta); in aq_ptp_adjtime()
[all …]
Daq_filters.c67 aq_rule_already_exists(struct aq_nic_s *aq_nic, in aq_rule_already_exists() argument
72 struct aq_hw_rx_fltrs_s *rx_fltrs = aq_get_hw_rx_fltrs(aq_nic); in aq_rule_already_exists()
79 netdev_err(aq_nic->ndev, in aq_rule_already_exists()
88 static int aq_check_approve_fl3l4(struct aq_nic_s *aq_nic, in aq_check_approve_fl3l4() argument
93 aq_nic->aq_hw_rx_fltrs.fl3l4.reserved_count; in aq_check_approve_fl3l4()
97 netdev_err(aq_nic->ndev, in aq_check_approve_fl3l4()
104 netdev_err(aq_nic->ndev, in aq_check_approve_fl3l4()
109 netdev_err(aq_nic->ndev, in aq_check_approve_fl3l4()
115 netdev_err(aq_nic->ndev, in aq_check_approve_fl3l4()
125 aq_check_approve_fl2(struct aq_nic_s *aq_nic, in aq_check_approve_fl2() argument
[all …]
Daq_main.c47 struct aq_nic_s *aq_nic = NULL; in aq_ndev_alloc() local
53 aq_nic = netdev_priv(ndev); in aq_ndev_alloc()
54 aq_nic->ndev = ndev; in aq_ndev_alloc()
63 struct aq_nic_s *aq_nic = netdev_priv(ndev); in aq_ndev_open() local
66 err = aq_nic_init(aq_nic); in aq_ndev_open()
70 err = aq_reapply_rxnfc_all_rules(aq_nic); in aq_ndev_open()
74 err = aq_filters_vlans_update(aq_nic); in aq_ndev_open()
78 err = aq_nic_start(aq_nic); in aq_ndev_open()
80 aq_nic_stop(aq_nic); in aq_ndev_open()
86 aq_nic_deinit(aq_nic, true); in aq_ndev_open()
[all …]
Daq_ethtool.c23 struct aq_nic_s *aq_nic = netdev_priv(ndev); in aq_ethtool_get_regs() local
26 regs_count = aq_nic_get_regs_count(aq_nic); in aq_ethtool_get_regs()
29 aq_nic_get_regs(aq_nic, regs, p); in aq_ethtool_get_regs()
34 struct aq_nic_s *aq_nic = netdev_priv(ndev); in aq_ethtool_get_regs_len() local
37 regs_count = aq_nic_get_regs_count(aq_nic); in aq_ethtool_get_regs_len()
50 struct aq_nic_s *aq_nic = netdev_priv(ndev); in aq_ethtool_get_link_ksettings() local
52 aq_nic_get_link_ksettings(aq_nic, cmd); in aq_ethtool_get_link_ksettings()
54 aq_nic_get_link_speed(aq_nic) : 0U; in aq_ethtool_get_link_ksettings()
63 struct aq_nic_s *aq_nic = netdev_priv(ndev); in aq_ethtool_set_link_ksettings() local
65 return aq_nic_set_link_ksettings(aq_nic, cmd); in aq_ethtool_set_link_ksettings()
[all …]
Daq_drvinfo.c30 struct aq_nic_s *aq_nic = dev_get_drvdata(dev); in aq_hwmon_read() local
34 if (!aq_nic) in aq_hwmon_read()
42 if (!aq_nic->aq_fw_ops->get_phy_temp) in aq_hwmon_read()
45 err = aq_nic->aq_fw_ops->get_phy_temp(aq_nic->aq_hw, &temp); in aq_hwmon_read()
49 if (!aq_nic->aq_fw_ops->get_mac_temp && in aq_hwmon_read()
50 !aq_nic->aq_hw_ops->hw_get_mac_temp) in aq_hwmon_read()
53 if (aq_nic->aq_fw_ops->get_mac_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()
70 struct aq_nic_s *aq_nic = dev_get_drvdata(dev); in aq_hwmon_read_string() local
[all …]
Daq_filters.h23 u16 aq_get_rxnfc_count_all_rules(struct aq_nic_s *aq_nic);
24 struct aq_hw_rx_fltrs_s *aq_get_hw_rx_fltrs(struct aq_nic_s *aq_nic);
25 int aq_add_rxnfc_rule(struct aq_nic_s *aq_nic, const struct ethtool_rxnfc *cmd);
26 int aq_del_rxnfc_rule(struct aq_nic_s *aq_nic, const struct ethtool_rxnfc *cmd);
27 int aq_get_rxnfc_rule(struct aq_nic_s *aq_nic, struct ethtool_rxnfc *cmd);
28 int aq_get_rxnfc_all_rules(struct aq_nic_s *aq_nic, struct ethtool_rxnfc *cmd,
30 int aq_del_fvlan_by_vlan(struct aq_nic_s *aq_nic, u16 vlan_id);
31 int aq_clear_rxnfc_all_rules(struct aq_nic_s *aq_nic);
32 int aq_reapply_rxnfc_all_rules(struct aq_nic_s *aq_nic);
33 int aq_filters_vlans_update(struct aq_nic_s *aq_nic);
[all …]
Daq_ring.c54 struct device *dev = aq_nic_get_dev(rx_ring->aq_nic); in aq_alloc_rxpages()
109 aq_nic_get_dev(self->aq_nic)); in aq_get_rxpages()
136 struct aq_nic_s *aq_nic) in aq_ring_alloc() argument
148 self->dx_ring = dma_alloc_coherent(aq_nic_get_dev(aq_nic), in aq_ring_alloc()
166 struct aq_nic_s *aq_nic, in aq_ring_tx_alloc() argument
172 self->aq_nic = aq_nic; in aq_ring_tx_alloc()
177 self = aq_ring_alloc(self, aq_nic); in aq_ring_tx_alloc()
193 struct aq_nic_s *aq_nic, in aq_ring_rx_alloc() argument
199 self->aq_nic = aq_nic; in aq_ring_rx_alloc()
203 self->xdp_prog = aq_nic->xdp_prog; in aq_ring_rx_alloc()
[all …]
Daq_vec.c17 struct aq_nic_s *aq_nic; member
102 struct aq_vec_s *aq_vec_alloc(struct aq_nic_s *aq_nic, unsigned int idx, in aq_vec_alloc() argument
111 self->aq_nic = aq_nic; in aq_vec_alloc()
122 netif_napi_add(aq_nic_get_ndev(aq_nic), &self->napi, aq_vec_poll); in aq_vec_alloc()
128 int aq_vec_ring_alloc(struct aq_vec_s *self, struct aq_nic_s *aq_nic, in aq_vec_ring_alloc() argument
139 ring = aq_ring_tx_alloc(&self->ring[i][AQ_VEC_TX_ID], aq_nic, in aq_vec_ring_alloc()
148 aq_nic_set_tx_ring(aq_nic, idx_ring, ring); in aq_vec_ring_alloc()
151 aq_nic->ndev, idx, in aq_vec_ring_alloc()
163 ring = aq_ring_rx_alloc(&self->ring[i][AQ_VEC_RX_ID], aq_nic, in aq_vec_ring_alloc()
Daq_ring.h138 struct aq_nic_s *aq_nic; member
187 struct aq_nic_s *aq_nic,
191 struct aq_nic_s *aq_nic,
211 struct aq_nic_s *aq_nic, unsigned int idx,
213 void aq_ring_hwts_rx_clean(struct aq_ring_s *self, struct aq_nic_s *aq_nic);
Daq_vec.h33 struct aq_vec_s *aq_vec_alloc(struct aq_nic_s *aq_nic, unsigned int idx,
35 int aq_vec_ring_alloc(struct aq_vec_s *self, struct aq_nic_s *aq_nic,
DMakefile14 aq_nic.o \
Daq_nic.c824 int aq_nic_xmit_xdpf(struct aq_nic_s *aq_nic, struct aq_ring_s *tx_ring, in aq_nic_xmit_xdpf() argument
827 u16 queue_index = AQ_NIC_RING2QMAP(aq_nic, tx_ring->idx); in aq_nic_xmit_xdpf()
828 struct net_device *ndev = aq_nic_get_ndev(aq_nic); in aq_nic_xmit_xdpf()
849 if (__netif_subqueue_stopped(aq_nic_get_ndev(aq_nic), queue_index)) in aq_nic_xmit_xdpf()
852 frags = aq_nic_map_xdp(aq_nic, xdpf, tx_ring); in aq_nic_xmit_xdpf()
854 err = aq_nic->aq_hw_ops->hw_ring_tx_xmit(aq_nic->aq_hw, tx_ring, in aq_nic_xmit_xdpf()
Daq_nic.h185 int aq_nic_xmit_xdpf(struct aq_nic_s *aq_nic, struct aq_ring_s *tx_ring,