Lines Matching refs:tb_switch
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()
310 static int tb_switch_nvm_add(struct tb_switch *sw) in tb_switch_nvm_add()
382 static void tb_switch_nvm_remove(struct tb_switch *sw) in tb_switch_nvm_remove()
648 struct tb_switch *get_switch_at_route(struct tb_switch *sw, u64 route) in get_switch_at_route()
673 static int tb_plug_events_active(struct tb_switch *sw, bool active) in tb_plug_events_active()
711 struct tb_switch *sw = tb_to_switch(dev); in authorized_show()
716 static int tb_switch_set_authorized(struct tb_switch *sw, unsigned int val) in tb_switch_set_authorized()
772 struct tb_switch *sw = tb_to_switch(dev); in authorized_store()
791 struct tb_switch *sw = tb_to_switch(dev); in boot_show()
800 struct tb_switch *sw = tb_to_switch(dev); in device_show()
809 struct tb_switch *sw = tb_to_switch(dev); in device_name_show()
818 struct tb_switch *sw = tb_to_switch(dev); in key_show()
836 struct tb_switch *sw = tb_to_switch(dev); in key_store()
870 struct tb_switch *sw = tb_to_switch(dev); in nvm_authenticate_show()
880 struct tb_switch *sw = tb_to_switch(dev); in nvm_authenticate_store()
936 struct tb_switch *sw = tb_to_switch(dev); in nvm_version_show()
958 struct tb_switch *sw = tb_to_switch(dev); in vendor_show()
967 struct tb_switch *sw = tb_to_switch(dev); in vendor_name_show()
976 struct tb_switch *sw = tb_to_switch(dev); in unique_id_show()
1000 struct tb_switch *sw = tb_to_switch(dev); in switch_attr_is_visible()
1034 struct tb_switch *sw = tb_to_switch(dev); in tb_switch_release()
1072 static int tb_switch_get_generation(struct tb_switch *sw) in tb_switch_get_generation()
1124 struct tb_switch *tb_switch_alloc(struct tb *tb, struct device *parent, in tb_switch_alloc()
1129 struct tb_switch *sw; in tb_switch_alloc()
1207 struct tb_switch *
1210 struct tb_switch *sw; in tb_switch_alloc_safe_mode()
1242 int tb_switch_configure(struct tb_switch *sw) in tb_switch_configure()
1267 static void tb_switch_set_uuid(struct tb_switch *sw) in tb_switch_set_uuid()
1298 static int tb_switch_add_dma_port(struct tb_switch *sw) in tb_switch_add_dma_port()
1367 int tb_switch_add(struct tb_switch *sw) in tb_switch_add()
1434 void tb_switch_remove(struct tb_switch *sw) in tb_switch_remove()
1465 void tb_sw_set_unplugged(struct tb_switch *sw) in tb_sw_set_unplugged()
1483 int tb_switch_resume(struct tb_switch *sw) in tb_switch_resume()
1534 void tb_switch_suspend(struct tb_switch *sw) in tb_switch_suspend()
1561 struct tb_switch *sw = tb_to_switch(dev); in tb_switch_match()
1593 struct tb_switch *tb_switch_find_by_link_depth(struct tb *tb, u8 link, u8 depth) in tb_switch_find_by_link_depth()
1618 struct tb_switch *tb_switch_find_by_uuid(struct tb *tb, const uuid_t *uuid) in tb_switch_find_by_uuid()
1642 struct tb_switch *tb_switch_find_by_route(struct tb *tb, u64 route) in tb_switch_find_by_route()