Lines Matching refs:tb_switch

42 static struct nvm_auth_status *__nvm_get_auth_status(const struct tb_switch *sw)  in __nvm_get_auth_status()
54 static void nvm_get_auth_status(const struct tb_switch *sw, u32 *status) in nvm_get_auth_status()
65 static void nvm_set_auth_status(const struct tb_switch *sw, u32 status) in nvm_set_auth_status()
90 static void nvm_clear_auth_status(const struct tb_switch *sw) in nvm_clear_auth_status()
103 static int nvm_validate_and_write(struct tb_switch *sw) in nvm_validate_and_write()
171 static int nvm_authenticate_host_dma_port(struct tb_switch *sw) in nvm_authenticate_host_dma_port()
211 static int nvm_authenticate_device_dma_port(struct tb_switch *sw) in nvm_authenticate_device_dma_port()
256 static void nvm_authenticate_start_dma_port(struct tb_switch *sw) in nvm_authenticate_start_dma_port()
271 static void nvm_authenticate_complete_dma_port(struct tb_switch *sw) in nvm_authenticate_complete_dma_port()
280 static inline bool nvm_readable(struct tb_switch *sw) in nvm_readable()
296 static inline bool nvm_upgradeable(struct tb_switch *sw) in nvm_upgradeable()
303 static inline int nvm_read(struct tb_switch *sw, unsigned int address, in nvm_read()
311 static int nvm_authenticate(struct tb_switch *sw) in nvm_authenticate()
332 struct tb_switch *sw = tb_to_switch(nvm->dev); in tb_switch_nvm_read()
356 struct tb_switch *sw = tb_to_switch(nvm->dev); in tb_switch_nvm_write()
374 static int tb_switch_nvm_add(struct tb_switch *sw) in tb_switch_nvm_add()
443 static void tb_switch_nvm_remove(struct tb_switch *sw) in tb_switch_nvm_remove()
850 static inline bool tb_switch_is_reachable(const struct tb_switch *parent, in tb_switch_is_reachable()
851 const struct tb_switch *sw) in tb_switch_is_reachable()
1245 static const char *tb_switch_generation_name(const struct tb_switch *sw) in tb_switch_generation_name()
1261 static void tb_dump_switch(const struct tb *tb, const struct tb_switch *sw) in tb_dump_switch()
1285 int tb_switch_reset(struct tb_switch *sw) in tb_switch_reset()
1311 static int tb_plug_events_active(struct tb_switch *sw, bool active) in tb_plug_events_active()
1349 struct tb_switch *sw = tb_to_switch(dev); in authorized_show()
1354 static int tb_switch_set_authorized(struct tb_switch *sw, unsigned int val) in tb_switch_set_authorized()
1398 struct tb_switch *sw = tb_to_switch(dev); in authorized_store()
1420 struct tb_switch *sw = tb_to_switch(dev); in boot_show()
1429 struct tb_switch *sw = tb_to_switch(dev); in device_show()
1438 struct tb_switch *sw = tb_to_switch(dev); in device_name_show()
1447 struct tb_switch *sw = tb_to_switch(dev); in generation_show()
1456 struct tb_switch *sw = tb_to_switch(dev); in key_show()
1474 struct tb_switch *sw = tb_to_switch(dev); in key_store()
1508 struct tb_switch *sw = tb_to_switch(dev); in speed_show()
1523 struct tb_switch *sw = tb_to_switch(dev); in lanes_show()
1538 struct tb_switch *sw = tb_to_switch(dev); in nvm_authenticate_show()
1548 struct tb_switch *sw = tb_to_switch(dev); in nvm_authenticate_sysfs()
1631 struct tb_switch *sw = tb_to_switch(dev); in nvm_version_show()
1653 struct tb_switch *sw = tb_to_switch(dev); in vendor_show()
1662 struct tb_switch *sw = tb_to_switch(dev); in vendor_name_show()
1671 struct tb_switch *sw = tb_to_switch(dev); in unique_id_show()
1701 struct tb_switch *sw = tb_to_switch(dev); in switch_attr_is_visible()
1761 struct tb_switch *sw = tb_to_switch(dev); in tb_switch_release()
1788 struct tb_switch *sw = tb_to_switch(dev); in tb_switch_runtime_suspend()
1799 struct tb_switch *sw = tb_to_switch(dev); in tb_switch_runtime_resume()
1818 static int tb_switch_get_generation(struct tb_switch *sw) in tb_switch_get_generation()
1862 static bool tb_switch_exceeds_max_depth(const struct tb_switch *sw, int depth) in tb_switch_exceeds_max_depth()
1889 struct tb_switch *tb_switch_alloc(struct tb *tb, struct device *parent, in tb_switch_alloc()
1892 struct tb_switch *sw; in tb_switch_alloc()
1898 struct tb_switch *parent_sw = tb_to_switch(parent); in tb_switch_alloc()
1994 struct tb_switch *
1997 struct tb_switch *sw; in tb_switch_alloc_safe_mode()
2030 int tb_switch_configure(struct tb_switch *sw) in tb_switch_configure()
2079 static int tb_switch_set_uuid(struct tb_switch *sw) in tb_switch_set_uuid()
2125 static int tb_switch_add_dma_port(struct tb_switch *sw) in tb_switch_add_dma_port()
2205 static void tb_switch_default_link_ports(struct tb_switch *sw) in tb_switch_default_link_ports()
2235 static bool tb_switch_lane_bonding_possible(struct tb_switch *sw) in tb_switch_lane_bonding_possible()
2247 static int tb_switch_update_link_attributes(struct tb_switch *sw) in tb_switch_update_link_attributes()
2287 int tb_switch_lane_bonding_enable(struct tb_switch *sw) in tb_switch_lane_bonding_enable()
2289 struct tb_switch *parent = tb_to_switch(sw->dev.parent); in tb_switch_lane_bonding_enable()
2333 void tb_switch_lane_bonding_disable(struct tb_switch *sw) in tb_switch_lane_bonding_disable()
2335 struct tb_switch *parent = tb_to_switch(sw->dev.parent); in tb_switch_lane_bonding_disable()
2366 int tb_switch_configure_link(struct tb_switch *sw) in tb_switch_configure_link()
2395 void tb_switch_unconfigure_link(struct tb_switch *sw) in tb_switch_unconfigure_link()
2429 int tb_switch_add(struct tb_switch *sw) in tb_switch_add()
2533 void tb_switch_remove(struct tb_switch *sw) in tb_switch_remove()
2571 void tb_sw_set_unplugged(struct tb_switch *sw) in tb_sw_set_unplugged()
2592 static int tb_switch_set_wake(struct tb_switch *sw, unsigned int flags) in tb_switch_set_wake()
2604 int tb_switch_resume(struct tb_switch *sw) in tb_switch_resume()
2695 void tb_switch_suspend(struct tb_switch *sw, bool runtime) in tb_switch_suspend()
2736 bool tb_switch_query_dp_resource(struct tb_switch *sw, struct tb_port *in) in tb_switch_query_dp_resource()
2752 int tb_switch_alloc_dp_resource(struct tb_switch *sw, struct tb_port *in) in tb_switch_alloc_dp_resource()
2767 void tb_switch_dealloc_dp_resource(struct tb_switch *sw, struct tb_port *in) in tb_switch_dealloc_dp_resource()
2791 struct tb_switch *sw = tb_to_switch(dev); in tb_switch_match()
2823 struct tb_switch *tb_switch_find_by_link_depth(struct tb *tb, u8 link, u8 depth) in tb_switch_find_by_link_depth()
2848 struct tb_switch *tb_switch_find_by_uuid(struct tb *tb, const uuid_t *uuid) in tb_switch_find_by_uuid()
2872 struct tb_switch *tb_switch_find_by_route(struct tb *tb, u64 route) in tb_switch_find_by_route()
2896 struct tb_port *tb_switch_find_port(struct tb_switch *sw, in tb_switch_find_port()