Lines Matching refs:intfc
290 struct usb_interface_cache *intfc = ref_to_usb_interface_cache(ref); in usb_release_interface_cache() local
293 for (j = 0; j < intfc->num_altsetting; j++) { in usb_release_interface_cache()
294 struct usb_host_interface *alt = &intfc->altsetting[j]; in usb_release_interface_cache()
299 kfree(intfc); in usb_release_interface_cache()
309 struct usb_interface_cache *intfc; in usb_parse_interface() local
323 intfc = NULL; in usb_parse_interface()
327 intfc = config->intf_cache[i]; in usb_parse_interface()
331 if (!intfc || intfc->num_altsetting >= nalts[i]) in usb_parse_interface()
336 for ((i = 0, alt = &intfc->altsetting[0]); in usb_parse_interface()
337 i < intfc->num_altsetting; in usb_parse_interface()
347 ++intfc->num_altsetting; in usb_parse_interface()
417 struct usb_interface_cache *intfc; in usb_parse_configuration() local
566 len = sizeof(*intfc) + sizeof(struct usb_host_interface) * j; in usb_parse_configuration()
567 config->intf_cache[i] = intfc = kzalloc(len, GFP_KERNEL); in usb_parse_configuration()
568 if (!intfc) in usb_parse_configuration()
570 kref_init(&intfc->ref); in usb_parse_configuration()
600 intfc = config->intf_cache[i]; in usb_parse_configuration()
601 for (j = 0; j < intfc->num_altsetting; ++j) { in usb_parse_configuration()
602 for (n = 0; n < intfc->num_altsetting; ++n) { in usb_parse_configuration()
603 if (intfc->altsetting[n].desc. in usb_parse_configuration()
607 if (n >= intfc->num_altsetting) in usb_parse_configuration()