• Home
  • Raw
  • Download

Lines Matching refs:epds

715 					struct usb_serial_endpoints *epds)  in find_endpoints()  argument
722 BUILD_BUG_ON(ARRAY_SIZE(epds->bulk_in) < USB_MAXENDPOINTS / 2); in find_endpoints()
723 BUILD_BUG_ON(ARRAY_SIZE(epds->bulk_out) < USB_MAXENDPOINTS / 2); in find_endpoints()
724 BUILD_BUG_ON(ARRAY_SIZE(epds->interrupt_in) < USB_MAXENDPOINTS / 2); in find_endpoints()
725 BUILD_BUG_ON(ARRAY_SIZE(epds->interrupt_out) < USB_MAXENDPOINTS / 2); in find_endpoints()
733 epds->bulk_in[epds->num_bulk_in++] = epd; in find_endpoints()
736 epds->bulk_out[epds->num_bulk_out++] = epd; in find_endpoints()
739 epds->interrupt_in[epds->num_interrupt_in++] = epd; in find_endpoints()
742 epds->interrupt_out[epds->num_interrupt_out++] = epd; in find_endpoints()
872 struct usb_serial_endpoints *epds; in usb_serial_probe() local
914 epds = kzalloc(sizeof(*epds), GFP_KERNEL); in usb_serial_probe()
915 if (!epds) { in usb_serial_probe()
920 find_endpoints(serial, epds); in usb_serial_probe()
922 if (epds->num_bulk_in < type->num_bulk_in || in usb_serial_probe()
923 epds->num_bulk_out < type->num_bulk_out || in usb_serial_probe()
924 epds->num_interrupt_in < type->num_interrupt_in || in usb_serial_probe()
925 epds->num_interrupt_out < type->num_interrupt_out) { in usb_serial_probe()
932 retval = type->calc_num_ports(serial, epds); in usb_serial_probe()
947 serial->num_bulk_in = epds->num_bulk_in; in usb_serial_probe()
948 serial->num_bulk_out = epds->num_bulk_out; in usb_serial_probe()
949 serial->num_interrupt_in = epds->num_interrupt_in; in usb_serial_probe()
950 serial->num_interrupt_out = epds->num_interrupt_out; in usb_serial_probe()
958 max_endpoints = max(epds->num_bulk_in, epds->num_bulk_out); in usb_serial_probe()
959 max_endpoints = max(max_endpoints, epds->num_interrupt_in); in usb_serial_probe()
960 max_endpoints = max(max_endpoints, epds->num_interrupt_out); in usb_serial_probe()
988 for (i = 0; i < epds->num_bulk_in; ++i) { in usb_serial_probe()
989 retval = setup_port_bulk_in(serial->port[i], epds->bulk_in[i]); in usb_serial_probe()
994 for (i = 0; i < epds->num_bulk_out; ++i) { in usb_serial_probe()
996 epds->bulk_out[i]); in usb_serial_probe()
1002 for (i = 0; i < epds->num_interrupt_in; ++i) { in usb_serial_probe()
1004 epds->interrupt_in[i]); in usb_serial_probe()
1008 } else if (epds->num_interrupt_in) { in usb_serial_probe()
1013 for (i = 0; i < epds->num_interrupt_out; ++i) { in usb_serial_probe()
1015 epds->interrupt_out[i]); in usb_serial_probe()
1019 } else if (epds->num_interrupt_out) { in usb_serial_probe()
1062 kfree(epds); in usb_serial_probe()
1067 kfree(epds); in usb_serial_probe()