Searched refs:tb_switch (Results 1 – 11 of 11) sorted by relevance
/Linux-v4.19/drivers/thunderbolt/ |
D | tb.h | 85 struct tb_switch { struct 131 struct tb_switch *sw; 230 int (*approve_switch)(struct tb *tb, struct tb_switch *sw); 231 int (*add_switch_key)(struct tb *tb, struct tb_switch *sw); 232 int (*challenge_switch_key)(struct tb *tb, struct tb_switch *sw, 258 static inline struct tb_port *tb_upstream_port(struct tb_switch *sw) in tb_upstream_port() 263 static inline u64 tb_route(struct tb_switch *sw) in tb_route() 268 static inline struct tb_port *tb_port_at(u64 route, struct tb_switch *sw) in tb_port_at() 278 static inline int tb_sw_read(struct tb_switch *sw, void *buffer, in tb_sw_read() 290 static inline int tb_sw_write(struct tb_switch *sw, void *buffer, in tb_sw_write() [all …]
|
D | switch.c | 47 static struct nvm_auth_status *__nvm_get_auth_status(const struct tb_switch *sw) in __nvm_get_auth_status() 59 static void nvm_get_auth_status(const struct tb_switch *sw, u32 *status) in nvm_get_auth_status() 70 static void nvm_set_auth_status(const struct tb_switch *sw, u32 status) in nvm_set_auth_status() 95 static void nvm_clear_auth_status(const struct tb_switch *sw) in nvm_clear_auth_status() 108 static int nvm_validate_and_write(struct tb_switch *sw) in nvm_validate_and_write() 170 static int nvm_authenticate_host(struct tb_switch *sw) in nvm_authenticate_host() 199 static int nvm_authenticate_device(struct tb_switch *sw) in nvm_authenticate_device() 239 struct tb_switch *sw = priv; in tb_switch_nvm_read() 253 struct tb_switch *sw = priv; in tb_switch_nvm_write() 282 static struct nvmem_device *register_nvmem(struct tb_switch *sw, int id, in register_nvmem() [all …]
|
D | eeprom.c | 16 static int tb_eeprom_ctl_write(struct tb_switch *sw, struct tb_eeprom_ctl *ctl) in tb_eeprom_ctl_write() 24 static int tb_eeprom_ctl_read(struct tb_switch *sw, struct tb_eeprom_ctl *ctl) in tb_eeprom_ctl_read() 40 static int tb_eeprom_active(struct tb_switch *sw, bool enable) in tb_eeprom_active() 69 static int tb_eeprom_transfer(struct tb_switch *sw, struct tb_eeprom_ctl *ctl, in tb_eeprom_transfer() 94 static int tb_eeprom_out(struct tb_switch *sw, u8 val) in tb_eeprom_out() 114 static int tb_eeprom_in(struct tb_switch *sw, u8 *val) in tb_eeprom_in() 135 static int tb_eeprom_read_n(struct tb_switch *sw, u16 offset, u8 *val, in tb_eeprom_read_n() 243 static int tb_eeprom_get_drom_offset(struct tb_switch *sw, u16 *offset) in tb_eeprom_get_drom_offset() 276 int tb_drom_read_uid_only(struct tb_switch *sw, u64 *uid) in tb_drom_read_uid_only() 304 static int tb_drom_parse_entry_generic(struct tb_switch *sw, in tb_drom_parse_entry_generic() [all …]
|
D | dma_port.c | 58 struct tb_switch *sw; 171 static int dma_find_port(struct tb_switch *sw) in dma_find_port() 204 struct tb_dma_port *dma_port_alloc(struct tb_switch *sw) in dma_port_alloc() 246 struct tb_switch *sw = dma->sw; in dma_port_wait_for_completion() 284 struct tb_switch *sw = dma->sw; in dma_port_request() 308 struct tb_switch *sw = dma->sw; in dma_port_flash_read_block() 332 struct tb_switch *sw = dma->sw; in dma_port_flash_write_block() 486 struct tb_switch *sw = dma->sw; in dma_port_flash_update_auth_status()
|
D | dma_port.h | 18 struct tb_switch; 24 struct tb_dma_port *dma_port_alloc(struct tb_switch *sw);
|
D | tb.c | 38 static void tb_scan_switch(struct tb_switch *sw) in tb_scan_switch() 50 struct tb_switch *sw; in tb_scan_port() 109 static void tb_free_unplugged_children(struct tb_switch *sw) in tb_free_unplugged_children() 131 static struct tb_port *tb_find_pci_up_port(struct tb_switch *sw) in tb_find_pci_up_port() 143 static struct tb_port *tb_find_unused_down_port(struct tb_switch *sw) in tb_find_unused_down_port() 178 struct tb_switch *sw; in tb_activate_pcie_devices() 255 struct tb_switch *sw; in tb_handle_hotplug()
|
D | icm.c | 334 static int icm_fr_approve_switch(struct tb *tb, struct tb_switch *sw) in icm_fr_approve_switch() 361 static int icm_fr_add_switch_key(struct tb *tb, struct tb_switch *sw) in icm_fr_add_switch_key() 388 static int icm_fr_challenge_switch_key(struct tb *tb, struct tb_switch *sw, in icm_fr_challenge_switch_key() 463 static void add_switch(struct tb_switch *parent_sw, u64 route, in add_switch() 470 struct tb_switch *sw; in add_switch() 505 static void update_switch(struct tb_switch *parent_sw, struct tb_switch *sw, in update_switch() 527 static void remove_switch(struct tb_switch *sw) in remove_switch() 529 struct tb_switch *parent_sw; in remove_switch() 536 static void add_xdomain(struct tb_switch *sw, u64 route, in add_xdomain() 569 struct tb_switch *sw; in remove_xdomain() [all …]
|
D | cap.c | 64 static int tb_switch_find_cap(struct tb_switch *sw, enum tb_switch_cap cap) in tb_switch_find_cap() 95 int tb_switch_find_vse_cap(struct tb_switch *sw, enum tb_switch_vse_cap vsec) in tb_switch_find_vse_cap()
|
D | domain.c | 570 int tb_domain_approve_switch(struct tb *tb, struct tb_switch *sw) in tb_domain_approve_switch() 572 struct tb_switch *parent_sw; in tb_domain_approve_switch() 596 int tb_domain_approve_switch_key(struct tb *tb, struct tb_switch *sw) in tb_domain_approve_switch_key() 598 struct tb_switch *parent_sw; in tb_domain_approve_switch_key() 628 int tb_domain_challenge_switch_key(struct tb *tb, struct tb_switch *sw) in tb_domain_challenge_switch_key() 633 struct tb_switch *parent_sw; in tb_domain_challenge_switch_key()
|
D | xdomain.c | 1279 static struct tb_xdomain *switch_find_xdomain(struct tb_switch *sw, in switch_find_xdomain()
|
/Linux-v4.19/include/linux/ |
D | thunderbolt.h | 81 struct tb_switch *root_switch;
|