/Linux-v4.19/drivers/net/ethernet/aquantia/atlantic/hw_atl/ |
D | hw_atl_llh.c | 19 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 22 aq_hw_write_reg(aq_hw, HW_ATL_GLB_CPU_SEM_ADR(semaphore), glb_cpu_sem); in hw_atl_reg_glb_cpu_sem_set() 25 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 27 return aq_hw_read_reg(aq_hw, HW_ATL_GLB_CPU_SEM_ADR(semaphore)); in hw_atl_reg_glb_cpu_sem_get() 30 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 32 aq_hw_write_reg_bit(aq_hw, HW_ATL_GLB_REG_RES_DIS_ADR, in hw_atl_glb_glb_reg_res_dis_set() 38 void hw_atl_glb_soft_res_set(struct aq_hw_s *aq_hw, u32 soft_res) in hw_atl_glb_soft_res_set() argument 40 aq_hw_write_reg_bit(aq_hw, HW_ATL_GLB_SOFT_RES_ADR, in hw_atl_glb_soft_res_set() 45 u32 hw_atl_glb_soft_res_get(struct aq_hw_s *aq_hw) in hw_atl_glb_soft_res_get() argument 47 return aq_hw_read_reg_bit(aq_hw, HW_ATL_GLB_SOFT_RES_ADR, in hw_atl_glb_soft_res_get() [all …]
|
D | hw_atl_llh.h | 24 void hw_atl_reg_glb_cpu_sem_set(struct aq_hw_s *aq_hw, u32 glb_cpu_sem, 28 u32 hw_atl_reg_glb_cpu_sem_get(struct aq_hw_s *aq_hw, u32 semaphore); 31 void hw_atl_glb_glb_reg_res_dis_set(struct aq_hw_s *aq_hw, u32 glb_reg_res_dis); 34 void hw_atl_glb_soft_res_set(struct aq_hw_s *aq_hw, u32 soft_res); 37 u32 hw_atl_glb_soft_res_get(struct aq_hw_s *aq_hw); 41 u32 hw_atl_rpb_rx_dma_drop_pkt_cnt_get(struct aq_hw_s *aq_hw); 44 u32 hw_atl_stats_rx_dma_good_octet_counterlsw_get(struct aq_hw_s *aq_hw); 47 u32 hw_atl_stats_rx_dma_good_pkt_counterlsw_get(struct aq_hw_s *aq_hw); 50 u32 hw_atl_stats_tx_dma_good_octet_counterlsw_get(struct aq_hw_s *aq_hw); 53 u32 hw_atl_stats_tx_dma_good_pkt_counterlsw_get(struct aq_hw_s *aq_hw); [all …]
|
/Linux-v4.19/drivers/net/ethernet/aquantia/atlantic/ |
D | aq_vec.c | 23 struct aq_hw_s *aq_hw; member 52 self->aq_hw, in aq_vec_poll() 64 err = self->aq_hw_ops->hw_ring_rx_receive(self->aq_hw, in aq_vec_poll() 85 self->aq_hw, in aq_vec_poll() 97 self->aq_hw_ops->hw_irq_enable(self->aq_hw, in aq_vec_poll() 168 struct aq_hw_s *aq_hw) in aq_vec_init() argument 175 self->aq_hw = aq_hw; in aq_vec_init() 183 err = self->aq_hw_ops->hw_ring_tx_init(self->aq_hw, in aq_vec_init() 193 err = self->aq_hw_ops->hw_ring_rx_init(self->aq_hw, in aq_vec_init() 203 err = self->aq_hw_ops->hw_ring_rx_fill(self->aq_hw, in aq_vec_init() [all …]
|
D | aq_hw_utils.c | 18 void aq_hw_write_reg_bit(struct aq_hw_s *aq_hw, u32 addr, u32 msk, in aq_hw_write_reg_bit() argument 24 reg_old = aq_hw_read_reg(aq_hw, addr); in aq_hw_write_reg_bit() 28 aq_hw_write_reg(aq_hw, addr, reg_new); in aq_hw_write_reg_bit() 30 aq_hw_write_reg(aq_hw, addr, val); in aq_hw_write_reg_bit() 34 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 36 return ((aq_hw_read_reg(aq_hw, addr) & msk) >> shift); in aq_hw_read_reg_bit()
|
D | aq_nic.c | 126 int err = self->aq_fw_ops->update_link_status(self->aq_hw); in aq_nic_update_link_status() 131 if (self->link_status.mbps != self->aq_hw->aq_link_status.mbps) { in aq_nic_update_link_status() 134 self->aq_hw->aq_link_status.mbps); in aq_nic_update_link_status() 138 self->link_status = self->aq_hw->aq_link_status; in aq_nic_update_link_status() 169 self->aq_fw_ops->update_stats(self->aq_hw); in aq_nic_service_timer_cb() 204 err = hw_atl_utils_initfw(self->aq_hw, &self->aq_fw_ops); in aq_nic_ndev_register() 208 err = self->aq_fw_ops->get_mac_permanent(self->aq_hw, in aq_nic_ndev_register() 278 err = self->aq_hw_ops->hw_reset(self->aq_hw); in aq_nic_init() 282 err = self->aq_hw_ops->hw_init(self->aq_hw, in aq_nic_init() 289 aq_vec_init(aq_vec, self->aq_hw_ops, self->aq_hw); in aq_nic_init() [all …]
|
D | aq_pci_func.c | 228 self->aq_hw = kzalloc(sizeof(*self->aq_hw), GFP_KERNEL); in aq_pci_probe() 229 if (!self->aq_hw) { in aq_pci_probe() 233 self->aq_hw->aq_nic_cfg = aq_nic_get_cfg(self); in aq_pci_probe() 251 self->aq_hw->mmio = ioremap_nocache(mmio_pa, reg_sz); in aq_pci_probe() 252 if (!self->aq_hw->mmio) { in aq_pci_probe() 295 iounmap(self->aq_hw->mmio); in aq_pci_probe() 297 kfree(self->aq_hw); in aq_pci_probe() 316 iounmap(self->aq_hw->mmio); in aq_pci_remove() 317 kfree(self->aq_hw); in aq_pci_remove()
|
D | aq_ethtool.c | 296 return aq_nic->aq_fw_ops->renegotiate(aq_nic->aq_hw); in aq_ethtool_nway_reset() 308 if (aq_nic->aq_hw->aq_nic_cfg->flow_control & AQ_NIC_FC_RX) in aq_ethtool_get_pauseparam() 310 if (aq_nic->aq_hw->aq_nic_cfg->flow_control & AQ_NIC_FC_TX) in aq_ethtool_get_pauseparam() 327 aq_nic->aq_hw->aq_nic_cfg->flow_control |= AQ_NIC_FC_RX; in aq_ethtool_set_pauseparam() 329 aq_nic->aq_hw->aq_nic_cfg->flow_control &= ~AQ_NIC_FC_RX; in aq_ethtool_set_pauseparam() 332 aq_nic->aq_hw->aq_nic_cfg->flow_control |= AQ_NIC_FC_TX; in aq_ethtool_set_pauseparam() 334 aq_nic->aq_hw->aq_nic_cfg->flow_control &= ~AQ_NIC_FC_TX; in aq_ethtool_set_pauseparam() 336 err = aq_nic->aq_fw_ops->set_flow_control(aq_nic->aq_hw); in aq_ethtool_set_pauseparam()
|
D | aq_hw_utils.h | 43 void aq_hw_write_reg_bit(struct aq_hw_s *aq_hw, u32 addr, u32 msk, 45 u32 aq_hw_read_reg_bit(struct aq_hw_s *aq_hw, u32 addr, u32 msk, u32 shift);
|
D | aq_vec.h | 32 struct aq_hw_s *aq_hw);
|
D | aq_nic.h | 64 struct aq_hw_s *aq_hw; member
|