Lines Matching refs:tc

160 #define PHYS_VOQ(port, tc, max_phys_tcs_per_port) 	((port) * (max_phys_tcs_per_port) + (tc))  argument
162 #define VOQ(port, tc, max_phys_tcs_per_port) ((tc) < LB_TC ? PHYS_VOQ(port, tc, max_phys_tcs_per… argument
248 u8 tc, voq, port_id, num_tcs_in_port; in ecore_cmdq_lines_rt_init() local
265 for (tc = 0; tc < NUM_OF_PHYS_TCS; tc++) in ecore_cmdq_lines_rt_init()
266 if (((port_params[port_id].active_phys_tcs >> tc) & 0x1) == 1) in ecore_cmdq_lines_rt_init()
271 for (tc = 0; tc < NUM_OF_PHYS_TCS; tc++) { in ecore_cmdq_lines_rt_init()
272 if (((port_params[port_id].active_phys_tcs >> tc) & 0x1) == 1) { in ecore_cmdq_lines_rt_init()
273 voq = PHYS_VOQ(port_id, tc, max_phys_tcs_per_port); in ecore_cmdq_lines_rt_init()
308 u8 tc, voq, port_id, num_tcs_in_port; in ecore_btb_blocks_rt_init() local
321 for (tc = 0; tc < NUM_OF_PHYS_TCS; tc++) in ecore_btb_blocks_rt_init()
322 if (((port_params[port_id].active_phys_tcs >> tc) & 0x1) == 1) in ecore_btb_blocks_rt_init()
330 for (tc = 0; tc < NUM_OF_PHYS_TCS; tc++) { in ecore_btb_blocks_rt_init()
331 if (((port_params[port_id].active_phys_tcs >> tc) & 0x1) == 1) { in ecore_btb_blocks_rt_init()
332 voq = PHYS_VOQ(port_id, tc, max_phys_tcs_per_port); in ecore_btb_blocks_rt_init()
539 u8 tc, i; in ecore_vp_wfq_rt_init() local
553 for (tc = 0; tc < NUM_OF_TCS; tc++) { in ecore_vp_wfq_rt_init()
554 vport_pq_id = vport_params[i].first_tx_pq_id[tc]; in ecore_vp_wfq_rt_init()
712 u8 tc, i; in ecore_qm_pf_rt_init() local
718 for(tc = 0; tc < NUM_OF_TCS; tc++) in ecore_qm_pf_rt_init()
719 vport_params[i].first_tx_pq_id[tc] = QM_INVALID_PQ_ID; in ecore_qm_pf_rt_init()
794 u8 tc; in ecore_init_vport_wfq() local
802 for (tc = 0; tc < NUM_OF_TCS; tc++) { in ecore_init_vport_wfq()
803 vport_pq_id = first_tx_pq_id[tc]; in ecore_init_vport_wfq()
909 u8 tc, num_tc, tc_client_offset; in ecore_init_nig_ets() local
921 for (tc = 0; tc < num_tc; tc++) { in ecore_init_nig_ets()
922 struct init_ets_tc_req *tc_req = &req->tc_req[tc]; in ecore_init_nig_ets()
926 sp_tc_map |= (1 << tc); in ecore_init_nig_ets()
932 wfq_tc_map |= (1 << tc); in ecore_init_nig_ets()
946 for (tc = 0; tc < num_tc; tc++, tc_client_offset++) { in ecore_init_nig_ets()
947 struct init_ets_tc_req *tc_req = &req->tc_req[tc]; in ecore_init_nig_ets()
969 u8 tc; in ecore_init_nig_lb_rl() local
1008 for (tc = 0, reg_offset = 0; tc < NUM_OF_PHYS_TCS; tc++, reg_offset += 4) { in ecore_init_nig_lb_rl()
1015 if (!req->tc_rate[tc]) in ecore_init_nig_lb_rl()
1020 inc_val = NIG_RL_INC_VAL(req->tc_rate[tc]); in ecore_init_nig_lb_rl()
1036 u8 pri, tc; in ecore_init_nig_pri_tc_map() local
1050 for (tc = 0; tc < NUM_OF_PHYS_TCS; tc++) { in ecore_init_nig_pri_tc_map()
1051 ecore_wr(p_hwfn, p_ptt, NIG_REG_PRIORITY_FOR_TC_0 + tc * 4, tc_pri_mask[tc]); in ecore_init_nig_pri_tc_map()
1052 ecore_wr(p_hwfn, p_ptt, NIG_REG_RX_TC0_PRIORITY_MASK + tc * 4, tc_pri_mask[tc]); in ecore_init_nig_pri_tc_map()
1070 u8 tc, sp_tc_map = 0, wfq_tc_map = 0; in ecore_init_prs_ets() local
1075 for (tc = 0; tc < NUM_OF_TCS; tc++) { in ecore_init_prs_ets()
1076 struct init_ets_tc_req *tc_req = &req->tc_req[tc]; in ecore_init_prs_ets()
1080 sp_tc_map |= (1 << tc); in ecore_init_prs_ets()
1086 wfq_tc_map |= (1 << tc); in ecore_init_prs_ets()
1100 for (tc = 0; tc < NUM_OF_TCS; tc++) { in ecore_init_prs_ets()
1101 struct init_ets_tc_req *tc_req = &req->tc_req[tc]; in ecore_init_prs_ets()
1111 ecore_wr(p_hwfn, p_ptt, PRS_REG_ETS_ARB_CREDIT_WEIGHT_0 + tc * tc_weight_addr_diff, byte_weight); in ecore_init_prs_ets()
1114 …ecore_wr(p_hwfn, p_ptt, PRS_REG_ETS_ARB_CREDIT_UPPER_BOUND_0 + tc * tc_bound_addr_diff, PRS_ETS_UP… in ecore_init_prs_ets()
1153 u8 tc; in ecore_init_brb_ram() local
1171 for (tc = 0; tc < NUM_OF_TCS; tc++, reg_offset += 4) { in ecore_init_brb_ram()
1173 if (tc == req->num_active_tcs[port]) { in ecore_init_brb_ram()