/drivers/peripheral/usb/ddk/device/src/ |
H A D | usbfn_sdk_if.c | 34 static int32_t IsDescriptorOk(struct UsbFnDeviceDesc *des) in IsDescriptorOk() argument 39 if (des == NULL) { in IsDescriptorOk() 40 HDF_LOGE("%{public}s: des null", __func__); in IsDescriptorOk() 43 if (des->deviceDesc == NULL || des->deviceStrings == NULL || des->configs == NULL) { in IsDescriptorOk() 48 strings = des->deviceStrings; in IsDescriptorOk() 54 for (i = 0; des->configs[i] != NULL; i++) { in IsDescriptorOk() 55 for (j = 0; des->configs[i]->functions[j] != NULL; j++) { in IsDescriptorOk() 56 functions = des in IsDescriptorOk() 94 UsbFnChangeFunction(struct UsbFnDeviceDesc * const des, struct UsbFnDescriptorData * const descriptor) UsbFnChangeFunction() argument 113 struct UsbFnDeviceDesc *des = NULL; UsbFnCreateDevice() local [all...] |
H A D | usbfn_dev_mgr.c | 63 static void CreateInterface(struct UsbFnDeviceDesc *des, struct UsbFnDeviceMgr *devMgr) in CreateInterface() argument 71 for (uint32_t i = 0; des->configs[i] != NULL; i++) { in CreateInterface() 72 for (uint32_t j = 0; des->configs[i]->functions[j] != NULL; j++) { in CreateInterface() 73 if (strncmp(des->configs[i]->functions[j]->funcName, FUNCTION_GENERIC, strlen(FUNCTION_GENERIC))) { in CreateInterface() 76 if (des->configs[i]->functions[j]->enable == false) { in CreateInterface() 82 des->configs[i]->functions[j]->funcName); in CreateInterface() 88 for (uint32_t k = 0; des->configs[i]->functions[j]->fsDescriptors[k] != NULL; k++) { in CreateInterface() 89 intf = (struct UsbInterfaceDescriptor *)des->configs[i]->functions[j]->fsDescriptors[k]; in CreateInterface() 90 GetInterfaceInfo(intf, devMgr, fnCnt, des->configs[i]); in CreateInterface() 126 static int32_t CreatDev(const char *udcName, struct UsbFnDeviceDesc *des, struc argument 167 AllocInterfaceAndFuncMgr(struct UsbFnDeviceMgr *fnDevMgr, struct UsbFnDeviceDesc *des) AllocInterfaceAndFuncMgr() argument 203 UsbFnMgrDeviceCreate( const char *udcName, struct UsbFnDeviceDesc *des, const struct DeviceResourceNode *node) UsbFnMgrDeviceCreate() argument [all...] |
H A D | usbfn_cfg_mgr.c | 987 if (fnDevMgr == NULL || fnDevMgr->des == NULL || fnDevMgr->des->deviceDesc == NULL) { in IsDevDescPropAndGetValue() 992 *value = (uint16_t)fnDevMgr->des->deviceDesc->bDeviceClass; in IsDevDescPropAndGetValue() 994 *value = (uint16_t)fnDevMgr->des->deviceDesc->bDeviceSubClass; in IsDevDescPropAndGetValue() 996 *value = (uint16_t)fnDevMgr->des->deviceDesc->bDeviceProtocol; in IsDevDescPropAndGetValue() 998 *value = (uint16_t)fnDevMgr->des->deviceDesc->bMaxPacketSize0; in IsDevDescPropAndGetValue() 1000 *value = (uint16_t)fnDevMgr->des->deviceDesc->iManufacturer; in IsDevDescPropAndGetValue() 1002 *value = (uint16_t)fnDevMgr->des->deviceDesc->iProduct; in IsDevDescPropAndGetValue() 1004 *value = (uint16_t)fnDevMgr->des->deviceDesc->iSerialNumber; in IsDevDescPropAndGetValue() 1006 *value = (uint16_t)fnDevMgr->des in IsDevDescPropAndGetValue() [all...] |
H A D | adapter_if.c | 927 static int32_t UsbFnAdapterDelDevice(const char *deviceName, const char *udcName, struct UsbFnDeviceDesc *des) in UsbFnAdapterDelDevice() argument 938 for (i = 0; des->configs[i] != NULL; i++) { in UsbFnAdapterDelDevice() 939 for (j = 0; des->configs[i]->functions[j] != NULL; j++) { in UsbFnAdapterDelDevice() 940 if (des->configs[i]->functions[j]->enable == false) { in UsbFnAdapterDelDevice() 943 if (strncmp(des->configs[i]->functions[j]->funcName, FUNCTION_GENERIC, strlen(FUNCTION_GENERIC)) != 0) { in UsbFnAdapterDelDevice() 944 CleanConfigFs(deviceName, des->configs[i]->functions[j]->funcName); in UsbFnAdapterDelDevice() 947 CleanFunction(deviceName, des->configs[i]->functions[j]->funcName); in UsbFnAdapterDelDevice()
|
/drivers/hdf_core/framework/support/platform/src/hdmi/ |
H A D | hdmi_infoframe.c | 254 struct HdmiStaticMetadataDescriptor1st *des = &(drm->des.type1); in HdmiInfoFramePacketDrmEncoding() local 273 buff[UINT8_ARRAY_TELEMENT_2] = (uint8_t)(des->displayPrimaries0X & HDMI_DRM_METADATA_MARK); in HdmiInfoFramePacketDrmEncoding() 275 buff[UINT8_ARRAY_TELEMENT_3] = (uint8_t)((des->displayPrimaries0X >> HDMI_DRM_METADATA_SHIFT) & in HdmiInfoFramePacketDrmEncoding() 278 buff[UINT8_ARRAY_TELEMENT_4] = (uint8_t)(des->displayPrimaries0Y & HDMI_DRM_METADATA_MARK); in HdmiInfoFramePacketDrmEncoding() 280 buff[UINT8_ARRAY_TELEMENT_5] = (uint8_t)((des->displayPrimaries0Y & HDMI_DRM_METADATA_MARK) & in HdmiInfoFramePacketDrmEncoding() 283 buff[UINT8_ARRAY_TELEMENT_6] = (uint8_t)(des->displayPrimaries1X & HDMI_DRM_METADATA_MARK); in HdmiInfoFramePacketDrmEncoding() 285 buff[UINT8_ARRAY_TELEMENT_7] = (uint8_t)((des->displayPrimaries1X & HDMI_DRM_METADATA_MARK) & in HdmiInfoFramePacketDrmEncoding() 288 buff[UINT8_ARRAY_TELEMENT_8] = (uint8_t)(des->displayPrimaries1Y & HDMI_DRM_METADATA_MARK); in HdmiInfoFramePacketDrmEncoding() 290 buff[UINT8_ARRAY_TELEMENT_9] = (uint8_t)((des in HdmiInfoFramePacketDrmEncoding() [all...] |
/drivers/peripheral/usb/ddk/device/include/ |
H A D | usbfn_dev_mgr.h | 36 struct UsbFnDeviceDesc *des; member 42 struct UsbFnDeviceDesc *des, const struct DeviceResourceNode *node);
|
/drivers/peripheral/usb/serial/src/ |
H A D | usb_serial.c | 733 static struct UsbDeviceDescriptor des = {}; in UsbStdCtrlCmd() local 750 ret = GetDeviceDescriptor(acm->ctrDevHandle, g_ctrlCmdRequest, (void *)(&des), sizeof(des)); in UsbStdCtrlCmd() 756 des.idVendor, des.idProduct, des.bDeviceClass, des.bDeviceSubClass, des.bDeviceProtocol); in UsbStdCtrlCmd() 761 for (unsigned int i = 0; i < sizeof(des); i++) { in UsbStdCtrlCmd() 766 ret = SerialCtrlAsyncMsg(acm->ctrDevHandle, g_ctrlCmdRequest, (void *)(&des), sizeo in UsbStdCtrlCmd() [all...] |
/drivers/hdf_core/framework/support/platform/include/hdmi/ |
H A D | hdmi_infoframe.h | 385 union HdmiStaticMetadataDescriptor des; member
|
/drivers/hdf_core/framework/test/unittest/model/usb/device/src/ |
H A D | usb_device_lite_cdcacm_test.c | 821 ret = fnOps->delDevice(devMgr->name, devMgr->udcName, devMgr->des); in RemoveUsbDevice()
|