Lines Matching defs:sw
40 static struct nvm_auth_status *__nvm_get_auth_status(const struct tb_switch *sw) in __nvm_get_auth_status()
52 static void nvm_get_auth_status(const struct tb_switch *sw, u32 *status) in nvm_get_auth_status()
63 static void nvm_set_auth_status(const struct tb_switch *sw, u32 status) in nvm_set_auth_status()
88 static void nvm_clear_auth_status(const struct tb_switch *sw) in nvm_clear_auth_status()
101 static int nvm_validate_and_write(struct tb_switch *sw) in nvm_validate_and_write()
129 static int nvm_authenticate_host_dma_port(struct tb_switch *sw) in nvm_authenticate_host_dma_port()
169 static int nvm_authenticate_device_dma_port(struct tb_switch *sw) in nvm_authenticate_device_dma_port()
214 static void nvm_authenticate_start_dma_port(struct tb_switch *sw) in nvm_authenticate_start_dma_port()
229 static void nvm_authenticate_complete_dma_port(struct tb_switch *sw) in nvm_authenticate_complete_dma_port()
238 static inline bool nvm_readable(struct tb_switch *sw) in nvm_readable()
254 static inline bool nvm_upgradeable(struct tb_switch *sw) in nvm_upgradeable()
261 static int nvm_authenticate(struct tb_switch *sw, bool auth_only) in nvm_authenticate()
299 int tb_switch_nvm_read(struct tb_switch *sw, unsigned int address, void *buf, in tb_switch_nvm_read()
310 struct tb_switch *sw = tb_to_switch(nvm->dev); in nvm_read() local
333 struct tb_switch *sw = tb_to_switch(nvm->dev); in nvm_write() local
351 static int tb_switch_nvm_add(struct tb_switch *sw) in tb_switch_nvm_add()
398 static void tb_switch_nvm_remove(struct tb_switch *sw) in tb_switch_nvm_remove()
820 const struct tb_switch *sw) in tb_switch_is_reachable()
1551 static const char *tb_switch_generation_name(const struct tb_switch *sw) in tb_switch_generation_name()
1567 static void tb_dump_switch(const struct tb *tb, const struct tb_switch *sw) in tb_dump_switch()
1591 int tb_switch_reset(struct tb_switch *sw) in tb_switch_reset()
1622 int tb_switch_wait_for_bit(struct tb_switch *sw, u32 offset, u32 bit, in tb_switch_wait_for_bit()
1651 static int tb_plug_events_active(struct tb_switch *sw, bool active) in tb_plug_events_active()
1695 struct tb_switch *sw = tb_to_switch(dev); in authorized_show() local
1703 struct tb_switch *sw; in disapprove_switch() local
1725 static int tb_switch_set_authorized(struct tb_switch *sw, unsigned int val) in tb_switch_set_authorized()
1783 struct tb_switch *sw = tb_to_switch(dev); in authorized_store() local
1805 struct tb_switch *sw = tb_to_switch(dev); in boot_show() local
1814 struct tb_switch *sw = tb_to_switch(dev); in device_show() local
1823 struct tb_switch *sw = tb_to_switch(dev); in device_name_show() local
1832 struct tb_switch *sw = tb_to_switch(dev); in generation_show() local
1841 struct tb_switch *sw = tb_to_switch(dev); in key_show() local
1859 struct tb_switch *sw = tb_to_switch(dev); in key_store() local
1893 struct tb_switch *sw = tb_to_switch(dev); in speed_show() local
1908 struct tb_switch *sw = tb_to_switch(dev); in lanes_show() local
1923 struct tb_switch *sw = tb_to_switch(dev); in nvm_authenticate_show() local
1933 struct tb_switch *sw = tb_to_switch(dev); in nvm_authenticate_sysfs() local
2025 struct tb_switch *sw = tb_to_switch(dev); in nvm_version_show() local
2047 struct tb_switch *sw = tb_to_switch(dev); in vendor_show() local
2056 struct tb_switch *sw = tb_to_switch(dev); in vendor_name_show() local
2065 struct tb_switch *sw = tb_to_switch(dev); in unique_id_show() local
2095 struct tb_switch *sw = tb_to_switch(dev); in switch_attr_is_visible() local
2159 struct tb_switch *sw = tb_to_switch(dev); in tb_switch_release() local
2180 struct tb_switch *sw = tb_to_switch(dev); in tb_switch_uevent() local
2217 struct tb_switch *sw = tb_to_switch(dev); in tb_switch_runtime_suspend() local
2228 struct tb_switch *sw = tb_to_switch(dev); in tb_switch_runtime_resume() local
2248 static int tb_switch_get_generation(struct tb_switch *sw) in tb_switch_get_generation()
2292 static bool tb_switch_exceeds_max_depth(const struct tb_switch *sw, int depth) in tb_switch_exceeds_max_depth()
2322 struct tb_switch *sw; in tb_switch_alloc() local
2441 struct tb_switch *sw; in tb_switch_alloc_safe_mode() local
2474 int tb_switch_configure(struct tb_switch *sw) in tb_switch_configure()
2524 static int tb_switch_set_uuid(struct tb_switch *sw) in tb_switch_set_uuid()
2570 static int tb_switch_add_dma_port(struct tb_switch *sw) in tb_switch_add_dma_port()
2664 static void tb_switch_default_link_ports(struct tb_switch *sw) in tb_switch_default_link_ports()
2694 static bool tb_switch_lane_bonding_possible(struct tb_switch *sw) in tb_switch_lane_bonding_possible()
2706 static int tb_switch_update_link_attributes(struct tb_switch *sw) in tb_switch_update_link_attributes()
2746 int tb_switch_lane_bonding_enable(struct tb_switch *sw) in tb_switch_lane_bonding_enable()
2800 void tb_switch_lane_bonding_disable(struct tb_switch *sw) in tb_switch_lane_bonding_disable()
2843 int tb_switch_configure_link(struct tb_switch *sw) in tb_switch_configure_link()
2872 void tb_switch_unconfigure_link(struct tb_switch *sw) in tb_switch_unconfigure_link()
2894 static void tb_switch_credits_init(struct tb_switch *sw) in tb_switch_credits_init()
2904 static int tb_switch_port_hotplug_enable(struct tb_switch *sw) in tb_switch_port_hotplug_enable()
2936 int tb_switch_add(struct tb_switch *sw) in tb_switch_add()
3058 void tb_switch_remove(struct tb_switch *sw) in tb_switch_remove()
3098 void tb_sw_set_unplugged(struct tb_switch *sw) in tb_sw_set_unplugged()
3119 static int tb_switch_set_wake(struct tb_switch *sw, unsigned int flags) in tb_switch_set_wake()
3131 int tb_switch_resume(struct tb_switch *sw) in tb_switch_resume()
3229 void tb_switch_suspend(struct tb_switch *sw, bool runtime) in tb_switch_suspend()
3282 bool tb_switch_query_dp_resource(struct tb_switch *sw, struct tb_port *in) in tb_switch_query_dp_resource()
3298 int tb_switch_alloc_dp_resource(struct tb_switch *sw, struct tb_port *in) in tb_switch_alloc_dp_resource()
3324 void tb_switch_dealloc_dp_resource(struct tb_switch *sw, struct tb_port *in) in tb_switch_dealloc_dp_resource()
3350 struct tb_switch *sw = tb_to_switch(dev); in tb_switch_match() local
3455 struct tb_port *tb_switch_find_port(struct tb_switch *sw, in tb_switch_find_port()
3468 static int tb_switch_pm_secondary_resolve(struct tb_switch *sw) in tb_switch_pm_secondary_resolve()
3486 static int __tb_switch_enable_clx(struct tb_switch *sw, enum tb_clx clx) in __tb_switch_enable_clx()
3562 int tb_switch_enable_clx(struct tb_switch *sw, enum tb_clx clx) in tb_switch_enable_clx()
3586 static int __tb_switch_disable_clx(struct tb_switch *sw, enum tb_clx clx) in __tb_switch_disable_clx()
3629 int tb_switch_disable_clx(struct tb_switch *sw, enum tb_clx clx) in tb_switch_disable_clx()
3652 int tb_switch_mask_clx_objections(struct tb_switch *sw) in tb_switch_mask_clx_objections()
3700 static int tb_switch_pcie_bridge_write(struct tb_switch *sw, unsigned int bridge, in tb_switch_pcie_bridge_write()
3751 int tb_switch_pcie_l1_enable(struct tb_switch *sw) in tb_switch_pcie_l1_enable()
3785 int tb_switch_xhci_connect(struct tb_switch *sw) in tb_switch_xhci_connect()
3829 void tb_switch_xhci_disconnect(struct tb_switch *sw) in tb_switch_xhci_disconnect()