Searched refs:tb_switch (Results 1 – 4 of 4) sorted by relevance
/drivers/thunderbolt/ |
D | tb.h | 18 struct tb_switch { struct 33 struct tb_switch *sw; 107 struct tb_switch *root_switch; 130 static inline struct tb_port *tb_upstream_port(struct tb_switch *sw) in tb_upstream_port() 135 static inline u64 tb_route(struct tb_switch *sw) in tb_route() 140 static inline int tb_sw_read(struct tb_switch *sw, void *buffer, in tb_sw_read() 152 static inline int tb_sw_write(struct tb_switch *sw, void *buffer, in tb_sw_write() 196 struct tb_switch *__sw = (sw); \ 224 struct tb_switch *tb_switch_alloc(struct tb *tb, u64 route); 225 void tb_switch_free(struct tb_switch *sw); [all …]
|
D | eeprom.c | 14 static int tb_eeprom_ctl_write(struct tb_switch *sw, struct tb_eeprom_ctl *ctl) in tb_eeprom_ctl_write() 22 static int tb_eeprom_ctl_read(struct tb_switch *sw, struct tb_eeprom_ctl *ctl) in tb_eeprom_ctl_read() 38 static int tb_eeprom_active(struct tb_switch *sw, bool enable) in tb_eeprom_active() 67 static int tb_eeprom_transfer(struct tb_switch *sw, struct tb_eeprom_ctl *ctl, in tb_eeprom_transfer() 92 static int tb_eeprom_out(struct tb_switch *sw, u8 val) in tb_eeprom_out() 112 static int tb_eeprom_in(struct tb_switch *sw, u8 *val) in tb_eeprom_in() 133 static int tb_eeprom_read_n(struct tb_switch *sw, u16 offset, u8 *val, in tb_eeprom_read_n() 236 static int tb_eeprom_get_drom_offset(struct tb_switch *sw, u16 *offset) in tb_eeprom_get_drom_offset() 269 int tb_drom_read_uid_only(struct tb_switch *sw, u64 *uid) in tb_drom_read_uid_only() 303 static int tb_drom_parse_entry(struct tb_switch *sw, in tb_drom_parse_entry() [all …]
|
D | switch.c | 254 struct tb_switch *get_switch_at_route(struct tb_switch *sw, u64 route) in get_switch_at_route() 279 static int tb_plug_events_active(struct tb_switch *sw, bool active) in tb_plug_events_active() 314 void tb_switch_free(struct tb_switch *sw) in tb_switch_free() 339 struct tb_switch *tb_switch_alloc(struct tb *tb, u64 route) in tb_switch_alloc() 343 struct tb_switch *sw; in tb_switch_alloc() 430 void tb_sw_set_unpplugged(struct tb_switch *sw) in tb_sw_set_unpplugged() 448 int tb_switch_resume(struct tb_switch *sw) in tb_switch_resume() 492 void tb_switch_suspend(struct tb_switch *sw) in tb_switch_suspend()
|
D | tb.c | 24 static void tb_scan_switch(struct tb_switch *sw) in tb_scan_switch() 36 struct tb_switch *sw; in tb_scan_port() 79 static void tb_free_unplugged_children(struct tb_switch *sw) in tb_free_unplugged_children() 101 static struct tb_port *tb_find_pci_up_port(struct tb_switch *sw) in tb_find_pci_up_port() 113 static struct tb_port *tb_find_unused_down_port(struct tb_switch *sw) in tb_find_unused_down_port() 148 struct tb_switch *sw; in tb_activate_pcie_devices() 220 struct tb_switch *sw; in tb_handle_hotplug()
|