Lines Matching refs:pf

612 usb_hw_ep_match(const struct usb_hw_ep_profile *pf,  in usb_hw_ep_match()  argument
617 return (pf->support_control); in usb_hw_ep_match()
619 if ((pf->support_in && ep_dir_in) || in usb_hw_ep_match()
620 (pf->support_out && !ep_dir_in)) { in usb_hw_ep_match()
621 if ((pf->support_interrupt && (ep_type == UE_INTERRUPT)) || in usb_hw_ep_match()
622 (pf->support_isochronous && (ep_type == UE_ISOCHRONOUS)) || in usb_hw_ep_match()
623 (pf->support_bulk && (ep_type == UE_BULK))) { in usb_hw_ep_match()
644 const struct usb_hw_ep_profile *pf; in usb_hw_ep_find_match() local
674 (ues->methods->get_hw_ep_profile) (ues->udev, &pf, n); in usb_hw_ep_find_match()
675 if (pf == NULL) { in usb_hw_ep_find_match()
680 if (dir_in || pf->is_simplex) { in usb_hw_ep_find_match()
687 if (dir_out || pf->is_simplex) { in usb_hw_ep_find_match()
694 if (pf->is_simplex == is_simplex) { in usb_hw_ep_find_match()
699 if (!usb_hw_ep_match(pf, ep->needs_ep_type, dir_in)) { in usb_hw_ep_find_match()
705 max_frame_size = pf->max_in_frame_size; in usb_hw_ep_find_match()
707 max_frame_size = pf->max_out_frame_size; in usb_hw_ep_find_match()
715 ep->pf = pf; in usb_hw_ep_find_match()
723 pf = ep->pf; in usb_hw_ep_find_match()
758 const struct usb_hw_ep_profile *pf; in usb_hw_ep_get_needs() local
831 (ues->udev, &pf, ep_no); in usb_hw_ep_get_needs()
832 if (pf == NULL) { in usb_hw_ep_get_needs()
844 if ((pf->max_in_frame_size < wMaxPacketSize) || in usb_hw_ep_get_needs()
845 (pf->max_out_frame_size < wMaxPacketSize)) { in usb_hw_ep_get_needs()
853 if (pf->max_in_frame_size < wMaxPacketSize) { in usb_hw_ep_get_needs()
861 if (pf->max_out_frame_size < wMaxPacketSize) { in usb_hw_ep_get_needs()
923 const struct usb_hw_ep_profile *pf; in usb_hw_ep_resolve() local
944 (methods->get_hw_ep_profile) (udev, &pf, 0); in usb_hw_ep_resolve()
945 if (pf == NULL) { in usb_hw_ep_resolve()
948 if (!usb_hw_ep_match(pf, UE_CONTROL, 0)) { in usb_hw_ep_resolve()
961 if (pf->max_in_frame_size >= mps) { in usb_hw_ep_resolve()
981 if (pf->max_in_frame_size < mps) { in usb_hw_ep_resolve()