Lines Matching defs:sw
46 static struct nvm_auth_status *__nvm_get_auth_status(const struct tb_switch *sw) in __nvm_get_auth_status()
58 static void nvm_get_auth_status(const struct tb_switch *sw, u32 *status) in nvm_get_auth_status()
69 static void nvm_set_auth_status(const struct tb_switch *sw, u32 status) in nvm_set_auth_status()
94 static void nvm_clear_auth_status(const struct tb_switch *sw) in nvm_clear_auth_status()
107 static int nvm_validate_and_write(struct tb_switch *sw) in nvm_validate_and_write()
169 static int nvm_authenticate_host(struct tb_switch *sw) in nvm_authenticate_host()
198 static int nvm_authenticate_device(struct tb_switch *sw) in nvm_authenticate_device()
238 struct tb_switch *sw = priv; in tb_switch_nvm_read() local
261 struct tb_switch *sw = priv; in tb_switch_nvm_write() local
290 static struct nvmem_device *register_nvmem(struct tb_switch *sw, int id, in register_nvmem()
318 static int tb_switch_nvm_add(struct tb_switch *sw) in tb_switch_nvm_add()
389 static void tb_switch_nvm_remove(struct tb_switch *sw) in tb_switch_nvm_remove()
937 static void tb_dump_switch(struct tb *tb, struct tb_regs_switch_header *sw) in tb_dump_switch()
984 static int tb_plug_events_active(struct tb_switch *sw, bool active) in tb_plug_events_active()
1022 struct tb_switch *sw = tb_to_switch(dev); in authorized_show() local
1027 static int tb_switch_set_authorized(struct tb_switch *sw, unsigned int val) in tb_switch_set_authorized()
1071 struct tb_switch *sw = tb_to_switch(dev); in authorized_store() local
1093 struct tb_switch *sw = tb_to_switch(dev); in boot_show() local
1102 struct tb_switch *sw = tb_to_switch(dev); in device_show() local
1111 struct tb_switch *sw = tb_to_switch(dev); in device_name_show() local
1120 struct tb_switch *sw = tb_to_switch(dev); in key_show() local
1138 struct tb_switch *sw = tb_to_switch(dev); in key_store() local
1169 static void nvm_authenticate_start(struct tb_switch *sw) in nvm_authenticate_start()
1184 static void nvm_authenticate_complete(struct tb_switch *sw) in nvm_authenticate_complete()
1196 struct tb_switch *sw = tb_to_switch(dev); in nvm_authenticate_show() local
1206 struct tb_switch *sw = tb_to_switch(dev); in nvm_authenticate_store() local
1271 struct tb_switch *sw = tb_to_switch(dev); in nvm_version_show() local
1293 struct tb_switch *sw = tb_to_switch(dev); in vendor_show() local
1302 struct tb_switch *sw = tb_to_switch(dev); in vendor_name_show() local
1311 struct tb_switch *sw = tb_to_switch(dev); in unique_id_show() local
1335 struct tb_switch *sw = tb_to_switch(dev); in switch_attr_is_visible() local
1384 struct tb_switch *sw = tb_to_switch(dev); in tb_switch_release() local
1411 struct tb_switch *sw = tb_to_switch(dev); in tb_switch_runtime_suspend() local
1422 struct tb_switch *sw = tb_to_switch(dev); in tb_switch_runtime_resume() local
1441 static int tb_switch_get_generation(struct tb_switch *sw) in tb_switch_get_generation()
1499 struct tb_switch *sw; in tb_switch_alloc() local
1595 struct tb_switch *sw; in tb_switch_alloc_safe_mode() local
1627 int tb_switch_configure(struct tb_switch *sw) in tb_switch_configure()
1655 static int tb_switch_set_uuid(struct tb_switch *sw) in tb_switch_set_uuid()
1687 static int tb_switch_add_dma_port(struct tb_switch *sw) in tb_switch_add_dma_port()
1766 int tb_switch_add(struct tb_switch *sw) in tb_switch_add()
1843 void tb_switch_remove(struct tb_switch *sw) in tb_switch_remove()
1877 void tb_sw_set_unplugged(struct tb_switch *sw) in tb_sw_set_unplugged()
1897 int tb_switch_resume(struct tb_switch *sw) in tb_switch_resume()
1971 void tb_switch_suspend(struct tb_switch *sw) in tb_switch_suspend()
1996 struct tb_switch *sw = tb_to_switch(dev); in tb_switch_match() local