Home
last modified time | relevance | path

Searched refs:aq_hw (Results 1 – 13 of 13) sorted by relevance

/Linux-v5.4/drivers/net/ethernet/aquantia/atlantic/hw_atl/
Dhw_atl_llh.c16 void hw_atl_reg_glb_cpu_sem_set(struct aq_hw_s *aq_hw, u32 glb_cpu_sem, in hw_atl_reg_glb_cpu_sem_set() argument
19 aq_hw_write_reg(aq_hw, HW_ATL_GLB_CPU_SEM_ADR(semaphore), glb_cpu_sem); in hw_atl_reg_glb_cpu_sem_set()
22 u32 hw_atl_reg_glb_cpu_sem_get(struct aq_hw_s *aq_hw, u32 semaphore) in hw_atl_reg_glb_cpu_sem_get() argument
24 return aq_hw_read_reg(aq_hw, HW_ATL_GLB_CPU_SEM_ADR(semaphore)); in hw_atl_reg_glb_cpu_sem_get()
27 void hw_atl_glb_glb_reg_res_dis_set(struct aq_hw_s *aq_hw, u32 glb_reg_res_dis) in hw_atl_glb_glb_reg_res_dis_set() argument
29 aq_hw_write_reg_bit(aq_hw, HW_ATL_GLB_REG_RES_DIS_ADR, in hw_atl_glb_glb_reg_res_dis_set()
35 void hw_atl_glb_soft_res_set(struct aq_hw_s *aq_hw, u32 soft_res) in hw_atl_glb_soft_res_set() argument
37 aq_hw_write_reg_bit(aq_hw, HW_ATL_GLB_SOFT_RES_ADR, in hw_atl_glb_soft_res_set()
42 u32 hw_atl_glb_soft_res_get(struct aq_hw_s *aq_hw) in hw_atl_glb_soft_res_get() argument
44 return aq_hw_read_reg_bit(aq_hw, HW_ATL_GLB_SOFT_RES_ADR, in hw_atl_glb_soft_res_get()
[all …]
Dhw_atl_llh.h21 void hw_atl_reg_glb_cpu_sem_set(struct aq_hw_s *aq_hw, u32 glb_cpu_sem,
25 u32 hw_atl_reg_glb_cpu_sem_get(struct aq_hw_s *aq_hw, u32 semaphore);
28 void hw_atl_glb_glb_reg_res_dis_set(struct aq_hw_s *aq_hw, u32 glb_reg_res_dis);
31 void hw_atl_glb_soft_res_set(struct aq_hw_s *aq_hw, u32 soft_res);
34 u32 hw_atl_glb_soft_res_get(struct aq_hw_s *aq_hw);
38 u32 hw_atl_rpb_rx_dma_drop_pkt_cnt_get(struct aq_hw_s *aq_hw);
41 u64 hw_atl_stats_rx_dma_good_octet_counter_get(struct aq_hw_s *aq_hw);
44 u64 hw_atl_stats_rx_dma_good_pkt_counter_get(struct aq_hw_s *aq_hw);
47 u64 hw_atl_stats_tx_dma_good_octet_counter_get(struct aq_hw_s *aq_hw);
50 u64 hw_atl_stats_tx_dma_good_pkt_counter_get(struct aq_hw_s *aq_hw);
[all …]
/Linux-v5.4/drivers/net/ethernet/aquantia/atlantic/
Daq_vec.c20 struct aq_hw_s *aq_hw; member
49 self->aq_hw, in aq_vec_poll()
61 err = self->aq_hw_ops->hw_ring_rx_receive(self->aq_hw, in aq_vec_poll()
82 self->aq_hw, in aq_vec_poll()
95 self->aq_hw_ops->hw_irq_enable(self->aq_hw, in aq_vec_poll()
166 struct aq_hw_s *aq_hw) in aq_vec_init() argument
173 self->aq_hw = aq_hw; in aq_vec_init()
181 err = self->aq_hw_ops->hw_ring_tx_init(self->aq_hw, in aq_vec_init()
191 err = self->aq_hw_ops->hw_ring_rx_init(self->aq_hw, in aq_vec_init()
201 err = self->aq_hw_ops->hw_ring_rx_fill(self->aq_hw, in aq_vec_init()
[all …]
Daq_hw_utils.c15 void aq_hw_write_reg_bit(struct aq_hw_s *aq_hw, u32 addr, u32 msk, in aq_hw_write_reg_bit() argument
21 reg_old = aq_hw_read_reg(aq_hw, addr); in aq_hw_write_reg_bit()
25 aq_hw_write_reg(aq_hw, addr, reg_new); in aq_hw_write_reg_bit()
27 aq_hw_write_reg(aq_hw, addr, val); in aq_hw_write_reg_bit()
31 u32 aq_hw_read_reg_bit(struct aq_hw_s *aq_hw, u32 addr, u32 msk, u32 shift) in aq_hw_read_reg_bit() argument
33 return ((aq_hw_read_reg(aq_hw, addr) & msk) >> shift); in aq_hw_read_reg_bit()
Daq_nic.c136 int err = self->aq_fw_ops->update_link_status(self->aq_hw); in aq_nic_update_link_status()
142 if (self->link_status.mbps != self->aq_hw->aq_link_status.mbps) { in aq_nic_update_link_status()
145 self->aq_hw->aq_link_status.mbps); in aq_nic_update_link_status()
153 self->aq_fw_ops->get_flow_control(self->aq_hw, &fc); in aq_nic_update_link_status()
155 self->aq_hw_ops->hw_set_fc(self->aq_hw, fc, 0); in aq_nic_update_link_status()
158 self->link_status = self->aq_hw->aq_link_status; in aq_nic_update_link_status()
184 self->aq_hw_ops->hw_irq_enable(self->aq_hw, in aq_linkstate_threaded_isr()
204 self->aq_fw_ops->update_stats(self->aq_hw); in aq_nic_service_task()
242 err = hw_atl_utils_initfw(self->aq_hw, &self->aq_fw_ops); in aq_nic_ndev_register()
247 err = self->aq_fw_ops->get_mac_permanent(self->aq_hw, in aq_nic_ndev_register()
[all …]
Daq_pci_func.c232 self->aq_hw = kzalloc(sizeof(*self->aq_hw), GFP_KERNEL); in aq_pci_probe()
233 if (!self->aq_hw) { in aq_pci_probe()
237 self->aq_hw->aq_nic_cfg = aq_nic_get_cfg(self); in aq_pci_probe()
255 self->aq_hw->mmio = ioremap_nocache(mmio_pa, reg_sz); in aq_pci_probe()
256 if (!self->aq_hw->mmio) { in aq_pci_probe()
302 iounmap(self->aq_hw->mmio); in aq_pci_probe()
304 kfree(self->aq_hw); in aq_pci_probe()
324 iounmap(self->aq_hw->mmio); in aq_pci_remove()
325 kfree(self->aq_hw); in aq_pci_remove()
Daq_filters.c326 struct aq_hw_s *aq_hw = aq_nic->aq_hw; in aq_add_del_fether() local
337 return aq_hw_ops->hw_filter_l2_set(aq_hw, &data); in aq_add_del_fether()
339 return aq_hw_ops->hw_filter_l2_clear(aq_hw, &data); in aq_add_del_fether()
555 static int aq_set_fl3l4(struct aq_hw_s *aq_hw, in aq_set_fl3l4() argument
562 return aq_hw_ops->hw_filter_l3l4_set(aq_hw, data); in aq_set_fl3l4()
569 struct aq_hw_s *aq_hw = aq_nic->aq_hw; in aq_add_del_fl3l4() local
577 return aq_set_fl3l4(aq_hw, aq_hw_ops, &data); in aq_add_del_fl3l4()
818 struct aq_hw_s *aq_hw = aq_nic->aq_hw; in aq_filters_vlans_update() local
835 err = aq_hw_ops->hw_filter_vlan_ctrl(aq_hw, false); in aq_filters_vlans_update()
840 err = aq_hw_ops->hw_filter_vlan_set(aq_hw, in aq_filters_vlans_update()
[all …]
Daq_ethtool.c226 err = aq_nic->aq_hw_ops->hw_rss_hash_set(aq_nic->aq_hw, in aq_ethtool_set_rss()
232 err = aq_nic->aq_hw_ops->hw_rss_set(aq_nic->aq_hw, &cfg->aq_rss); in aq_ethtool_set_rss()
406 err = aq_nic->aq_fw_ops->get_eee_rate(aq_nic->aq_hw, &rate, in aq_ethtool_get_eee()
442 err = aq_nic->aq_fw_ops->get_eee_rate(aq_nic->aq_hw, &rate, in aq_ethtool_set_eee()
457 err = aq_nic->aq_fw_ops->set_eee_rate(aq_nic->aq_hw, rate); in aq_ethtool_set_eee()
473 err = aq_nic->aq_fw_ops->renegotiate(aq_nic->aq_hw); in aq_ethtool_nway_reset()
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()
[all …]
Daq_hw_utils.h30 void aq_hw_write_reg_bit(struct aq_hw_s *aq_hw, u32 addr, u32 msk,
32 u32 aq_hw_read_reg_bit(struct aq_hw_s *aq_hw, u32 addr, u32 msk, u32 shift);
Daq_vec.h29 struct aq_hw_s *aq_hw);
Daq_drvinfo.c35 err = aq_nic->aq_fw_ops->get_phy_temp(aq_nic->aq_hw, &temp); in aq_hwmon_read()
Daq_nic.h86 struct aq_hw_s *aq_hw; member
Daq_main.c152 err = aq_nic->aq_hw_ops->hw_set_offload(aq_nic->aq_hw, in aq_ndev_set_features()