/Linux-v6.1/drivers/net/ethernet/aquantia/atlantic/ |
D | aq_ptp.h | 35 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 …]
|
D | aq_ptp.c | 53 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 …]
|
D | aq_filters.c | 67 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 …]
|
D | aq_main.c | 47 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 …]
|
D | aq_ethtool.c | 23 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 …]
|
D | aq_drvinfo.c | 30 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 …]
|
D | aq_filters.h | 23 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 …]
|
D | aq_ring.c | 54 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 …]
|
D | aq_vec.c | 17 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()
|
D | aq_ring.h | 138 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);
|
D | aq_vec.h | 33 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,
|
D | Makefile | 14 aq_nic.o \
|
D | aq_nic.c | 824 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()
|
D | aq_nic.h | 185 int aq_nic_xmit_xdpf(struct aq_nic_s *aq_nic, struct aq_ring_s *tx_ring,
|