Lines Matching defs:sw

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() local
253 struct tb_switch *sw = priv; in tb_switch_nvm_write() local
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()
606 static void tb_dump_switch(struct tb *tb, struct tb_regs_switch_header *sw) in tb_dump_switch()
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() local
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() local
791 struct tb_switch *sw = tb_to_switch(dev); in boot_show() local
800 struct tb_switch *sw = tb_to_switch(dev); in device_show() local
809 struct tb_switch *sw = tb_to_switch(dev); in device_name_show() local
818 struct tb_switch *sw = tb_to_switch(dev); in key_show() local
836 struct tb_switch *sw = tb_to_switch(dev); in key_store() local
870 struct tb_switch *sw = tb_to_switch(dev); in nvm_authenticate_show() local
880 struct tb_switch *sw = tb_to_switch(dev); in nvm_authenticate_store() local
936 struct tb_switch *sw = tb_to_switch(dev); in nvm_version_show() local
958 struct tb_switch *sw = tb_to_switch(dev); in vendor_show() local
967 struct tb_switch *sw = tb_to_switch(dev); in vendor_name_show() local
976 struct tb_switch *sw = tb_to_switch(dev); in unique_id_show() local
1000 struct tb_switch *sw = tb_to_switch(dev); in switch_attr_is_visible() local
1034 struct tb_switch *sw = tb_to_switch(dev); in tb_switch_release() local
1072 static int tb_switch_get_generation(struct tb_switch *sw) in tb_switch_get_generation()
1129 struct tb_switch *sw; in tb_switch_alloc() local
1210 struct tb_switch *sw; in tb_switch_alloc_safe_mode() local
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() local