Home
last modified time | relevance | path

Searched refs:entries_per_desc (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.10/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_debugfs.c77 int entries_per_desc; in hclge_dbg_get_dfx_bd_num() local
88 entries_per_desc = ARRAY_SIZE(desc[0].data); in hclge_dbg_get_dfx_bd_num()
89 index = offset % entries_per_desc; in hclge_dbg_get_dfx_bd_num()
90 return le32_to_cpu(desc[offset / entries_per_desc].data[index]); in hclge_dbg_get_dfx_bd_num()
128 int entries_per_desc; in hclge_dbg_dump_reg_common() local
158 entries_per_desc = ARRAY_SIZE(desc->data); in hclge_dbg_dump_reg_common()
159 min_num = min_t(int, bd_num * entries_per_desc, reg_msg->msg_num); in hclge_dbg_dump_reg_common()
163 if (i > 0 && (i % entries_per_desc) == 0) in hclge_dbg_dump_reg_common()
168 le32_to_cpu(desc->data[i % entries_per_desc])); in hclge_dbg_dump_reg_common()
Dhclge_main.c10862 u32 entries_per_desc, desc_index, index, offset, i; in hclge_get_dfx_reg_bd_num() local
10873 entries_per_desc = ARRAY_SIZE(desc[0].data); in hclge_get_dfx_reg_bd_num()
10876 index = offset % entries_per_desc; in hclge_get_dfx_reg_bd_num()
10877 desc_index = offset / entries_per_desc; in hclge_get_dfx_reg_bd_num()
10911 int entries_per_desc, reg_num, separator_num, desc_index, index, i; in hclge_dfx_reg_fetch_data() local
10915 entries_per_desc = ARRAY_SIZE(desc->data); in hclge_dfx_reg_fetch_data()
10916 reg_num = entries_per_desc * bd_num; in hclge_dfx_reg_fetch_data()
10919 index = i % entries_per_desc; in hclge_dfx_reg_fetch_data()
10920 desc_index = i / entries_per_desc; in hclge_dfx_reg_fetch_data()