Lines Matching defs:sw

282 	struct tb_switch *sw;  member
563 static inline struct tb_port *tb_upstream_port(struct tb_switch *sw) in tb_upstream_port()
581 static inline u64 tb_route(const struct tb_switch *sw) in tb_route()
586 static inline struct tb_port *tb_port_at(u64 route, struct tb_switch *sw) in tb_port_at()
670 static inline int tb_sw_read(struct tb_switch *sw, void *buffer, in tb_sw_read()
684 static inline int tb_sw_write(struct tb_switch *sw, const void *buffer, in tb_sw_write()
732 #define __TB_SW_PRINT(level, sw, fmt, arg...) \ argument
738 #define tb_sw_WARN(sw, fmt, arg...) __TB_SW_PRINT(tb_WARN, sw, fmt, ##arg) argument
739 #define tb_sw_warn(sw, fmt, arg...) __TB_SW_PRINT(tb_warn, sw, fmt, ##arg) argument
740 #define tb_sw_info(sw, fmt, arg...) __TB_SW_PRINT(tb_info, sw, fmt, ##arg) argument
741 #define tb_sw_dbg(sw, fmt, arg...) __TB_SW_PRINT(tb_dbg, sw, fmt, ##arg) argument
871 #define tb_switch_for_each_port(sw, p) \ argument
875 static inline struct tb_switch *tb_switch_get(struct tb_switch *sw) in tb_switch_get()
882 static inline void tb_switch_put(struct tb_switch *sw) in tb_switch_put()
899 static inline struct tb_switch *tb_switch_parent(struct tb_switch *sw) in tb_switch_parent()
911 static inline struct tb_port *tb_switch_downstream_port(struct tb_switch *sw) in tb_switch_downstream_port()
922 static inline int tb_switch_depth(const struct tb_switch *sw) in tb_switch_depth()
927 static inline bool tb_switch_is_light_ridge(const struct tb_switch *sw) in tb_switch_is_light_ridge()
933 static inline bool tb_switch_is_eagle_ridge(const struct tb_switch *sw) in tb_switch_is_eagle_ridge()
939 static inline bool tb_switch_is_cactus_ridge(const struct tb_switch *sw) in tb_switch_is_cactus_ridge()
951 static inline bool tb_switch_is_falcon_ridge(const struct tb_switch *sw) in tb_switch_is_falcon_ridge()
963 static inline bool tb_switch_is_alpine_ridge(const struct tb_switch *sw) in tb_switch_is_alpine_ridge()
978 static inline bool tb_switch_is_titan_ridge(const struct tb_switch *sw) in tb_switch_is_titan_ridge()
991 static inline bool tb_switch_is_tiger_lake(const struct tb_switch *sw) in tb_switch_is_tiger_lake()
1014 static inline bool tb_switch_is_icm(const struct tb_switch *sw) in tb_switch_is_icm()
1041 static inline bool tb_switch_tmu_is_configured(const struct tb_switch *sw, in tb_switch_tmu_is_configured()
1054 static inline bool tb_switch_tmu_is_enabled(const struct tb_switch *sw) in tb_switch_tmu_is_enabled()
1076 static inline bool tb_switch_clx_is_enabled(const struct tb_switch *sw, in tb_switch_clx_is_enabled()
1297 static inline unsigned int usb4_switch_version(const struct tb_switch *sw) in usb4_switch_version()
1308 static inline bool tb_switch_is_usb4(const struct tb_switch *sw) in tb_switch_is_usb4()
1535 static inline void tb_switch_debugfs_init(struct tb_switch *sw) { } in tb_switch_debugfs_init()
1536 static inline void tb_switch_debugfs_remove(struct tb_switch *sw) { } in tb_switch_debugfs_remove()