Lines Matching refs:tb_switch

41 static struct nvm_auth_status *__nvm_get_auth_status(const struct tb_switch *sw)  in __nvm_get_auth_status()
53 static void nvm_get_auth_status(const struct tb_switch *sw, u32 *status) in nvm_get_auth_status()
64 static void nvm_set_auth_status(const struct tb_switch *sw, u32 status) in nvm_set_auth_status()
89 static void nvm_clear_auth_status(const struct tb_switch *sw) in nvm_clear_auth_status()
102 static int nvm_validate_and_write(struct tb_switch *sw) in nvm_validate_and_write()
130 static int nvm_authenticate_host_dma_port(struct tb_switch *sw) in nvm_authenticate_host_dma_port()
170 static int nvm_authenticate_device_dma_port(struct tb_switch *sw) in nvm_authenticate_device_dma_port()
215 static void nvm_authenticate_start_dma_port(struct tb_switch *sw) in nvm_authenticate_start_dma_port()
230 static void nvm_authenticate_complete_dma_port(struct tb_switch *sw) in nvm_authenticate_complete_dma_port()
239 static inline bool nvm_readable(struct tb_switch *sw) in nvm_readable()
255 static inline bool nvm_upgradeable(struct tb_switch *sw) in nvm_upgradeable()
262 static int nvm_authenticate(struct tb_switch *sw, bool auth_only) in nvm_authenticate()
300 int tb_switch_nvm_read(struct tb_switch *sw, unsigned int address, void *buf, in tb_switch_nvm_read()
311 struct tb_switch *sw = tb_to_switch(nvm->dev); in nvm_read()
334 struct tb_switch *sw = tb_to_switch(nvm->dev); in nvm_write()
352 static int tb_switch_nvm_add(struct tb_switch *sw) in tb_switch_nvm_add()
399 static void tb_switch_nvm_remove(struct tb_switch *sw) in tb_switch_nvm_remove()
828 static inline bool tb_switch_is_reachable(const struct tb_switch *parent, in tb_switch_is_reachable()
829 const struct tb_switch *sw) in tb_switch_is_reachable()
1560 static const char *tb_switch_generation_name(const struct tb_switch *sw) in tb_switch_generation_name()
1576 static void tb_dump_switch(const struct tb *tb, const struct tb_switch *sw) in tb_dump_switch()
1600 int tb_switch_reset(struct tb_switch *sw) in tb_switch_reset()
1631 int tb_switch_wait_for_bit(struct tb_switch *sw, u32 offset, u32 bit, in tb_switch_wait_for_bit()
1660 static int tb_plug_events_active(struct tb_switch *sw, bool active) in tb_plug_events_active()
1704 struct tb_switch *sw = tb_to_switch(dev); in authorized_show()
1712 struct tb_switch *sw; in disapprove_switch()
1734 static int tb_switch_set_authorized(struct tb_switch *sw, unsigned int val) in tb_switch_set_authorized()
1792 struct tb_switch *sw = tb_to_switch(dev); in authorized_store()
1814 struct tb_switch *sw = tb_to_switch(dev); in boot_show()
1823 struct tb_switch *sw = tb_to_switch(dev); in device_show()
1832 struct tb_switch *sw = tb_to_switch(dev); in device_name_show()
1841 struct tb_switch *sw = tb_to_switch(dev); in generation_show()
1850 struct tb_switch *sw = tb_to_switch(dev); in key_show()
1868 struct tb_switch *sw = tb_to_switch(dev); in key_store()
1902 struct tb_switch *sw = tb_to_switch(dev); in speed_show()
1917 struct tb_switch *sw = tb_to_switch(dev); in lanes_show()
1932 struct tb_switch *sw = tb_to_switch(dev); in nvm_authenticate_show()
1942 struct tb_switch *sw = tb_to_switch(dev); in nvm_authenticate_sysfs()
2034 struct tb_switch *sw = tb_to_switch(dev); in nvm_version_show()
2056 struct tb_switch *sw = tb_to_switch(dev); in vendor_show()
2065 struct tb_switch *sw = tb_to_switch(dev); in vendor_name_show()
2074 struct tb_switch *sw = tb_to_switch(dev); in unique_id_show()
2104 struct tb_switch *sw = tb_to_switch(dev); in switch_attr_is_visible()
2168 struct tb_switch *sw = tb_to_switch(dev); in tb_switch_release()
2189 const struct tb_switch *sw = tb_to_switch(dev); in tb_switch_uevent()
2226 struct tb_switch *sw = tb_to_switch(dev); in tb_switch_runtime_suspend()
2237 struct tb_switch *sw = tb_to_switch(dev); in tb_switch_runtime_resume()
2257 static int tb_switch_get_generation(struct tb_switch *sw) in tb_switch_get_generation()
2301 static bool tb_switch_exceeds_max_depth(const struct tb_switch *sw, int depth) in tb_switch_exceeds_max_depth()
2328 struct tb_switch *tb_switch_alloc(struct tb *tb, struct device *parent, in tb_switch_alloc()
2331 struct tb_switch *sw; in tb_switch_alloc()
2337 struct tb_switch *parent_sw = tb_to_switch(parent); in tb_switch_alloc()
2447 struct tb_switch *
2450 struct tb_switch *sw; in tb_switch_alloc_safe_mode()
2483 int tb_switch_configure(struct tb_switch *sw) in tb_switch_configure()
2533 static int tb_switch_set_uuid(struct tb_switch *sw) in tb_switch_set_uuid()
2579 static int tb_switch_add_dma_port(struct tb_switch *sw) in tb_switch_add_dma_port()
2673 static void tb_switch_default_link_ports(struct tb_switch *sw) in tb_switch_default_link_ports()
2703 static bool tb_switch_lane_bonding_possible(struct tb_switch *sw) in tb_switch_lane_bonding_possible()
2715 static int tb_switch_update_link_attributes(struct tb_switch *sw) in tb_switch_update_link_attributes()
2755 int tb_switch_lane_bonding_enable(struct tb_switch *sw) in tb_switch_lane_bonding_enable()
2757 struct tb_switch *parent = tb_to_switch(sw->dev.parent); in tb_switch_lane_bonding_enable()
2809 void tb_switch_lane_bonding_disable(struct tb_switch *sw) in tb_switch_lane_bonding_disable()
2811 struct tb_switch *parent = tb_to_switch(sw->dev.parent); in tb_switch_lane_bonding_disable()
2852 int tb_switch_configure_link(struct tb_switch *sw) in tb_switch_configure_link()
2881 void tb_switch_unconfigure_link(struct tb_switch *sw) in tb_switch_unconfigure_link()
2903 static void tb_switch_credits_init(struct tb_switch *sw) in tb_switch_credits_init()
2913 static int tb_switch_port_hotplug_enable(struct tb_switch *sw) in tb_switch_port_hotplug_enable()
2945 int tb_switch_add(struct tb_switch *sw) in tb_switch_add()
3067 void tb_switch_remove(struct tb_switch *sw) in tb_switch_remove()
3107 void tb_sw_set_unplugged(struct tb_switch *sw) in tb_sw_set_unplugged()
3128 static int tb_switch_set_wake(struct tb_switch *sw, unsigned int flags) in tb_switch_set_wake()
3140 int tb_switch_resume(struct tb_switch *sw) in tb_switch_resume()
3238 void tb_switch_suspend(struct tb_switch *sw, bool runtime) in tb_switch_suspend()
3291 bool tb_switch_query_dp_resource(struct tb_switch *sw, struct tb_port *in) in tb_switch_query_dp_resource()
3307 int tb_switch_alloc_dp_resource(struct tb_switch *sw, struct tb_port *in) in tb_switch_alloc_dp_resource()
3333 void tb_switch_dealloc_dp_resource(struct tb_switch *sw, struct tb_port *in) in tb_switch_dealloc_dp_resource()
3359 struct tb_switch *sw = tb_to_switch(dev); in tb_switch_match()
3391 struct tb_switch *tb_switch_find_by_link_depth(struct tb *tb, u8 link, u8 depth) in tb_switch_find_by_link_depth()
3416 struct tb_switch *tb_switch_find_by_uuid(struct tb *tb, const uuid_t *uuid) in tb_switch_find_by_uuid()
3440 struct tb_switch *tb_switch_find_by_route(struct tb *tb, u64 route) in tb_switch_find_by_route()
3464 struct tb_port *tb_switch_find_port(struct tb_switch *sw, in tb_switch_find_port()
3477 static int tb_switch_pm_secondary_resolve(struct tb_switch *sw) in tb_switch_pm_secondary_resolve()
3479 struct tb_switch *parent = tb_switch_parent(sw); in tb_switch_pm_secondary_resolve()
3495 static int __tb_switch_enable_clx(struct tb_switch *sw, enum tb_clx clx) in __tb_switch_enable_clx()
3497 struct tb_switch *parent = tb_switch_parent(sw); in __tb_switch_enable_clx()
3571 int tb_switch_enable_clx(struct tb_switch *sw, enum tb_clx clx) in tb_switch_enable_clx()
3573 struct tb_switch *root_sw = sw->tb->root_switch; in tb_switch_enable_clx()
3595 static int __tb_switch_disable_clx(struct tb_switch *sw, enum tb_clx clx) in __tb_switch_disable_clx()
3597 struct tb_switch *parent = tb_switch_parent(sw); in __tb_switch_disable_clx()
3638 int tb_switch_disable_clx(struct tb_switch *sw, enum tb_clx clx) in tb_switch_disable_clx()
3661 int tb_switch_mask_clx_objections(struct tb_switch *sw) in tb_switch_mask_clx_objections()
3709 static int tb_switch_pcie_bridge_write(struct tb_switch *sw, unsigned int bridge, in tb_switch_pcie_bridge_write()
3760 int tb_switch_pcie_l1_enable(struct tb_switch *sw) in tb_switch_pcie_l1_enable()
3762 struct tb_switch *parent = tb_switch_parent(sw); in tb_switch_pcie_l1_enable()
3794 int tb_switch_xhci_connect(struct tb_switch *sw) in tb_switch_xhci_connect()
3838 void tb_switch_xhci_disconnect(struct tb_switch *sw) in tb_switch_xhci_disconnect()