Lines Matching defs:sw
138 struct tb_switch *sw; member
312 static inline struct tb_port *tb_upstream_port(struct tb_switch *sw) in tb_upstream_port()
330 static inline u64 tb_route(const struct tb_switch *sw) in tb_route()
335 static inline struct tb_port *tb_port_at(u64 route, struct tb_switch *sw) in tb_port_at()
388 static inline int tb_sw_read(struct tb_switch *sw, void *buffer, in tb_sw_read()
402 static inline int tb_sw_write(struct tb_switch *sw, void *buffer, in tb_sw_write()
450 #define __TB_SW_PRINT(level, sw, fmt, arg...) \ argument
456 #define tb_sw_WARN(sw, fmt, arg...) __TB_SW_PRINT(tb_WARN, sw, fmt, ##arg) argument
457 #define tb_sw_warn(sw, fmt, arg...) __TB_SW_PRINT(tb_warn, sw, fmt, ##arg) argument
458 #define tb_sw_info(sw, fmt, arg...) __TB_SW_PRINT(tb_info, sw, fmt, ##arg) argument
459 #define tb_sw_dbg(sw, fmt, arg...) __TB_SW_PRINT(tb_dbg, sw, fmt, ##arg) argument
533 static inline struct tb_switch *tb_switch_get(struct tb_switch *sw) in tb_switch_get()
540 static inline void tb_switch_put(struct tb_switch *sw) in tb_switch_put()
557 static inline struct tb_switch *tb_switch_parent(struct tb_switch *sw) in tb_switch_parent()
562 static inline bool tb_switch_is_lr(const struct tb_switch *sw) in tb_switch_is_lr()
567 static inline bool tb_switch_is_er(const struct tb_switch *sw) in tb_switch_is_er()
572 static inline bool tb_switch_is_cr(const struct tb_switch *sw) in tb_switch_is_cr()
583 static inline bool tb_switch_is_fr(const struct tb_switch *sw) in tb_switch_is_fr()