Lines Matching refs:pf
529 usb_hw_ep_match(const struct usb_hw_ep_profile *pf, in usb_hw_ep_match() argument
534 return (pf->support_control); in usb_hw_ep_match()
536 if ((pf->support_in && ep_dir_in) || in usb_hw_ep_match()
537 (pf->support_out && !ep_dir_in)) { in usb_hw_ep_match()
538 if ((pf->support_interrupt && (ep_type == UE_INTERRUPT)) || in usb_hw_ep_match()
539 (pf->support_isochronous && (ep_type == UE_ISOCHRONOUS)) || in usb_hw_ep_match()
540 (pf->support_bulk && (ep_type == UE_BULK))) { in usb_hw_ep_match()
561 const struct usb_hw_ep_profile *pf; in usb_hw_ep_find_match() local
592 (ues->methods->get_hw_ep_profile) (ues->udev, &pf, n); in usb_hw_ep_find_match()
593 if (pf == NULL) { in usb_hw_ep_find_match()
598 if (dir_in || pf->is_simplex) { in usb_hw_ep_find_match()
605 if (dir_out || pf->is_simplex) { in usb_hw_ep_find_match()
612 if (pf->is_simplex == is_simplex) { in usb_hw_ep_find_match()
617 if (!usb_hw_ep_match(pf, ep->needs_ep_type, dir_in)) { in usb_hw_ep_find_match()
623 max_frame_size = pf->max_in_frame_size; in usb_hw_ep_find_match()
625 max_frame_size = pf->max_out_frame_size; in usb_hw_ep_find_match()
633 ep->pf = pf; in usb_hw_ep_find_match()
641 pf = ep->pf; in usb_hw_ep_find_match()
676 const struct usb_hw_ep_profile *pf; in usb_hw_ep_get_needs() local
754 (ues->udev, &pf, ep_no); in usb_hw_ep_get_needs()
755 if (pf == NULL) { in usb_hw_ep_get_needs()
767 if ((pf->max_in_frame_size < wMaxPacketSize) || in usb_hw_ep_get_needs()
768 (pf->max_out_frame_size < wMaxPacketSize)) { in usb_hw_ep_get_needs()
776 if (pf->max_in_frame_size < wMaxPacketSize) { in usb_hw_ep_get_needs()
784 if (pf->max_out_frame_size < wMaxPacketSize) { in usb_hw_ep_get_needs()
848 const struct usb_hw_ep_profile *pf; in usb_hw_ep_resolve() local
870 (methods->get_hw_ep_profile) (udev, &pf, 0); in usb_hw_ep_resolve()
871 if (pf == NULL) { in usb_hw_ep_resolve()
874 if (!usb_hw_ep_match(pf, UE_CONTROL, 0)) { in usb_hw_ep_resolve()
887 if (pf->max_in_frame_size >= mps) { in usb_hw_ep_resolve()
907 if (pf->max_in_frame_size < mps) { in usb_hw_ep_resolve()