Lines Matching refs:ae_dev

85 	struct hnae3_ae_dev *ae_dev = pci_get_drvdata(h->pdev);  in hns3_lp_setup()  local
105 if (ret || ae_dev->dev_version >= HNAE3_DEVICE_VERSION_V2) in hns3_lp_setup()
153 struct hnae3_ae_dev *ae_dev; in hns3_lp_setup_skb() local
170 ae_dev = pci_get_drvdata(handle->pdev); in hns3_lp_setup_skb()
171 if (ae_dev->dev_version < HNAE3_DEVICE_VERSION_V2) in hns3_lp_setup_skb()
700 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(h->pdev); in hns3_get_pauseparam() local
702 if (!test_bit(HNAE3_DEV_SUPPORT_PAUSE_B, ae_dev->caps)) in hns3_get_pauseparam()
714 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(h->pdev); in hns3_set_pauseparam() local
716 if (!test_bit(HNAE3_DEV_SUPPORT_PAUSE_B, ae_dev->caps)) in hns3_set_pauseparam()
759 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(h->pdev); in hns3_get_link_ksettings() local
790 if (test_bit(HNAE3_DEV_SUPPORT_PHY_IMP_B, ae_dev->caps) && in hns3_get_link_ksettings()
867 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(handle->pdev); in hns3_set_link_ksettings() local
875 if (cmd->lanes && !hnae3_ae_dev_lane_num_supported(ae_dev)) in hns3_set_link_ksettings()
891 } else if (test_bit(HNAE3_DEV_SUPPORT_PHY_IMP_B, ae_dev->caps) && in hns3_set_link_ksettings()
896 if (ae_dev->dev_version < HNAE3_DEVICE_VERSION_V2) in hns3_set_link_ksettings()
938 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(h->pdev); in hns3_get_rss_indir_size() local
940 return ae_dev->dev_specs.rss_ind_tbl_size; in hns3_get_rss_indir_size()
958 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(h->pdev); in hns3_set_rss() local
963 if ((ae_dev->dev_version < HNAE3_DEVICE_VERSION_V2 && in hns3_set_rss()
1025 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(h->pdev); in hns3_set_reset() local
1055 ae_dev->dev_version <= HNAE3_DEVICE_VERSION_V2)) in hns3_set_reset()
1060 ops->set_default_reset_request(ae_dev, rst_type); in hns3_set_reset()
1190 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(h->pdev); in hns3_set_tx_push() local
1193 if (!test_bit(HNAE3_DEV_SUPPORT_TX_PUSH_B, ae_dev->caps) && tx_push) in hns3_set_tx_push()
1378 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(handle->pdev); in hns3_check_gl_coalesce_para() local
1381 if (cmd->rx_coalesce_usecs > ae_dev->dev_specs.max_int_gl) { in hns3_check_gl_coalesce_para()
1384 ae_dev->dev_specs.max_int_gl); in hns3_check_gl_coalesce_para()
1388 if (cmd->tx_coalesce_usecs > ae_dev->dev_specs.max_int_gl) { in hns3_check_gl_coalesce_para()
1391 ae_dev->dev_specs.max_int_gl); in hns3_check_gl_coalesce_para()
1398 if (ae_dev->dev_version >= HNAE3_DEVICE_VERSION_V3) in hns3_check_gl_coalesce_para()
1450 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(handle->pdev); in hns3_check_ql_coalesce_param() local
1453 !ae_dev->dev_specs.int_ql_max) { in hns3_check_ql_coalesce_param()
1458 if (cmd->tx_max_coalesced_frames > ae_dev->dev_specs.int_ql_max || in hns3_check_ql_coalesce_param()
1459 cmd->rx_max_coalesced_frames > ae_dev->dev_specs.int_ql_max) { in hns3_check_ql_coalesce_param()
1462 ae_dev->dev_specs.int_ql_max); in hns3_check_ql_coalesce_param()
1474 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(handle->pdev); in hns3_check_cqe_coalesce_param() local
1477 !hnae3_ae_dev_cq_supported(ae_dev)) { in hns3_check_cqe_coalesce_param()
1650 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(handle->pdev); in hns3_get_fec_stats() local
1653 if (!hnae3_ae_dev_fec_stats_supported(ae_dev) || !ops->get_fec_stats) in hns3_get_fec_stats()
1701 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(handle->pdev); in hns3_get_fecparam() local
1706 if (!test_bit(HNAE3_DEV_SUPPORT_FEC_B, ae_dev->caps)) in hns3_get_fecparam()
1726 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(handle->pdev); in hns3_set_fecparam() local
1730 if (!test_bit(HNAE3_DEV_SUPPORT_FEC_B, ae_dev->caps)) in hns3_set_fecparam()
1748 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(handle->pdev); in hns3_get_module_info() local
1753 if (ae_dev->dev_version < HNAE3_DEVICE_VERSION_V2 || in hns3_get_module_info()
1798 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(handle->pdev); in hns3_get_module_eeprom() local
1801 if (ae_dev->dev_version < HNAE3_DEVICE_VERSION_V2 || in hns3_get_module_eeprom()