Lines Matching defs:offload
87 struct tc_taprio_qopt_offload offload;
290 /* txtime-assist and full offload are mutually exclusive */
1131 __offload = kzalloc(struct_size(__offload, offload.entries, num_entries),
1138 return &__offload->offload;
1142 *offload)
1146 __offload = container_of(offload, struct __tc_taprio_qopt_offload,
1147 offload);
1151 return offload;
1155 void taprio_offload_free(struct tc_taprio_qopt_offload *offload)
1159 __offload = container_of(offload, struct __tc_taprio_qopt_offload,
1160 offload);
1172 * When using full offload, the admin configuration is promoted to oper at the
1178 * offload state (PENDING, ACTIVE, INACTIVE) so it can be visible in dump().
1218 struct tc_taprio_qopt_offload *offload)
1223 offload->base_time = sched->base_time;
1224 offload->cycle_time = sched->cycle_time;
1225 offload->cycle_time_extension = sched->cycle_time_extension;
1228 struct tc_taprio_sched_entry *e = &offload->entries[i];
1237 offload->num_entries = i;
1246 struct tc_taprio_qopt_offload *offload;
1251 "Device does not support taprio offload");
1255 offload = taprio_offload_alloc(sched->num_entries);
1256 if (!offload) {
1258 "Not enough memory for enabling offload mode");
1261 offload->enable = 1;
1262 taprio_sched_to_offload(dev, sched, offload);
1264 err = ops->ndo_setup_tc(dev, TC_SETUP_QDISC_TAPRIO, offload);
1267 "Device failed to setup taprio offload");
1274 taprio_offload_free(offload);
1284 struct tc_taprio_qopt_offload *offload;
1290 offload = taprio_offload_alloc(0);
1291 if (!offload) {
1293 "Not enough memory to disable offload mode");
1296 offload->enable = 0;
1298 err = ops->ndo_setup_tc(dev, TC_SETUP_QDISC_TAPRIO, offload);
1301 "Device failed to disable offload");
1308 taprio_offload_free(offload);
1313 /* If full offload is enabled, the only possible clockid is the net device's
1336 "The 'clockid' cannot be specified for full offload");