Lines Matching refs:ae_dev

88 	struct hnae3_ae_dev *ae_dev = pci_get_drvdata(h->pdev);  in hns3_lp_setup()  local
108 if (ret || ae_dev->dev_version >= HNAE3_DEVICE_VERSION_V2) in hns3_lp_setup()
156 struct hnae3_ae_dev *ae_dev; in hns3_lp_setup_skb() local
173 ae_dev = pci_get_drvdata(handle->pdev); in hns3_lp_setup_skb()
174 if (ae_dev->dev_version < HNAE3_DEVICE_VERSION_V2) in hns3_lp_setup_skb()
714 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(h->pdev); in hns3_get_pauseparam() local
716 if (!test_bit(HNAE3_DEV_SUPPORT_PAUSE_B, ae_dev->caps)) in hns3_get_pauseparam()
728 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(h->pdev); in hns3_set_pauseparam() local
730 if (!test_bit(HNAE3_DEV_SUPPORT_PAUSE_B, ae_dev->caps)) in hns3_set_pauseparam()
773 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(h->pdev); in hns3_get_link_ksettings() local
806 if (test_bit(HNAE3_DEV_SUPPORT_PHY_IMP_B, ae_dev->caps) && in hns3_get_link_ksettings()
883 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(handle->pdev); in hns3_set_link_ksettings() local
891 if (cmd->lanes && !hnae3_ae_dev_lane_num_supported(ae_dev)) in hns3_set_link_ksettings()
907 } else if (test_bit(HNAE3_DEV_SUPPORT_PHY_IMP_B, ae_dev->caps) && in hns3_set_link_ksettings()
912 if (ae_dev->dev_version < HNAE3_DEVICE_VERSION_V2) in hns3_set_link_ksettings()
954 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(h->pdev); in hns3_get_rss_indir_size() local
956 return ae_dev->dev_specs.rss_ind_tbl_size; in hns3_get_rss_indir_size()
974 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(h->pdev); in hns3_set_rss() local
979 if ((ae_dev->dev_version < HNAE3_DEVICE_VERSION_V2 && in hns3_set_rss()
1041 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(h->pdev); in hns3_set_reset() local
1071 ae_dev->dev_version <= HNAE3_DEVICE_VERSION_V2)) in hns3_set_reset()
1076 ops->set_default_reset_request(ae_dev, rst_type); in hns3_set_reset()
1206 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(h->pdev); in hns3_set_tx_push() local
1209 if (!test_bit(HNAE3_DEV_SUPPORT_TX_PUSH_B, ae_dev->caps) && tx_push) in hns3_set_tx_push()
1394 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(handle->pdev); in hns3_check_gl_coalesce_para() local
1397 if (cmd->rx_coalesce_usecs > ae_dev->dev_specs.max_int_gl) { in hns3_check_gl_coalesce_para()
1400 ae_dev->dev_specs.max_int_gl); in hns3_check_gl_coalesce_para()
1404 if (cmd->tx_coalesce_usecs > ae_dev->dev_specs.max_int_gl) { in hns3_check_gl_coalesce_para()
1407 ae_dev->dev_specs.max_int_gl); in hns3_check_gl_coalesce_para()
1414 if (ae_dev->dev_version >= HNAE3_DEVICE_VERSION_V3) in hns3_check_gl_coalesce_para()
1466 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(handle->pdev); in hns3_check_ql_coalesce_param() local
1469 !ae_dev->dev_specs.int_ql_max) { in hns3_check_ql_coalesce_param()
1474 if (cmd->tx_max_coalesced_frames > ae_dev->dev_specs.int_ql_max || in hns3_check_ql_coalesce_param()
1475 cmd->rx_max_coalesced_frames > ae_dev->dev_specs.int_ql_max) { in hns3_check_ql_coalesce_param()
1478 ae_dev->dev_specs.int_ql_max); in hns3_check_ql_coalesce_param()
1490 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(handle->pdev); in hns3_check_cqe_coalesce_param() local
1493 !hnae3_ae_dev_cq_supported(ae_dev)) { in hns3_check_cqe_coalesce_param()
1666 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(handle->pdev); in hns3_get_fec_stats() local
1669 if (!hnae3_ae_dev_fec_stats_supported(ae_dev) || !ops->get_fec_stats) in hns3_get_fec_stats()
1717 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(handle->pdev); in hns3_get_fecparam() local
1722 if (!test_bit(HNAE3_DEV_SUPPORT_FEC_B, ae_dev->caps)) in hns3_get_fecparam()
1742 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(handle->pdev); in hns3_set_fecparam() local
1746 if (!test_bit(HNAE3_DEV_SUPPORT_FEC_B, ae_dev->caps)) in hns3_set_fecparam()
1764 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(handle->pdev); in hns3_get_module_info() local
1769 if (ae_dev->dev_version < HNAE3_DEVICE_VERSION_V2 || in hns3_get_module_info()
1814 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(handle->pdev); in hns3_get_module_eeprom() local
1817 if (ae_dev->dev_version < HNAE3_DEVICE_VERSION_V2 || in hns3_get_module_eeprom()
2086 struct hnae3_ae_dev *ae_dev = hns3_get_ae_dev(handle); in hns3_get_wol() local
2088 if (!hnae3_ae_dev_wol_supported(ae_dev)) in hns3_get_wol()
2099 struct hnae3_ae_dev *ae_dev = hns3_get_ae_dev(handle); in hns3_set_wol() local
2101 if (!hnae3_ae_dev_wol_supported(ae_dev)) in hns3_set_wol()