Lines Matching refs:dump_index

3426 	int dump_index = hisi_hba->debugfs_dump_index;  in debugfs_snapshot_cq_reg_v3_hw()  local
3430 memcpy(hisi_hba->debugfs_cq[dump_index][i].complete_hdr, in debugfs_snapshot_cq_reg_v3_hw()
3438 int dump_index = hisi_hba->debugfs_dump_index; in debugfs_snapshot_dq_reg_v3_hw() local
3445 debugfs_cmd_hdr = hisi_hba->debugfs_dq[dump_index][i].hdr; in debugfs_snapshot_dq_reg_v3_hw()
3456 int dump_index = hisi_hba->debugfs_dump_index; in debugfs_snapshot_port_reg_v3_hw() local
3463 databuf = hisi_hba->debugfs_port_reg[dump_index][phy_cnt].data; in debugfs_snapshot_port_reg_v3_hw()
3474 int dump_index = hisi_hba->debugfs_dump_index; in debugfs_snapshot_global_reg_v3_hw() local
3475 u32 *databuf = hisi_hba->debugfs_regs[dump_index][DEBUGFS_GLOBAL].data; in debugfs_snapshot_global_reg_v3_hw()
3484 int dump_index = hisi_hba->debugfs_dump_index; in debugfs_snapshot_axi_reg_v3_hw() local
3485 u32 *databuf = hisi_hba->debugfs_regs[dump_index][DEBUGFS_AXI].data; in debugfs_snapshot_axi_reg_v3_hw()
3495 int dump_index = hisi_hba->debugfs_dump_index; in debugfs_snapshot_ras_reg_v3_hw() local
3496 u32 *databuf = hisi_hba->debugfs_regs[dump_index][DEBUGFS_RAS].data; in debugfs_snapshot_ras_reg_v3_hw()
3506 int dump_index = hisi_hba->debugfs_dump_index; in debugfs_snapshot_itct_reg_v3_hw() local
3507 void *cachebuf = hisi_hba->debugfs_itct_cache[dump_index].cache; in debugfs_snapshot_itct_reg_v3_hw()
3508 void *databuf = hisi_hba->debugfs_itct[dump_index].itct; in debugfs_snapshot_itct_reg_v3_hw()
3524 int dump_index = hisi_hba->debugfs_dump_index; in debugfs_snapshot_iost_reg_v3_hw() local
3526 void *cachebuf = hisi_hba->debugfs_iost_cache[dump_index].cache; in debugfs_snapshot_iost_reg_v3_hw()
3527 void *databuf = hisi_hba->debugfs_iost[dump_index].iost; in debugfs_snapshot_iost_reg_v3_hw()
3784 int dump_index = hisi_hba->debugfs_dump_index; in debugfs_create_files_v3_hw() local
3792 snprintf(name, 256, "%d", dump_index); in debugfs_create_files_v3_hw()
3796 debugfs_timestamp = &hisi_hba->debugfs_timestamp[dump_index]; in debugfs_create_files_v3_hw()
3802 &hisi_hba->debugfs_regs[dump_index][DEBUGFS_GLOBAL], in debugfs_create_files_v3_hw()
3811 &hisi_hba->debugfs_port_reg[dump_index][p], in debugfs_create_files_v3_hw()
3821 &hisi_hba->debugfs_cq[dump_index][c], in debugfs_create_files_v3_hw()
3831 &hisi_hba->debugfs_dq[dump_index][d], in debugfs_create_files_v3_hw()
3836 &hisi_hba->debugfs_iost[dump_index], in debugfs_create_files_v3_hw()
3840 &hisi_hba->debugfs_iost_cache[dump_index], in debugfs_create_files_v3_hw()
3844 &hisi_hba->debugfs_itct[dump_index], in debugfs_create_files_v3_hw()
3848 &hisi_hba->debugfs_itct_cache[dump_index], in debugfs_create_files_v3_hw()
3852 &hisi_hba->debugfs_regs[dump_index][DEBUGFS_AXI], in debugfs_create_files_v3_hw()
3856 &hisi_hba->debugfs_regs[dump_index][DEBUGFS_RAS], in debugfs_create_files_v3_hw()
4513 static void debugfs_release_v3_hw(struct hisi_hba *hisi_hba, int dump_index) in debugfs_release_v3_hw() argument
4518 devm_kfree(dev, hisi_hba->debugfs_iost_cache[dump_index].cache); in debugfs_release_v3_hw()
4519 devm_kfree(dev, hisi_hba->debugfs_itct_cache[dump_index].cache); in debugfs_release_v3_hw()
4520 devm_kfree(dev, hisi_hba->debugfs_iost[dump_index].iost); in debugfs_release_v3_hw()
4521 devm_kfree(dev, hisi_hba->debugfs_itct[dump_index].itct); in debugfs_release_v3_hw()
4524 devm_kfree(dev, hisi_hba->debugfs_dq[dump_index][i].hdr); in debugfs_release_v3_hw()
4528 hisi_hba->debugfs_cq[dump_index][i].complete_hdr); in debugfs_release_v3_hw()
4531 devm_kfree(dev, hisi_hba->debugfs_regs[dump_index][i].data); in debugfs_release_v3_hw()
4534 devm_kfree(dev, hisi_hba->debugfs_port_reg[dump_index][i].data); in debugfs_release_v3_hw()
4543 static int debugfs_alloc_v3_hw(struct hisi_hba *hisi_hba, int dump_index) in debugfs_alloc_v3_hw() argument
4552 &hisi_hba->debugfs_regs[dump_index][r]; in debugfs_alloc_v3_hw()
4564 &hisi_hba->debugfs_port_reg[dump_index][p]; in debugfs_alloc_v3_hw()
4575 &hisi_hba->debugfs_cq[dump_index][c]; in debugfs_alloc_v3_hw()
4586 &hisi_hba->debugfs_dq[dump_index][d]; in debugfs_alloc_v3_hw()
4596 hisi_hba->debugfs_iost[dump_index].iost = in debugfs_alloc_v3_hw()
4598 if (!hisi_hba->debugfs_iost[dump_index].iost) in debugfs_alloc_v3_hw()
4604 hisi_hba->debugfs_iost_cache[dump_index].cache = in debugfs_alloc_v3_hw()
4606 if (!hisi_hba->debugfs_iost_cache[dump_index].cache) in debugfs_alloc_v3_hw()
4612 hisi_hba->debugfs_itct_cache[dump_index].cache = in debugfs_alloc_v3_hw()
4614 if (!hisi_hba->debugfs_itct_cache[dump_index].cache) in debugfs_alloc_v3_hw()
4620 hisi_hba->debugfs_itct[dump_index].itct = in debugfs_alloc_v3_hw()
4622 if (!hisi_hba->debugfs_itct[dump_index].itct) in debugfs_alloc_v3_hw()
4627 debugfs_release_v3_hw(hisi_hba, dump_index); in debugfs_alloc_v3_hw()