Lines Matching refs:intfc
289 struct usb_interface_cache *intfc = ref_to_usb_interface_cache(ref);
292 for (j = 0; j < intfc->num_altsetting; j++) {
293 struct usb_host_interface *alt = &intfc->altsetting[j];
298 kfree(intfc);
308 struct usb_interface_cache *intfc;
322 intfc = NULL;
326 intfc = config->intf_cache[i];
330 if (!intfc || intfc->num_altsetting >= nalts[i])
335 for ((i = 0, alt = &intfc->altsetting[0]);
336 i < intfc->num_altsetting;
346 ++intfc->num_altsetting;
416 struct usb_interface_cache *intfc;
564 len = sizeof(*intfc) + sizeof(struct usb_host_interface) * j;
565 config->intf_cache[i] = intfc = kzalloc(len, GFP_KERNEL);
566 if (!intfc)
568 kref_init(&intfc->ref);
597 intfc = config->intf_cache[i];
598 for (j = 0; j < intfc->num_altsetting; ++j) {
599 for (n = 0; n < intfc->num_altsetting; ++n) {
600 if (intfc->altsetting[n].desc.
604 if (n >= intfc->num_altsetting)