/kernel/liteos_a/shell/full/src/cmds/ |
H A D | dmesg.c | 178 UINT32 bufSize = size - sizeof(DmesgInfo);
in OsCopyToNew() local 195 copyLen = ((bufSize < g_dmesgInfo->logSize) ? bufSize : g_dmesgInfo->logSize);
in OsCopyToNew() 196 if (bufSize < g_dmesgInfo->logSize) {
in OsCopyToNew() 197 copyStart = g_dmesgInfo->logSize - bufSize;
in OsCopyToNew() 206 ret = memcpy_s(newBuf, bufSize, temp + copyStart, copyLen);
in OsCopyToNew() 375 UINT32 bufSize = g_logBufSize;
in OsBufFullWrite() local 383 if (logLen > bufSize) { /* full re-write */
in OsBufFullWrite() 384 ret = memcpy_s(buf + tail, bufSize - tail, dst, bufSize in OsBufFullWrite() 429 UINT32 bufSize = g_logBufSize; OsWriteTailToHead() local 464 UINT32 bufSize = g_logBufSize; OsWriteTailToEnd() local 674 UINT32 logSize, bufSize, head, tail, intSave; LOS_DmesgToFile() local [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn10/ |
H A D | dcn10_hw_sequencer_debug.c | 48 unsigned int snprintf_count(char *pBuf, unsigned int bufSize, char *fmt, ...) in snprintf_count() argument 56 ret_vsnprintf = vsnprintf(pBuf, bufSize, fmt, args); in snprintf_count() 61 if (ret_vsnprintf < bufSize) in snprintf_count() 64 chars_printed = bufSize - 1; in snprintf_count() 71 static unsigned int dcn10_get_hubbub_state(struct dc *dc, char *pBuf, unsigned int bufSize) in dcn10_get_hubbub_state() argument 78 unsigned int remaining_buffer = bufSize; in dcn10_get_hubbub_state() 106 return bufSize - remaining_buffer; in dcn10_get_hubbub_state() 109 static unsigned int dcn10_get_hubp_states(struct dc *dc, char *pBuf, unsigned int bufSize, bool invarOnly) in dcn10_get_hubp_states() argument 116 unsigned int remaining_buffer = bufSize; in dcn10_get_hubp_states() 185 return bufSize in dcn10_get_hubp_states() 188 dcn10_get_rq_states(struct dc *dc, char *pBuf, unsigned int bufSize) dcn10_get_rq_states() argument 230 dcn10_get_dlg_states(struct dc *dc, char *pBuf, unsigned int bufSize) dcn10_get_dlg_states() argument 287 dcn10_get_ttu_states(struct dc *dc, char *pBuf, unsigned int bufSize) dcn10_get_ttu_states() argument 327 dcn10_get_cm_states(struct dc *dc, char *pBuf, unsigned int bufSize) dcn10_get_cm_states() argument 382 dcn10_get_mpcc_states(struct dc *dc, char *pBuf, unsigned int bufSize) dcn10_get_mpcc_states() argument 413 dcn10_get_otg_states(struct dc *dc, char *pBuf, unsigned int bufSize) dcn10_get_otg_states() argument 467 dcn10_get_clock_states(struct dc *dc, char *pBuf, unsigned int bufSize) dcn10_get_clock_states() argument 541 dcn10_get_hw_state(struct dc *dc, char *pBuf, unsigned int bufSize, unsigned int mask) dcn10_get_hw_state() argument [all...] |
H A D | dcn10_hw_sequencer_debug.h | 40 unsigned int bufSize,
|
/kernel/linux/linux-5.10/drivers/media/usb/pvrusb2/ |
H A D | pvrusb2-std.c | 107 unsigned int bufSize) in find_std_name() 113 if (strlen(p->name) != bufSize) continue; in find_std_name() 114 if (!memcmp(bufPtr,p->name,bufSize)) return p; in find_std_name() 121 unsigned int bufSize) in pvr2_std_str_to_id() 131 while (bufSize) { in pvr2_std_str_to_id() 134 while ((cnt < bufSize) && (bufPtr[cnt] != '-')) cnt++; in pvr2_std_str_to_id() 135 if (cnt >= bufSize) return 0; // No more characters in pvr2_std_str_to_id() 141 bufSize -= cnt; in pvr2_std_str_to_id() 147 while (cnt < bufSize) { in pvr2_std_str_to_id() 162 if (cnt < bufSize) cn in pvr2_std_str_to_id() 104 find_std_name(const struct std_name *arrPtr, unsigned int arrSize, const char *bufPtr, unsigned int bufSize) find_std_name() argument 120 pvr2_std_str_to_id(v4l2_std_id *idPtr,const char *bufPtr, unsigned int bufSize) pvr2_std_str_to_id() argument 172 pvr2_std_id_to_str(char *bufPtr, unsigned int bufSize, v4l2_std_id id) pvr2_std_id_to_str() argument [all...] |
H A D | pvrusb2-std.h | 17 unsigned int bufSize); 23 unsigned int pvr2_std_id_to_str(char *bufPtr, unsigned int bufSize,
|
/kernel/linux/linux-6.6/drivers/media/usb/pvrusb2/ |
H A D | pvrusb2-std.c | 107 unsigned int bufSize) in find_std_name() 113 if (strlen(p->name) != bufSize) continue; in find_std_name() 114 if (!memcmp(bufPtr,p->name,bufSize)) return p; in find_std_name() 121 unsigned int bufSize) in pvr2_std_str_to_id() 131 while (bufSize) { in pvr2_std_str_to_id() 134 while ((cnt < bufSize) && (bufPtr[cnt] != '-')) cnt++; in pvr2_std_str_to_id() 135 if (cnt >= bufSize) return 0; // No more characters in pvr2_std_str_to_id() 141 bufSize -= cnt; in pvr2_std_str_to_id() 147 while (cnt < bufSize) { in pvr2_std_str_to_id() 162 if (cnt < bufSize) cn in pvr2_std_str_to_id() 104 find_std_name(const struct std_name *arrPtr, unsigned int arrSize, const char *bufPtr, unsigned int bufSize) find_std_name() argument 120 pvr2_std_str_to_id(v4l2_std_id *idPtr,const char *bufPtr, unsigned int bufSize) pvr2_std_str_to_id() argument 172 pvr2_std_id_to_str(char *bufPtr, unsigned int bufSize, v4l2_std_id id) pvr2_std_id_to_str() argument [all...] |
H A D | pvrusb2-std.h | 17 unsigned int bufSize); 23 unsigned int pvr2_std_id_to_str(char *bufPtr, unsigned int bufSize,
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dcn10/ |
H A D | dcn10_hw_sequencer_debug.c | 72 static unsigned int dcn10_get_hubbub_state(struct dc *dc, char *pBuf, unsigned int bufSize) in dcn10_get_hubbub_state() argument 79 unsigned int remaining_buffer = bufSize; in dcn10_get_hubbub_state() 107 return bufSize - remaining_buffer; in dcn10_get_hubbub_state() 110 static unsigned int dcn10_get_hubp_states(struct dc *dc, char *pBuf, unsigned int bufSize, bool invarOnly) in dcn10_get_hubp_states() argument 117 unsigned int remaining_buffer = bufSize; in dcn10_get_hubp_states() 186 return bufSize - remaining_buffer; in dcn10_get_hubp_states() 189 static unsigned int dcn10_get_rq_states(struct dc *dc, char *pBuf, unsigned int bufSize) in dcn10_get_rq_states() argument 195 unsigned int remaining_buffer = bufSize; in dcn10_get_rq_states() 228 return bufSize - remaining_buffer; in dcn10_get_rq_states() 231 static unsigned int dcn10_get_dlg_states(struct dc *dc, char *pBuf, unsigned int bufSize) in dcn10_get_dlg_states() argument 288 dcn10_get_ttu_states(struct dc *dc, char *pBuf, unsigned int bufSize) dcn10_get_ttu_states() argument 328 dcn10_get_cm_states(struct dc *dc, char *pBuf, unsigned int bufSize) dcn10_get_cm_states() argument 383 dcn10_get_mpcc_states(struct dc *dc, char *pBuf, unsigned int bufSize) dcn10_get_mpcc_states() argument 414 dcn10_get_otg_states(struct dc *dc, char *pBuf, unsigned int bufSize) dcn10_get_otg_states() argument 468 dcn10_get_clock_states(struct dc *dc, char *pBuf, unsigned int bufSize) dcn10_get_clock_states() argument 542 dcn10_get_hw_state(struct dc *dc, char *pBuf, unsigned int bufSize, unsigned int mask) dcn10_get_hw_state() argument [all...] |
H A D | dcn10_hw_sequencer_debug.h | 40 unsigned int bufSize,
|
/kernel/liteos_a/kernel/extended/blackbox/ |
H A D | los_blackbox_common.c | 57 int FullWriteFile(const char *filePath, const char *buf, size_t bufSize, int isAppend) in FullWriteFile() argument 61 int totalToWrite = (int)bufSize; in FullWriteFile() 64 if (filePath == NULL || buf == NULL || bufSize == 0) { in FullWriteFile() 65 BBOX_PRINT_ERR("filePath: %p, buf: %p, bufSize: %lu!\n", filePath, buf, bufSize); in FullWriteFile() 92 return (totalWrite == (int)bufSize) ? 0 : -1; in FullWriteFile() 96 (VOID)bufSize; in FullWriteFile()
|
H A D | los_blackbox_detector.c | 55 int UploadEventByStream(const char *buf, size_t bufSize) in UploadEventByStream() argument 57 if (buf == NULL || bufSize == 0) { in UploadEventByStream() 58 BBOX_PRINT_ERR("buf: %p, bufSize: %u\n", buf, (UINT32)bufSize); in UploadEventByStream()
|
H A D | los_blackbox_detector.h | 43 int UploadEventByStream(const char *buf, size_t bufSize);
|
H A D | los_blackbox_system_adapter.c | 68 static void SaveFaultLog(const char *filePath, const char *dataBuf, size_t bufSize, struct ErrorInfo *info) in SaveFaultLog() argument 71 (void)FullWriteFile(filePath, dataBuf, bufSize, 1); in SaveFaultLog()
|
H A D | los_blackbox_common.h | 51 int FullWriteFile(const char *filePath, const char *buf, size_t bufSize, int isAppend);
|
/kernel/liteos_a/apps/perf/src/ |
H A D | perf_record.c | 108 ssize_t PerfWriteFile(const char *filePath, const char *buf, ssize_t bufSize) in PerfWriteFile() argument 112 ssize_t totalToWrite = bufSize; in PerfWriteFile() 115 if (filePath == NULL || buf == NULL || bufSize == 0) { in PerfWriteFile() 138 return (totalWrite == bufSize) ? 0 : -1; in PerfWriteFile() 141 PerfPrintBuffer(buf, bufSize); in PerfWriteFile()
|
/kernel/liteos_a/testsuites/unittest/process/basic/process/full/ |
H A D | process_test_064.cpp | 50 static void GetRandomData(char **buf, int bufSize) in GetRandomData() argument 56 for (i = 0; i < bufSize - 1; ++i) { in GetRandomData()
|
H A D | process_test_063.cpp | 50 static void GetRandomData(char **buf, int bufSize) in GetRandomData() argument 56 for (i = 0; i < bufSize - 1; ++i) { in GetRandomData()
|
/kernel/linux/linux-5.10/sound/oss/dmasound/ |
H A D | dmasound_core.c | 418 sq->bufSize = size; in sq_allocate_buffers() 441 dmasound.mach.dma_free(sq->buffers[i], sq->bufSize); in sq_release_buffers() 482 sq->block_size = sq->bufSize; in sq_setup() 485 sq->user_frag_size = sq->bufSize ; in sq_setup() 506 if ( sq->block_size <= 0 || sq->block_size > sq->bufSize) { in sq_setup() 510 sq->block_size = sq->bufSize ; in sq_setup() 965 if (size > sq->bufSize) in set_queue_frags() 1319 "write", write_sq.numBufs, write_sq.bufSize) ; in state_open()
|
H A D | dmasound.h | 209 int bufSize; /* in bytes */ member
|
/kernel/linux/linux-6.6/sound/oss/dmasound/ |
H A D | dmasound_core.c | 418 sq->bufSize = size; in sq_allocate_buffers() 441 dmasound.mach.dma_free(sq->buffers[i], sq->bufSize); in sq_release_buffers() 482 sq->block_size = sq->bufSize; in sq_setup() 485 sq->user_frag_size = sq->bufSize ; in sq_setup() 506 if ( sq->block_size <= 0 || sq->block_size > sq->bufSize) { in sq_setup() 510 sq->block_size = sq->bufSize ; in sq_setup() 965 if (size > sq->bufSize) in set_queue_frags() 1305 "write", write_sq.numBufs, write_sq.bufSize) ; in state_open()
|
/kernel/linux/linux-5.10/drivers/staging/rtl8723bs/include/ |
H A D | hal_btcoex.h | 57 u32 hal_btcoex_GetDBG(struct adapter *, u8 *pStrBuf, u32 bufSize);
|
/kernel/liteos_m/components/trace/ |
H A D | los_trace.h | 353 #define QUEUE_RW_PARAMS(queueId, queueSize, bufSize, operateType, readable, writable, timeout) \ 354 queueId, queueSize, bufSize, operateType, readable, writable, timeout
|
/kernel/liteos_m/components/fs/vfs/ |
H A D | vfs_fs.c | 124 * @param bufSize Indicates the size of the buffer. 131 static size_t GetCanonicalPath(const char *cwd, const char *path, char *buf, size_t bufSize) in GetCanonicalPath() argument 191 if ((!buf) || (bufSize == 0)) { in GetCanonicalPath() 196 if (EOK != memcpy_s(buf, bufSize, tmpBuf, (((totalLen + 1) > bufSize) ? bufSize : (totalLen + 1)))) { in GetCanonicalPath() 201 buf[bufSize - 1] = 0; in GetCanonicalPath()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/inc/hw/ |
H A D | clk_mgr.h | 124 unsigned int bufSize; member
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/inc/hw/ |
H A D | clk_mgr.h | 148 unsigned int bufSize; member
|