Lines Matching refs:qopt
19 if (!mqprio->qopt.num_tc) in cxgb4_mqprio_validate()
22 if (mqprio->qopt.hw != TC_MQPRIO_HW_OFFLOAD_TCS) { in cxgb4_mqprio_validate()
31 } else if (mqprio->qopt.num_tc > adap->params.nsched_cls) { in cxgb4_mqprio_validate()
47 for (i = 0; i < mqprio->qopt.num_tc; i++) { in cxgb4_mqprio_validate()
48 qoffset = max_t(u16, mqprio->qopt.offset[i], qoffset); in cxgb4_mqprio_validate()
49 qcount += mqprio->qopt.count[i]; in cxgb4_mqprio_validate()
51 start_a = mqprio->qopt.offset[i]; in cxgb4_mqprio_validate()
52 end_a = start_a + mqprio->qopt.count[i] - 1; in cxgb4_mqprio_validate()
53 for (j = i + 1; j < mqprio->qopt.num_tc; j++) { in cxgb4_mqprio_validate()
54 start_b = mqprio->qopt.offset[j]; in cxgb4_mqprio_validate()
55 end_b = start_b + mqprio->qopt.count[j] - 1; in cxgb4_mqprio_validate()
62 if (!mqprio->qopt.count[i]) in cxgb4_mqprio_validate()
65 if (!mqprio->qopt.count[j]) in cxgb4_mqprio_validate()
339 for (i = 0; i < mqprio->qopt.num_tc; i++) { in cxgb4_mqprio_alloc_tc()
377 for (i = 0; i < tc_port_mqprio->mqprio.qopt.num_tc; i++) in cxgb4_mqprio_free_tc()
444 for (i = 0; i < mqprio->qopt.num_tc; i++) { in cxgb4_mqprio_enable_offload()
445 qoffset = mqprio->qopt.offset[i]; in cxgb4_mqprio_enable_offload()
446 qcount = mqprio->qopt.count[i]; in cxgb4_mqprio_enable_offload()
480 ret = netdev_set_num_tc(dev, mqprio->qopt.num_tc); in cxgb4_mqprio_enable_offload()
485 for (i = 0; i < mqprio->qopt.num_tc; i++) { in cxgb4_mqprio_enable_offload()
486 qcount = mqprio->qopt.count[i]; in cxgb4_mqprio_enable_offload()
488 qoffset = mqprio->qopt.offset[i] + pi->nqsets; in cxgb4_mqprio_enable_offload()
498 tot_qcount += mqprio->qopt.count[i]; in cxgb4_mqprio_enable_offload()
510 i = mqprio->qopt.num_tc; in cxgb4_mqprio_enable_offload()
514 qoffset = mqprio->qopt.offset[i]; in cxgb4_mqprio_enable_offload()
515 qcount = mqprio->qopt.count[i]; in cxgb4_mqprio_enable_offload()
548 for (i = 0; i < tc_port_mqprio->mqprio.qopt.num_tc; i++) { in cxgb4_mqprio_disable_offload()
549 qoffset = tc_port_mqprio->mqprio.qopt.offset[i]; in cxgb4_mqprio_disable_offload()
550 qcount = tc_port_mqprio->mqprio.qopt.count[i]; in cxgb4_mqprio_disable_offload()
602 if (!mqprio->qopt.num_tc) in cxgb4_setup_tc_mqprio()
644 if (!tc_port_mqprio->mqprio.qopt.num_tc) in cxgb4_mqprio_stop_offload()