Lines Matching refs:g_hsusbd_sInfo

27 S_HSUSBD_INFO_T *g_hsusbd_sInfo;  variable
69 g_hsusbd_sInfo = param; in HSUSBD_Open()
74 g_hsusbd_CtrlMaxPktSize = g_hsusbd_sInfo->gu8DevDesc[7]; in HSUSBD_Open()
179 HSUSBD_PrepareCtrlIn((uint8_t *)g_hsusbd_sInfo->gu8DevDesc, u32Len); in HSUSBD_GetDescriptor()
188 u32TotalLen = g_hsusbd_sInfo->gu8ConfigDesc[3]; in HSUSBD_GetDescriptor()
189 u32TotalLen = g_hsusbd_sInfo->gu8ConfigDesc[2] + (u32TotalLen << 8); in HSUSBD_GetDescriptor()
199 HSUSBD_PrepareCtrlIn((uint8_t *)g_hsusbd_sInfo->gu8ConfigDesc, u32Len); in HSUSBD_GetDescriptor()
203 u32TotalLen = g_hsusbd_sInfo->gu8FullConfigDesc[3]; in HSUSBD_GetDescriptor()
204 u32TotalLen = g_hsusbd_sInfo->gu8FullConfigDesc[2] + (u32TotalLen << 8); in HSUSBD_GetDescriptor()
214 HSUSBD_PrepareCtrlIn((uint8_t *)g_hsusbd_sInfo->gu8FullConfigDesc, u32Len); in HSUSBD_GetDescriptor()
223 if(g_hsusbd_sInfo->gu8BosDesc == 0) in HSUSBD_GetDescriptor()
230 HSUSBD_PrepareCtrlIn((uint8_t *)g_hsusbd_sInfo->gu8BosDesc, u32Len); in HSUSBD_GetDescriptor()
239 HSUSBD_PrepareCtrlIn((uint8_t *)g_hsusbd_sInfo->gu8QualDesc, u32Len); in HSUSBD_GetDescriptor()
248 u32TotalLen = g_hsusbd_sInfo->gu8HSOtherConfigDesc[3]; in HSUSBD_GetDescriptor()
249 u32TotalLen = g_hsusbd_sInfo->gu8HSOtherConfigDesc[2] + (u32TotalLen << 8); in HSUSBD_GetDescriptor()
259 HSUSBD_PrepareCtrlIn((uint8_t *)g_hsusbd_sInfo->gu8HSOtherConfigDesc, u32Len); in HSUSBD_GetDescriptor()
263 u32TotalLen = g_hsusbd_sInfo->gu8FSOtherConfigDesc[3]; in HSUSBD_GetDescriptor()
264 u32TotalLen = g_hsusbd_sInfo->gu8FSOtherConfigDesc[2] + (u32TotalLen << 8); in HSUSBD_GetDescriptor()
274 HSUSBD_PrepareCtrlIn((uint8_t *)g_hsusbd_sInfo->gu8FSOtherConfigDesc, u32Len); in HSUSBD_GetDescriptor()
284 u32ConfigDescOffset = g_hsusbd_sInfo->gu32ConfigHidDescIdx[gUsbCmd.wIndex & 0xfful]; in HSUSBD_GetDescriptor()
285 … HSUSBD_PrepareCtrlIn((uint8_t *)&g_hsusbd_sInfo->gu8ConfigDesc[u32ConfigDescOffset], u32Len); in HSUSBD_GetDescriptor()
291 if(u32Len > g_hsusbd_sInfo->gu32HidReportSize[gUsbCmd.wIndex & 0xfful]) in HSUSBD_GetDescriptor()
293 u32Len = g_hsusbd_sInfo->gu32HidReportSize[gUsbCmd.wIndex & 0xfful]; in HSUSBD_GetDescriptor()
299 …HSUSBD_PrepareCtrlIn((uint8_t *)g_hsusbd_sInfo->gu8HidReportDesc[gUsbCmd.wIndex & 0xfful], u32Len); in HSUSBD_GetDescriptor()
307 if(u32Len > g_hsusbd_sInfo->gu8StringDesc[gUsbCmd.wValue & 0xfful][0]) in HSUSBD_GetDescriptor()
309 u32Len = g_hsusbd_sInfo->gu8StringDesc[gUsbCmd.wValue & 0xfful][0]; in HSUSBD_GetDescriptor()
315 … HSUSBD_PrepareCtrlIn((uint8_t *)g_hsusbd_sInfo->gu8StringDesc[gUsbCmd.wValue & 0xfful], u32Len); in HSUSBD_GetDescriptor()
389 if((g_hsusbd_sInfo->gu8ConfigDesc[7] & 0x40ul) == 0x40ul) in HSUSBD_StandardRequest()
393 if((g_hsusbd_sInfo->gu8ConfigDesc[7] & 0x20ul) == 0x20ul) in HSUSBD_StandardRequest()