Lines Matching refs:down

536 static int disable_enhanced(struct tb_port *up, struct tb_port *down)  in disable_enhanced()  argument
547 ret = tb_port_tmu_rate_write(down, 0); in disable_enhanced()
550 return tb_port_tmu_enhanced_enable(down, false); in disable_enhanced()
566 struct tb_port *down, *up; in tb_switch_tmu_disable() local
569 down = tb_switch_downstream_port(sw); in tb_switch_tmu_disable()
587 ret = tb_port_tmu_time_sync_disable(down); in tb_switch_tmu_disable()
596 ret = tb_port_tmu_unidirectional_disable(down); in tb_switch_tmu_disable()
602 ret = disable_enhanced(up, down); in tb_switch_tmu_disable()
624 struct tb_port *down, *up; in tb_switch_tmu_off() local
626 down = tb_switch_downstream_port(sw); in tb_switch_tmu_off()
635 tb_port_tmu_time_sync_disable(down); in tb_switch_tmu_off()
644 disable_enhanced(up, down); in tb_switch_tmu_off()
654 tb_port_tmu_unidirectional_disable(down); in tb_switch_tmu_off()
664 struct tb_port *up, *down; in tb_switch_tmu_enable_bidirectional() local
668 down = tb_switch_downstream_port(sw); in tb_switch_tmu_enable_bidirectional()
674 ret = tb_port_tmu_unidirectional_disable(down); in tb_switch_tmu_enable_bidirectional()
686 ret = tb_port_tmu_time_sync_enable(down); in tb_switch_tmu_enable_bidirectional()
728 struct tb_port *up, *down; in tb_switch_tmu_enable_unidirectional() local
732 down = tb_switch_downstream_port(sw); in tb_switch_tmu_enable_unidirectional()
750 ret = tb_port_tmu_unidirectional_enable(down); in tb_switch_tmu_enable_unidirectional()
754 ret = tb_port_tmu_time_sync_enable(down); in tb_switch_tmu_enable_unidirectional()
772 struct tb_port *up, *down; in tb_switch_tmu_enable_enhanced() local
781 down = tb_switch_downstream_port(sw); in tb_switch_tmu_enable_enhanced()
795 ret = tb_port_set_tmu_mode_params(down, sw->tmu.mode_request); in tb_switch_tmu_enable_enhanced()
799 ret = tb_port_tmu_rate_write(down, rate); in tb_switch_tmu_enable_enhanced()
803 ret = tb_port_tmu_enhanced_enable(down, true); in tb_switch_tmu_enable_enhanced()
817 struct tb_port *down, *up; in tb_switch_tmu_change_mode_prev() local
819 down = tb_switch_downstream_port(sw); in tb_switch_tmu_change_mode_prev()
830 tb_port_tmu_set_unidirectional(down, true); in tb_switch_tmu_change_mode_prev()
835 tb_port_tmu_set_unidirectional(down, false); in tb_switch_tmu_change_mode_prev()
863 struct tb_port *up, *down; in tb_switch_tmu_change_mode() local
867 down = tb_switch_downstream_port(sw); in tb_switch_tmu_change_mode()
873 ret = tb_port_tmu_set_unidirectional(down, true); in tb_switch_tmu_change_mode()
882 ret = tb_port_tmu_set_unidirectional(down, false); in tb_switch_tmu_change_mode()
919 ret = tb_port_tmu_time_sync_enable(down); in tb_switch_tmu_change_mode()