Lines Matching defs:sw

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()
126 static int nvm_authenticate_host_dma_port(struct tb_switch *sw) in nvm_authenticate_host_dma_port()
166 static int nvm_authenticate_device_dma_port(struct tb_switch *sw) in nvm_authenticate_device_dma_port()
211 static void nvm_authenticate_start_dma_port(struct tb_switch *sw) in nvm_authenticate_start_dma_port()
226 static void nvm_authenticate_complete_dma_port(struct tb_switch *sw) in nvm_authenticate_complete_dma_port()
235 static inline bool nvm_readable(struct tb_switch *sw) in nvm_readable()
251 static inline bool nvm_upgradeable(struct tb_switch *sw) in nvm_upgradeable()
258 static int nvm_authenticate(struct tb_switch *sw, bool auth_only) in nvm_authenticate()
296 int tb_switch_nvm_read(struct tb_switch *sw, unsigned int address, void *buf, in tb_switch_nvm_read()
307 struct tb_switch *sw = tb_to_switch(nvm->dev); in nvm_read() local
330 struct tb_switch *sw = tb_to_switch(nvm->dev); in nvm_write() local
348 static int tb_switch_nvm_add(struct tb_switch *sw) in tb_switch_nvm_add()
395 static void tb_switch_nvm_remove(struct tb_switch *sw) in tb_switch_nvm_remove()
832 const struct tb_switch *sw) in tb_switch_is_reachable()
1525 static const char *tb_switch_generation_name(const struct tb_switch *sw) in tb_switch_generation_name()
1541 static void tb_dump_switch(const struct tb *tb, const struct tb_switch *sw) in tb_dump_switch()
1559 static int tb_switch_reset_host(struct tb_switch *sw) in tb_switch_reset_host()
1618 static int tb_switch_reset_device(struct tb_switch *sw) in tb_switch_reset_device()
1623 static bool tb_switch_enumerated(struct tb_switch *sw) in tb_switch_enumerated()
1654 int tb_switch_reset(struct tb_switch *sw) in tb_switch_reset()
1691 int tb_switch_wait_for_bit(struct tb_switch *sw, u32 offset, u32 bit, in tb_switch_wait_for_bit()
1720 static int tb_plug_events_active(struct tb_switch *sw, bool active) in tb_plug_events_active()
1764 struct tb_switch *sw = tb_to_switch(dev); in authorized_show() local
1772 struct tb_switch *sw; in disapprove_switch() local
1794 static int tb_switch_set_authorized(struct tb_switch *sw, unsigned int val) in tb_switch_set_authorized()
1852 struct tb_switch *sw = tb_to_switch(dev); in authorized_store() local
1874 struct tb_switch *sw = tb_to_switch(dev); in boot_show() local
1883 struct tb_switch *sw = tb_to_switch(dev); in device_show() local
1892 struct tb_switch *sw = tb_to_switch(dev); in device_name_show() local
1901 struct tb_switch *sw = tb_to_switch(dev); in generation_show() local
1910 struct tb_switch *sw = tb_to_switch(dev); in key_show() local
1928 struct tb_switch *sw = tb_to_switch(dev); in key_store() local
1962 struct tb_switch *sw = tb_to_switch(dev); in speed_show() local
1977 struct tb_switch *sw = tb_to_switch(dev); in rx_lanes_show() local
2003 struct tb_switch *sw = tb_to_switch(dev); in tx_lanes_show() local
2029 struct tb_switch *sw = tb_to_switch(dev); in nvm_authenticate_show() local
2039 struct tb_switch *sw = tb_to_switch(dev); in nvm_authenticate_sysfs() local
2131 struct tb_switch *sw = tb_to_switch(dev); in nvm_version_show() local
2153 struct tb_switch *sw = tb_to_switch(dev); in vendor_show() local
2162 struct tb_switch *sw = tb_to_switch(dev); in vendor_name_show() local
2171 struct tb_switch *sw = tb_to_switch(dev); in unique_id_show() local
2201 struct tb_switch *sw = tb_to_switch(dev); in switch_attr_is_visible() local
2265 struct tb_switch *sw = tb_to_switch(dev); in tb_switch_release() local
2286 const struct tb_switch *sw = tb_to_switch(dev); in tb_switch_uevent() local
2324 struct tb_switch *sw = tb_to_switch(dev); in tb_switch_runtime_suspend() local
2335 struct tb_switch *sw = tb_to_switch(dev); in tb_switch_runtime_resume() local
2355 static int tb_switch_get_generation(struct tb_switch *sw) in tb_switch_get_generation()
2400 static bool tb_switch_exceeds_max_depth(const struct tb_switch *sw, int depth) in tb_switch_exceeds_max_depth()
2430 struct tb_switch *sw; in tb_switch_alloc() local
2549 struct tb_switch *sw; in tb_switch_alloc_safe_mode() local
2582 int tb_switch_configure(struct tb_switch *sw) in tb_switch_configure()
2645 int tb_switch_configuration_valid(struct tb_switch *sw) in tb_switch_configuration_valid()
2652 static int tb_switch_set_uuid(struct tb_switch *sw) in tb_switch_set_uuid()
2698 static int tb_switch_add_dma_port(struct tb_switch *sw) in tb_switch_add_dma_port()
2792 static void tb_switch_default_link_ports(struct tb_switch *sw) in tb_switch_default_link_ports()
2822 static bool tb_switch_lane_bonding_possible(struct tb_switch *sw) in tb_switch_lane_bonding_possible()
2834 static int tb_switch_update_link_attributes(struct tb_switch *sw) in tb_switch_update_link_attributes()
2867 static void tb_switch_link_init(struct tb_switch *sw) in tb_switch_link_init()
2906 static int tb_switch_lane_bonding_enable(struct tb_switch *sw) in tb_switch_lane_bonding_enable()
2956 static int tb_switch_lane_bonding_disable(struct tb_switch *sw) in tb_switch_lane_bonding_disable()
2988 static int tb_switch_asym_enable(struct tb_switch *sw, enum tb_link_width width) in tb_switch_asym_enable()
3031 static int tb_switch_asym_disable(struct tb_switch *sw) in tb_switch_asym_disable()
3081 int tb_switch_set_link_width(struct tb_switch *sw, enum tb_link_width width) in tb_switch_set_link_width()
3152 int tb_switch_configure_link(struct tb_switch *sw) in tb_switch_configure_link()
3181 void tb_switch_unconfigure_link(struct tb_switch *sw) in tb_switch_unconfigure_link()
3210 static void tb_switch_credits_init(struct tb_switch *sw) in tb_switch_credits_init()
3220 static int tb_switch_port_hotplug_enable(struct tb_switch *sw) in tb_switch_port_hotplug_enable()
3252 int tb_switch_add(struct tb_switch *sw) in tb_switch_add()
3380 void tb_switch_remove(struct tb_switch *sw) in tb_switch_remove()
3421 void tb_sw_set_unplugged(struct tb_switch *sw) in tb_sw_set_unplugged()
3442 static int tb_switch_set_wake(struct tb_switch *sw, unsigned int flags) in tb_switch_set_wake()
3454 static void tb_switch_check_wakes(struct tb_switch *sw) in tb_switch_check_wakes()
3473 int tb_switch_resume(struct tb_switch *sw, bool runtime) in tb_switch_resume()
3575 void tb_switch_suspend(struct tb_switch *sw, bool runtime) in tb_switch_suspend()
3623 bool tb_switch_query_dp_resource(struct tb_switch *sw, struct tb_port *in) in tb_switch_query_dp_resource()
3639 int tb_switch_alloc_dp_resource(struct tb_switch *sw, struct tb_port *in) in tb_switch_alloc_dp_resource()
3665 void tb_switch_dealloc_dp_resource(struct tb_switch *sw, struct tb_port *in) in tb_switch_dealloc_dp_resource()
3691 struct tb_switch *sw = tb_to_switch(dev); in tb_switch_match() local
3796 struct tb_port *tb_switch_find_port(struct tb_switch *sw, in tb_switch_find_port()
3813 static int tb_switch_pcie_bridge_write(struct tb_switch *sw, unsigned int bridge, in tb_switch_pcie_bridge_write()
3864 int tb_switch_pcie_l1_enable(struct tb_switch *sw) in tb_switch_pcie_l1_enable()
3898 int tb_switch_xhci_connect(struct tb_switch *sw) in tb_switch_xhci_connect()
3942 void tb_switch_xhci_disconnect(struct tb_switch *sw) in tb_switch_xhci_disconnect()