Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_regs.c302 u32 entries_per_desc, desc_index, index, offset, i; in hclge_get_dfx_reg_bd_num() local
313 entries_per_desc = ARRAY_SIZE(desc[0].data); in hclge_get_dfx_reg_bd_num()
316 index = offset % entries_per_desc; in hclge_get_dfx_reg_bd_num()
317 desc_index = offset / entries_per_desc; in hclge_get_dfx_reg_bd_num()
373 int entries_per_desc, reg_num, desc_index, index, i; in hclge_dfx_reg_fetch_data() local
377 entries_per_desc = ARRAY_SIZE(desc->data); in hclge_dfx_reg_fetch_data()
378 reg_num = entries_per_desc * bd_num; in hclge_dfx_reg_fetch_data()
380 index = i % entries_per_desc; in hclge_dfx_reg_fetch_data()
381 desc_index = i / entries_per_desc; in hclge_dfx_reg_fetch_data()
Dhclge_debugfs.c780 int entries_per_desc; in hclge_dbg_get_dfx_bd_num() local
792 entries_per_desc = ARRAY_SIZE(desc[0].data); in hclge_dbg_get_dfx_bd_num()
793 index = offset % entries_per_desc; in hclge_dbg_get_dfx_bd_num()
795 *bd_num = le32_to_cpu(desc[offset / entries_per_desc].data[index]); in hclge_dbg_get_dfx_bd_num()