Home
last modified time | relevance | path

Searched refs:in_len (Results 1 – 25 of 98) sorted by relevance

1234

/openbmc/linux/lib/
H A Ddecompress_unlzo.c159 in_len -= skip; in unlzo()
173 skip = fill(in_buf + in_len, 4 - in_len); in unlzo()
175 in_len += skip; in unlzo()
177 if (in_len < 4) { in unlzo()
183 in_len -= 4; in unlzo()
199 skip = fill(in_buf + in_len, 8 - in_len); in unlzo()
201 in_len += skip; in unlzo()
203 if (in_len < 8) { in unlzo()
209 in_len -= 8; in unlzo()
218 skip = fill(in_buf + in_len, src_len - in_len); in unlzo()
[all …]
H A Ddecompress_unzstd.c144 ret = zstd_find_frame_compressed_size(in_buf, in_len); in decompress_single()
148 in_len = (long)ret; in decompress_single()
156 *in_pos = in_len; in decompress_single()
165 static int INIT __unzstd(unsigned char *in_buf, long in_len, in __unzstd() argument
212 in_len = 0; in __unzstd()
216 in_len = fill(in_buf, ZSTD_IOBUF_SIZE); in __unzstd()
217 if (in_len < 0) { in __unzstd()
225 in.size = in_len; in __unzstd()
293 in_len = fill ? fill(in_buf, ZSTD_IOBUF_SIZE) : -1; in __unzstd()
294 if (in_len < 0) { in __unzstd()
[all …]
H A Ddecompress_unlz4.c31 STATIC inline int INIT unlz4(u8 *input, long in_len, in unlz4() argument
43 long size = in_len; in unlz4()
45 size_t out_len = get_unaligned_le32(input + in_len); in unlz4()
207 STATIC int INIT __decompress(unsigned char *buf, long in_len, in __decompress() argument
215 return unlz4(buf, in_len - 4, fill, flush, output, posp, error); in __decompress()
/openbmc/qemu/hw/misc/macio/
H A Dpmu.c109 if (in_len != 0) { in pmu_cmd_int_ack()
141 if (in_len != 1) { in pmu_cmd_set_int_mask()
175 if (in_len < 2) { in pmu_cmd_adb()
193 if (in_len != 4) { in pmu_cmd_adb()
249 if (in_len != 0) { in pmu_cmd_adb_poll_off()
265 if (in_len != 4) { in pmu_cmd_shutdown()
290 if (in_len != 0) { in pmu_cmd_reset()
306 if (in_len != 0) { in pmu_cmd_get_rtc()
328 if (in_len != 4) { in pmu_cmd_set_rtc()
361 if (in_len < 1) { in pmu_cmd_power_events()
[all …]
H A Dcuda.c223 const uint8_t *in_args, int in_len,
228 const uint8_t *in_data, int in_len, in cuda_cmd_autopoll() argument
234 if (in_len != 1) { in cuda_cmd_autopoll()
250 if (in_len != 1) { in cuda_cmd_set_autorate()
271 if (in_len != 2) { in cuda_cmd_set_device_list()
285 if (in_len != 0) { in cuda_cmd_powerdown()
297 if (in_len != 0) { in cuda_cmd_reset_system()
309 if (in_len != 1) { in cuda_cmd_set_file_server_flag()
323 if (in_len != 1) { in cuda_cmd_set_power_message()
339 if (in_len != 0) { in cuda_cmd_get_time()
[all …]
/openbmc/linux/fs/ubifs/
H A Dcompress.c102 int in_len, void *out_buf, int *out_len, int *compr_type) in ubifs_compress() argument
111 if (in_len < UBIFS_MIN_COMPR_LEN) in ubifs_compress()
116 err = crypto_comp_compress(compr->cc, in_buf, in_len, out_buf, in ubifs_compress()
122 in_len, compr->name, err); in ubifs_compress()
130 if (in_len - *out_len < UBIFS_MIN_COMPRESS_DIFF) in ubifs_compress()
136 memcpy(out_buf, in_buf, in_len); in ubifs_compress()
137 *out_len = in_len; in ubifs_compress()
154 int in_len, void *out_buf, int *out_len, int compr_type) in ubifs_decompress() argument
172 memcpy(out_buf, in_buf, in_len); in ubifs_decompress()
173 *out_len = in_len; in ubifs_decompress()
[all …]
H A Dcrypto.c39 unsigned int in_len, unsigned int *out_len, int block) in ubifs_encrypt() argument
43 unsigned int pad_len = round_up(in_len, UBIFS_CIPHER_BLOCK_SIZE); in ubifs_encrypt()
47 dn->compr_size = cpu_to_le16(in_len); in ubifs_encrypt()
50 if (pad_len != in_len) in ubifs_encrypt()
51 memset(p + in_len, 0, pad_len - in_len); in ubifs_encrypt()
/openbmc/qemu/hw/char/
H A Dterminal3270.c36 int in_len; member
50 return INPUT_BUFFER_SIZE - t->in_len; in DECLARE_INSTANCE_CHECKER()
109 t->in_len += size; in terminal_read()
110 if (t->in_len < 2) { in terminal_read()
122 t->inv[t->in_len - 2] == IAC && t->inv[t->in_len - 1] == IAC_SE) { in terminal_read()
124 t->in_len = 0; in terminal_read()
134 if (end == t->in_len - 2) { in terminal_read()
136 t->in_len -= 2; in terminal_read()
139 } else if (end < t->in_len - 2) { in terminal_read()
155 t->in_len = 0; in chr_event()
[all …]
/openbmc/qemu/util/
H A Dbase64.c29 size_t in_len, in qbase64_decode() argument
35 if (in_len != -1) { in qbase64_decode()
37 if (input[in_len] != '\0') { in qbase64_decode()
43 if (memchr(input, '\0', in_len) != NULL) { in qbase64_decode()
51 in_len = strlen(input); in qbase64_decode()
54 if (strspn(input, base64_valid_chars) != in_len) { in qbase64_decode()
/openbmc/qemu/crypto/
H A Dakcipher.c50 const void *in, size_t in_len, in qcrypto_akcipher_encrypt() argument
55 return drv->encrypt(akcipher, in, in_len, out, out_len, errp); in qcrypto_akcipher_encrypt()
59 const void *in, size_t in_len, in qcrypto_akcipher_decrypt() argument
64 return drv->decrypt(akcipher, in, in_len, out, out_len, errp); in qcrypto_akcipher_decrypt()
68 const void *in, size_t in_len, in qcrypto_akcipher_sign() argument
73 return drv->sign(akcipher, in, in_len, out, out_len, errp); in qcrypto_akcipher_sign()
77 const void *in, size_t in_len, in qcrypto_akcipher_verify() argument
82 return drv->verify(akcipher, in, in_len, in2, in2_len, errp); in qcrypto_akcipher_verify()
H A Dakcipherpriv.h41 const void *in, size_t in_len,
45 void *in, size_t in_len, Error **errp);
47 const void *in, size_t in_len,
50 const void *in, size_t in_len,
/openbmc/u-boot/fs/btrfs/
H A Dcompression.c15 u32 tot_len, in_len, res; in decompress_lzo() local
35 in_len = le32_to_cpu(get_unaligned((u32 *)cbuf)); in decompress_lzo()
39 if (in_len > clen || tot_len < 4 + in_len) in decompress_lzo()
42 tot_len -= 4 + in_len; in decompress_lzo()
45 ret = lzo1x_decompress_safe(cbuf, in_len, dbuf, &out_len); in decompress_lzo()
49 cbuf += in_len; in decompress_lzo()
50 clen -= in_len; in decompress_lzo()
/openbmc/qemu/scsi/
H A Dutils.c100 assert(in_len > 0); in scsi_parse_sense_buf()
103 if (in_len < 14) { in scsi_parse_sense_buf()
110 if (in_len < 4) { in scsi_parse_sense_buf()
335 int scsi_convert_sense(uint8_t *in_buf, int in_len, in scsi_convert_sense() argument
341 if (in_len == 0) { in scsi_convert_sense()
347 memcpy(buf, in_buf, MIN(len, in_len)); in scsi_convert_sense()
348 return MIN(len, in_len); in scsi_convert_sense()
438 if (in_len < 1) { in scsi_sense_buf_to_errno()
442 sense = scsi_parse_sense_buf(in_buf, in_len); in scsi_sense_buf_to_errno()
449 if (in_len < 1) { in scsi_sense_buf_is_guest_recoverable()
[all …]
/openbmc/linux/net/ceph/
H A Dcrypto.c220 void *buf, int buf_len, int in_len, int *pout_len) in ceph_aes_crypt() argument
226 int pad_byte = AES_BLOCK_SIZE - (in_len & (AES_BLOCK_SIZE - 1)); in ceph_aes_crypt()
227 int crypt_len = encrypt ? in_len + pad_byte : in_len; in ceph_aes_crypt()
232 memset(buf + in_len, pad_byte, pad_byte); in ceph_aes_crypt()
266 pad_byte = *(char *)(buf + in_len - 1); in ceph_aes_crypt()
268 in_len >= pad_byte) { in ceph_aes_crypt()
269 *pout_len = in_len - pad_byte; in ceph_aes_crypt()
272 __func__, pad_byte, in_len); in ceph_aes_crypt()
284 void *buf, int buf_len, int in_len, int *pout_len) in ceph_crypt() argument
288 *pout_len = in_len; in ceph_crypt()
[all …]
/openbmc/linux/drivers/net/ethernet/sfc/
H A Dtx_tso.c66 unsigned int in_len; member
174 unsigned int header_len, in_len; in tso_start() local
180 in_len = skb_headlen(skb) - header_len; in tso_start()
182 st->in_len = in_len; in tso_start()
215 st->in_len = skb_frag_size(frag); in tso_get_fragment()
239 if (st->in_len == 0) in tso_fill_packet_with_fragment()
247 n = min(st->in_len, st->packet_space); in tso_fill_packet_with_fragment()
251 st->in_len -= n; in tso_fill_packet_with_fragment()
263 if (st->in_len == 0) { in tso_fill_packet_with_fragment()
384 if (likely(state.in_len == 0)) { in efx_enqueue_skb_tso()
[all …]
/openbmc/qemu/include/crypto/
H A Dakcipher.h76 const void *in, size_t in_len,
96 const void *in, size_t in_len,
116 const void *in, size_t in_len,
136 const void *in, size_t in_len,
/openbmc/linux/security/keys/
H A Dkeyctl_pkey.c138 if (uparams.in_len > info.max_dec_size || in keyctl_pkey_params_get_2()
143 if (uparams.in_len > info.max_enc_size || in keyctl_pkey_params_get_2()
148 if (uparams.in_len > info.max_data_size || in keyctl_pkey_params_get_2()
153 if (uparams.in_len > info.max_data_size || in keyctl_pkey_params_get_2()
161 params->in_len = uparams.in_len; in keyctl_pkey_params_get_2()
244 in = memdup_user(_in, params.in_len); in keyctl_pkey_e_d_s()
306 in = memdup_user(_in, params.in_len); in keyctl_pkey_verify()
/openbmc/linux/fs/btrfs/
H A Dlzo.c242 u32 in_len; in lzo_compress_pages() local
252 in_len = min_t(u32, start + len - cur_in, sectorsize - sector_off); in lzo_compress_pages()
253 ASSERT(in_len); in lzo_compress_pages()
256 offset_in_page(cur_in), in_len, in lzo_compress_pages()
272 cur_in += in_len; in lzo_compress_pages()
432 size_t in_len; in lzo_decompress() local
442 in_len = read_compress_length(data_in); in lzo_decompress()
443 if (in_len != srclen) in lzo_decompress()
447 in_len = read_compress_length(data_in); in lzo_decompress()
448 if (in_len != srclen - LZO_LEN * 2) { in lzo_decompress()
[all …]
/openbmc/linux/lib/lzo/
H A Dlzo1x_compress.c22 lzo1x_1_do_compress(const unsigned char *in, size_t in_len, in lzo1x_1_do_compress() argument
29 const unsigned char * const in_end = in + in_len; in lzo1x_1_do_compress()
30 const unsigned char * const ip_end = in + in_len - 20; in lzo1x_1_do_compress()
302 static int lzogeneric1x_1_compress(const unsigned char *in, size_t in_len, in lzogeneric1x_1_compress() argument
309 size_t l = in_len; in lzogeneric1x_1_compress()
342 const unsigned char *ii = in + in_len - t; in lzogeneric1x_1_compress()
379 int lzo1x_1_compress(const unsigned char *in, size_t in_len, in lzo1x_1_compress() argument
383 return lzogeneric1x_1_compress(in, in_len, out, out_len, wrkmem, 0); in lzo1x_1_compress()
386 int lzorle1x_1_compress(const unsigned char *in, size_t in_len, in lzorle1x_1_compress() argument
390 return lzogeneric1x_1_compress(in, in_len, out, out_len, in lzorle1x_1_compress()
/openbmc/linux/net/tls/
H A Dtls_device_fallback.c54 struct scatter_walk *out, int *in_len, in tls_enc_record() argument
75 len = min_t(int, *in_len, buf_size); in tls_enc_record()
80 *in_len -= len; in tls_enc_record()
81 if (!*in_len) in tls_enc_record()
101 *in_len -= len; in tls_enc_record()
102 if (*in_len < 0) { in tls_enc_record()
103 *in_len += cipher_desc->tag; in tls_enc_record()
111 if (*in_len < 0) in tls_enc_record()
112 len += *in_len; in tls_enc_record()
114 *in_len = 0; in tls_enc_record()
[all …]
/openbmc/openbmc/meta-security/meta-tpm/recipes-tpm1/openssl-tpm-engine/files/
H A D0003-tpm-openssl-tpm-engine-parse-an-encrypted-tpm-SRK-pa.patch36 + int in_len,
46 + ret = EVP_DecodeUpdate(&dctx, outdata, &len, indata, in_len);
65 +static int tpm_decrypt_srk_pw(unsigned char *indata, int in_len,
120 + if (!EVP_CipherUpdate(ctx, dec_data, &dec_data_len, indata, in_len)) {
157 + int in_len = strlen(srkPasswd);
161 + if (!in_len || in_len % 4) {
168 + out_len = in_len * 3 / 4;
/openbmc/linux/scripts/kconfig/
H A Dpreprocess.c503 size_t in_len, out_len; in __expand_string() local
513 in_len = p - in; in __expand_string()
516 out_len += in_len + strlen(expansion); in __expand_string()
518 strncat(out, in, in_len); in __expand_string()
531 in_len = p - in; in __expand_string()
532 out_len += in_len; in __expand_string()
534 strncat(out, in, in_len); in __expand_string()
/openbmc/linux/drivers/infiniband/core/
H A Ducma.c651 int in_len, int out_len) in ucma_bind() argument
704 int in_len, int out_len) in ucma_resolve_addr() argument
732 int in_len, int out_len) in ucma_resolve_route() argument
818 int in_len, int out_len) in ucma_query_route() argument
998 int in_len, int out_len) in ucma_query() argument
1051 int in_len, int out_len) in ucma_connect() argument
1087 int in_len, int out_len) in ucma_listen() argument
1112 int in_len, int out_len) in ucma_accept() argument
1159 int in_len, int out_len) in ucma_reject() argument
1214 int in_len, int out_len) in ucma_init_qp_attr() argument
[all …]
/openbmc/qemu/block/export/
H A Dvhost-user-blk-server.c43 static void vu_blk_req_complete(VuBlkReq *req, size_t in_len) in vu_blk_req_complete() argument
47 vu_queue_push(vu_dev, req->vq, &req->elem, in_len); in vu_blk_req_complete()
68 int in_len; in vu_blk_virtio_process_req() local
70 in_len = virtio_blk_process_req(handler, in_iov, out_iov, in vu_blk_virtio_process_req()
72 if (in_len < 0) { in vu_blk_virtio_process_req()
78 vu_blk_req_complete(req, in_len); in vu_blk_virtio_process_req()
/openbmc/qemu/backends/tpm/
H A Dtpm_passthrough.c77 const uint8_t *in, uint32_t in_len, in tpm_passthrough_unix_tx_bufs() argument
89 is_selftest = tpm_util_is_selftest(in, in_len); in tpm_passthrough_unix_tx_bufs()
91 ret = qemu_write_full(tpm_pt->tpm_fd, in, in_len); in tpm_passthrough_unix_tx_bufs()
92 if (ret != in_len) { in tpm_passthrough_unix_tx_bufs()
134 tpm_passthrough_unix_tx_bufs(tpm_pt, cmd->in, cmd->in_len, in tpm_passthrough_handle_request()

1234