Home
last modified time | relevance | path

Searched refs:bufSize (Results 1 – 25 of 26) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/media/usb/pvrusb2/
Dpvrusb2-std.c107 unsigned int bufSize) in find_std_name() argument
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() argument
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) cnt++; in pvr2_std_str_to_id()
[all …]
Dpvrusb2-std.h17 unsigned int bufSize);
23 unsigned int pvr2_std_id_to_str(char *bufPtr, unsigned int bufSize,
/kernel/liteos_a/shell/full/src/cmds/
Ddmesg.c178 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 - tail); in OsBufFullWrite()
389 ret = memcpy_s(buf, bufSize, dst + bufSize - tail, tail); in OsBufFullWrite()
395 OsBufFullWrite(dst + bufSize, logLen - bufSize); in OsBufFullWrite()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn10/
Ddcn10_hw_sequencer_debug.c48 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 inv… in dcn10_get_hubp_states() argument
116 unsigned int remaining_buffer = bufSize; in dcn10_get_hubp_states()
185 return bufSize - remaining_buffer; in dcn10_get_hubp_states()
[all …]
Ddcn10_hw_sequencer_debug.h40 unsigned int bufSize,
Ddcn10_hw_sequencer.h156 unsigned int bufSize,
/kernel/liteos_a/kernel/extended/blackbox/
Dlos_blackbox_common.c57 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()
Dlos_blackbox_detector.c55 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()
Dlos_blackbox_detector.h43 int UploadEventByStream(const char *buf, size_t bufSize);
Dlos_blackbox_system_adapter.c68 static void SaveFaultLog(const char *filePath, const char *dataBuf, size_t bufSize, struct ErrorInf… in SaveFaultLog() argument
71 (void)FullWriteFile(filePath, dataBuf, bufSize, 1); in SaveFaultLog()
Dlos_blackbox_common.h51 int FullWriteFile(const char *filePath, const char *buf, size_t bufSize, int isAppend);
/kernel/liteos_a/apps/perf/src/
Dperf_record.c108 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/
Dprocess_test_064.cpp50 static void GetRandomData(char **buf, int bufSize) in GetRandomData() argument
56 for (i = 0; i < bufSize - 1; ++i) { in GetRandomData()
Dprocess_test_063.cpp50 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/
Ddmasound_core.c423 sq->bufSize = size; in sq_allocate_buffers()
446 dmasound.mach.dma_free(sq->buffers[i], sq->bufSize); in sq_release_buffers()
487 sq->block_size = sq->bufSize; in sq_setup()
490 sq->user_frag_size = sq->bufSize ; in sq_setup()
511 if ( sq->block_size <= 0 || sq->block_size > sq->bufSize) { in sq_setup()
515 sq->block_size = sq->bufSize ; in sq_setup()
970 if (size > sq->bufSize) in set_queue_frags()
1327 "write", write_sq.numBufs, write_sq.bufSize) ; in state_open()
Ddmasound.h215 int bufSize; /* in bytes */ member
/kernel/linux/linux-5.10/drivers/staging/rtl8723bs/include/
Dhal_btcoex.h57 u32 hal_btcoex_GetDBG(struct adapter *, u8 *pStrBuf, u32 bufSize);
/kernel/liteos_m/components/trace/
Dlos_trace.h353 #define QUEUE_RW_PARAMS(queueId, queueSize, bufSize, operateType, readable, writable, timeout) \ argument
354 queueId, queueSize, bufSize, operateType, readable, writable, timeout
/kernel/liteos_m/components/fs/vfs/
Dvfs_fs.c131 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/liteos_a/kernel/include/
Dlos_trace.h380 #define QUEUE_RW_PARAMS(queueId, queueSize, bufSize, operateType, readable, writable, timeout) \ argument
381 queueId, queueSize, bufSize, operateType, readable, writable, timeout
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/inc/hw/
Dclk_mgr.h124 unsigned int bufSize; member
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/inc/
Dhw_sequencer.h201 unsigned int bufSize, unsigned int mask);
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/
Ddm_services.h164 unsigned int snprintf_count(char *pBuf, unsigned int bufSize, char *fmt, ...);
/kernel/linux/linux-5.10/drivers/staging/rtl8723bs/hal/
Dhal_btcoex.c1513 u32 hal_btcoex_GetDBG(struct adapter *padapter, u8 *pStrBuf, u32 bufSize) in hal_btcoex_GetDBG() argument
1520 if (!pStrBuf || bufSize == 0) in hal_btcoex_GetDBG()
1524 leftSize = bufSize; in hal_btcoex_GetDBG()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/
Drn_clk_mgr.c271 unsigned int remaining_buffer = log_info->bufSize; in rn_dump_clk_registers()

12