Lines Matching refs:pipe_config

1614 static bool pipe_alloc_check_args(const hcd_pipe_config_t *pipe_config, usb_speed_t port_speed, con…  in pipe_alloc_check_args()  argument
1617 if (port_speed == USB_SPEED_LOW && pipe_config->dev_speed == USB_SPEED_FULL) { in pipe_alloc_check_args()
1621 …if (pipe_config->dev_speed == USB_SPEED_LOW && (type == USB_TRANSFER_TYPE_BULK || type == USB_TRAN… in pipe_alloc_check_args()
1627 (pipe_config->ep_desc->bInterval > 0 && pipe_config->ep_desc->bInterval > 32)) { in pipe_alloc_check_args()
1632 (pipe_config->ep_desc->bInterval > 0 && pipe_config->ep_desc->bInterval > 6)) { in pipe_alloc_check_args()
1641 if (USB_EP_DESC_GET_EP_DIR(pipe_config->ep_desc)) { //IN in pipe_alloc_check_args()
1650 return (pipe_config->ep_desc->wMaxPacketSize <= limit); in pipe_alloc_check_args()
1653 static void pipe_set_ep_char(const hcd_pipe_config_t *pipe_config, usb_transfer_type_t type, bool i… in pipe_set_ep_char() argument
1675 …ep_char->mps = (pipe_config->dev_speed == USB_SPEED_FULL) ? CTRL_EP_MAX_MPS_FS : CTRL_EP_MAX_MPS_L… in pipe_set_ep_char()
1677 ep_char->bEndpointAddress = pipe_config->ep_desc->bEndpointAddress; in pipe_set_ep_char()
1678 ep_char->mps = pipe_config->ep_desc->wMaxPacketSize; in pipe_set_ep_char()
1680 ep_char->dev_addr = pipe_config->dev_addr; in pipe_set_ep_char()
1681 …ep_char->ls_via_fs_hub = (port_speed == USB_SPEED_FULL && pipe_config->dev_speed == USB_SPEED_LOW); in pipe_set_ep_char()
1686 interval_frames = pipe_config->ep_desc->bInterval; in pipe_set_ep_char()
1688 interval_frames = (1 << (pipe_config->ep_desc->bInterval - 1)); in pipe_set_ep_char()
1817 esp_err_t hcd_pipe_alloc(hcd_port_handle_t port_hdl, const hcd_pipe_config_t *pipe_config, hcd_pipe… in hcd_pipe_alloc() argument
1819 HCD_CHECK(port_hdl != NULL && pipe_config != NULL && pipe_hdl != NULL, ESP_ERR_INVALID_ARG); in hcd_pipe_alloc()
1831 if (pipe_config->ep_desc == NULL) { in hcd_pipe_alloc()
1835 type = USB_EP_DESC_GET_XFERTYPE(pipe_config->ep_desc); in hcd_pipe_alloc()
1839 if (!pipe_alloc_check_args(pipe_config, port_speed, mps_limits, type, is_default)) { in hcd_pipe_alloc()
1870 pipe_set_ep_char(pipe_config, type, is_default, pipe_idx, port_speed, &ep_char); in hcd_pipe_alloc()
1873 pipe->callback = pipe_config->callback; in hcd_pipe_alloc()
1874 pipe->callback_arg = pipe_config->callback_arg; in hcd_pipe_alloc()
1875 pipe->context = pipe_config->context; in hcd_pipe_alloc()