Lines Matching refs:offload

109 	struct tc_taprio_qopt_offload offload;  member
1373 __offload = kzalloc(struct_size(__offload, offload.entries, num_entries), in taprio_offload_alloc()
1380 return &__offload->offload; in taprio_offload_alloc()
1384 *offload) in taprio_offload_get()
1388 __offload = container_of(offload, struct __tc_taprio_qopt_offload, in taprio_offload_get()
1389 offload); in taprio_offload_get()
1393 return offload; in taprio_offload_get()
1397 void taprio_offload_free(struct tc_taprio_qopt_offload *offload) in taprio_offload_free() argument
1401 __offload = container_of(offload, struct __tc_taprio_qopt_offload, in taprio_offload_free()
1402 offload); in taprio_offload_free()
1454 struct tc_taprio_qopt_offload *offload, in taprio_sched_to_offload() argument
1460 offload->base_time = sched->base_time; in taprio_sched_to_offload()
1461 offload->cycle_time = sched->cycle_time; in taprio_sched_to_offload()
1462 offload->cycle_time_extension = sched->cycle_time_extension; in taprio_sched_to_offload()
1465 struct tc_taprio_sched_entry *e = &offload->entries[i]; in taprio_sched_to_offload()
1478 offload->num_entries = i; in taprio_sched_to_offload()
1515 struct tc_taprio_qopt_offload *offload; in taprio_enable_offload() local
1538 offload = taprio_offload_alloc(sched->num_entries); in taprio_enable_offload()
1539 if (!offload) { in taprio_enable_offload()
1544 offload->cmd = TAPRIO_CMD_REPLACE; in taprio_enable_offload()
1545 offload->extack = extack; in taprio_enable_offload()
1546 mqprio_qopt_reconstruct(dev, &offload->mqprio.qopt); in taprio_enable_offload()
1547 offload->mqprio.extack = extack; in taprio_enable_offload()
1548 taprio_sched_to_offload(dev, sched, offload, &caps); in taprio_enable_offload()
1549 mqprio_fp_to_offload(q->fp, &offload->mqprio); in taprio_enable_offload()
1552 offload->max_sdu[tc] = q->max_sdu[tc]; in taprio_enable_offload()
1554 err = ops->ndo_setup_tc(dev, TC_SETUP_QDISC_TAPRIO, offload); in taprio_enable_offload()
1568 offload->extack = NULL; in taprio_enable_offload()
1569 offload->mqprio.extack = NULL; in taprio_enable_offload()
1570 taprio_offload_free(offload); in taprio_enable_offload()
1580 struct tc_taprio_qopt_offload *offload; in taprio_disable_offload() local
1586 offload = taprio_offload_alloc(0); in taprio_disable_offload()
1587 if (!offload) { in taprio_disable_offload()
1592 offload->cmd = TAPRIO_CMD_DESTROY; in taprio_disable_offload()
1594 err = ops->ndo_setup_tc(dev, TC_SETUP_QDISC_TAPRIO, offload); in taprio_disable_offload()
1604 taprio_offload_free(offload); in taprio_disable_offload()
2333 struct tc_taprio_qopt_offload *offload, in taprio_dump_xstats() argument
2354 err = ops->ndo_setup_tc(dev, TC_SETUP_QDISC_TAPRIO, offload); in taprio_dump_xstats()
2382 struct tc_taprio_qopt_offload offload = { in taprio_dump_stats() local
2386 return taprio_dump_xstats(sch, d, &offload, &offload.stats); in taprio_dump_stats()
2490 struct tc_taprio_qopt_offload offload = { in taprio_dump_class_stats() local
2501 return taprio_dump_xstats(sch, d, &offload, &offload.queue_stats.stats); in taprio_dump_class_stats()