Lines Matching refs:vnic

202 #define BNX2X_PF_Q_NUM(q_num, port, vnic)\  argument
203 ((((port) << 1) | (vnic)) * 16 + (q_num))
215 u32 reg_addr, reg_bit_map, vnic; in bnx2x_map_q_cos() local
227 for (vnic = 0; vnic < num_vnics; vnic++) { in bnx2x_map_q_cos()
229 BNX2X_PF_Q_NUM(q_num, BP_PORT(bp), vnic); in bnx2x_map_q_cos()
336 u32 vnic; in bnx2x_init_max() local
337 struct cmng_vnic *vdata = &ram_data->vnic; in bnx2x_init_max()
355 for (vnic = 0; vnic < BNX2X_PORT2_MODE_NUM_VNICS; vnic++) { in bnx2x_init_max()
357 vdata->vnic_max_rate[vnic].vn_counter.rate = in bnx2x_init_max()
358 input_data->vnic_max_rate[vnic]; in bnx2x_init_max()
363 vdata->vnic_max_rate[vnic].vn_counter.quota = in bnx2x_init_max()
365 (u32)vdata->vnic_max_rate[vnic].vn_counter.rate / 8; in bnx2x_init_max()
373 u32 vnic, fair_periodic_timeout_usec, vnicWeightSum, tFair; in bnx2x_init_min() local
374 struct cmng_vnic *vdata = &ram_data->vnic; in bnx2x_init_min()
400 for (vnic = 0; vnic < BNX2X_PORT2_MODE_NUM_VNICS; vnic++) in bnx2x_init_min()
401 vnicWeightSum += input_data->vnic_min_rate[vnic]; in bnx2x_init_min()
406 for (vnic = 0; vnic < BNX2X_PORT2_MODE_NUM_VNICS; vnic++) { in bnx2x_init_min()
411 vdata->vnic_min_rate[vnic].vn_credit_delta = in bnx2x_init_min()
412 (u32)input_data->vnic_min_rate[vnic] * 100 * in bnx2x_init_min()
414 if (vdata->vnic_min_rate[vnic].vn_credit_delta < in bnx2x_init_min()
417 vdata->vnic_min_rate[vnic].vn_credit_delta = in bnx2x_init_min()
428 u32 vnic, cos; in bnx2x_init_fw_wrr() local
430 struct cmng_vnic *vdata = &ram_data->vnic; in bnx2x_init_fw_wrr()
438 for (vnic = 0; vnic < BNX2X_PORT2_MODE_NUM_VNICS; vnic++) { in bnx2x_init_fw_wrr()
442 u32 *ccd = vdata->vnic_min_rate[vnic].cos_credit_delta; in bnx2x_init_fw_wrr()