Lines Matching refs:MAX_PATHLEN
71 int32_t ret = strcpy_s(filePath, MAX_PATHLEN - 1, path); in GetFilePath()
78 ret = strcat_s(filePath, MAX_PATHLEN - 1, "/"); in GetFilePath()
85 ret = strcat_s(filePath, MAX_PATHLEN - 1, fileName); in GetFilePath()
120 char tmp[MAX_PATHLEN] = {0}; in IsDeviceDirExist()
121 int32_t ret = snprintf_s(tmp, MAX_PATHLEN, MAX_PATHLEN - 1, "%s/%s", CONFIGFS_DIR, deviceName); in IsDeviceDirExist()
154 char tmp[MAX_PATHLEN] = {0}; in UsbFnWriteProp()
161 …ret = snprintf_s(tmp, MAX_PATHLEN, MAX_PATHLEN - 1, "%s/%s/%s", CONFIGFS_DIR, deviceName, propName… in UsbFnWriteProp()
179 char tmp[MAX_PATHLEN] = {0}; in UsbFnWriteConfString()
180 char tmpPath[MAX_PATHLEN] = {0}; in UsbFnWriteConfString()
181 …ret = snprintf_s(tmp, MAX_PATHLEN, MAX_PATHLEN - 1, "%s/%s/configs/b.%d/strings/0x%x", CONFIGFS_DI… in UsbFnWriteConfString()
196 ret = snprintf_s(tmpPath, MAX_PATHLEN, MAX_PATHLEN - 1, "%s/configuration", tmp); in UsbFnWriteConfString()
210 char tmp[MAX_PATHLEN] = {0}; in UsbFnWriteDesString()
211 char tmpPath[MAX_PATHLEN] = {0}; in UsbFnWriteDesString()
212 …ret = snprintf_s(tmp, MAX_PATHLEN, MAX_PATHLEN - 1, "%s/%s/strings/0x%x", CONFIGFS_DIR, deviceName… in UsbFnWriteDesString()
225 ret = snprintf_s(tmpPath, MAX_PATHLEN, MAX_PATHLEN - 1, "%s/%s", tmp, stringName); in UsbFnWriteDesString()
272 char tmp[MAX_PATHLEN] = {0}; in UsbFnAdapterWriteUDC()
277 …int32_t ret = snprintf_s(tmp, MAX_PATHLEN, MAX_PATHLEN - 1, "%s/%s/UDC", CONFIGFS_DIR, deviceName); in UsbFnAdapterWriteUDC()
698 char tmp[MAX_PATHLEN]; in CreatDeviceDir()
699 (void)memset_s(tmp, MAX_PATHLEN, 0, MAX_PATHLEN); in CreatDeviceDir()
700 ret = snprintf_s(tmp, MAX_PATHLEN, MAX_PATHLEN - 1, "%s/%s", CONFIGFS_DIR, devName); in CreatDeviceDir()
717 char configName[MAX_PATHLEN]; in WriteConfPowerAttributes()
718 char tmp[MAX_PATHLEN], val[MAX_NAMELEN]; in WriteConfPowerAttributes()
719 (void)memset_s(configName, MAX_PATHLEN, 0, MAX_PATHLEN); in WriteConfPowerAttributes()
720 …ret = snprintf_s(configName, MAX_PATHLEN, MAX_PATHLEN - 1, "%s/%s/configs/b.%u", CONFIGFS_DIR, dev… in WriteConfPowerAttributes()
730 (void)memset_s(tmp, MAX_PATHLEN, 0, MAX_PATHLEN); in WriteConfPowerAttributes()
731 ret = snprintf_s(tmp, MAX_PATHLEN, MAX_PATHLEN - 1, "%s/MaxPower", configName); in WriteConfPowerAttributes()
745 (void)memset_s(tmp, MAX_PATHLEN, 0, MAX_PATHLEN); in WriteConfPowerAttributes()
746 ret = snprintf_s(tmp, MAX_PATHLEN, MAX_PATHLEN - 1, "%s/bmAttributes", configName); in WriteConfPowerAttributes()
765 char configPath[MAX_PATHLEN]; in CreatKernelFunc()
766 char funcPath[MAX_PATHLEN]; in CreatKernelFunc()
768 (void)memset_s(funcPath, MAX_PATHLEN, 0, MAX_PATHLEN); in CreatKernelFunc()
770 …funcPath, MAX_PATHLEN, MAX_PATHLEN - 1, "%s/%s/functions/%s", CONFIGFS_DIR, devName, functions->fu… in CreatKernelFunc()
775 (void)memset_s(configPath, MAX_PATHLEN, 0, MAX_PATHLEN); in CreatKernelFunc()
776 …ret = snprintf_s(configPath, MAX_PATHLEN, MAX_PATHLEN - 1, "%s/%s/configs/b.%u/%s", CONFIGFS_DIR, … in CreatKernelFunc()
834 char tmp[MAX_PATHLEN]; in DelConfigDevice()
835 (void)memset_s(tmp, MAX_PATHLEN, 0, MAX_PATHLEN); in DelConfigDevice()
836 ret = snprintf_s(tmp, MAX_PATHLEN, MAX_PATHLEN - 1, "%s/%s/configs", CONFIGFS_DIR, deviceName); in DelConfigDevice()
842 (void)memset_s(tmp, MAX_PATHLEN, 0, MAX_PATHLEN); in DelConfigDevice()
843 … ret = snprintf_s(tmp, MAX_PATHLEN, MAX_PATHLEN - 1, "%s/%s/functions", CONFIGFS_DIR, deviceName); in DelConfigDevice()
849 (void)memset_s(tmp, MAX_PATHLEN, 0, MAX_PATHLEN); in DelConfigDevice()
850 ret = snprintf_s(tmp, MAX_PATHLEN, MAX_PATHLEN - 1, "%s/%s/strings", CONFIGFS_DIR, deviceName); in DelConfigDevice()
856 (void)memset_s(tmp, MAX_PATHLEN, 0, MAX_PATHLEN); in DelConfigDevice()
857 ret = snprintf_s(tmp, MAX_PATHLEN, MAX_PATHLEN - 1, "%s/%s", CONFIGFS_DIR, deviceName); in DelConfigDevice()
867 char tmp[MAX_PATHLEN]; in CleanConfigFs()
869 (void)memset_s(tmp, MAX_PATHLEN, 0, MAX_PATHLEN); in CleanConfigFs()
870 …ret = snprintf_s(tmp, MAX_PATHLEN, MAX_PATHLEN - 1, "%s/%s/configs/b.1/%s", CONFIGFS_DIR, devName,… in CleanConfigFs()
876 (void)memset_s(tmp, MAX_PATHLEN, 0, MAX_PATHLEN); in CleanConfigFs()
877 …ret = snprintf_s(tmp, MAX_PATHLEN, MAX_PATHLEN - 1, "%s/%s/functions/%s", CONFIGFS_DIR, devName, f… in CleanConfigFs()
899 char tmp[MAX_PATHLEN]; in UsbFnAdapterCleanDevice()
903 (void)memset_s(tmp, MAX_PATHLEN, 0, MAX_PATHLEN); in UsbFnAdapterCleanDevice()
904 ret = snprintf_s(tmp, MAX_PATHLEN, MAX_PATHLEN - 1, "%s/%s/functions/", CONFIGFS_DIR, devName); in UsbFnAdapterCleanDevice()