Lines Matching defs:epds

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