Home
last modified time | relevance | path

Searched refs:USB_MIN (Results 1 – 14 of 14) sorted by relevance

/bsp/apm32/libraries/APM32F0xx_Library/USB_Device_Lib/Core_Device/Standard/src/
A Dusbd_stdReq.c161 len = USB_MIN(*(uint16_t *)g_usbDev.reqData.byte.wLength, g_usbDev.pDeviceDesc->size); in USBD_StandardGetDescriptor()
166 … len = USB_MIN(*(uint16_t *)g_usbDev.reqData.byte.wLength, g_usbDev.pConfigurationDesc->size); in USBD_StandardGetDescriptor()
173 … len = USB_MIN(*(uint16_t *)g_usbDev.reqData.byte.wLength, g_usbDev.pStringDesc[wValue0].size); in USBD_StandardGetDescriptor()
A Dusbd_core.c151 tmp = USB_MIN(g_usbDev.inBuf[0].bufLen, g_usbDev.inBuf[0].maxPackSize); in USBD_CtrlInProcess()
206 len = USB_MIN(g_usbDev.outBuf[0].bufLen, g_usbDev.outBuf[0].maxPackSize); in USBD_CtrlOutProcess()
311 len = USB_MIN(g_usbDev.outBuf[0].bufLen, maxPackSize); in USBD_CtrlOutData()
447 USBD_SetEPRxCnt(ep, USB_MIN(len, maxPackSize)); in USBD_RxData()
/bsp/apm32/libraries/APM32F0xx_Library/USB_Device_Lib/Core_Device/Class/MSC/src/
A Dusbd_msc_scsi.c283 g_BOTInfo.dataLen = USB_MIN((pInquiryData[4] + 5), command[4]); in SCSI_Inquiry()
543 len = USB_MIN(s_blkLen, MSC_MEDIA_PACKET); in SCSI_Write10()
656 uint32_t len = USB_MIN(MSC_MEDIA_PACKET, s_blkLen); in SCSI_Read()
691 uint32_t len = USB_MIN(MSC_MEDIA_PACKET, s_blkLen); in SCSI_Write()
712 len = USB_MIN(MSC_MEDIA_PACKET, s_blkLen); in SCSI_Write()
A Dusbd_msc_bot.c215 len = USB_MIN(len, g_BOTInfo.CBW.dDataXferLen); in USBD_MSC_BOT_TxData()
/bsp/gd32/risc-v/libraries/GD32VF103_Firmware_Library/GD32VF103_usbfs_library/device/class/msc/Source/
A Dusbd_msc_scsi.c360 msc->bbb_datalen = USB_MIN(REQUEST_SENSE_DATA_LEN, params[4]); in scsi_request_sense()
513 USB_MIN (msc->scsi_blk_len, MSC_MEDIA_PACKET_SIZE)); in scsi_write10()
581 uint32_t len = USB_MIN(msc->scsi_blk_len, MSC_MEDIA_PACKET_SIZE); in scsi_process_read()
618 uint32_t len = USB_MIN(msc->scsi_blk_len, MSC_MEDIA_PACKET_SIZE); in scsi_process_write()
642 USB_MIN (msc->scsi_blk_len, MSC_MEDIA_PACKET_SIZE)); in scsi_process_write()
A Dusbd_msc_bbb.c257 len = USB_MIN (msc->bbb_cbw.dCBWDataTransferLength, len); in msc_bbb_data_send()
/bsp/gd32/risc-v/libraries/GD32VF103_Firmware_Library/GD32VF103_usbfs_library/ustd/common/
A Dusb_ch9_std.h143 #define USB_MIN(a, b) (((a) < (b)) ? (a) : (b)) macro
/bsp/apm32/libraries/APM32F0xx_Library/USB_Device_Lib/Core_Device/Standard/inc/
A Dusbd_core.h54 #define USB_MIN(a, b) (a >= b ? b : a) macro
/bsp/gd32/risc-v/libraries/GD32VF103_Firmware_Library/GD32VF103_usbfs_library/device/class/hid/Source/
A Dstandard_hid_core.c369 transc->remain_len = USB_MIN(USB_HID_REPORT_DESC_LEN, req->wLength); in hid_req()
A Dcustom_hid_core.c414 transc->remain_len = USB_MIN(DESC_LEN_REPORT, req->wLength); in custom_hid_req_handler()
/bsp/gd32/risc-v/libraries/GD32VF103_Firmware_Library/GD32VF103_usbfs_library/device/class/iap/Source/
A Dusb_iap_core.c353 transc->remain_len = USB_MIN(USB_DESC_LEN_IAP_REPORT, req->wLength); in iap_req_handler()
/bsp/gd32/risc-v/libraries/GD32VF103_Firmware_Library/GD32VF103_usbfs_library/driver/Source/
A Ddrv_usb_dev.c316 transc->xfer_len = USB_MIN(transc->xfer_len, transc->max_len); in usb_transc_inxfer()
/bsp/gd32/risc-v/libraries/GD32VF103_Firmware_Library/GD32VF103_usbfs_library/host/core/Source/
A Dusbh_enum.c680 str_len = USB_MIN((uint16_t)psrc[0] - 2U, len); in usbh_strdesc_parse()
/bsp/gd32/risc-v/libraries/GD32VF103_Firmware_Library/GD32VF103_usbfs_library/host/class/hid/Source/
A Dusbh_hid_core.c353 …ep_num = USB_MIN(puhost->dev_prop.cfg_desc_set.itf_desc_set[puhost->dev_prop.cur_itf][0].itf_desc.… in usbh_hid_itf_init()

Completed in 30 milliseconds