#include <linux/delay.h>
#include "tb.h"
static const unsigned int tmu_rates[] = …;
static const struct { … } tmu_params[] = …;
static const char *tmu_mode_name(enum tb_switch_tmu_mode mode)
{ … }
static bool tb_switch_tmu_enhanced_is_supported(const struct tb_switch *sw)
{ … }
static int tb_switch_set_tmu_mode_params(struct tb_switch *sw,
enum tb_switch_tmu_mode mode)
{ … }
static bool tb_switch_tmu_ucap_is_supported(struct tb_switch *sw)
{ … }
static int tb_switch_tmu_rate_read(struct tb_switch *sw)
{ … }
static int tb_switch_tmu_rate_write(struct tb_switch *sw, int rate)
{ … }
static int tb_port_tmu_write(struct tb_port *port, u8 offset, u32 mask,
u32 value)
{ … }
static int tb_port_tmu_set_unidirectional(struct tb_port *port,
bool unidirectional)
{ … }
static inline int tb_port_tmu_unidirectional_disable(struct tb_port *port)
{ … }
static inline int tb_port_tmu_unidirectional_enable(struct tb_port *port)
{ … }
static bool tb_port_tmu_is_unidirectional(struct tb_port *port)
{ … }
static bool tb_port_tmu_is_enhanced(struct tb_port *port)
{ … }
static int tb_port_tmu_enhanced_enable(struct tb_port *port, bool enable)
{ … }
static int tb_port_set_tmu_mode_params(struct tb_port *port,
enum tb_switch_tmu_mode mode)
{ … }
static int tb_port_tmu_rate_write(struct tb_port *port, int rate)
{ … }
static int tb_port_tmu_time_sync(struct tb_port *port, bool time_sync)
{ … }
static int tb_port_tmu_time_sync_disable(struct tb_port *port)
{ … }
static int tb_port_tmu_time_sync_enable(struct tb_port *port)
{ … }
static int tb_switch_tmu_set_time_disruption(struct tb_switch *sw, bool set)
{ … }
static int tmu_mode_init(struct tb_switch *sw)
{ … }
int tb_switch_tmu_init(struct tb_switch *sw)
{ … }
int tb_switch_tmu_post_time(struct tb_switch *sw)
{ … }
static int disable_enhanced(struct tb_port *up, struct tb_port *down)
{ … }
int tb_switch_tmu_disable(struct tb_switch *sw)
{ … }
static void tb_switch_tmu_off(struct tb_switch *sw)
{ … }
static int tb_switch_tmu_enable_bidirectional(struct tb_switch *sw)
{ … }
static int tb_switch_tmu_disable_objections(struct tb_switch *sw)
{ … }
static int tb_switch_tmu_enable_unidirectional(struct tb_switch *sw)
{ … }
static int tb_switch_tmu_enable_enhanced(struct tb_switch *sw)
{ … }
static void tb_switch_tmu_change_mode_prev(struct tb_switch *sw)
{ … }
static int tb_switch_tmu_change_mode(struct tb_switch *sw)
{ … }
int tb_switch_tmu_enable(struct tb_switch *sw)
{ … }
int tb_switch_tmu_configure(struct tb_switch *sw, enum tb_switch_tmu_mode mode)
{ … }