Lines Matching refs:pf

611 usb_hw_ep_match(const struct usb_hw_ep_profile *pf,  in usb_hw_ep_match()  argument
616 return (pf->support_control); in usb_hw_ep_match()
618 if ((pf->support_in && ep_dir_in) || in usb_hw_ep_match()
619 (pf->support_out && !ep_dir_in)) { in usb_hw_ep_match()
620 if ((pf->support_interrupt && (ep_type == UE_INTERRUPT)) || in usb_hw_ep_match()
621 (pf->support_isochronous && (ep_type == UE_ISOCHRONOUS)) || in usb_hw_ep_match()
622 (pf->support_bulk && (ep_type == UE_BULK))) { in usb_hw_ep_match()
643 const struct usb_hw_ep_profile *pf; in usb_hw_ep_find_match() local
673 (ues->methods->get_hw_ep_profile) (ues->udev, &pf, n); in usb_hw_ep_find_match()
674 if (pf == NULL) { in usb_hw_ep_find_match()
679 if (dir_in || pf->is_simplex) { in usb_hw_ep_find_match()
686 if (dir_out || pf->is_simplex) { in usb_hw_ep_find_match()
693 if (pf->is_simplex == is_simplex) { in usb_hw_ep_find_match()
698 if (!usb_hw_ep_match(pf, ep->needs_ep_type, dir_in)) { in usb_hw_ep_find_match()
704 max_frame_size = pf->max_in_frame_size; in usb_hw_ep_find_match()
706 max_frame_size = pf->max_out_frame_size; in usb_hw_ep_find_match()
714 ep->pf = pf; in usb_hw_ep_find_match()
722 pf = ep->pf; in usb_hw_ep_find_match()
757 const struct usb_hw_ep_profile *pf; in usb_hw_ep_get_needs() local
830 (ues->udev, &pf, ep_no); in usb_hw_ep_get_needs()
831 if (pf == NULL) { in usb_hw_ep_get_needs()
843 if ((pf->max_in_frame_size < wMaxPacketSize) || in usb_hw_ep_get_needs()
844 (pf->max_out_frame_size < wMaxPacketSize)) { in usb_hw_ep_get_needs()
852 if (pf->max_in_frame_size < wMaxPacketSize) { in usb_hw_ep_get_needs()
860 if (pf->max_out_frame_size < wMaxPacketSize) { in usb_hw_ep_get_needs()
922 const struct usb_hw_ep_profile *pf; in usb_hw_ep_resolve() local
943 (methods->get_hw_ep_profile) (udev, &pf, 0); in usb_hw_ep_resolve()
944 if (pf == NULL) { in usb_hw_ep_resolve()
947 if (!usb_hw_ep_match(pf, UE_CONTROL, 0)) { in usb_hw_ep_resolve()
960 if (pf->max_in_frame_size >= mps) { in usb_hw_ep_resolve()
980 if (pf->max_in_frame_size < mps) { in usb_hw_ep_resolve()