Home
last modified time | relevance | path

Searched refs:dev_specs (Results 1 – 10 of 10) sorted by relevance

/linux/drivers/net/ethernet/hisilicon/hns3/
H A Dhns3_debugfs.c1052 struct hnae3_dev_specs *dev_specs = &ae_dev->dev_specs; in hns3_dbg_dev_specs() local
1058 dev_specs->mac_entry_num); in hns3_dbg_dev_specs()
1060 dev_specs->mng_entry_num); in hns3_dbg_dev_specs()
1062 dev_specs->max_non_tso_bd_num); in hns3_dbg_dev_specs()
1064 dev_specs->rss_ind_tbl_size); in hns3_dbg_dev_specs()
1066 dev_specs->rss_key_size); in hns3_dbg_dev_specs()
1084 dev_specs->int_ql_max); in hns3_dbg_dev_specs()
1086 dev_specs->max_int_gl); in hns3_dbg_dev_specs()
1088 dev_specs->max_tm_rate); in hns3_dbg_dev_specs()
1090 dev_specs->max_qset_num); in hns3_dbg_dev_specs()
[all …]
H A Dhns3_ethtool.c956 return ae_dev->dev_specs.rss_ind_tbl_size; in hns3_get_rss_indir_size()
1402 if (cmd->rx_coalesce_usecs > ae_dev->dev_specs.max_int_gl) { in hns3_check_gl_coalesce_para()
1405 ae_dev->dev_specs.max_int_gl); in hns3_check_gl_coalesce_para()
1409 if (cmd->tx_coalesce_usecs > ae_dev->dev_specs.max_int_gl) { in hns3_check_gl_coalesce_para()
1412 ae_dev->dev_specs.max_int_gl); in hns3_check_gl_coalesce_para()
1474 !ae_dev->dev_specs.int_ql_max) { in hns3_check_ql_coalesce_param()
1479 if (cmd->tx_max_coalesced_frames > ae_dev->dev_specs.int_ql_max || in hns3_check_ql_coalesce_param()
1480 cmd->rx_max_coalesced_frames > ae_dev->dev_specs.int_ql_max) { in hns3_check_ql_coalesce_param()
1483 ae_dev->dev_specs.int_ql_max); in hns3_check_ql_coalesce_param()
H A Dhnae3.h433 struct hnae3_dev_specs dev_specs; member
H A Dhns3_enet.c579 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()
4764 if (ae_dev->dev_specs.int_ql_max) { in hns3_nic_init_coal_cfg()
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()
/linux/drivers/net/ethernet/hisilicon/hns3/hns3vf/
H A Dhclgevf_main.c582 hdev->ae_dev->dev_specs.rss_ind_tbl_size); in hclgevf_get_rss()
602 for (i = 0; i < hdev->ae_dev->dev_specs.rss_ind_tbl_size; i++) in hclgevf_set_rss()
2693 ae_dev->dev_specs.max_non_tso_bd_num = in hclgevf_set_default_dev_specs()
2695 ae_dev->dev_specs.rss_ind_tbl_size = HCLGEVF_RSS_IND_TBL_SIZE; in hclgevf_set_default_dev_specs()
2696 ae_dev->dev_specs.rss_key_size = HCLGE_COMM_RSS_KEY_SIZE; in hclgevf_set_default_dev_specs()
2697 ae_dev->dev_specs.max_int_gl = HCLGEVF_DEF_MAX_INT_GL; in hclgevf_set_default_dev_specs()
2698 ae_dev->dev_specs.max_frm_size = HCLGEVF_MAC_MAX_FRAME; in hclgevf_set_default_dev_specs()
2711 ae_dev->dev_specs.max_non_tso_bd_num = req0->max_non_tso_bd_num; in hclgevf_parse_dev_specs()
2712 ae_dev->dev_specs.rss_ind_tbl_size = in hclgevf_parse_dev_specs()
2714 ae_dev->dev_specs.int_ql_max = le16_to_cpu(req0->int_ql_max); in hclgevf_parse_dev_specs()
[all …]
/linux/drivers/net/ethernet/hisilicon/hns3/hns3_common/
H A Dhclge_comm_rss.c38 u16 rss_ind_tbl_size = ae_dev->dev_specs.rss_ind_tbl_size; in hclge_comm_rss_init_cfg()
223 for (i = 0; i < ae_dev->dev_specs.rss_ind_tbl_size; i++) in hclge_comm_rss_indir_init_cfg()
288 rss_cfg_tbl_num = ae_dev->dev_specs.rss_ind_tbl_size / in hclge_comm_set_rss_indir_table()
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_main.c479 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()
[all …]
H A Dhclge_tm.c474 hdev->ae_dev->dev_specs.max_tm_rate); in hclge_tm_port_shaper_cfg()
598 max_tx_rate = hdev->ae_dev->dev_specs.max_tm_rate; in hclge_tm_qs_shaper_cfg()
602 hdev->ae_dev->dev_specs.max_tm_rate); in hclge_tm_qs_shaper_cfg()
801 hdev->ae_dev->dev_specs.max_tm_rate; in hclge_tm_pg_info_init()
885 u32 max_tm_rate = hdev->ae_dev->dev_specs.max_tm_rate; in hclge_tm_pg_shaper_cfg()
1047 u32 max_tm_rate = hdev->ae_dev->dev_specs.max_tm_rate; in hclge_tm_pri_tc_base_shaper_cfg()
1098 hdev->ae_dev->dev_specs.max_tm_rate); in hclge_tm_pri_vnet_base_shaper_pri_cfg()
1128 u32 max_tm_rate = hdev->ae_dev->dev_specs.max_tm_rate; in hclge_tm_pri_vnet_base_shaper_qs_cfg()
H A Dhclge_regs.c419 HCLGE_REG_TLV_SIZE) * ae_dev->dev_specs.tnl_num; in hclge_get_dfx_reg_len()
434 for (i = HCLGE_REG_RPU_TNL_ID_0; i <= ae_dev->dev_specs.tnl_num; i++) { in hclge_get_dfx_rpu_tnl_reg()
H A Dhclge_err.c1611 loop_time = min(hdev->ae_dev->dev_specs.tnl_num, in hclge_query_reg_info_of_ssu()