/linux/lib/ |
H A D | decompress_inflate.c | 45 unsigned char *out_buf, long out_len, in __gunzip() argument 54 out_len = 0x8000; /* 32 K */ in __gunzip() 55 out_buf = malloc(out_len); in __gunzip() 57 if (!out_len) in __gunzip() 58 out_len = ((size_t)~0) - (size_t)out_buf; /* no limit */ in __gunzip() 131 strm->avail_out = out_len; in __gunzip() 167 strm->avail_out = out_len; in __gunzip() 213 unsigned char *out_buf, long out_len, in __decompress() argument 217 return __gunzip(buf, len, fill, flush, out_buf, out_len, pos, error); in __decompress()
|
H A D | decompress_unzstd.c | 126 long out_len, long *in_pos, in decompress_single() argument 150 ret = zstd_decompress_dctx(dctx, out_buf, out_len, in_buf, in_len); in decompress_single() 168 unsigned char *out_buf, long out_len, in __unzstd() argument 188 if (out_len == 0) in __unzstd() 189 out_len = UINTPTR_MAX - (uintptr_t)out_buf; in __unzstd() 196 return decompress_single(in_buf, in_len, out_buf, out_len, in __unzstd() 235 out_len = ZSTD_IOBUF_SIZE; in __unzstd() 240 out.size = out_len; in __unzstd() 346 unsigned char *out_buf, long out_len, in __decompress() argument 350 return __unzstd(buf, len, fill, flush, out_buf, out_len, pos, error); in __decompress()
|
H A D | decompress_unlz4.c | 45 size_t out_len = get_unaligned_le32(input + in_len); in unlz4() local 154 if (out_len >= uncomp_chunksize) { in unlz4() 156 out_len -= dest_len; in unlz4() 158 dest_len = out_len; in unlz4() 210 unsigned char *output, long out_len, in __decompress() argument
|
/linux/fs/btrfs/ |
H A D | lzo.c | 243 size_t out_len; in lzo_compress_folios() local 258 workspace->cbuf, &out_len, in lzo_compress_folios() 267 ret = copy_compressed_data_to_page(workspace->cbuf, out_len, in lzo_compress_folios() 374 size_t out_len = lzo1x_worst_compress(sectorsize); in lzo_decompress_bio() local 408 workspace->buf, &out_len); in lzo_decompress_bio() 420 ret = btrfs_decompress_buf2page(workspace->buf, out_len, cb, cur_out); in lzo_decompress_bio() 421 cur_out += out_len; in lzo_decompress_bio() 448 size_t out_len; in lzo_decompress() local 467 out_len = sectorsize; in lzo_decompress() 468 ret = lzo1x_decompress_safe(data_in, in_len, workspace->buf, &out_len); in lzo_decompress() [all …]
|
/linux/fs/ubifs/ |
H A D | crypto.c | 39 unsigned int in_len, unsigned int *out_len, int block) in ubifs_encrypt() argument 46 ubifs_assert(c, pad_len <= *out_len); in ubifs_encrypt() 59 *out_len = pad_len; in ubifs_encrypt() 65 unsigned int *out_len, int block) in ubifs_decrypt() argument 70 unsigned int dlen = *out_len; in ubifs_decrypt() 85 *out_len = clen; in ubifs_decrypt()
|
H A D | compress.c | 103 int in_len, void *out_buf, int *out_len, int *compr_type) in ubifs_compress() argument 118 (unsigned int *)out_len); in ubifs_compress() 131 if (in_len - *out_len < UBIFS_MIN_COMPRESS_DIFF) in ubifs_compress() 138 *out_len = in_len; in ubifs_compress() 156 int in_len, void *out_buf, int *out_len, int compr_type) in ubifs_decompress() argument 175 *out_len = in_len; in ubifs_decompress() 182 (unsigned int *)out_len); in ubifs_decompress()
|
H A D | journal.c | 858 int err, lnum, offs, compr_type, out_len, compr_len, auth_len; in ubifs_jnl_write_data() local 898 out_len = compr_len = dlen - UBIFS_DATA_NODE_SZ; in ubifs_jnl_write_data() 903 err = ubifs_encrypt(inode, data, compr_len, &out_len, key_block(c, key)); in ubifs_jnl_write_data() 909 out_len = compr_len; in ubifs_jnl_write_data() 912 dlen = UBIFS_DATA_NODE_SZ + out_len; in ubifs_jnl_write_data() 1625 int err, dlen, compr_type, out_len, data_size; in truncate_data_node() local 1627 out_len = le32_to_cpu(dn->size); in truncate_data_node() 1628 buf = kmalloc_array(out_len, WORST_COMPR_FACTOR, GFP_NOFS); in truncate_data_node() 1643 out_len = *new_len; in truncate_data_node() 1645 err = ubifs_decompress(c, &dn->data, dlen, buf, &out_len, compr_type); in truncate_data_node() [all …]
|
/linux/drivers/infiniband/core/ |
H A D | ucma.c | 369 int in_len, int out_len) in ucma_get_event() argument 378 if (out_len < sizeof(uevent->resp) - sizeof(uevent->resp.reserved) - in ucma_get_event() 403 min_t(size_t, out_len, sizeof(uevent->resp)))) { in ucma_get_event() 439 int in_len, int out_len) in ucma_create_id() argument 448 if (out_len < sizeof(resp)) in ucma_create_id() 591 int in_len, int out_len) in ucma_destroy_id() argument 598 if (out_len < sizeof(resp)) in ucma_destroy_id() 625 int in_len, int out_len) in ucma_bind_ip() argument 650 int in_len, int out_len) in ucma_bind() argument 676 int in_len, int out_len) in ucma_resolve_ip() argument [all …]
|
H A D | uverbs_std_types_device.c | 67 ssize_t out_len, in gather_objects_handle() argument 70 u64 max_count = out_len / sizeof(u32); in gather_objects_handle() 78 handles = uverbs_zalloc(attrs, out_len); in gather_objects_handle() 105 ssize_t out_len; in UVERBS_HANDLER() local 111 out_len = uverbs_attr_get_len(attrs, UVERBS_ATTR_INFO_HANDLES_LIST); in UVERBS_HANDLER() 112 if (out_len <= 0 || (out_len % sizeof(u32) != 0)) in UVERBS_HANDLER() 124 out_len, &total); in UVERBS_HANDLER()
|
/linux/crypto/ |
H A D | zstd.c | 153 size_t out_len; in __zstd_compress() local 157 out_len = zstd_compress_cctx(zctx->cctx, dst, *dlen, src, slen, ¶ms); in __zstd_compress() 158 if (zstd_is_error(out_len)) in __zstd_compress() 160 *dlen = out_len; in __zstd_compress() 182 size_t out_len; in __zstd_decompress() local 185 out_len = zstd_decompress_dctx(zctx->dctx, dst, *dlen, src, slen); in __zstd_decompress() 186 if (zstd_is_error(out_len)) in __zstd_decompress() 188 *dlen = out_len; in __zstd_decompress()
|
H A D | lz4hc.c | 55 int out_len = LZ4_compress_HC(src, dst, slen, in __lz4hc_compress_crypto() local 58 if (!out_len) in __lz4hc_compress_crypto() 61 *dlen = out_len; in __lz4hc_compress_crypto() 85 int out_len = LZ4_decompress_safe(src, dst, slen, *dlen); in __lz4hc_decompress_crypto() local 87 if (out_len < 0) in __lz4hc_decompress_crypto() 90 *dlen = out_len; in __lz4hc_decompress_crypto()
|
H A D | lz4.c | 56 int out_len = LZ4_compress_default(src, dst, in __lz4_compress_crypto() local 59 if (!out_len) in __lz4_compress_crypto() 62 *dlen = out_len; in __lz4_compress_crypto() 84 int out_len = LZ4_decompress_safe(src, dst, slen, *dlen); in __lz4_decompress_crypto() local 86 if (out_len < 0) in __lz4_decompress_crypto() 89 *dlen = out_len; in __lz4_decompress_crypto()
|
/linux/lib/lzo/ |
H A D | lzo1x_compress.c | 23 unsigned char *out, size_t *out_len, in lzo1x_1_do_compress() argument 298 *out_len = op - out; in lzo1x_1_do_compress() 303 unsigned char *out, size_t *out_len, in lzogeneric1x_1_compress() argument 333 t = lzo1x_1_do_compress(ip, ll, op, out_len, t, wrkmem, in lzogeneric1x_1_compress() 336 op += *out_len; in lzogeneric1x_1_compress() 375 *out_len = op - out; in lzogeneric1x_1_compress() 380 unsigned char *out, size_t *out_len, in lzo1x_1_compress() argument 383 return lzogeneric1x_1_compress(in, in_len, out, out_len, wrkmem, 0); in lzo1x_1_compress() 387 unsigned char *out, size_t *out_len, in lzorle1x_1_compress() argument 390 return lzogeneric1x_1_compress(in, in_len, out, out_len, in lzorle1x_1_compress()
|
H A D | lzo1x_decompress_safe.c | 40 unsigned char *out, size_t *out_len) in lzo1x_decompress_safe() argument 48 unsigned char * const op_end = out + *out_len; in lzo1x_decompress_safe() 273 *out_len = op - out; in lzo1x_decompress_safe() 279 *out_len = op - out; in lzo1x_decompress_safe() 283 *out_len = op - out; in lzo1x_decompress_safe() 287 *out_len = op - out; in lzo1x_decompress_safe()
|
/linux/security/keys/ |
H A D | keyctl_pkey.c | 139 uparams.out_len > info.max_enc_size) in keyctl_pkey_params_get_2() 144 uparams.out_len > info.max_dec_size) in keyctl_pkey_params_get_2() 149 uparams.out_len > info.max_sig_size) in keyctl_pkey_params_get_2() 162 params->out_len = uparams.out_len; /* Note: same as in2_len */ in keyctl_pkey_params_get_2() 251 out = kmalloc(params.out_len, GFP_KERNEL); in keyctl_pkey_e_d_s()
|
/linux/fs/squashfs/ |
H A D | lzo_wrapper.c | 74 size_t out_len = output->length; in lzo_uncompress() local 87 stream->output, &out_len); in lzo_uncompress() 91 res = bytes = (int)out_len; in lzo_uncompress()
|
/linux/drivers/net/ethernet/sfc/ |
H A D | tx_tso.c | 59 unsigned int out_len; member 196 st->out_len = skb->len - header_len; in tso_start() 250 st->out_len -= n; in tso_fill_packet_with_fragment() 255 if (st->out_len == 0) { in tso_fill_packet_with_fragment() 291 bool is_last = st->out_len <= skb_shinfo(skb)->gso_size; in tso_start_new_packet() 298 st->packet_space = st->out_len; in tso_start_new_packet()
|
/linux/scripts/kconfig/ |
H A D | preprocess.c | 507 size_t in_len, out_len; in __expand_string() local 511 out_len = 1; in __expand_string() 520 out_len += in_len + strlen(expansion); in __expand_string() 521 out = xrealloc(out, out_len); in __expand_string() 536 out_len += in_len; in __expand_string() 537 out = xrealloc(out, out_len); in __expand_string()
|
/linux/fs/exfat/ |
H A D | nls.c | 544 int i, j, len, out_len = 0; in __exfat_utf16_to_nls() local 550 while (i < MAX_NAME_LENGTH && out_len < (buflen - 1)) { in __exfat_utf16_to_nls() 576 if (out_len + len >= buflen) in __exfat_utf16_to_nls() 577 len = buflen - 1 - out_len; in __exfat_utf16_to_nls() 578 out_len += len; in __exfat_utf16_to_nls() 592 return out_len; in __exfat_utf16_to_nls()
|
/linux/drivers/staging/media/atomisp/pci/ |
H A D | atomisp_gmin_platform.c | 1203 const char *var8, char *out, size_t *out_len) in gmin_get_hardcoded_var() argument 1216 if (vl > *out_len - 1) in gmin_get_hardcoded_var() 1219 strscpy(out, gv->val, *out_len); in gmin_get_hardcoded_var() 1220 *out_len = vl; in gmin_get_hardcoded_var() 1230 char *out, size_t *out_len) in gmin_get_config_dsm_var() argument 1303 strscpy(out, cur->string.pointer, *out_len); in gmin_get_config_dsm_var() 1304 *out_len = strlen(out); in gmin_get_config_dsm_var() 1317 char *out, size_t *out_len) in gmin_get_config_var() argument 1338 out, out_len); in gmin_get_config_var() 1345 ret = gmin_get_config_dsm_var(maindev, var, out, out_len); in gmin_get_config_var() [all …]
|
/linux/drivers/virt/coco/tdx-guest/ |
H A D | tdx-guest.c | 53 u32 out_len; member 231 buf = kvmemdup(quote_buf->data, quote_buf->out_len, GFP_KERNEL); in tdx_report_new() 238 report->outblob_len = quote_buf->out_len; in tdx_report_new()
|
/linux/drivers/crypto/nx/ |
H A D | nx-842.h | 146 unsigned char *out, unsigned int *out_len, 149 unsigned char *out, unsigned int *out_len,
|
/linux/security/selinux/ss/ |
H A D | sidtab.h | 145 u32 *out_len); 154 u32 *out_len) in sidtab_sid2str_get() argument
|
/linux/drivers/target/iscsi/ |
H A D | iscsi_target_auth.c | 577 int *out_len) in chap_main_loop() argument 582 chap = chap_server_open(conn, auth, in_text, out_text, out_len); in chap_main_loop() 590 out_len) < 0) { in chap_main_loop() 597 *out_len = 0; in chap_main_loop()
|
/linux/security/apparmor/ |
H A D | policy_unpack.c | 1312 size_t out_len = zstd_compress_bound(slen); in compress_zstd() 1316 out = kvzalloc(out_len, GFP_KERNEL); in compress_zstd() 1334 out_len = zstd_compress_cctx(ctx, out, out_len, src, slen, ¶ms); in compress_zstd() 1335 if (zstd_is_error(out_len) || out_len >= slen) { in compress_zstd() 1341 *dst = kvzalloc(out_len, GFP_KERNEL); in compress_zstd() 1343 memcpy(*dst, out, out_len); in compress_zstd() 1353 *dst = krealloc(out, out_len, GFP_KERNEL); in compress_zstd() 1361 *dlen = out_len; in compress_zstd() 1309 size_t out_len = zstd_compress_bound(slen); compress_zstd() local [all...] |