Lines Matching refs:port
84 static int tb_port_tmu_write(struct tb_port *port, u8 offset, u32 mask,
90 ret = tb_port_read(port, &data, TB_CFG_PORT, port->cap_tmu + offset, 1);
97 return tb_port_write(port, &data, TB_CFG_PORT,
98 port->cap_tmu + offset, 1);
101 static int tb_port_tmu_set_unidirectional(struct tb_port *port,
106 if (!port->sw->tmu.has_ucap)
110 return tb_port_tmu_write(port, TMU_ADP_CS_3, TMU_ADP_CS_3_UDM, val);
113 static inline int tb_port_tmu_unidirectional_disable(struct tb_port *port)
115 return tb_port_tmu_set_unidirectional(port, false);
118 static bool tb_port_tmu_is_unidirectional(struct tb_port *port)
123 ret = tb_port_read(port, &val, TB_CFG_PORT,
124 port->cap_tmu + TMU_ADP_CS_3, 1);
160 struct tb_port *port;
170 tb_switch_for_each_port(sw, port) {
173 cap = tb_port_find_cap(port, TB_PORT_CAP_TIME1);
175 port->cap_tmu = cap;