Lines Matching refs:dev_specs

479 	u32 reg_num = hdev->ae_dev->dev_specs.mac_stats_num;  in hclge_mac_update_stats_complete()
559 if (hdev->ae_dev->dev_specs.mac_stats_num) in hclge_mac_update_stats()
573 if (strs[i].stats_num <= hdev->ae_dev->dev_specs.mac_stats_num) in hclge_comm_get_count()
587 if (strs[i].stats_num > hdev->ae_dev->dev_specs.mac_stats_num) in hclge_comm_get_stats()
608 if (strs[i].stats_num > hdev->ae_dev->dev_specs.mac_stats_num) in hclge_comm_get_strings()
693 if (hdev->ae_dev->dev_specs.hilink_version != in hclge_get_sset_count()
1377 ae_dev->dev_specs.max_non_tso_bd_num = HCLGE_MAX_NON_TSO_BD_NUM; in hclge_set_default_dev_specs()
1378 ae_dev->dev_specs.rss_ind_tbl_size = HCLGE_RSS_IND_TBL_SIZE; in hclge_set_default_dev_specs()
1379 ae_dev->dev_specs.rss_key_size = HCLGE_COMM_RSS_KEY_SIZE; in hclge_set_default_dev_specs()
1380 ae_dev->dev_specs.max_tm_rate = HCLGE_ETHER_MAX_RATE; in hclge_set_default_dev_specs()
1381 ae_dev->dev_specs.max_int_gl = HCLGE_DEF_MAX_INT_GL; in hclge_set_default_dev_specs()
1382 ae_dev->dev_specs.max_frm_size = HCLGE_MAC_MAX_FRAME; in hclge_set_default_dev_specs()
1383 ae_dev->dev_specs.max_qset_num = HCLGE_MAX_QSET_NUM; in hclge_set_default_dev_specs()
1384 ae_dev->dev_specs.umv_size = HCLGE_DEFAULT_UMV_SPACE_PER_PF; in hclge_set_default_dev_specs()
1385 ae_dev->dev_specs.tnl_num = 0; in hclge_set_default_dev_specs()
1398 ae_dev->dev_specs.max_non_tso_bd_num = req0->max_non_tso_bd_num; in hclge_parse_dev_specs()
1399 ae_dev->dev_specs.rss_ind_tbl_size = in hclge_parse_dev_specs()
1401 ae_dev->dev_specs.int_ql_max = le16_to_cpu(req0->int_ql_max); in hclge_parse_dev_specs()
1402 ae_dev->dev_specs.rss_key_size = le16_to_cpu(req0->rss_key_size); in hclge_parse_dev_specs()
1403 ae_dev->dev_specs.max_tm_rate = le32_to_cpu(req0->max_tm_rate); in hclge_parse_dev_specs()
1404 ae_dev->dev_specs.max_qset_num = le16_to_cpu(req1->max_qset_num); in hclge_parse_dev_specs()
1405 ae_dev->dev_specs.max_int_gl = le16_to_cpu(req1->max_int_gl); in hclge_parse_dev_specs()
1406 ae_dev->dev_specs.max_frm_size = le16_to_cpu(req1->max_frm_size); in hclge_parse_dev_specs()
1407 ae_dev->dev_specs.umv_size = le16_to_cpu(req1->umv_size); in hclge_parse_dev_specs()
1408 ae_dev->dev_specs.mc_mac_size = le16_to_cpu(req1->mc_mac_size); in hclge_parse_dev_specs()
1409 ae_dev->dev_specs.tnl_num = req1->tnl_num; in hclge_parse_dev_specs()
1410 ae_dev->dev_specs.hilink_version = req1->hilink_version; in hclge_parse_dev_specs()
1415 struct hnae3_dev_specs *dev_specs = &hdev->ae_dev->dev_specs; in hclge_check_dev_specs() local
1417 if (!dev_specs->max_non_tso_bd_num) in hclge_check_dev_specs()
1418 dev_specs->max_non_tso_bd_num = HCLGE_MAX_NON_TSO_BD_NUM; in hclge_check_dev_specs()
1419 if (!dev_specs->rss_ind_tbl_size) in hclge_check_dev_specs()
1420 dev_specs->rss_ind_tbl_size = HCLGE_RSS_IND_TBL_SIZE; in hclge_check_dev_specs()
1421 if (!dev_specs->rss_key_size) in hclge_check_dev_specs()
1422 dev_specs->rss_key_size = HCLGE_COMM_RSS_KEY_SIZE; in hclge_check_dev_specs()
1423 if (!dev_specs->max_tm_rate) in hclge_check_dev_specs()
1424 dev_specs->max_tm_rate = HCLGE_ETHER_MAX_RATE; in hclge_check_dev_specs()
1425 if (!dev_specs->max_qset_num) in hclge_check_dev_specs()
1426 dev_specs->max_qset_num = HCLGE_MAX_QSET_NUM; in hclge_check_dev_specs()
1427 if (!dev_specs->max_int_gl) in hclge_check_dev_specs()
1428 dev_specs->max_int_gl = HCLGE_DEF_MAX_INT_GL; in hclge_check_dev_specs()
1429 if (!dev_specs->max_frm_size) in hclge_check_dev_specs()
1430 dev_specs->max_frm_size = HCLGE_MAC_MAX_FRAME; in hclge_check_dev_specs()
1431 if (!dev_specs->umv_size) in hclge_check_dev_specs()
1432 dev_specs->umv_size = HCLGE_DEFAULT_UMV_SPACE_PER_PF; in hclge_check_dev_specs()
1444 hdev->ae_dev->dev_specs.mac_stats_num = reg_num; in hclge_query_mac_stats_num()
1568 hdev->wanted_umv_size = hdev->ae_dev->dev_specs.umv_size; in hclge_configure()
4829 ae_dev->dev_specs.rss_ind_tbl_size); in hclge_get_rss()
4850 for (i = 0; i < ae_dev->dev_specs.rss_ind_tbl_size; i++) in hclge_set_rss()
4927 if (rss_size > ae_dev->dev_specs.rss_ind_tbl_size || in hclge_init_rss_tc_mode()
8423 if (hdev->ae_dev->dev_specs.mc_mac_size) in hclge_init_umv_space()
8722 hdev->ae_dev->dev_specs.mc_mac_size) in hclge_add_mc_addr_common()
10694 max_frm_size > hdev->ae_dev->dev_specs.max_frm_size) in hclge_set_vport_mtu()
12415 rss_indir = kcalloc(ae_dev->dev_specs.rss_ind_tbl_size, sizeof(u32), in hclge_set_channels()
12420 for (i = 0; i < ae_dev->dev_specs.rss_ind_tbl_size; i++) in hclge_set_channels()