Lines Matching defs:interface
294 * method to allocate resources such as interface and string identifiers
443 * usb_interface_id() - allocate an unused interface ID
444 * @config: configuration associated with the interface
445 * @function: function handling the interface
449 * allocate new interface IDs. The function driver will then store that
450 * ID in interface, association, CDC union, and other descriptors. It
451 * will also handle any control requests targeted at that interface,
455 * All interface identifier should be allocated using this routine, to
457 * different meanings to the same identifier. Note that since interface
462 * Returns the interface ID which was allocated; or -ENODEV if no
463 * more interface IDs can be allocated.
471 config->interface[id] = function;
861 struct usb_function *f = c->interface[tmp];
890 DBG(cdev, "interface %d (%s/%p) alt 0 --> %d\n",
899 "%s: interface %d (%s) requested delayed status\n",
948 memset(config->interface, 0, sizeof(config->interface));
967 * resources such as interface IDs and endpoints.
1018 struct usb_function *f = config->interface[i];
1022 DBG(cdev, " interface %d = %s/%p\n",
1489 f = c->interface[i];
1514 f = c->interface[i];
1540 static int count_ext_prop(struct usb_configuration *c, int interface)
1545 f = c->interface[interface];
1549 if (interface != f->os_desc_table[j].if_id)
1558 static int len_ext_prop(struct usb_configuration *c, int interface)
1565 f = c->interface[interface];
1567 if (interface != f->os_desc_table[j].if_id)
1576 static int fill_ext_prop(struct usb_configuration *c, int interface, u8 *buf)
1583 f = c->interface[interface];
1587 if (interface != f->os_desc_table[j].if_id)
1802 f = cdev->config->interface[intf];
1818 "%s: interface %d (%s) requested delayed status\n",
1831 f = cdev->config->interface[intf];
1857 * first interface of the function
1867 f = cdev->config->interface[intf];
1878 * only for the first interface of the function
1890 f = cdev->config->interface[intf];
1915 int interface;
1946 interface = w_value & 0xFF;
1947 if (interface >= MAX_CONFIG_INTERFACES ||
1948 !os_desc_cfg->interface[interface])
1952 interface);
1955 interface);
1960 interface, buf);
1998 f = cdev->config->interface[intf];
2201 /* interface and string IDs start at zero via kzalloc.