Lines Matching defs:sw
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() local
356 struct tb_switch *sw = tb_to_switch(nvm->dev); in tb_switch_nvm_write() local
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()
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() local
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() local
1420 struct tb_switch *sw = tb_to_switch(dev); in boot_show() local
1429 struct tb_switch *sw = tb_to_switch(dev); in device_show() local
1438 struct tb_switch *sw = tb_to_switch(dev); in device_name_show() local
1447 struct tb_switch *sw = tb_to_switch(dev); in generation_show() local
1456 struct tb_switch *sw = tb_to_switch(dev); in key_show() local
1474 struct tb_switch *sw = tb_to_switch(dev); in key_store() local
1508 struct tb_switch *sw = tb_to_switch(dev); in speed_show() local
1523 struct tb_switch *sw = tb_to_switch(dev); in lanes_show() local
1538 struct tb_switch *sw = tb_to_switch(dev); in nvm_authenticate_show() local
1548 struct tb_switch *sw = tb_to_switch(dev); in nvm_authenticate_sysfs() local
1631 struct tb_switch *sw = tb_to_switch(dev); in nvm_version_show() local
1653 struct tb_switch *sw = tb_to_switch(dev); in vendor_show() local
1662 struct tb_switch *sw = tb_to_switch(dev); in vendor_name_show() local
1671 struct tb_switch *sw = tb_to_switch(dev); in unique_id_show() local
1701 struct tb_switch *sw = tb_to_switch(dev); in switch_attr_is_visible() local
1761 struct tb_switch *sw = tb_to_switch(dev); in tb_switch_release() local
1788 struct tb_switch *sw = tb_to_switch(dev); in tb_switch_runtime_suspend() local
1799 struct tb_switch *sw = tb_to_switch(dev); in tb_switch_runtime_resume() local
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()
1892 struct tb_switch *sw; in tb_switch_alloc() local
1997 struct tb_switch *sw; in tb_switch_alloc_safe_mode() local
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()
2333 void tb_switch_lane_bonding_disable(struct tb_switch *sw) 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() local
2896 struct tb_port *tb_switch_find_port(struct tb_switch *sw, in tb_switch_find_port()