Lines Matching refs:ae_dev

556 	struct hnae3_ae_dev *ae_dev = pci_get_drvdata(priv->ae_handle->pdev);  in hns3_vector_coalesce_init()  local
574 if (ae_dev->dev_version >= HNAE3_DEVICE_VERSION_V3) { in hns3_vector_coalesce_init()
579 if (ae_dev->dev_specs.int_ql_max) { in hns3_vector_coalesce_init()
582 tx_coal->int_ql_max = ae_dev->dev_specs.int_ql_max; in hns3_vector_coalesce_init()
583 rx_coal->int_ql_max = ae_dev->dev_specs.int_ql_max; in hns3_vector_coalesce_init()
1300 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(priv->ae_handle->pdev); in hns3_tunnel_csum_bug() local
1306 if (ae_dev->dev_version >= HNAE3_DEVICE_VERSION_V3) in hns3_tunnel_csum_bug()
1488 struct hnae3_ae_dev *ae_dev; in hns3_handle_vtags() local
1500 ae_dev = pci_get_drvdata(handle->pdev); in hns3_handle_vtags()
1502 ae_dev->dev_version <= HNAE3_DEVICE_VERSION_V2 && in hns3_handle_vtags()
3095 struct hnae3_ae_dev *ae_dev; in hns3_probe() local
3098 ae_dev = devm_kzalloc(&pdev->dev, sizeof(*ae_dev), GFP_KERNEL); in hns3_probe()
3099 if (!ae_dev) in hns3_probe()
3102 ae_dev->pdev = pdev; in hns3_probe()
3103 ae_dev->flag = ent->driver_data; in hns3_probe()
3104 pci_set_drvdata(pdev, ae_dev); in hns3_probe()
3106 ret = hnae3_register_ae_dev(ae_dev); in hns3_probe()
3122 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(pdev); in hns3_clean_vf_config() local
3124 if (ae_dev->ops->clean_vf_config) in hns3_clean_vf_config()
3125 ae_dev->ops->clean_vf_config(ae_dev, num_vfs); in hns3_clean_vf_config()
3133 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(pdev); in hns3_remove() local
3138 hnae3_unregister_ae_dev(ae_dev); in hns3_remove()
3180 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(pdev); in hns3_shutdown() local
3182 hnae3_unregister_ae_dev(ae_dev); in hns3_shutdown()
3191 struct hnae3_ae_dev *ae_dev = dev_get_drvdata(dev); in hns3_suspend() local
3193 if (ae_dev && hns3_is_phys_func(ae_dev->pdev)) { in hns3_suspend()
3195 if (ae_dev->ops && ae_dev->ops->reset_prepare) in hns3_suspend()
3196 ae_dev->ops->reset_prepare(ae_dev, HNAE3_FUNC_RESET); in hns3_suspend()
3204 struct hnae3_ae_dev *ae_dev = dev_get_drvdata(dev); in hns3_resume() local
3206 if (ae_dev && hns3_is_phys_func(ae_dev->pdev)) { in hns3_resume()
3208 if (ae_dev->ops && ae_dev->ops->reset_done) in hns3_resume()
3209 ae_dev->ops->reset_done(ae_dev); in hns3_resume()
3218 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(pdev); in hns3_error_detected() local
3226 if (!ae_dev || !ae_dev->ops) { in hns3_error_detected()
3232 if (ae_dev->ops->handle_hw_ras_error) in hns3_error_detected()
3233 ret = ae_dev->ops->handle_hw_ras_error(ae_dev); in hns3_error_detected()
3242 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(pdev); in hns3_slot_reset() local
3247 if (!ae_dev || !ae_dev->ops) in hns3_slot_reset()
3250 ops = ae_dev->ops; in hns3_slot_reset()
3254 if (ae_dev->hw_err_reset_req) { in hns3_slot_reset()
3255 reset_type = ops->get_reset_level(ae_dev, in hns3_slot_reset()
3256 &ae_dev->hw_err_reset_req); in hns3_slot_reset()
3257 ops->set_default_reset_request(ae_dev, reset_type); in hns3_slot_reset()
3270 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(pdev); in hns3_reset_prepare() local
3273 if (ae_dev && ae_dev->ops && ae_dev->ops->reset_prepare) in hns3_reset_prepare()
3274 ae_dev->ops->reset_prepare(ae_dev, HNAE3_FLR_RESET); in hns3_reset_prepare()
3279 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(pdev); in hns3_reset_done() local
3282 if (ae_dev && ae_dev->ops && ae_dev->ops->reset_done) in hns3_reset_done()
3283 ae_dev->ops->reset_done(ae_dev); in hns3_reset_done()
3311 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(pdev); in hns3_set_default_feature() local
3322 if (hnae3_ae_dev_gro_supported(ae_dev)) in hns3_set_default_feature()
3325 if (hnae3_ae_dev_fd_supported(ae_dev)) in hns3_set_default_feature()
3328 if (test_bit(HNAE3_DEV_SUPPORT_UDP_GSO_B, ae_dev->caps)) in hns3_set_default_feature()
3331 if (test_bit(HNAE3_DEV_SUPPORT_HW_TX_CSUM_B, ae_dev->caps)) in hns3_set_default_feature()
3336 if (test_bit(HNAE3_DEV_SUPPORT_UDP_TUNNEL_CSUM_B, ae_dev->caps)) in hns3_set_default_feature()
3339 if (test_bit(HNAE3_DEV_SUPPORT_FD_FORWARD_TC_B, ae_dev->caps)) in hns3_set_default_feature()
3343 if (!test_bit(HNAE3_DEV_SUPPORT_VLAN_FLTR_MDF_B, ae_dev->caps)) in hns3_set_default_feature()
3357 if (ae_dev->dev_version > HNAE3_DEVICE_VERSION_V2) { in hns3_set_default_feature()
3973 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(pdev); in hns3_parse_vlan_tag() local
3975 if (unlikely(ae_dev->dev_version < HNAE3_DEVICE_VERSION_V2)) { in hns3_parse_vlan_tag()
4744 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(priv->ae_handle->pdev); in hns3_nic_init_coal_cfg() local
4764 if (ae_dev->dev_specs.int_ql_max) { in hns3_nic_init_coal_cfg()
5223 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(priv->ae_handle->pdev); in hns3_set_cq_period_mode() local
5239 if (hnae3_ae_dev_cq_supported(ae_dev)) { in hns3_set_cq_period_mode()
5261 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(handle->pdev); in hns3_state_init() local
5267 if (test_bit(HNAE3_DEV_SUPPORT_TX_PUSH_B, ae_dev->caps)) in hns3_state_init()
5270 if (ae_dev->dev_version >= HNAE3_DEVICE_VERSION_V3) in hns3_state_init()
5273 if (test_bit(HNAE3_DEV_SUPPORT_HW_TX_CSUM_B, ae_dev->caps)) in hns3_state_init()
5276 if (hnae3_ae_dev_rxd_adv_layout_supported(ae_dev)) in hns3_state_init()
5290 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(pdev); in hns3_client_init() local
5307 priv->max_non_tso_bd_num = ae_dev->dev_specs.max_non_tso_bd_num; in hns3_client_init()
5388 netdev->max_mtu = HNS3_MAX_MTU(ae_dev->dev_specs.max_frm_size); in hns3_client_init()