Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/ethernet/aquantia/atlantic/
H A Daq_ptp.h37 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);
49 void aq_ptp_ring_deinit(struct aq_nic_s *aq_nic);
[all …]
H A Daq_ptp.c281 struct aq_nic_s *aq_nic = aq_ptp->aq_nic; in aq_ptp_adjfine() local
300 struct aq_nic_s *aq_nic = aq_ptp->aq_nic; in aq_ptp_adjtime() local
320 struct aq_nic_s *aq_nic = aq_ptp->aq_nic; in aq_ptp_gettime() local
344 struct aq_nic_s *aq_nic = aq_ptp->aq_nic; in aq_ptp_settime() local
395 struct aq_nic_s *aq_nic = aq_ptp->aq_nic; in aq_ptp_perout_pin_configure() local
430 struct aq_nic_s *aq_nic = aq_ptp->aq_nic; in aq_ptp_pps_pin_configure() local
452 struct aq_nic_s *aq_nic = aq_ptp->aq_nic; in aq_ptp_extts_pin_ctrl() local
593 struct aq_nic_s *aq_nic = aq_ptp->aq_nic; in aq_ptp_hwtstamp_config_set() local
659 struct aq_nic_s *aq_nic = aq_ptp->aq_nic; in aq_ptp_poll() local
1192 aq_ptp->aq_nic = aq_nic; in aq_ptp_init()
[all …]
H A Daq_filters.c79 netdev_err(aq_nic->ndev, in aq_rule_already_exists()
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()
134 netdev_err(aq_nic->ndev, in aq_check_approve_fl2()
143 netdev_err(aq_nic->ndev, in aq_check_approve_fl2()
160 netdev_err(aq_nic->ndev, in aq_check_approve_fvlan()
270 if (!aq_nic) { in aq_rule_is_not_correct()
835 aq_fvlan_rebuild(aq_nic, aq_nic->active_vlans, in aq_filters_vlans_update()
[all …]
H A Daq_main.c54 aq_nic = netdev_priv(ndev); in aq_ndev_alloc()
55 aq_nic->ndev = ndev; in aq_ndev_alloc()
67 err = aq_nic_init(aq_nic); in aq_ndev_open()
79 err = aq_nic_start(aq_nic); in aq_ndev_open()
81 aq_nic_stop(aq_nic); in aq_ndev_open()
87 aq_nic_deinit(aq_nic, true); in aq_ndev_open()
97 err = aq_nic_stop(aq_nic); in aq_ndev_close()
98 aq_nic_deinit(aq_nic, true); in aq_ndev_close()
195 err = aq_nic->aq_hw_ops->hw_set_offload(aq_nic->aq_hw, in aq_ndev_set_features()
303 if (!aq_nic->aq_ptp) in aq_ndev_hwtstamp_set()
[all …]
H A Daq_ethtool.c29 aq_nic_get_regs(aq_nic, regs, p); in aq_ethtool_get_regs()
496 err = aq_nic->aq_hw_ops->hw_rss_hash_set(aq_nic->aq_hw, in aq_ethtool_set_rss()
502 err = aq_nic->aq_hw_ops->hw_rss_set(aq_nic->aq_hw, &cfg->aq_rss); in aq_ethtool_set_rss()
659 if (!aq_nic->aq_ptp) in aq_ethtool_get_ts_info()
709 err = aq_nic->aq_fw_ops->get_eee_rate(aq_nic->aq_hw, &rate, in aq_ethtool_get_eee()
745 err = aq_nic->aq_fw_ops->get_eee_rate(aq_nic->aq_hw, &rate, in aq_ethtool_set_eee()
760 err = aq_nic->aq_fw_ops->set_eee_rate(aq_nic->aq_hw, rate); in aq_ethtool_set_eee()
776 err = aq_nic->aq_fw_ops->renegotiate(aq_nic->aq_hw); in aq_ethtool_nway_reset()
818 err = aq_nic->aq_fw_ops->set_flow_control(aq_nic->aq_hw); in aq_ethtool_set_pauseparam()
888 return aq_nic->msg_enable; in aq_get_msg_level()
[all …]
H A Daq_drvinfo.c34 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()
72 if (!aq_nic) in aq_hwmon_read_string()
140 struct device *dev = &aq_nic->pdev->dev; in aq_drvinfo_init()
[all …]
H A 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 …]
H A Daq_ring.c136 struct aq_nic_s *aq_nic) in aq_ring_alloc() argument
165 struct aq_nic_s *aq_nic, in aq_ring_tx_alloc() argument
169 self->aq_nic = aq_nic; in aq_ring_tx_alloc()
178 struct aq_nic_s *aq_nic, in aq_ring_rx_alloc() argument
182 self->aq_nic = aq_nic; in aq_ring_rx_alloc()
186 self->xdp_prog = aq_nic->xdp_prog; in aq_ring_rx_alloc()
215 self->aq_nic = aq_nic; in aq_ring_hwts_rx_alloc()
372 aq_cfg = aq_nic_get_cfg(aq_nic); in aq_xdp_xmit()
704 struct aq_nic_s *aq_nic = rx_ring->aq_nic; in __aq_ring_xdp_clean() local
709 dev = aq_nic_get_dev(aq_nic); in __aq_ring_xdp_clean()
[all …]
H A 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
140 err = aq_ring_tx_alloc(ring, aq_nic, idx_ring, aq_nic_cfg); in aq_vec_ring_alloc()
146 aq_nic_set_tx_ring(aq_nic, idx_ring, ring); in aq_vec_ring_alloc()
150 aq_nic->ndev, idx, in aq_vec_ring_alloc()
162 err = aq_ring_rx_alloc(ring, aq_nic, idx_ring, aq_nic_cfg); in aq_vec_ring_alloc()
H A 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,
214 void aq_ring_hwts_rx_clean(struct aq_ring_s *self, struct aq_nic_s *aq_nic);
H A 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,
H A DMakefile14 aq_nic.o \
H A Daq_nic.c829 int aq_nic_xmit_xdpf(struct aq_nic_s *aq_nic, struct aq_ring_s *tx_ring, in aq_nic_xmit_xdpf() argument
832 u16 queue_index = AQ_NIC_RING2QMAP(aq_nic, tx_ring->idx); in aq_nic_xmit_xdpf()
833 struct net_device *ndev = aq_nic_get_ndev(aq_nic); in aq_nic_xmit_xdpf()
854 if (__netif_subqueue_stopped(aq_nic_get_ndev(aq_nic), queue_index)) in aq_nic_xmit_xdpf()
857 frags = aq_nic_map_xdp(aq_nic, xdpf, tx_ring); in aq_nic_xmit_xdpf()
859 err = aq_nic->aq_hw_ops->hw_ring_tx_xmit(aq_nic->aq_hw, tx_ring, in aq_nic_xmit_xdpf()
H A Daq_nic.h185 int aq_nic_xmit_xdpf(struct aq_nic_s *aq_nic, struct aq_ring_s *tx_ring,