• Home
  • Raw
  • Download

Lines Matching refs:intf

1016 static int create_intf_ep_devs(struct usb_interface *intf)  in create_intf_ep_devs()  argument
1018 struct usb_device *udev = interface_to_usbdev(intf); in create_intf_ep_devs()
1019 struct usb_host_interface *alt = intf->cur_altsetting; in create_intf_ep_devs()
1022 if (intf->ep_devs_created || intf->unregistering) in create_intf_ep_devs()
1026 (void) usb_create_ep_devs(&intf->dev, &alt->endpoint[i], udev); in create_intf_ep_devs()
1027 intf->ep_devs_created = 1; in create_intf_ep_devs()
1031 static void remove_intf_ep_devs(struct usb_interface *intf) in remove_intf_ep_devs() argument
1033 struct usb_host_interface *alt = intf->cur_altsetting; in remove_intf_ep_devs()
1036 if (!intf->ep_devs_created) in remove_intf_ep_devs()
1041 intf->ep_devs_created = 0; in remove_intf_ep_devs()
1115 void usb_disable_interface(struct usb_device *dev, struct usb_interface *intf, in usb_disable_interface() argument
1118 struct usb_host_interface *alt = intf->cur_altsetting; in usb_disable_interface()
1236 struct usb_interface *intf, bool reset_eps) in usb_enable_interface() argument
1238 struct usb_host_interface *alt = intf->cur_altsetting; in usb_enable_interface()
1463 struct usb_interface *intf = config->interface[i]; in usb_reset_configuration() local
1466 alt = usb_altnum_to_altsetting(intf, 0); in usb_reset_configuration()
1468 alt = &intf->altsetting[0]; in usb_reset_configuration()
1469 if (alt != intf->cur_altsetting) in usb_reset_configuration()
1471 intf->cur_altsetting, alt); in usb_reset_configuration()
1479 struct usb_interface *intf = config->interface[i]; in usb_reset_configuration() local
1482 alt = usb_altnum_to_altsetting(intf, 0); in usb_reset_configuration()
1484 alt = &intf->altsetting[0]; in usb_reset_configuration()
1485 if (alt != intf->cur_altsetting) in usb_reset_configuration()
1487 alt, intf->cur_altsetting); in usb_reset_configuration()
1503 struct usb_interface *intf = config->interface[i]; in usb_reset_configuration() local
1506 alt = usb_altnum_to_altsetting(intf, 0); in usb_reset_configuration()
1514 alt = &intf->altsetting[0]; in usb_reset_configuration()
1516 if (alt != intf->cur_altsetting) { in usb_reset_configuration()
1517 remove_intf_ep_devs(intf); in usb_reset_configuration()
1518 usb_remove_sysfs_intf_files(intf); in usb_reset_configuration()
1520 intf->cur_altsetting = alt; in usb_reset_configuration()
1521 usb_enable_interface(dev, intf, true); in usb_reset_configuration()
1522 if (device_is_registered(&intf->dev)) { in usb_reset_configuration()
1523 usb_create_sysfs_intf_files(intf); in usb_reset_configuration()
1524 create_intf_ep_devs(intf); in usb_reset_configuration()
1535 struct usb_interface *intf = to_usb_interface(dev); in usb_release_interface() local
1537 altsetting_to_usb_interface_cache(intf->altsetting); in usb_release_interface()
1540 kfree(intf); in usb_release_interface()
1546 struct usb_interface *intf; in usb_if_uevent() local
1549 intf = to_usb_interface(dev); in usb_if_uevent()
1550 usb_dev = interface_to_usbdev(intf); in usb_if_uevent()
1551 alt = intf->cur_altsetting; in usb_if_uevent()
1807 struct usb_interface *intf; in usb_set_configuration() local
1810 cp->interface[i] = intf = new_interfaces[i]; in usb_set_configuration()
1812 intf->altsetting = intfc->altsetting; in usb_set_configuration()
1813 intf->num_altsetting = intfc->num_altsetting; in usb_set_configuration()
1816 alt = usb_altnum_to_altsetting(intf, 0); in usb_set_configuration()
1824 alt = &intf->altsetting[0]; in usb_set_configuration()
1826 intf->intf_assoc = in usb_set_configuration()
1828 intf->cur_altsetting = alt; in usb_set_configuration()
1829 usb_enable_interface(dev, intf, true); in usb_set_configuration()
1830 intf->dev.parent = &dev->dev; in usb_set_configuration()
1831 intf->dev.driver = NULL; in usb_set_configuration()
1832 intf->dev.bus = &usb_bus_type; in usb_set_configuration()
1833 intf->dev.type = &usb_if_device_type; in usb_set_configuration()
1834 intf->dev.groups = usb_interface_groups; in usb_set_configuration()
1835 intf->dev.dma_mask = dev->dev.dma_mask; in usb_set_configuration()
1836 INIT_WORK(&intf->reset_ws, __usb_queue_reset_device); in usb_set_configuration()
1837 intf->minor = -1; in usb_set_configuration()
1838 device_initialize(&intf->dev); in usb_set_configuration()
1839 pm_runtime_no_callbacks(&intf->dev); in usb_set_configuration()
1840 dev_set_name(&intf->dev, "%d-%s:%d.%d", in usb_set_configuration()
1891 struct usb_interface *intf = cp->interface[i]; in usb_set_configuration() local
1895 dev_name(&intf->dev), configuration, in usb_set_configuration()
1896 intf->cur_altsetting->desc.bInterfaceNumber); in usb_set_configuration()
1897 device_enable_async_suspend(&intf->dev); in usb_set_configuration()
1898 ret = device_add(&intf->dev); in usb_set_configuration()
1901 dev_name(&intf->dev), ret); in usb_set_configuration()
1904 create_intf_ep_devs(intf); in usb_set_configuration()