Searched refs:usb4 (Results 1 – 9 of 9) sorted by relevance
122 struct usb4_port *usb4; in usb4_usb3_port_match() local129 if (!usb4) in usb4_usb3_port_match()132 sw = usb4->port->sw; in usb4_usb3_port_match()197 usb4->offline = val; in offline_store()234 if (!usb4->offline) { in rescan_store()286 kfree(usb4); in usb4_port_device_release()307 usb4 = kzalloc(sizeof(*usb4), GFP_KERNEL); in usb4_port_device_add()308 if (!usb4) in usb4_port_device_add()311 usb4->port = port; in usb4_port_device_add()338 return usb4; in usb4_port_device_add()[all …]
188 struct usb4_port *usb4 = port->usb4; in tb_acpi_retimer_set_power() local194 if (!usb4->can_offline) in tb_acpi_retimer_set_power()197 adev = ACPI_COMPANION(&usb4->dev); in tb_acpi_retimer_set_power()340 struct usb4_port *usb4 = tb_to_usb4_port_device(dev); in tb_acpi_setup() local342 if (!adev || !usb4) in tb_acpi_setup()348 usb4->can_offline = true; in tb_acpi_setup()
221 if (!usb4_port_device_is_offline(port->usb4)) in tb_retimer_set_inbound_sbtx()239 if (usb4_port_device_is_offline(port->usb4)) in tb_retimer_unset_inbound_sbtx()430 rt->dev.parent = &port->usb4->dev; in tb_retimer_add()490 dev = device_find_child(&port->usb4->dev, &lookup, retimer_match); in tb_port_find_retimer()591 struct usb4_port *usb4; in tb_retimer_remove_all() local593 usb4 = port->usb4; in tb_retimer_remove_all()594 if (usb4) in tb_retimer_remove_all()595 device_for_each_child_reverse(&usb4->dev, port, in tb_retimer_remove_all()
165 struct usb4_port *usb4; in usb4_switch_check_wakes() local201 usb4 = port->usb4; in usb4_switch_check_wakes()203 pm_wakeup_event(&usb4->dev, 0); in usb4_switch_check_wakes()1044 struct usb4_port *usb4; in usb4_switch_add_ports() local1051 usb4 = usb4_port_device_add(port); in usb4_switch_add_ports()1052 if (IS_ERR(usb4)) { in usb4_switch_add_ports()1054 return PTR_ERR(usb4); in usb4_switch_add_ports()1057 port->usb4 = usb4; in usb4_switch_add_ports()1074 if (port->usb4) { in usb4_switch_remove_ports()1075 usb4_port_device_remove(port->usb4); in usb4_switch_remove_ports()[all …]
1600 struct usb4_port *usb4 = port->usb4; in margining_eye_write() local1613 usb4->margining->upper_eye = false; in margining_eye_write()1615 usb4->margining->upper_eye = true; in margining_eye_write()1627 struct usb4_port *usb4 = port->usb4; in margining_eye_show() local1631 if (usb4->margining->upper_eye) in margining_eye_show()1765 if (!port->usb4) in margining_port_init()1770 port->usb4->margining = margining_alloc(port, &port->usb4->dev, in margining_port_init()1780 if (!port->usb4) in margining_port_remove()1788 kfree(port->usb4->margining); in margining_port_remove()1789 port->usb4->margining = NULL; in margining_port_remove()[all …]
5 thunderbolt-objs += domain.o dma_port.o icm.o property.o xdomain.o lc.o tmu.o usb4.o
289 struct usb4_port *usb4; member1482 void usb4_port_device_remove(struct usb4_port *usb4);1483 int usb4_port_device_resume(struct usb4_port *usb4);1486 static inline bool usb4_port_device_is_offline(const struct usb4_port *usb4) in usb4_port_device_is_offline() argument1488 return usb4->offline; in usb4_port_device_is_offline()
1307 if (port->usb4) in tb_scan_port()1308 pm_runtime_get_sync(&port->usb4->dev); in tb_scan_port()1417 if (port->usb4) { in tb_scan_port()1418 pm_runtime_mark_last_busy(&port->usb4->dev); in tb_scan_port()1419 pm_runtime_put_autosuspend(&port->usb4->dev); in tb_scan_port()
1284 if (port->usb4) { in tb_port_resume()1285 usb4_port_device_resume(port->usb4); in tb_port_resume()
Completed in 34 milliseconds