tb_switch          28 drivers/thunderbolt/cap.c 	struct tb_switch *sw = port->sw;
tb_switch         116 drivers/thunderbolt/cap.c static int tb_switch_find_cap(struct tb_switch *sw, enum tb_switch_cap cap)
tb_switch         147 drivers/thunderbolt/cap.c int tb_switch_find_vse_cap(struct tb_switch *sw, enum tb_switch_vse_cap vsec)
tb_switch          55 drivers/thunderbolt/dma_port.c 	struct tb_switch *sw;
tb_switch         168 drivers/thunderbolt/dma_port.c static int dma_find_port(struct tb_switch *sw)
tb_switch         201 drivers/thunderbolt/dma_port.c struct tb_dma_port *dma_port_alloc(struct tb_switch *sw)
tb_switch         243 drivers/thunderbolt/dma_port.c 	struct tb_switch *sw = dma->sw;
tb_switch         281 drivers/thunderbolt/dma_port.c 	struct tb_switch *sw = dma->sw;
tb_switch         305 drivers/thunderbolt/dma_port.c 	struct tb_switch *sw = dma->sw;
tb_switch         329 drivers/thunderbolt/dma_port.c 	struct tb_switch *sw = dma->sw;
tb_switch         483 drivers/thunderbolt/dma_port.c 	struct tb_switch *sw = dma->sw;
tb_switch          15 drivers/thunderbolt/dma_port.h struct tb_switch;
tb_switch          21 drivers/thunderbolt/dma_port.h struct tb_dma_port *dma_port_alloc(struct tb_switch *sw);
tb_switch         584 drivers/thunderbolt/domain.c int tb_domain_approve_switch(struct tb *tb, struct tb_switch *sw)
tb_switch         586 drivers/thunderbolt/domain.c 	struct tb_switch *parent_sw;
tb_switch         610 drivers/thunderbolt/domain.c int tb_domain_approve_switch_key(struct tb *tb, struct tb_switch *sw)
tb_switch         612 drivers/thunderbolt/domain.c 	struct tb_switch *parent_sw;
tb_switch         642 drivers/thunderbolt/domain.c int tb_domain_challenge_switch_key(struct tb *tb, struct tb_switch *sw)
tb_switch         647 drivers/thunderbolt/domain.c 	struct tb_switch *parent_sw;
tb_switch          17 drivers/thunderbolt/eeprom.c static int tb_eeprom_ctl_write(struct tb_switch *sw, struct tb_eeprom_ctl *ctl)
tb_switch          25 drivers/thunderbolt/eeprom.c static int tb_eeprom_ctl_read(struct tb_switch *sw, struct tb_eeprom_ctl *ctl)
tb_switch          41 drivers/thunderbolt/eeprom.c static int tb_eeprom_active(struct tb_switch *sw, bool enable)
tb_switch          70 drivers/thunderbolt/eeprom.c static int tb_eeprom_transfer(struct tb_switch *sw, struct tb_eeprom_ctl *ctl,
tb_switch          95 drivers/thunderbolt/eeprom.c static int tb_eeprom_out(struct tb_switch *sw, u8 val)
tb_switch         115 drivers/thunderbolt/eeprom.c static int tb_eeprom_in(struct tb_switch *sw, u8 *val)
tb_switch         136 drivers/thunderbolt/eeprom.c static int tb_eeprom_read_n(struct tb_switch *sw, u16 offset, u8 *val,
tb_switch         244 drivers/thunderbolt/eeprom.c static int tb_eeprom_get_drom_offset(struct tb_switch *sw, u16 *offset)
tb_switch         277 drivers/thunderbolt/eeprom.c int tb_drom_read_uid_only(struct tb_switch *sw, u64 *uid)
tb_switch         305 drivers/thunderbolt/eeprom.c static int tb_drom_parse_entry_generic(struct tb_switch *sw,
tb_switch         331 drivers/thunderbolt/eeprom.c static int tb_drom_parse_entry_port(struct tb_switch *sw,
tb_switch         378 drivers/thunderbolt/eeprom.c static int tb_drom_parse_entries(struct tb_switch *sw)
tb_switch         412 drivers/thunderbolt/eeprom.c static int tb_drom_copy_efi(struct tb_switch *sw, u16 *size)
tb_switch         443 drivers/thunderbolt/eeprom.c static int tb_drom_copy_nvm(struct tb_switch *sw, u16 *size)
tb_switch         490 drivers/thunderbolt/eeprom.c int tb_drom_read(struct tb_switch *sw)
tb_switch         436 drivers/thunderbolt/icm.c static int icm_fr_approve_switch(struct tb *tb, struct tb_switch *sw)
tb_switch         463 drivers/thunderbolt/icm.c static int icm_fr_add_switch_key(struct tb *tb, struct tb_switch *sw)
tb_switch         490 drivers/thunderbolt/icm.c static int icm_fr_challenge_switch_key(struct tb *tb, struct tb_switch *sw,
tb_switch         565 drivers/thunderbolt/icm.c static struct tb_switch *add_switch(struct tb_switch *parent_sw, u64 route,
tb_switch         573 drivers/thunderbolt/icm.c 	struct tb_switch *sw;
tb_switch         619 drivers/thunderbolt/icm.c static void update_switch(struct tb_switch *parent_sw, struct tb_switch *sw,
tb_switch         644 drivers/thunderbolt/icm.c static void remove_switch(struct tb_switch *sw)
tb_switch         646 drivers/thunderbolt/icm.c 	struct tb_switch *parent_sw;
tb_switch         653 drivers/thunderbolt/icm.c static void add_xdomain(struct tb_switch *sw, u64 route,
tb_switch         686 drivers/thunderbolt/icm.c 	struct tb_switch *sw;
tb_switch         699 drivers/thunderbolt/icm.c 	struct tb_switch *sw, *parent_sw;
tb_switch         827 drivers/thunderbolt/icm.c 	struct tb_switch *sw;
tb_switch         856 drivers/thunderbolt/icm.c 	struct tb_switch *sw;
tb_switch         987 drivers/thunderbolt/icm.c static int icm_tr_approve_switch(struct tb *tb, struct tb_switch *sw)
tb_switch        1014 drivers/thunderbolt/icm.c static int icm_tr_add_switch_key(struct tb *tb, struct tb_switch *sw)
tb_switch        1042 drivers/thunderbolt/icm.c static int icm_tr_challenge_switch_key(struct tb *tb, struct tb_switch *sw,
tb_switch        1146 drivers/thunderbolt/icm.c 	struct tb_switch *sw, *parent_sw;
tb_switch        1228 drivers/thunderbolt/icm.c 	struct tb_switch *sw;
tb_switch        1249 drivers/thunderbolt/icm.c 	struct tb_switch *sw;
tb_switch        1894 drivers/thunderbolt/icm.c static void icm_unplug_children(struct tb_switch *sw)
tb_switch        1913 drivers/thunderbolt/icm.c 	struct tb_switch *sw = tb_to_switch(dev);
tb_switch        1920 drivers/thunderbolt/icm.c static void remove_unplugged_switch(struct tb_switch *sw)
tb_switch        1937 drivers/thunderbolt/icm.c static void icm_free_unplugged_children(struct tb_switch *sw)
tb_switch        2005 drivers/thunderbolt/icm.c static int icm_runtime_suspend_switch(struct tb_switch *sw)
tb_switch        2012 drivers/thunderbolt/icm.c static int icm_runtime_resume_switch(struct tb_switch *sw)
tb_switch          16 drivers/thunderbolt/lc.c int tb_lc_read_uuid(struct tb_switch *sw, u32 *uuid)
tb_switch          23 drivers/thunderbolt/lc.c static int read_lc_desc(struct tb_switch *sw, u32 *desc)
tb_switch          32 drivers/thunderbolt/lc.c 	struct tb_switch *sw = port->sw;
tb_switch          51 drivers/thunderbolt/lc.c 	struct tb_switch *sw = port->sw;
tb_switch          92 drivers/thunderbolt/lc.c int tb_lc_configure_link(struct tb_switch *sw)
tb_switch         123 drivers/thunderbolt/lc.c void tb_lc_unconfigure_link(struct tb_switch *sw)
tb_switch         144 drivers/thunderbolt/lc.c int tb_lc_set_sleep(struct tb_switch *sw)
tb_switch          39 drivers/thunderbolt/path.c 	struct tb_switch *sw;
tb_switch         107 drivers/thunderbolt/path.c 	struct tb_switch *sw;
tb_switch          46 drivers/thunderbolt/switch.c static struct nvm_auth_status *__nvm_get_auth_status(const struct tb_switch *sw)
tb_switch          58 drivers/thunderbolt/switch.c static void nvm_get_auth_status(const struct tb_switch *sw, u32 *status)
tb_switch          69 drivers/thunderbolt/switch.c static void nvm_set_auth_status(const struct tb_switch *sw, u32 status)
tb_switch          94 drivers/thunderbolt/switch.c static void nvm_clear_auth_status(const struct tb_switch *sw)
tb_switch         107 drivers/thunderbolt/switch.c static int nvm_validate_and_write(struct tb_switch *sw)
tb_switch         169 drivers/thunderbolt/switch.c static int nvm_authenticate_host(struct tb_switch *sw)
tb_switch         209 drivers/thunderbolt/switch.c static int nvm_authenticate_device(struct tb_switch *sw)
tb_switch         257 drivers/thunderbolt/switch.c 	struct tb_switch *sw = priv;
tb_switch         286 drivers/thunderbolt/switch.c 	struct tb_switch *sw = priv;
tb_switch         315 drivers/thunderbolt/switch.c static struct nvmem_device *register_nvmem(struct tb_switch *sw, int id,
tb_switch         344 drivers/thunderbolt/switch.c static int tb_switch_nvm_add(struct tb_switch *sw)
tb_switch         415 drivers/thunderbolt/switch.c static void tb_switch_nvm_remove(struct tb_switch *sw)
tb_switch        1010 drivers/thunderbolt/switch.c static int tb_plug_events_active(struct tb_switch *sw, bool active)
tb_switch        1048 drivers/thunderbolt/switch.c 	struct tb_switch *sw = tb_to_switch(dev);
tb_switch        1053 drivers/thunderbolt/switch.c static int tb_switch_set_authorized(struct tb_switch *sw, unsigned int val)
tb_switch        1097 drivers/thunderbolt/switch.c 	struct tb_switch *sw = tb_to_switch(dev);
tb_switch        1119 drivers/thunderbolt/switch.c 	struct tb_switch *sw = tb_to_switch(dev);
tb_switch        1128 drivers/thunderbolt/switch.c 	struct tb_switch *sw = tb_to_switch(dev);
tb_switch        1137 drivers/thunderbolt/switch.c 	struct tb_switch *sw = tb_to_switch(dev);
tb_switch        1146 drivers/thunderbolt/switch.c 	struct tb_switch *sw = tb_to_switch(dev);
tb_switch        1164 drivers/thunderbolt/switch.c 	struct tb_switch *sw = tb_to_switch(dev);
tb_switch        1195 drivers/thunderbolt/switch.c static void nvm_authenticate_start(struct tb_switch *sw)
tb_switch        1210 drivers/thunderbolt/switch.c static void nvm_authenticate_complete(struct tb_switch *sw)
tb_switch        1222 drivers/thunderbolt/switch.c 	struct tb_switch *sw = tb_to_switch(dev);
tb_switch        1232 drivers/thunderbolt/switch.c 	struct tb_switch *sw = tb_to_switch(dev);
tb_switch        1295 drivers/thunderbolt/switch.c 	struct tb_switch *sw = tb_to_switch(dev);
tb_switch        1317 drivers/thunderbolt/switch.c 	struct tb_switch *sw = tb_to_switch(dev);
tb_switch        1326 drivers/thunderbolt/switch.c 	struct tb_switch *sw = tb_to_switch(dev);
tb_switch        1335 drivers/thunderbolt/switch.c 	struct tb_switch *sw = tb_to_switch(dev);
tb_switch        1359 drivers/thunderbolt/switch.c 	struct tb_switch *sw = tb_to_switch(dev);
tb_switch        1408 drivers/thunderbolt/switch.c 	struct tb_switch *sw = tb_to_switch(dev);
tb_switch        1435 drivers/thunderbolt/switch.c 	struct tb_switch *sw = tb_to_switch(dev);
tb_switch        1446 drivers/thunderbolt/switch.c 	struct tb_switch *sw = tb_to_switch(dev);
tb_switch        1465 drivers/thunderbolt/switch.c static int tb_switch_get_generation(struct tb_switch *sw)
tb_switch        1520 drivers/thunderbolt/switch.c struct tb_switch *tb_switch_alloc(struct tb *tb, struct device *parent,
tb_switch        1523 drivers/thunderbolt/switch.c 	struct tb_switch *sw;
tb_switch        1616 drivers/thunderbolt/switch.c struct tb_switch *
tb_switch        1619 drivers/thunderbolt/switch.c 	struct tb_switch *sw;
tb_switch        1651 drivers/thunderbolt/switch.c int tb_switch_configure(struct tb_switch *sw)
tb_switch        1679 drivers/thunderbolt/switch.c static int tb_switch_set_uuid(struct tb_switch *sw)
tb_switch        1711 drivers/thunderbolt/switch.c static int tb_switch_add_dma_port(struct tb_switch *sw)
tb_switch        1803 drivers/thunderbolt/switch.c int tb_switch_add(struct tb_switch *sw)
tb_switch        1880 drivers/thunderbolt/switch.c void tb_switch_remove(struct tb_switch *sw)
tb_switch        1914 drivers/thunderbolt/switch.c void tb_sw_set_unplugged(struct tb_switch *sw)
tb_switch        1934 drivers/thunderbolt/switch.c int tb_switch_resume(struct tb_switch *sw)
tb_switch        2008 drivers/thunderbolt/switch.c void tb_switch_suspend(struct tb_switch *sw)
tb_switch        2033 drivers/thunderbolt/switch.c 	struct tb_switch *sw = tb_to_switch(dev);
tb_switch        2065 drivers/thunderbolt/switch.c struct tb_switch *tb_switch_find_by_link_depth(struct tb *tb, u8 link, u8 depth)
tb_switch        2090 drivers/thunderbolt/switch.c struct tb_switch *tb_switch_find_by_uuid(struct tb *tb, const uuid_t *uuid)
tb_switch        2114 drivers/thunderbolt/switch.c struct tb_switch *tb_switch_find_by_route(struct tb *tb, u64 route)
tb_switch          59 drivers/thunderbolt/tb.c static void tb_discover_tunnels(struct tb_switch *sw)
tb_switch          87 drivers/thunderbolt/tb.c 			struct tb_switch *parent = tunnel->dst_port->sw;
tb_switch         106 drivers/thunderbolt/tb.c 	struct tb_switch *sw = port->sw;
tb_switch         131 drivers/thunderbolt/tb.c static void tb_scan_switch(struct tb_switch *sw)
tb_switch         145 drivers/thunderbolt/tb.c 	struct tb_switch *sw;
tb_switch         264 drivers/thunderbolt/tb.c static void tb_free_unplugged_children(struct tb_switch *sw)
tb_switch         289 drivers/thunderbolt/tb.c static struct tb_port *tb_find_port(struct tb_switch *sw,
tb_switch         304 drivers/thunderbolt/tb.c static struct tb_port *tb_find_unused_port(struct tb_switch *sw,
tb_switch         323 drivers/thunderbolt/tb.c static struct tb_port *tb_find_pcie_down(struct tb_switch *sw,
tb_switch         364 drivers/thunderbolt/tb.c 	struct tb_switch *sw = out->sw;
tb_switch         399 drivers/thunderbolt/tb.c static int tb_tunnel_pci(struct tb *tb, struct tb_switch *sw)
tb_switch         403 drivers/thunderbolt/tb.c 	struct tb_switch *parent_sw;
tb_switch         440 drivers/thunderbolt/tb.c 	struct tb_switch *sw;
tb_switch         471 drivers/thunderbolt/tb.c 	struct tb_switch *sw;
tb_switch         506 drivers/thunderbolt/tb.c 	struct tb_switch *sw;
tb_switch         633 drivers/thunderbolt/tb.c 		struct tb_switch *sw = tb_to_switch(dev);
tb_switch         735 drivers/thunderbolt/tb.c static int tb_free_unplugged_xdomains(struct tb_switch *sw)
tb_switch         138 drivers/thunderbolt/tb.h 	struct tb_switch *sw;
tb_switch         278 drivers/thunderbolt/tb.h 	int (*runtime_suspend_switch)(struct tb_switch *sw);
tb_switch         279 drivers/thunderbolt/tb.h 	int (*runtime_resume_switch)(struct tb_switch *sw);
tb_switch         284 drivers/thunderbolt/tb.h 	int (*approve_switch)(struct tb *tb, struct tb_switch *sw);
tb_switch         285 drivers/thunderbolt/tb.h 	int (*add_switch_key)(struct tb *tb, struct tb_switch *sw);
tb_switch         286 drivers/thunderbolt/tb.h 	int (*challenge_switch_key)(struct tb *tb, struct tb_switch *sw,
tb_switch         312 drivers/thunderbolt/tb.h static inline struct tb_port *tb_upstream_port(struct tb_switch *sw)
tb_switch         330 drivers/thunderbolt/tb.h static inline u64 tb_route(const struct tb_switch *sw)
tb_switch         335 drivers/thunderbolt/tb.h static inline struct tb_port *tb_port_at(u64 route, struct tb_switch *sw)
tb_switch         388 drivers/thunderbolt/tb.h static inline int tb_sw_read(struct tb_switch *sw, void *buffer,
tb_switch         402 drivers/thunderbolt/tb.h static inline int tb_sw_write(struct tb_switch *sw, void *buffer,
tb_switch         452 drivers/thunderbolt/tb.h 		const struct tb_switch *__sw = (sw);    \
tb_switch         497 drivers/thunderbolt/tb.h int tb_domain_approve_switch(struct tb *tb, struct tb_switch *sw);
tb_switch         498 drivers/thunderbolt/tb.h int tb_domain_approve_switch_key(struct tb *tb, struct tb_switch *sw);
tb_switch         499 drivers/thunderbolt/tb.h int tb_domain_challenge_switch_key(struct tb *tb, struct tb_switch *sw);
tb_switch         517 drivers/thunderbolt/tb.h struct tb_switch *tb_switch_alloc(struct tb *tb, struct device *parent,
tb_switch         519 drivers/thunderbolt/tb.h struct tb_switch *tb_switch_alloc_safe_mode(struct tb *tb,
tb_switch         521 drivers/thunderbolt/tb.h int tb_switch_configure(struct tb_switch *sw);
tb_switch         522 drivers/thunderbolt/tb.h int tb_switch_add(struct tb_switch *sw);
tb_switch         523 drivers/thunderbolt/tb.h void tb_switch_remove(struct tb_switch *sw);
tb_switch         524 drivers/thunderbolt/tb.h void tb_switch_suspend(struct tb_switch *sw);
tb_switch         525 drivers/thunderbolt/tb.h int tb_switch_resume(struct tb_switch *sw);
tb_switch         527 drivers/thunderbolt/tb.h void tb_sw_set_unplugged(struct tb_switch *sw);
tb_switch         528 drivers/thunderbolt/tb.h struct tb_switch *tb_switch_find_by_link_depth(struct tb *tb, u8 link,
tb_switch         530 drivers/thunderbolt/tb.h struct tb_switch *tb_switch_find_by_uuid(struct tb *tb, const uuid_t *uuid);
tb_switch         531 drivers/thunderbolt/tb.h struct tb_switch *tb_switch_find_by_route(struct tb *tb, u64 route);
tb_switch         533 drivers/thunderbolt/tb.h static inline struct tb_switch *tb_switch_get(struct tb_switch *sw)
tb_switch         540 drivers/thunderbolt/tb.h static inline void tb_switch_put(struct tb_switch *sw)
tb_switch         550 drivers/thunderbolt/tb.h static inline struct tb_switch *tb_to_switch(struct device *dev)
tb_switch         553 drivers/thunderbolt/tb.h 		return container_of(dev, struct tb_switch, dev);
tb_switch         557 drivers/thunderbolt/tb.h static inline struct tb_switch *tb_switch_parent(struct tb_switch *sw)
tb_switch         562 drivers/thunderbolt/tb.h static inline bool tb_switch_is_lr(const struct tb_switch *sw)
tb_switch         567 drivers/thunderbolt/tb.h static inline bool tb_switch_is_er(const struct tb_switch *sw)
tb_switch         572 drivers/thunderbolt/tb.h static inline bool tb_switch_is_cr(const struct tb_switch *sw)
tb_switch         583 drivers/thunderbolt/tb.h static inline bool tb_switch_is_fr(const struct tb_switch *sw)
tb_switch         605 drivers/thunderbolt/tb.h int tb_switch_find_vse_cap(struct tb_switch *sw, enum tb_switch_vse_cap vsec);
tb_switch         630 drivers/thunderbolt/tb.h int tb_drom_read(struct tb_switch *sw);
tb_switch         631 drivers/thunderbolt/tb.h int tb_drom_read_uid_only(struct tb_switch *sw, u64 *uid);
tb_switch         633 drivers/thunderbolt/tb.h int tb_lc_read_uuid(struct tb_switch *sw, u32 *uuid);
tb_switch         634 drivers/thunderbolt/tb.h int tb_lc_configure_link(struct tb_switch *sw);
tb_switch         635 drivers/thunderbolt/tb.h void tb_lc_unconfigure_link(struct tb_switch *sw);
tb_switch         636 drivers/thunderbolt/tb.h int tb_lc_set_sleep(struct tb_switch *sw);
tb_switch        1404 drivers/thunderbolt/xdomain.c static struct tb_xdomain *switch_find_xdomain(struct tb_switch *sw,
tb_switch          78 include/linux/thunderbolt.h 	struct tb_switch *root_switch;