Lines Matching full:clients
284 struct qed_ilt_client_cfg *p_cli = &p_mngr->clients[ilt_client]; in qed_cxt_get_ilt_page_size()
319 u32 page_sz = p_mgr->clients[ILT_CLI_CDUC].p_size.val; in qed_cxt_set_proto_cid_count()
416 p_cli = &p_hwfn->p_cxt_mngr->clients[ILT_CLI_CDUC]; in qed_ilt_get_dynamic_line_cnt()
444 struct qed_ilt_client_cfg *clients = p_hwfn->p_cxt_mngr->clients; in qed_cxt_ilt_blk_reset() local
449 clients[cli_idx].pf_blks[blk_idx].total_size = 0; in qed_cxt_ilt_blk_reset()
452 clients[cli_idx].vf_blks[blk_idx].total_size = 0; in qed_cxt_ilt_blk_reset()
485 p_cli = qed_cxt_set_cli(&p_mngr->clients[ILT_CLI_CDUC]); in qed_cxt_cfg_ilt_compute()
492 /* get the counters for the CDUC and QM clients */ in qed_cxt_cfg_ilt_compute()
523 p_cli = qed_cxt_set_cli(&p_mngr->clients[ILT_CLI_CDUT]); in qed_cxt_cfg_ilt_compute()
631 p_cli = qed_cxt_set_cli(&p_mngr->clients[ILT_CLI_QM]); in qed_cxt_cfg_ilt_compute()
656 p_cli = qed_cxt_set_cli(&p_mngr->clients[ILT_CLI_SRC]); in qed_cxt_cfg_ilt_compute()
681 p_cli = qed_cxt_set_cli(&p_mngr->clients[ILT_CLI_TM]); in qed_cxt_cfg_ilt_compute()
714 p_cli = qed_cxt_set_cli(&p_mngr->clients[ILT_CLI_TSDM]); in qed_cxt_cfg_ilt_compute()
752 p_cli = &p_mngr->clients[ILT_CLI_CDUT]; in qed_cxt_cfg_ilt_compute_excess()
834 p_src = &p_hwfn->p_cxt_mngr->clients[ILT_CLI_SRC]; in qed_cxt_src_t2_alloc()
900 #define for_each_ilt_valid_client(pos, clients) \ argument
902 if (!clients[pos].active) { \
920 struct qed_ilt_client_cfg *p_cli = p_hwfn->p_cxt_mngr->clients; in qed_ilt_shadow_free()
991 struct qed_ilt_client_cfg *clients = p_mngr->clients; in qed_ilt_shadow_alloc() local
996 size = qed_cxt_ilt_shadow_size(clients); in qed_ilt_shadow_alloc()
1008 for_each_ilt_valid_client(i, clients) { in qed_ilt_shadow_alloc()
1010 p_blk = &clients[i].pf_blks[j]; in qed_ilt_shadow_alloc()
1017 u32 lines = clients[i].vf_total_lines * k; in qed_ilt_shadow_alloc()
1019 p_blk = &clients[i].vf_blks[j]; in qed_ilt_shadow_alloc()
1113 struct qed_ilt_client_cfg *clients; in qed_cxt_mngr_alloc() local
1122 clients = p_mngr->clients; in qed_cxt_mngr_alloc()
1123 clients[ILT_CLI_CDUC].first.reg = ILT_CFG_REG(CDUC, FIRST_ILT); in qed_cxt_mngr_alloc()
1124 clients[ILT_CLI_CDUC].last.reg = ILT_CFG_REG(CDUC, LAST_ILT); in qed_cxt_mngr_alloc()
1125 clients[ILT_CLI_CDUC].p_size.reg = ILT_CFG_REG(CDUC, P_SIZE); in qed_cxt_mngr_alloc()
1127 clients[ILT_CLI_QM].first.reg = ILT_CFG_REG(QM, FIRST_ILT); in qed_cxt_mngr_alloc()
1128 clients[ILT_CLI_QM].last.reg = ILT_CFG_REG(QM, LAST_ILT); in qed_cxt_mngr_alloc()
1129 clients[ILT_CLI_QM].p_size.reg = ILT_CFG_REG(QM, P_SIZE); in qed_cxt_mngr_alloc()
1131 clients[ILT_CLI_TM].first.reg = ILT_CFG_REG(TM, FIRST_ILT); in qed_cxt_mngr_alloc()
1132 clients[ILT_CLI_TM].last.reg = ILT_CFG_REG(TM, LAST_ILT); in qed_cxt_mngr_alloc()
1133 clients[ILT_CLI_TM].p_size.reg = ILT_CFG_REG(TM, P_SIZE); in qed_cxt_mngr_alloc()
1135 clients[ILT_CLI_SRC].first.reg = ILT_CFG_REG(SRC, FIRST_ILT); in qed_cxt_mngr_alloc()
1136 clients[ILT_CLI_SRC].last.reg = ILT_CFG_REG(SRC, LAST_ILT); in qed_cxt_mngr_alloc()
1137 clients[ILT_CLI_SRC].p_size.reg = ILT_CFG_REG(SRC, P_SIZE); in qed_cxt_mngr_alloc()
1139 clients[ILT_CLI_CDUT].first.reg = ILT_CFG_REG(CDUT, FIRST_ILT); in qed_cxt_mngr_alloc()
1140 clients[ILT_CLI_CDUT].last.reg = ILT_CFG_REG(CDUT, LAST_ILT); in qed_cxt_mngr_alloc()
1141 clients[ILT_CLI_CDUT].p_size.reg = ILT_CFG_REG(CDUT, P_SIZE); in qed_cxt_mngr_alloc()
1143 clients[ILT_CLI_TSDM].first.reg = ILT_CFG_REG(TSDM, FIRST_ILT); in qed_cxt_mngr_alloc()
1144 clients[ILT_CLI_TSDM].last.reg = ILT_CFG_REG(TSDM, LAST_ILT); in qed_cxt_mngr_alloc()
1145 clients[ILT_CLI_TSDM].p_size.reg = ILT_CFG_REG(TSDM, P_SIZE); in qed_cxt_mngr_alloc()
1146 /* default ILT page size for all clients is 64K */ in qed_cxt_mngr_alloc()
1148 p_mngr->clients[i].p_size.val = ILT_DEFAULT_HW_P_SIZE; in qed_cxt_mngr_alloc()
1302 page_sz = p_hwfn->p_cxt_mngr->clients[ILT_CLI_CDUC].p_size.val; in qed_cdu_init_common()
1313 page_sz = p_hwfn->p_cxt_mngr->clients[ILT_CLI_CDUT].p_size.val; in qed_cdu_init_common()
1365 p_cli = &p_hwfn->p_cxt_mngr->clients[ILT_CLI_CDUT]; in qed_cdu_init_pf()
1498 ilt_clients = p_hwfn->p_cxt_mngr->clients; in qed_ilt_bounds_init()
1528 p_cli = &p_hwfn->p_cxt_mngr->clients[ILT_CLI_CDUC]; in qed_ilt_vf_bounds_init()
1542 p_cli = &p_hwfn->p_cxt_mngr->clients[ILT_CLI_CDUT]; in qed_ilt_vf_bounds_init()
1556 p_cli = &p_hwfn->p_cxt_mngr->clients[ILT_CLI_TM]; in qed_ilt_vf_bounds_init()
1573 struct qed_ilt_client_cfg *clients; in qed_ilt_init_pf() local
1583 clients = p_hwfn->p_cxt_mngr->clients; in qed_ilt_init_pf()
1585 for_each_ilt_valid_client(i, clients) { in qed_ilt_init_pf()
1589 line = clients[i].first.val - p_mngr->pf_start_line; in qed_ilt_init_pf()
1591 clients[i].first.val * ILT_ENTRY_IN_REGS; in qed_ilt_init_pf()
1593 for (; line <= clients[i].last.val - p_mngr->pf_start_line; in qed_ilt_init_pf()
1944 hw_p_size = p_hwfn->p_cxt_mngr->clients[ILT_CLI_CDUC].p_size.val; in qed_cxt_get_cid_info()
2148 p_cli = &p_mngr->clients[ILT_CLI_CDUT]; in qed_cxt_get_tid_mem_info()
2194 p_cli = &p_hwfn->p_cxt_mngr->clients[ILT_CLI_CDUC]; in qed_cxt_dynamic_ilt_alloc()
2201 p_cli = &p_hwfn->p_cxt_mngr->clients[ILT_CLI_TSDM]; in qed_cxt_dynamic_ilt_alloc()
2206 p_cli = &p_hwfn->p_cxt_mngr->clients[ILT_CLI_TSDM]; in qed_cxt_dynamic_ilt_alloc()
2211 p_cli = &p_hwfn->p_cxt_mngr->clients[ILT_CLI_CDUT]; in qed_cxt_dynamic_ilt_alloc()
2338 p_cli = &p_hwfn->p_cxt_mngr->clients[ILT_CLI_CDUC]; in qed_cxt_free_ilt_range()
2343 p_cli = &p_hwfn->p_cxt_mngr->clients[ILT_CLI_TSDM]; in qed_cxt_free_ilt_range()
2348 p_cli = &p_hwfn->p_cxt_mngr->clients[ILT_CLI_TSDM]; in qed_cxt_free_ilt_range()
2353 p_cli = &p_hwfn->p_cxt_mngr->clients[ILT_CLI_CDUT]; in qed_cxt_free_ilt_range()
2475 p_cli = &p_mngr->clients[ILT_CLI_CDUT]; in qed_cxt_get_task_ctx()
2519 p_cli = &p_hwfn->p_cxt_mngr->clients[ILT_CLI_CDUT]; in qed_get_cdut_num_pf_init_pages()
2534 p_cli = &p_hwfn->p_cxt_mngr->clients[ILT_CLI_CDUT]; in qed_get_cdut_num_vf_init_pages()
2549 p_cli = &p_hwfn->p_cxt_mngr->clients[ILT_CLI_CDUT]; in qed_get_cdut_num_pf_work_pages()
2564 p_cli = &p_hwfn->p_cxt_mngr->clients[ILT_CLI_CDUT]; in qed_get_cdut_num_vf_work_pages()