| /linux/tools/perf/trace/beauty/ |
| H A D | beauty.h | 30 size_t strarray__scnprintf(struct strarray *sa, char *bf, size_t size, const char *intfmt, bool sho… 31 size_t strarray__scnprintf_suffix(struct strarray *sa, char *bf, size_t size, const char *intfmt, b… 32 size_t strarray__scnprintf_flags(struct strarray *sa, char *bf, size_t size, bool show_prefix, unsi… 34 bool strarray__strtoul(struct strarray *sa, char *bf, size_t size, u64 *ret); 35 bool strarray__strtoul_flags(struct strarray *sa, char *bf, size_t size, u64 *ret); 57 size_t strarrays__scnprintf(struct strarrays *sas, char *bf, size_t size, const char *intfmt, bool … 59 bool strarrays__strtoul(struct strarrays *sas, char *bf, size_t size, u64 *ret); 61 size_t pid__scnprintf_fd(struct trace *trace, pid_t pid, int fd, char *bf, size_t size); 125 size_t syscall_arg__scnprintf_strarray_flags(char *bf, size_t size, struct syscall_arg *arg); 128 bool syscall_arg__strtoul_strarray(char *bf, size_t size, struct syscall_arg *arg, u64 *ret); [all …]
|
| H A D | mmap.c | 7 static size_t mmap__scnprintf_prot(unsigned long prot, char *bf, size_t size, bool show_prefix) in mmap__scnprintf_prot() 12 static size_t syscall_arg__scnprintf_mmap_prot(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_mmap_prot() 27 static size_t mmap__scnprintf_flags(unsigned long flags, char *bf, size_t size, bool show_prefix) in mmap__scnprintf_flags() 32 static size_t syscall_arg__scnprintf_mmap_flags(char *bf, size_t size, in syscall_arg__scnprintf_mmap_flags() 48 static size_t mremap__scnprintf_flags(unsigned long flags, char *bf, size_t size, bool show_prefix) in mremap__scnprintf_flags() 53 static size_t syscall_arg__scnprintf_mremap_flags(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_mremap_flags() 65 static size_t madvise__scnprintf_behavior(int behavior, char *bf, size_t size) in madvise__scnprintf_behavior() 76 static size_t syscall_arg__scnprintf_madvise_behavior(char *bf, size_t size, in syscall_arg__scnprintf_madvise_behavior()
|
| /linux/lib/zstd/compress/ |
| H A D | zstd_lazy.h | 40 size_t ZSTD_compressBlock_greedy( 42 void const* src, size_t srcSize); 43 size_t ZSTD_compressBlock_greedy_row( 45 void const* src, size_t srcSize); 46 size_t ZSTD_compressBlock_greedy_dictMatchState( 48 void const* src, size_t srcSize); 49 size_t ZSTD_compressBlock_greedy_dictMatchState_row( 51 void const* src, size_t srcSize); 52 size_t ZSTD_compressBlock_greedy_dedicatedDictSearch( 54 void const* src, size_t srcSize); [all …]
|
| H A D | zstd_compress_superblock.c | 42 static size_t 45 const BYTE* literals, size_t litSize, in ZSTD_compressSubBlock_literal() 46 void* dst, size_t dstSize, in ZSTD_compressSubBlock_literal() 49 size_t const header = writeEntropy ? 200 : 0; in ZSTD_compressSubBlock_literal() 50 size_t const lhSize = 3 + (litSize >= (1 KB - header)) + (litSize >= (16 KB - header)); in ZSTD_compressSubBlock_literal() 56 size_t cLitSize = 0; in ZSTD_compressSubBlock_literal() 80 …const size_t cSize = singleStream ? HUF_compress1X_usingCTable(op, (size_t)(oend-op), literals, li… in ZSTD_compressSubBlock_literal() 81 … : HUF_compress4X_usingCTable(op, (size_t)(oend-op), literals, litSize, hufTable, flags); in ZSTD_compressSubBlock_literal() 94 if (lhSize < (size_t)(3 + (cLitSize >= 1 KB) + (cLitSize >= 16 KB))) { in ZSTD_compressSubBlock_literal() 126 return (size_t)(op-ostart); in ZSTD_compressSubBlock_literal() [all …]
|
| H A D | zstd_compress.c | 68 size_t ZSTD_compressBound(size_t srcSize) { in ZSTD_compressBound() 69 size_t const r = ZSTD_COMPRESSBOUND(srcSize); in ZSTD_compressBound() 80 size_t dictContentSize; 106 { size_t const err = ZSTD_CCtx_reset(cctx, ZSTD_reset_parameters); in ZSTD_initCCtx() 124 ZSTD_CCtx* ZSTD_initStaticCCtx(void* workspace, size_t workspaceSize) in ZSTD_initStaticCCtx() 129 if ((size_t)workspace & 7) return NULL; /* must be 8-aligned */ in ZSTD_initStaticCCtx() 161 static size_t ZSTD_sizeof_localDict(ZSTD_localDict dict) in ZSTD_sizeof_localDict() 163 size_t const bufferSize = dict.dictBuffer != NULL ? dict.dictSize : 0; in ZSTD_sizeof_localDict() 164 size_t const cdictSize = ZSTD_sizeof_CDict(dict.cdict); in ZSTD_sizeof_localDict() 176 size_t ZSTD_freeCCtx(ZSTD_CCtx* cctx) in ZSTD_freeCCtx() [all …]
|
| H A D | zstd_opt.h | 25 size_t ZSTD_compressBlock_btopt( 27 void const* src, size_t srcSize); 28 size_t ZSTD_compressBlock_btopt_dictMatchState( 30 void const* src, size_t srcSize); 31 size_t ZSTD_compressBlock_btopt_extDict( 33 void const* src, size_t srcSize); 45 size_t ZSTD_compressBlock_btultra( 47 void const* src, size_t srcSize); 48 size_t ZSTD_compressBlock_btultra_dictMatchState( 50 void const* src, size_t srcSize); [all …]
|
| /linux/lib/zstd/common/ |
| H A D | huf.h | 20 #include "zstd_deps.h" /* size_t */ 27 size_t HUF_compressBound(size_t size); /*< maximum compressed size (worst case) */ 30 unsigned HUF_isError(size_t code); /*< tells if a return value is an error code */ 31 const char* HUF_getErrorName(size_t code); /*< provides error code string (useful for debugging) */ 58 typedef size_t HUF_CElt; /* consider it an incomplete type */ 59 #define HUF_CTABLE_SIZE_ST(maxSymbolValue) ((maxSymbolValue)+2) /* Use tables of size_t, for pr… 60 #define HUF_CTABLE_SIZE(maxSymbolValue) (HUF_CTABLE_SIZE_ST(maxSymbolValue) * sizeof(size_t)) 133 unsigned HUF_optimalTableLog(unsigned maxTableLog, size_t srcSize, unsigned maxSymbolValue, void* w… 134 …size_t wkspSize, HUF_CElt* table, const unsigned* count, int flags); /* table is used as scratch s… 135 size_t HUF_writeCTable_wksp(void* dst, size_t maxDstSize, const HUF_CElt* CTable, unsigned maxSymbo… [all …]
|
| /linux/lib/zstd/ |
| H A D | zstd_decompress_module.c | 21 unsigned int zstd_is_error(size_t code) in zstd_is_error() 27 zstd_error_code zstd_get_error_code(size_t code) in zstd_get_error_code() 33 const char *zstd_get_error_name(size_t code) in zstd_get_error_name() 41 size_t zstd_dctx_workspace_bound(void) in zstd_dctx_workspace_bound() 53 size_t zstd_free_dctx(zstd_dctx *dctx) in zstd_free_dctx() 59 zstd_ddict *zstd_create_ddict_byreference(const void *dict, size_t dict_size, in zstd_create_ddict_byreference() 68 size_t zstd_free_ddict(zstd_ddict *ddict) in zstd_free_ddict() 74 zstd_dctx *zstd_init_dctx(void *workspace, size_t workspace_size) in zstd_init_dctx() 82 size_t zstd_decompress_dctx(zstd_dctx *dctx, void *dst, size_t dst_capacity, in zstd_decompress_dctx() 83 const void *src, size_t src_size) in zstd_decompress_dctx() [all …]
|
| H A D | zstd_compress_module.c | 23 size_t const __ret = (ret); \ 28 static size_t zstd_cctx_init(zstd_cctx *cctx, const zstd_parameters *parameters, in zstd_cctx_init() 76 size_t zstd_compress_bound(size_t src_size) in zstd_compress_bound() 90 unsigned long long estimated_src_size, size_t dict_size) in zstd_get_cparams() 96 size_t zstd_cctx_set_param(zstd_cctx *cctx, ZSTD_cParameter param, int value) in zstd_cctx_set_param() 102 size_t zstd_cctx_workspace_bound(const zstd_compression_parameters *cparams) in zstd_cctx_workspace_bound() 109 static size_t dummy_external_sequence_producer( in dummy_external_sequence_producer() 111 ZSTD_Sequence *outSeqs, size_t outSeqsCapacity, in dummy_external_sequence_producer() 112 const void *src, size_t srcSize, in dummy_external_sequence_producer() 113 const void *dict, size_t dictSize, in dummy_external_sequence_producer() [all …]
|
| /linux/arch/arm/mm/ |
| H A D | cache.c | 17 void v4_flush_kern_dcache_area(void *, size_t); 18 void v4_dma_map_area(const void *, size_t, int); 19 void v4_dma_unmap_area(const void *, size_t, int); 45 void v4wb_flush_kern_dcache_area(void *, size_t); 46 void v4wb_dma_map_area(const void *, size_t, int); 47 void v4wb_dma_unmap_area(const void *, size_t, int); 73 void v4wt_flush_kern_dcache_area(void *, size_t); 74 void v4wt_dma_map_area(const void *, size_t, int); 75 void v4wt_dma_unmap_area(const void *, size_t, int); 101 void fa_flush_kern_dcache_area(void *, size_t); [all …]
|
| /linux/lib/zstd/decompress/ |
| H A D | zstd_decompress.c | 90 static size_t ZSTD_DDictHashSet_getIndex(const ZSTD_DDictHashSet* hashSet, U32 dictID) { in ZSTD_DDictHashSet_getIndex() 100 static size_t ZSTD_DDictHashSet_emplaceDDict(ZSTD_DDictHashSet* hashSet, const ZSTD_DDict* ddict) { in ZSTD_DDictHashSet_emplaceDDict() 102 size_t idx = ZSTD_DDictHashSet_getIndex(hashSet, dictID); in ZSTD_DDictHashSet_emplaceDDict() 103 const size_t idxRangeMask = hashSet->ddictPtrTableSize - 1; in ZSTD_DDictHashSet_emplaceDDict() 126 static size_t ZSTD_DDictHashSet_expand(ZSTD_DDictHashSet* hashSet, ZSTD_customMem customMem) { in ZSTD_DDictHashSet_expand() 127 size_t newTableSize = hashSet->ddictPtrTableSize * DDICT_HASHSET_RESIZE_FACTOR; in ZSTD_DDictHashSet_expand() 130 size_t oldTableSize = hashSet->ddictPtrTableSize; in ZSTD_DDictHashSet_expand() 131 size_t i; in ZSTD_DDictHashSet_expand() 152 size_t idx = ZSTD_DDictHashSet_getIndex(hashSet, dictID); in ZSTD_DDictHashSet_getDDict() 153 const size_t idxRangeMask = hashSet->ddictPtrTableSize - 1; in ZSTD_DDictHashSet_getDDict() [all …]
|
| H A D | zstd_decompress_block.c | 55 static size_t ZSTD_blockSizeMax(ZSTD_DCtx const* dctx) in ZSTD_blockSizeMax() 57 …size_t const blockSizeMax = dctx->isFrameDecompression ? dctx->fParams.blockSizeMax : ZSTD_BLOCKSI… in ZSTD_blockSizeMax() 64 size_t ZSTD_getcBlockSize(const void* src, size_t srcSize, in ZSTD_getcBlockSize() 81 …ocateLiteralsBuffer(ZSTD_DCtx* dctx, void* const dst, const size_t dstCapacity, const size_t litSi… in ZSTD_allocateLiteralsBuffer() 82 …const streaming_operation streaming, const size_t expectedWriteSize, const unsigned splitImmediate… in ZSTD_allocateLiteralsBuffer() 84 size_t const blockSizeMax = ZSTD_blockSizeMax(dctx); in ZSTD_allocateLiteralsBuffer() 135 static size_t ZSTD_decodeLiteralsBlock(ZSTD_DCtx* dctx, in ZSTD_decodeLiteralsBlock() 136 const void* src, size_t srcSize, /* note : srcSize < BLOCKSIZE */ in ZSTD_decodeLiteralsBlock() 137 void* dst, size_t dstCapacity, const streaming_operation streaming) in ZSTD_decodeLiteralsBlock() 144 size_t const blockSizeMax = ZSTD_blockSizeMax(dctx); in ZSTD_decodeLiteralsBlock() [all …]
|
| /linux/tools/testing/selftests/arm64/pauth/ |
| H A D | helper.h | 12 size_t keyia; 13 size_t keyib; 14 size_t keyda; 15 size_t keydb; 16 size_t keyg; 22 size_t keyia_sign(size_t val); 23 size_t keyib_sign(size_t val); 24 size_t keyda_sign(size_t val); 25 size_t keydb_sign(size_t val); 26 size_t keyg_sign(size_t val);
|
| H A D | helper.c | 6 size_t keyia_sign(size_t ptr) in keyia_sign() 12 size_t keyib_sign(size_t ptr) in keyib_sign() 18 size_t keyda_sign(size_t ptr) in keyda_sign() 24 size_t keydb_sign(size_t ptr) in keydb_sign() 30 size_t keyg_sign(size_t ptr) in keyg_sign() 33 size_t dest = 0; in keyg_sign() 34 size_t modifier = 0; in keyg_sign()
|
| /linux/include/linux/ |
| H A D | iov_iter.h | 15 typedef size_t (*iov_step_f)(void *iter_base, size_t progress, size_t len, 17 typedef size_t (*iov_ustep_f)(void __user *iter_base, size_t progress, size_t len, 24 size_t iterate_ubuf(struct iov_iter *iter, size_t len, void *priv, void *priv2, in iterate_ubuf() 28 size_t progress = 0, remain; in iterate_ubuf() 41 size_t iterate_iovec(struct iov_iter *iter, size_t len, void *priv, void *priv2, in iterate_iovec() 45 size_t progress = 0, skip = iter->iov_offset; in iterate_iovec() 48 size_t remain, consumed; in iterate_iovec() 49 size_t part = min(len, p->iov_len - skip); in iterate_iovec() 75 size_t iterate_kvec(struct iov_iter *iter, size_t len, void *priv, void *priv2, in iterate_kvec() 79 size_t progress = 0, skip = iter->iov_offset; in iterate_kvec() [all …]
|
| /linux/tools/perf/util/ |
| H A D | compress.h | 55 ssize_t zstd_compress_stream_to_records(struct zstd_data *data, void *dst, size_t dst_size, in zstd_compress_stream_to_records() 56 void *src, size_t src_size, size_t max_record_size, in zstd_compress_stream_to_records() 57 size_t process_header(void *record, size_t increment)); in zstd_compress_stream_to_records() 59 size_t zstd_decompress_stream(struct zstd_data *data, void *src, size_t src_size, in zstd_compress_stream_to_records() 60 void *dst, size_t dst_size); in zstd_compress_stream_to_records() 75 void *dst __maybe_unused, size_t dst_size __maybe_unused, 76 void *src __maybe_unused, size_t src_siz [all...] |
| /linux/arch/s390/include/asm/ |
| H A D | string.h | 19 void *memcpy(void *dest, const void *src, size_t n); 20 void *memset(void *s, int c, size_t n); 21 void *memmove(void *dest, const void *src, size_t n); 39 int memcmp(const void *s1, const void *s2, size_t n); 41 size_t strlcat(char *dest, const char *src, size_t n); 42 char *strncat(char *dest, const char *src, size_t n); 67 void *__memcpy(void *dest, const void *src, size_t n); 68 void *__memset(void *s, int c, size_t n); 69 void *__memmove(void *dest, const void *src, size_t n); 70 void *__memset16(uint16_t *s, uint16_t v, size_t count); [all …]
|
| /linux/tools/include/nolibc/ |
| H A D | string.h | 16 static void *malloc(size_t len); 23 int memcmp(const void *s1, const void *s2, size_t n) in memcmp() 25 size_t ofs = 0; in memcmp() 38 void *memmove(void *dst, const void *src, size_t len); 40 void *memmove(void *dst, const void *src, size_t len) in memmove() 42 size_t dir, pos; in memmove() 63 void *memcpy(void *dst, const void *src, size_t len); 65 void *memcpy(void *dst, const void *src, size_t len) in memcpy() 67 size_t pos = 0; in memcpy() 81 void *memset(void *dst, int b, size_t len); [all …]
|
| /linux/fs/netfs/ |
| H A D | iterator.c | 36 ssize_t netfs_extract_user_iter(struct iov_iter *orig, size_t orig_len, in netfs_extract_user_iter() 47 size_t count = orig_len, offset, len; in netfs_extract_user_iter() 48 size_t bv_size, pg_size; in netfs_extract_user_iter() 109 static size_t netfs_limit_bvec(const struct iov_iter *iter, size_t start_offset, in netfs_limit_bvec() 110 size_t max_size, size_t max_segs) in netfs_limit_bvec() 114 size_t len, span = 0, n = iter->count; in netfs_limit_bvec() 115 size_t skip = iter->iov_offset + start_offset; in netfs_limit_bvec() 150 static size_t netfs_limit_kvec(const struct iov_iter *iter, size_t start_offset, in netfs_limit_kvec() 151 size_t max_size, size_t max_segs) in netfs_limit_kvec() 155 size_t len, span = 0, n = iter->count; in netfs_limit_kvec() [all …]
|
| /linux/drivers/net/dsa/sja1105/ |
| H A D | sja1105_static_config.h | 434 size_t (*packing)(void *buf, void *entry_ptr, enum packing_op op); 435 size_t unpacked_entry_size; 436 size_t packed_entry_size; 437 size_t max_entry_count; 442 size_t entry_count; 459 size_t sja1105_table_header_packing(void *buf, void *hdr, enum packing_op op); 462 size_t 493 int sja1105_table_resize(struct sja1105_table *table, size_t new_count); 495 u32 sja1105_crc32(const void *buf, size_t len); 497 void sja1105_pack(void *buf, const u64 *val, int start, int end, size_t len); [all …]
|
| /linux/tools/testing/selftests/arm64/mte/ |
| H A D | mte_common_util.h | 48 void *mte_allocate_memory(size_t size, int mem_type, int mapping, bool tags); 49 void *mte_allocate_memory_tag_range(size_t size, int mem_type, int mapping, 50 size_t range_before, size_t range_after); 51 void *mte_allocate_file_memory(size_t size, int mem_type, int mapping, 53 void *mte_allocate_file_memory_tag_range(size_t size, int mem_type, int mapping, 54 size_t range_before, size_t range_after, int fd); 55 void mte_free_memory(void *ptr, size_t size, int mem_type, bool tags); 56 void mte_free_memory_tag_range(void *ptr, size_t size, int mem_type, 57 size_t range_before, size_t range_after); 58 void *mte_insert_tags(void *ptr, size_t size); [all …]
|
| /linux/kernel/dma/ |
| H A D | debug.h | 13 size_t size, int direction, dma_addr_t dma_addr, 17 size_t size, int direction); 26 extern void debug_dma_alloc_coherent(struct device *dev, size_t size, 30 extern void debug_dma_free_coherent(struct device *dev, size_t size, 34 dma_addr_t dma_handle, size_t size, 39 size_t size, int direction); 49 size_t size, int direction, 53 size_t size, int direction, 57 size_t size, int direction, in debug_dma_map_phys() 63 size_t size, int direction) in debug_dma_unmap_phys() [all …]
|
| /linux/fs/ntfs3/ |
| H A D | lznt.c | 32 size_t max_len; 38 static inline size_t get_match_len(const u8 *ptr, const u8 *end, const u8 *prev, in get_match_len() 39 size_t max_len) in get_match_len() 41 size_t len = 0; in get_match_len() 48 static size_t longest_match_std(const u8 *src, struct lznt *ctx) in longest_match_std() 50 size_t hash_index; in longest_match_std() 51 size_t len1 = 0, len2 = 0; in longest_match_std() 89 static size_t longest_match_best(const u8 *src, struct lznt *ctx) in longest_match_best() 91 size_t max_len; in longest_match_best() 99 size_t len = in longest_match_best() [all …]
|
| /linux/fs/ecryptfs/ |
| H A D | ecryptfs_kernel.h | 44 ecryptfs_to_hex(char *dst, char *src, size_t src_size) in ecryptfs_to_hex() 54 size_t enc_key_size; 201 size_t filename_size; 202 size_t encrypted_filename_size; 230 size_t iv_bytes; 231 size_t metadata_size; 232 size_t extent_size; /* Data extent size; default is 4096 */ 233 size_t key_size; 234 size_t extent_shift; 301 size_t key_size; [all …]
|
| /linux/tools/include/linux/ |
| H A D | overflow.h | 72 * size_mul() - Calculate size_t multiplication with saturation at SIZE_MAX 76 * Returns: calculate @factor1 * @factor2, both promoted to size_t, 78 * lvalue must be size_t to avoid implicit type conversion. 80 static inline size_t __must_check size_mul(size_t factor1, size_t factor2) in size_mul() 82 size_t bytes; in size_mul() 101 static inline __must_check size_t array_size(size_t a, size_t b) in array_size() 103 size_t bytes; in array_size() 123 static inline __must_check size_t array3_size(size_t a, size_t b, size_t c) in array3_size() 125 size_t bytes; in array3_size() 135 static inline __must_check size_t __ab_c_size(size_t n, size_t size, size_t c) in __ab_c_size() [all …]
|