Lines Matching refs:tb_switch

37 static struct nvm_auth_status *__nvm_get_auth_status(const struct tb_switch *sw)  in __nvm_get_auth_status()
49 static void nvm_get_auth_status(const struct tb_switch *sw, u32 *status) in nvm_get_auth_status()
60 static void nvm_set_auth_status(const struct tb_switch *sw, u32 status) in nvm_set_auth_status()
85 static void nvm_clear_auth_status(const struct tb_switch *sw) in nvm_clear_auth_status()
98 static int nvm_validate_and_write(struct tb_switch *sw) in nvm_validate_and_write()
166 static int nvm_authenticate_host_dma_port(struct tb_switch *sw) in nvm_authenticate_host_dma_port()
206 static int nvm_authenticate_device_dma_port(struct tb_switch *sw) in nvm_authenticate_device_dma_port()
251 static void nvm_authenticate_start_dma_port(struct tb_switch *sw) in nvm_authenticate_start_dma_port()
266 static void nvm_authenticate_complete_dma_port(struct tb_switch *sw) in nvm_authenticate_complete_dma_port()
275 static inline bool nvm_readable(struct tb_switch *sw) in nvm_readable()
291 static inline bool nvm_upgradeable(struct tb_switch *sw) in nvm_upgradeable()
298 static inline int nvm_read(struct tb_switch *sw, unsigned int address, in nvm_read()
306 static int nvm_authenticate(struct tb_switch *sw, bool auth_only) in nvm_authenticate()
337 struct tb_switch *sw = tb_to_switch(nvm->dev); in tb_switch_nvm_read()
361 struct tb_switch *sw = tb_to_switch(nvm->dev); in tb_switch_nvm_write()
379 static int tb_switch_nvm_add(struct tb_switch *sw) in tb_switch_nvm_add()
448 static void tb_switch_nvm_remove(struct tb_switch *sw) in tb_switch_nvm_remove()
860 static inline bool tb_switch_is_reachable(const struct tb_switch *parent, in tb_switch_is_reachable()
861 const struct tb_switch *sw) in tb_switch_is_reachable()
1393 static const char *tb_switch_generation_name(const struct tb_switch *sw) in tb_switch_generation_name()
1409 static void tb_dump_switch(const struct tb *tb, const struct tb_switch *sw) in tb_dump_switch()
1433 int tb_switch_reset(struct tb_switch *sw) in tb_switch_reset()
1459 static int tb_plug_events_active(struct tb_switch *sw, bool active) in tb_plug_events_active()
1497 struct tb_switch *sw = tb_to_switch(dev); in authorized_show()
1505 struct tb_switch *sw; in disapprove_switch()
1527 static int tb_switch_set_authorized(struct tb_switch *sw, unsigned int val) in tb_switch_set_authorized()
1585 struct tb_switch *sw = tb_to_switch(dev); in authorized_store()
1607 struct tb_switch *sw = tb_to_switch(dev); in boot_show()
1616 struct tb_switch *sw = tb_to_switch(dev); in device_show()
1625 struct tb_switch *sw = tb_to_switch(dev); in device_name_show()
1634 struct tb_switch *sw = tb_to_switch(dev); in generation_show()
1643 struct tb_switch *sw = tb_to_switch(dev); in key_show()
1661 struct tb_switch *sw = tb_to_switch(dev); in key_store()
1695 struct tb_switch *sw = tb_to_switch(dev); in speed_show()
1710 struct tb_switch *sw = tb_to_switch(dev); in lanes_show()
1725 struct tb_switch *sw = tb_to_switch(dev); in nvm_authenticate_show()
1735 struct tb_switch *sw = tb_to_switch(dev); in nvm_authenticate_sysfs()
1822 struct tb_switch *sw = tb_to_switch(dev); in nvm_version_show()
1844 struct tb_switch *sw = tb_to_switch(dev); in vendor_show()
1853 struct tb_switch *sw = tb_to_switch(dev); in vendor_name_show()
1862 struct tb_switch *sw = tb_to_switch(dev); in unique_id_show()
1892 struct tb_switch *sw = tb_to_switch(dev); in switch_attr_is_visible()
1956 struct tb_switch *sw = tb_to_switch(dev); in tb_switch_release()
1977 struct tb_switch *sw = tb_to_switch(dev); in tb_switch_uevent()
2014 struct tb_switch *sw = tb_to_switch(dev); in tb_switch_runtime_suspend()
2025 struct tb_switch *sw = tb_to_switch(dev); in tb_switch_runtime_resume()
2045 static int tb_switch_get_generation(struct tb_switch *sw) in tb_switch_get_generation()
2089 static bool tb_switch_exceeds_max_depth(const struct tb_switch *sw, int depth) in tb_switch_exceeds_max_depth()
2116 struct tb_switch *tb_switch_alloc(struct tb *tb, struct device *parent, in tb_switch_alloc()
2119 struct tb_switch *sw; in tb_switch_alloc()
2125 struct tb_switch *parent_sw = tb_to_switch(parent); in tb_switch_alloc()
2227 struct tb_switch *
2230 struct tb_switch *sw; in tb_switch_alloc_safe_mode()
2263 int tb_switch_configure(struct tb_switch *sw) in tb_switch_configure()
2312 static int tb_switch_set_uuid(struct tb_switch *sw) in tb_switch_set_uuid()
2358 static int tb_switch_add_dma_port(struct tb_switch *sw) in tb_switch_add_dma_port()
2452 static void tb_switch_default_link_ports(struct tb_switch *sw) in tb_switch_default_link_ports()
2482 static bool tb_switch_lane_bonding_possible(struct tb_switch *sw) in tb_switch_lane_bonding_possible()
2494 static int tb_switch_update_link_attributes(struct tb_switch *sw) in tb_switch_update_link_attributes()
2534 int tb_switch_lane_bonding_enable(struct tb_switch *sw) in tb_switch_lane_bonding_enable()
2536 struct tb_switch *parent = tb_to_switch(sw->dev.parent); in tb_switch_lane_bonding_enable()
2588 void tb_switch_lane_bonding_disable(struct tb_switch *sw) in tb_switch_lane_bonding_disable()
2590 struct tb_switch *parent = tb_to_switch(sw->dev.parent); in tb_switch_lane_bonding_disable()
2631 int tb_switch_configure_link(struct tb_switch *sw) in tb_switch_configure_link()
2660 void tb_switch_unconfigure_link(struct tb_switch *sw) in tb_switch_unconfigure_link()
2682 static void tb_switch_credits_init(struct tb_switch *sw) in tb_switch_credits_init()
2704 int tb_switch_add(struct tb_switch *sw) in tb_switch_add()
2824 void tb_switch_remove(struct tb_switch *sw) in tb_switch_remove()
2864 void tb_sw_set_unplugged(struct tb_switch *sw) in tb_sw_set_unplugged()
2885 static int tb_switch_set_wake(struct tb_switch *sw, unsigned int flags) in tb_switch_set_wake()
2897 int tb_switch_resume(struct tb_switch *sw) in tb_switch_resume()
2991 void tb_switch_suspend(struct tb_switch *sw, bool runtime) in tb_switch_suspend()
3033 bool tb_switch_query_dp_resource(struct tb_switch *sw, struct tb_port *in) in tb_switch_query_dp_resource()
3049 int tb_switch_alloc_dp_resource(struct tb_switch *sw, struct tb_port *in) in tb_switch_alloc_dp_resource()
3064 void tb_switch_dealloc_dp_resource(struct tb_switch *sw, struct tb_port *in) in tb_switch_dealloc_dp_resource()
3088 struct tb_switch *sw = tb_to_switch(dev); in tb_switch_match()
3120 struct tb_switch *tb_switch_find_by_link_depth(struct tb *tb, u8 link, u8 depth) in tb_switch_find_by_link_depth()
3145 struct tb_switch *tb_switch_find_by_uuid(struct tb *tb, const uuid_t *uuid) in tb_switch_find_by_uuid()
3169 struct tb_switch *tb_switch_find_by_route(struct tb *tb, u64 route) in tb_switch_find_by_route()
3193 struct tb_port *tb_switch_find_port(struct tb_switch *sw, in tb_switch_find_port()