Lines Matching refs:est_new

554 					   struct am65_cpsw_est *est_new)  in am65_cpsw_port_est_get_buf_num()  argument
563 est_new->buf = am65_cpsw_port_est_get_free_buf_num(ndev); in am65_cpsw_port_est_get_buf_num()
567 est_new->buf == port->qos.est_oper->buf) in am65_cpsw_port_est_get_buf_num()
679 struct am65_cpsw_est *est_new) in am65_cpsw_est_check_scheds() argument
684 cmd_num = am65_cpsw_est_calc_cmd_num(ndev, &est_new->taprio, in am65_cpsw_est_check_scheds()
698 struct am65_cpsw_est *est_new) in am65_cpsw_est_set_sched_list() argument
708 ram_addr += est_new->buf * ram_size; in am65_cpsw_est_set_sched_list()
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()
742 struct am65_cpsw_est *est_new) in am65_cpsw_timer_set() argument
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()
764 struct am65_cpsw_est *est_new) in am65_cpsw_timer_act() argument
775 taprio_new = &est_new->taprio; in am65_cpsw_timer_act()
840 struct am65_cpsw_est *est_new; in am65_cpsw_taprio_replace() local
864 est_new = devm_kzalloc(&ndev->dev, in am65_cpsw_taprio_replace()
865 struct_size(est_new, taprio.entries, taprio->num_entries), in am65_cpsw_taprio_replace()
867 if (!est_new) in am65_cpsw_taprio_replace()
874 am65_cpsw_cp_taprio(taprio, &est_new->taprio); in am65_cpsw_taprio_replace()
878 ret = am65_cpsw_est_check_scheds(ndev, est_new); in am65_cpsw_taprio_replace()
882 tact = am65_cpsw_timer_act(ndev, est_new); in am65_cpsw_taprio_replace()
893 am65_cpsw_port_est_get_buf_num(ndev, est_new); in am65_cpsw_taprio_replace()
894 am65_cpsw_est_set_sched_list(ndev, est_new); in am65_cpsw_taprio_replace()
895 am65_cpsw_port_est_assign_buf_num(ndev, est_new->buf); 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()
911 ret = am65_cpsw_timer_set(ndev, est_new); in am65_cpsw_taprio_replace()
920 port->qos.est_admin = est_new; in am65_cpsw_taprio_replace()
927 devm_kfree(&ndev->dev, est_new); in am65_cpsw_taprio_replace()