Lines Matching defs:sw
202 struct tb_switch *sw; member
417 static inline struct tb_port *tb_upstream_port(struct tb_switch *sw) in tb_upstream_port()
435 static inline u64 tb_route(const struct tb_switch *sw) in tb_route()
440 static inline struct tb_port *tb_port_at(u64 route, struct tb_switch *sw) in tb_port_at()
508 static inline int tb_sw_read(struct tb_switch *sw, void *buffer, in tb_sw_read()
522 static inline int tb_sw_write(struct tb_switch *sw, const void *buffer, in tb_sw_write()
570 #define __TB_SW_PRINT(level, sw, fmt, arg...) \ argument
576 #define tb_sw_WARN(sw, fmt, arg...) __TB_SW_PRINT(tb_WARN, sw, fmt, ##arg) argument
577 #define tb_sw_warn(sw, fmt, arg...) __TB_SW_PRINT(tb_warn, sw, fmt, ##arg) argument
578 #define tb_sw_info(sw, fmt, arg...) __TB_SW_PRINT(tb_info, sw, fmt, ##arg) argument
579 #define tb_sw_dbg(sw, fmt, arg...) __TB_SW_PRINT(tb_dbg, sw, fmt, ##arg) argument
673 #define tb_switch_for_each_port(sw, p) \ argument
677 static inline struct tb_switch *tb_switch_get(struct tb_switch *sw) in tb_switch_get()
684 static inline void tb_switch_put(struct tb_switch *sw) in tb_switch_put()
701 static inline struct tb_switch *tb_switch_parent(struct tb_switch *sw) in tb_switch_parent()
706 static inline bool tb_switch_is_light_ridge(const struct tb_switch *sw) in tb_switch_is_light_ridge()
712 static inline bool tb_switch_is_eagle_ridge(const struct tb_switch *sw) in tb_switch_is_eagle_ridge()
718 static inline bool tb_switch_is_cactus_ridge(const struct tb_switch *sw) in tb_switch_is_cactus_ridge()
730 static inline bool tb_switch_is_falcon_ridge(const struct tb_switch *sw) in tb_switch_is_falcon_ridge()
742 static inline bool tb_switch_is_alpine_ridge(const struct tb_switch *sw) in tb_switch_is_alpine_ridge()
756 static inline bool tb_switch_is_titan_ridge(const struct tb_switch *sw) in tb_switch_is_titan_ridge()
769 static inline bool tb_switch_is_ice_lake(const struct tb_switch *sw) in tb_switch_is_ice_lake()
781 static inline bool tb_switch_is_tiger_lake(const struct tb_switch *sw) in tb_switch_is_tiger_lake()
801 static inline bool tb_switch_is_usb4(const struct tb_switch *sw) in tb_switch_is_usb4()
815 static inline bool tb_switch_is_icm(const struct tb_switch *sw) in tb_switch_is_icm()
834 static inline bool tb_switch_tmu_is_enabled(const struct tb_switch *sw) in tb_switch_tmu_is_enabled()
1032 static inline void tb_switch_debugfs_init(struct tb_switch *sw) { } in tb_switch_debugfs_init()
1033 static inline void tb_switch_debugfs_remove(struct tb_switch *sw) { } in tb_switch_debugfs_remove()