Lines Matching refs:len

65 	uint16_t len;  in usb_core_get_desc()  local
72 pbuf = pdev->desc->get_device_desc(&len); in usb_core_get_desc()
76 pbuf = pdev->desc->get_config_desc(&len); in usb_core_get_desc()
82 pbuf = pdev->desc->get_lang_id_desc(&len); in usb_core_get_desc()
86 pbuf = pdev->desc->get_manufacturer_desc(&len); in usb_core_get_desc()
90 pbuf = pdev->desc->get_product_desc(&len); in usb_core_get_desc()
94 pbuf = pdev->desc->get_serial_desc(&len); in usb_core_get_desc()
98 pbuf = pdev->desc->get_configuration_desc(&len); in usb_core_get_desc()
102 pbuf = pdev->desc->get_interface_desc(&len); in usb_core_get_desc()
108 pbuf = pdev->desc->get_usr_desc(desc_idx - USBD_IDX_USER0_STR, &len); in usb_core_get_desc()
114 pbuf = pdev->desc->get_device_qualifier_desc(&len); in usb_core_get_desc()
122 pbuf = pdev->desc->get_other_speed_config_desc(&len); in usb_core_get_desc()
131 if ((len != 0U) && (req->length != 0U)) { in usb_core_get_desc()
132 len = MIN(len, req->length); in usb_core_get_desc()
135 usb_core_transmit_ep0(pdev, pbuf, len); in usb_core_get_desc()
530 uint32_t len = 0U; in usb_core_handle_it() local
553 len = (param & USBD_OUT_COUNT_MASK) >> USBD_OUT_COUNT_SHIFT; in usb_core_handle_it()
555 ep->xfer_buff, len); in usb_core_handle_it()
556 ep->xfer_buff += len; in usb_core_handle_it()
557 ep->xfer_count += len; in usb_core_handle_it()
562 len = (param & USBD_OUT_COUNT_MASK) >> 0x10; in usb_core_handle_it()
565 ep->xfer_count += len; in usb_core_handle_it()
637 uint8_t *buf, uint32_t len) in usb_core_receive() argument
651 ep->xfer_len = len; in usb_core_receive()
671 uint8_t *buf, uint32_t len) in usb_core_transmit() argument
685 ep->xfer_len = len; in usb_core_transmit()
704 uint32_t len) in usb_core_receive_ep0() argument
707 if (len != 0U) { in usb_core_receive_ep0()
713 pdev->ep_out[0].total_length = len; in usb_core_receive_ep0()
714 pdev->ep_out[0].rem_length = len; in usb_core_receive_ep0()
717 return usb_core_receive(pdev, 0U, buf, len); in usb_core_receive_ep0()
729 uint32_t len) in usb_core_transmit_ep0() argument
732 if (len != 0U) { in usb_core_transmit_ep0()
738 pdev->ep_in[0].total_length = len; in usb_core_transmit_ep0()
739 pdev->ep_in[0].rem_length = len; in usb_core_transmit_ep0()
742 return usb_core_transmit(pdev, 0U, buf, len); in usb_core_transmit_ep0()