Lines Matching refs:taprio

650 				      struct tc_taprio_qopt_offload *taprio,  in am65_cpsw_est_calc_cmd_num()  argument
656 for (i = 0; i < taprio->num_entries; i++) { in am65_cpsw_est_calc_cmd_num()
657 if (taprio->entries[i].command != TC_TAPRIO_CMD_SET_GATES) { in am65_cpsw_est_calc_cmd_num()
662 fetch_cnt = am65_est_cmd_ns_to_cnt(taprio->entries[i].interval, in am65_cpsw_est_calc_cmd_num()
684 cmd_num = am65_cpsw_est_calc_cmd_num(ndev, &est_new->taprio, in am65_cpsw_est_check_scheds()
711 for (i = 0; i < est_new->taprio.num_entries; i++) { in am65_cpsw_est_set_sched_list()
712 entry = &est_new->taprio.entries[i]; in am65_cpsw_est_set_sched_list()
724 if (!fetch_cnt && i < est_new->taprio.num_entries - 1) { in am65_cpsw_est_set_sched_list()
749 cfg.ns_period = est_new->taprio.cycle_time; in am65_cpsw_timer_set()
750 cfg.ns_start = est_new->taprio.base_time; in am65_cpsw_timer_set()
775 taprio_new = &est_new->taprio; in am65_cpsw_timer_act()
776 taprio_oper = &port->qos.est_oper->taprio; in am65_cpsw_timer_act()
834 struct tc_taprio_qopt_offload *taprio) in am65_cpsw_taprio_replace() argument
837 struct netlink_ext_ack *extack = taprio->mqprio.extack; in am65_cpsw_taprio_replace()
858 if (taprio->cycle_time_extension) { in am65_cpsw_taprio_replace()
865 struct_size(est_new, taprio.entries, taprio->num_entries), in am65_cpsw_taprio_replace()
870 ret = am65_cpsw_setup_mqprio(ndev, &taprio->mqprio); in am65_cpsw_taprio_replace()
874 am65_cpsw_cp_taprio(taprio, &est_new->taprio); in am65_cpsw_taprio_replace()
903 if (est_new->taprio.base_time < cur_time) { in am65_cpsw_taprio_replace()
904 n = div64_u64(cur_time - est_new->taprio.base_time, est_new->taprio.cycle_time); in am65_cpsw_taprio_replace()
905 est_new->taprio.base_time += (n + 1) * est_new->taprio.cycle_time; in am65_cpsw_taprio_replace()
921 am65_cpsw_iet_change_preemptible_tcs(port, taprio->mqprio.preemptible_tcs); in am65_cpsw_taprio_replace()
958 struct tc_taprio_qopt_offload *taprio = type_data; in am65_cpsw_setup_taprio() local
961 switch (taprio->cmd) { in am65_cpsw_setup_taprio()
963 err = am65_cpsw_taprio_replace(ndev, taprio); in am65_cpsw_setup_taprio()