Lines Matching full:offload

88 	struct tc_taprio_qopt_offload offload;  member
288 /* txtime-assist and full offload are mutually exclusive */ in taprio_flags_valid()
434 /* Devices with full offload are expected to honor this in hardware */ in taprio_enqueue_one()
445 /* Will not be called in the full offload case, since the TX queues are
463 * smaller chunks. Drivers with full offload are expected to handle in taprio_enqueue()
500 /* Will not be called in the full offload case, since the TX queues are
554 /* Will not be called in the full offload case, since the TX queues are
1125 __offload = kzalloc(struct_size(__offload, offload.entries, num_entries), in taprio_offload_alloc()
1132 return &__offload->offload; in taprio_offload_alloc()
1136 *offload) in taprio_offload_get()
1140 __offload = container_of(offload, struct __tc_taprio_qopt_offload, in taprio_offload_get()
1141 offload); in taprio_offload_get()
1145 return offload; in taprio_offload_get()
1149 void taprio_offload_free(struct tc_taprio_qopt_offload *offload) in taprio_offload_free() argument
1153 __offload = container_of(offload, struct __tc_taprio_qopt_offload, in taprio_offload_free()
1154 offload); in taprio_offload_free()
1166 * When using full offload, the admin configuration is promoted to oper at the
1172 * offload state (PENDING, ACTIVE, INACTIVE) so it can be visible in dump().
1206 struct tc_taprio_qopt_offload *offload) in taprio_sched_to_offload() argument
1211 offload->base_time = sched->base_time; in taprio_sched_to_offload()
1212 offload->cycle_time = sched->cycle_time; in taprio_sched_to_offload()
1213 offload->cycle_time_extension = sched->cycle_time_extension; in taprio_sched_to_offload()
1216 struct tc_taprio_sched_entry *e = &offload->entries[i]; in taprio_sched_to_offload()
1225 offload->num_entries = i; in taprio_sched_to_offload()
1234 struct tc_taprio_qopt_offload *offload; in taprio_enable_offload() local
1240 "Device does not support taprio offload"); in taprio_enable_offload()
1257 offload = taprio_offload_alloc(sched->num_entries); in taprio_enable_offload()
1258 if (!offload) { in taprio_enable_offload()
1260 "Not enough memory for enabling offload mode"); in taprio_enable_offload()
1263 offload->enable = 1; in taprio_enable_offload()
1264 taprio_sched_to_offload(dev, sched, offload); in taprio_enable_offload()
1267 offload->max_sdu[tc] = q->max_sdu[tc]; in taprio_enable_offload()
1269 err = ops->ndo_setup_tc(dev, TC_SETUP_QDISC_TAPRIO, offload); in taprio_enable_offload()
1272 "Device failed to setup taprio offload"); in taprio_enable_offload()
1279 taprio_offload_free(offload); in taprio_enable_offload()
1289 struct tc_taprio_qopt_offload *offload; in taprio_disable_offload() local
1295 offload = taprio_offload_alloc(0); in taprio_disable_offload()
1296 if (!offload) { in taprio_disable_offload()
1298 "Not enough memory to disable offload mode"); in taprio_disable_offload()
1301 offload->enable = 0; in taprio_disable_offload()
1303 err = ops->ndo_setup_tc(dev, TC_SETUP_QDISC_TAPRIO, offload); in taprio_disable_offload()
1306 "Device failed to disable offload"); in taprio_disable_offload()
1313 taprio_offload_free(offload); in taprio_disable_offload()
1318 /* If full offload is enabled, the only possible clockid is the net device's
1341 "The 'clockid' cannot be specified for full offload"); in taprio_parse_clockid()
1833 /* access to the child qdiscs is not needed in offload mode */ in taprio_attach()