Lines Matching defs:taprio
271 struct tc_taprio_qopt_offload *taprio,
277 for (i = 0; i < taprio->num_entries; i++) {
278 if (taprio->entries[i].command != TC_TAPRIO_CMD_SET_GATES) {
283 fetch_cnt = am65_est_cmd_ns_to_cnt(taprio->entries[i].interval,
305 cmd_num = am65_cpsw_est_calc_cmd_num(ndev, &est_new->taprio,
332 for (i = 0; i < est_new->taprio.num_entries; i++) {
333 entry = &est_new->taprio.entries[i];
345 if (!fetch_cnt && i < est_new->taprio.num_entries - 1) {
370 cfg.ns_period = est_new->taprio.cycle_time;
371 cfg.ns_start = est_new->taprio.base_time;
396 taprio_new = &est_new->taprio;
397 taprio_oper = &port->qos.est_oper->taprio;
402 /* in order to avoid timer reset get base_time form oper taprio */
454 if (!est_new->taprio.enable) {
466 "Can't toggle estf timer, stop taprio first");
473 if (!est_new->taprio.base_time)
474 est_new->taprio.base_time = am65_cpts_ns_gettime(cpts);
480 am65_cpsw_est_set(ndev, est_new->taprio.enable);
506 struct tc_taprio_qopt_offload *taprio = type_data;
510 if (taprio->cycle_time_extension) {
516 struct_size(est_new, taprio.entries, taprio->num_entries),
521 am65_cpsw_cp_taprio(taprio, &est_new->taprio);
524 if (taprio->enable) {
581 "p0-rx-ptype-rrobin flag conflicts with taprio qdisc\n");