Home
last modified time | relevance | path

Searched refs:in_buf (Results 1 - 25 of 94) sorted by relevance

1234

/kernel/linux/linux-5.10/lib/
H A Ddecompress_unlzo.c108 u8 *in_buf, *in_buf_save, *out_buf; in unlzo() local
128 in_buf = input; in unlzo()
133 in_buf = malloc(lzo1x_worst_compress(LZO_BLOCK_SIZE)); in unlzo()
134 if (!in_buf) { in unlzo()
139 in_buf_save = in_buf; in unlzo()
146 * Start from in_buf + HEADER_SIZE_MAX to make it possible in unlzo()
151 in_buf += HEADER_SIZE_MAX; in unlzo()
152 in_len = fill(in_buf, HEADER_SIZE_MAX); in unlzo()
155 if (!parse_header(in_buf, &skip, in_len)) { in unlzo()
159 in_buf in unlzo()
[all...]
H A Ddecompress_unzstd.c123 static int INIT decompress_single(const u8 *in_buf, long in_len, u8 *out_buf, in decompress_single() argument
142 ret = ZSTD_findFrameCompressedSize(in_buf, in_len); in decompress_single()
148 ret = ZSTD_decompressDCtx(dctx, out_buf, out_len, in_buf, in_len); in decompress_single()
163 static int INIT __unzstd(unsigned char *in_buf, long in_len, in __unzstd() argument
194 return decompress_single(in_buf, in_len, out_buf, out_len, in __unzstd()
198 * If in_buf is not provided, we must be using fill(), so allocate in __unzstd()
202 if (in_buf == NULL) { in __unzstd()
209 in_buf = in_allocated; in __unzstd()
214 in_len = fill(in_buf, ZSTD_IOBUF_SIZE); in __unzstd()
221 in.src = in_buf; in __unzstd()
[all...]
/kernel/linux/linux-6.6/lib/
H A Ddecompress_unlzo.c107 u8 *in_buf, *in_buf_save, *out_buf; in unlzo() local
127 in_buf = input; in unlzo()
132 in_buf = malloc(lzo1x_worst_compress(LZO_BLOCK_SIZE)); in unlzo()
133 if (!in_buf) { in unlzo()
138 in_buf_save = in_buf; in unlzo()
145 * Start from in_buf + HEADER_SIZE_MAX to make it possible in unlzo()
150 in_buf += HEADER_SIZE_MAX; in unlzo()
151 in_len = fill(in_buf, HEADER_SIZE_MAX); in unlzo()
154 if (!parse_header(in_buf, &skip, in_len)) { in unlzo()
158 in_buf in unlzo()
[all...]
H A Ddecompress_unzstd.c125 static int INIT decompress_single(const u8 *in_buf, long in_len, u8 *out_buf, in decompress_single() argument
144 ret = zstd_find_frame_compressed_size(in_buf, in_len); in decompress_single()
150 ret = zstd_decompress_dctx(dctx, out_buf, out_len, in_buf, in_len); in decompress_single()
165 static int INIT __unzstd(unsigned char *in_buf, long in_len, in __unzstd() argument
196 return decompress_single(in_buf, in_len, out_buf, out_len, in __unzstd()
200 * If in_buf is not provided, we must be using fill(), so allocate in __unzstd()
204 if (in_buf == NULL) { in __unzstd()
211 in_buf = in_allocated; in __unzstd()
216 in_len = fill(in_buf, ZSTD_IOBUF_SIZE); in __unzstd()
223 in.src = in_buf; in __unzstd()
[all...]
/kernel/linux/linux-6.6/fs/btrfs/
H A Dzstd.c51 zstd_in_buffer in_buf; member
406 workspace->in_buf.src = kmap_local_page(in_page); in zstd_compress_pages()
407 workspace->in_buf.pos = 0; in zstd_compress_pages()
408 workspace->in_buf.size = min_t(size_t, len, PAGE_SIZE); in zstd_compress_pages()
426 &workspace->in_buf); in zstd_compress_pages()
435 if (tot_in + workspace->in_buf.pos > 8192 && in zstd_compress_pages()
436 tot_in + workspace->in_buf.pos < in zstd_compress_pages()
470 if (workspace->in_buf.pos >= len) { in zstd_compress_pages()
471 tot_in += workspace->in_buf.pos; in zstd_compress_pages()
476 if (workspace->in_buf in zstd_compress_pages()
[all...]
/kernel/linux/linux-5.10/fs/btrfs/
H A Dzstd.c51 ZSTD_inBuffer in_buf; member
402 workspace->in_buf.src = kmap(in_page); in zstd_compress_pages()
403 workspace->in_buf.pos = 0; in zstd_compress_pages()
404 workspace->in_buf.size = min_t(size_t, len, PAGE_SIZE); in zstd_compress_pages()
422 &workspace->in_buf); in zstd_compress_pages()
431 if (tot_in + workspace->in_buf.pos > 8192 && in zstd_compress_pages()
432 tot_in + workspace->in_buf.pos < in zstd_compress_pages()
468 if (workspace->in_buf.pos >= len) { in zstd_compress_pages()
469 tot_in += workspace->in_buf.pos; in zstd_compress_pages()
474 if (workspace->in_buf in zstd_compress_pages()
[all...]
/kernel/linux/linux-5.10/drivers/platform/chrome/
H A Dcros_ec_i2c.c60 u8 *in_buf = NULL; in cros_ec_pkt_xfer_i2c() local
76 in_buf = ec_dev->din; in cros_ec_pkt_xfer_i2c()
78 i2c_msg[1].buf = (char *) in_buf; in cros_ec_pkt_xfer_i2c()
105 ec_response_i2c = (struct ec_host_response_i2c *) in_buf; in cros_ec_pkt_xfer_i2c()
159 in_buf + response_header_size, in cros_ec_pkt_xfer_i2c()
189 u8 *in_buf = NULL; in cros_ec_cmd_xfer_i2c() local
203 in_buf = kzalloc(packet_len, GFP_KERNEL); in cros_ec_cmd_xfer_i2c()
204 if (!in_buf) in cros_ec_cmd_xfer_i2c()
207 i2c_msg[1].buf = (char *)in_buf; in cros_ec_cmd_xfer_i2c()
249 len = in_buf[ in cros_ec_cmd_xfer_i2c()
[all...]
/kernel/linux/linux-6.6/drivers/platform/chrome/
H A Dcros_ec_i2c.c60 u8 *in_buf = NULL; in cros_ec_pkt_xfer_i2c() local
79 in_buf = ec_dev->din; in cros_ec_pkt_xfer_i2c()
81 i2c_msg[1].buf = (char *) in_buf; in cros_ec_pkt_xfer_i2c()
113 ec_response_i2c = (struct ec_host_response_i2c *) in_buf; in cros_ec_pkt_xfer_i2c()
167 in_buf + response_header_size, in cros_ec_pkt_xfer_i2c()
197 u8 *in_buf = NULL; in cros_ec_cmd_xfer_i2c() local
211 in_buf = kzalloc(packet_len, GFP_KERNEL); in cros_ec_cmd_xfer_i2c()
212 if (!in_buf) in cros_ec_cmd_xfer_i2c()
215 i2c_msg[1].buf = (char *)in_buf; in cros_ec_cmd_xfer_i2c()
257 len = in_buf[ in cros_ec_cmd_xfer_i2c()
[all...]
/kernel/linux/linux-5.10/fs/squashfs/
H A Dzstd_wrapper.c69 ZSTD_inBuffer in_buf = { NULL, 0, 0 }; in zstd_uncompress() local
87 if (in_buf.pos == in_buf.size) { in zstd_uncompress()
99 in_buf.src = data + offset; in zstd_uncompress()
100 in_buf.size = avail; in zstd_uncompress()
101 in_buf.pos = 0; in zstd_uncompress()
119 zstd_err = ZSTD_decompressStream(stream, &out_buf, &in_buf); in zstd_uncompress()
/kernel/linux/linux-6.6/fs/squashfs/
H A Dzstd_wrapper.c69 zstd_in_buffer in_buf = { NULL, 0, 0 }; in zstd_uncompress() local
91 if (in_buf.pos == in_buf.size) { in zstd_uncompress()
103 in_buf.src = data + offset; in zstd_uncompress()
104 in_buf.size = avail; in zstd_uncompress()
105 in_buf.pos = 0; in zstd_uncompress()
126 zstd_err = zstd_decompress_stream(stream, &out_buf, &in_buf); in zstd_uncompress()
/kernel/linux/linux-5.10/fs/ubifs/
H A Dcompress.c85 * @in_buf: data to compress
92 * This function compresses input buffer @in_buf of length @in_len and stores
101 void ubifs_compress(const struct ubifs_info *c, const void *in_buf, in ubifs_compress() argument
116 err = crypto_comp_compress(compr->cc, in_buf, in_len, out_buf, in ubifs_compress()
136 memcpy(out_buf, in_buf, in_len); in ubifs_compress()
143 * @in_buf: data to decompress
149 * This function decompresses data from buffer @in_buf into buffer @out_buf.
153 int ubifs_decompress(const struct ubifs_info *c, const void *in_buf, in ubifs_decompress() argument
172 memcpy(out_buf, in_buf, in_len); in ubifs_decompress()
179 err = crypto_comp_decompress(compr->cc, in_buf, in_le in ubifs_decompress()
[all...]
/kernel/linux/linux-6.6/fs/ubifs/
H A Dcompress.c85 * @in_buf: data to compress
92 * This function compresses input buffer @in_buf of length @in_len and stores
101 void ubifs_compress(const struct ubifs_info *c, const void *in_buf, in ubifs_compress() argument
116 err = crypto_comp_compress(compr->cc, in_buf, in_len, out_buf, in ubifs_compress()
136 memcpy(out_buf, in_buf, in_len); in ubifs_compress()
143 * @in_buf: data to decompress
149 * This function decompresses data from buffer @in_buf into buffer @out_buf.
153 int ubifs_decompress(const struct ubifs_info *c, const void *in_buf, in ubifs_decompress() argument
172 memcpy(out_buf, in_buf, in_len); in ubifs_decompress()
179 err = crypto_comp_decompress(compr->cc, in_buf, in_le in ubifs_decompress()
[all...]
/kernel/linux/linux-5.10/crypto/
H A Drsa-pkcs1pad.c103 uint8_t *in_buf, *out_buf; member
208 kfree(req_ctx->in_buf); in pkcs1pad_encrypt_sign_complete()
246 req_ctx->in_buf = kmalloc(ctx->key_size - 1 - req->src_len, in pkcs1pad_encrypt()
248 if (!req_ctx->in_buf) in pkcs1pad_encrypt()
252 req_ctx->in_buf[0] = 0x02; in pkcs1pad_encrypt()
254 req_ctx->in_buf[i] = 1 + prandom_u32_max(255); in pkcs1pad_encrypt()
255 req_ctx->in_buf[ps_end] = 0x00; in pkcs1pad_encrypt()
257 pkcs1pad_sg_set_buf(req_ctx->in_sg, req_ctx->in_buf, in pkcs1pad_encrypt()
401 req_ctx->in_buf = kmalloc(ctx->key_size - 1 - req->src_len, in pkcs1pad_sign()
403 if (!req_ctx->in_buf) in pkcs1pad_sign()
[all...]
/kernel/linux/linux-6.6/crypto/
H A Drsa-pkcs1pad.c103 uint8_t *in_buf, *out_buf; member
208 kfree(req_ctx->in_buf); in pkcs1pad_encrypt_sign_complete()
245 req_ctx->in_buf = kmalloc(ctx->key_size - 1 - req->src_len, in pkcs1pad_encrypt()
247 if (!req_ctx->in_buf) in pkcs1pad_encrypt()
251 req_ctx->in_buf[0] = 0x02; in pkcs1pad_encrypt()
253 req_ctx->in_buf[i] = get_random_u32_inclusive(1, 255); in pkcs1pad_encrypt()
254 req_ctx->in_buf[ps_end] = 0x00; in pkcs1pad_encrypt()
256 pkcs1pad_sg_set_buf(req_ctx->in_sg, req_ctx->in_buf, in pkcs1pad_encrypt()
399 req_ctx->in_buf = kmalloc(ctx->key_size - 1 - req->src_len, in pkcs1pad_sign()
401 if (!req_ctx->in_buf) in pkcs1pad_sign()
[all...]
/kernel/linux/linux-6.6/drivers/acpi/
H A Dpfr_telemetry.c83 union acpi_object *out_obj, in_obj, in_buf; in get_pfrt_log_data_info() local
88 memset(&in_buf, 0, sizeof(in_buf)); in get_pfrt_log_data_info()
91 in_obj.package.elements = &in_buf; in get_pfrt_log_data_info()
92 in_buf.type = ACPI_TYPE_INTEGER; in get_pfrt_log_data_info()
93 in_buf.integer.value = pfrt_log_dev->info.log_type; in get_pfrt_log_data_info()
155 union acpi_object *out_obj, *obj, in_obj, in_buf; in set_pfrt_log_level() local
160 memset(&in_buf, 0, sizeof(in_buf)); in set_pfrt_log_level()
163 in_obj.package.elements = &in_buf; in set_pfrt_log_level()
[all...]
/kernel/linux/linux-5.10/fs/cifs/
H A Dtransport.c695 static int allocate_mid(struct cifs_ses *ses, struct smb_hdr *in_buf, in allocate_mid() argument
708 if ((in_buf->Command != SMB_COM_SESSION_SETUP_ANDX) && in allocate_mid()
709 (in_buf->Command != SMB_COM_NEGOTIATE)) in allocate_mid()
716 if (in_buf->Command != SMB_COM_LOGOFF_ANDX) in allocate_mid()
721 *ppmidQ = AllocMidQEntry(in_buf, ses->server); in allocate_mid()
862 char *in_buf, int flags) in SendReceiveNoRsp()
869 iov[0].iov_base = in_buf; in SendReceiveNoRsp()
870 iov[0].iov_len = get_rfc1002_length(in_buf) + 4; in SendReceiveNoRsp()
1300 struct smb_hdr *in_buf, struct smb_hdr *out_buf, in SendReceive()
1305 unsigned int len = be32_to_cpu(in_buf in SendReceive()
861 SendReceiveNoRsp(const unsigned int xid, struct cifs_ses *ses, char *in_buf, int flags) SendReceiveNoRsp() argument
1299 SendReceive(const unsigned int xid, struct cifs_ses *ses, struct smb_hdr *in_buf, struct smb_hdr *out_buf, int *pbytes_returned, const int flags) SendReceive() argument
1412 send_lock_cancel(const unsigned int xid, struct cifs_tcon *tcon, struct smb_hdr *in_buf, struct smb_hdr *out_buf) send_lock_cancel() argument
1434 SendReceiveBlockingLock(const unsigned int xid, struct cifs_tcon *tcon, struct smb_hdr *in_buf, struct smb_hdr *out_buf, int *pbytes_returned) SendReceiveBlockingLock() argument
[all...]
/kernel/linux/linux-6.6/fs/smb/client/
H A Dtransport.c703 static int allocate_mid(struct cifs_ses *ses, struct smb_hdr *in_buf, in allocate_mid() argument
708 if ((in_buf->Command != SMB_COM_SESSION_SETUP_ANDX) && in allocate_mid()
709 (in_buf->Command != SMB_COM_NEGOTIATE)) { in allocate_mid()
718 if (in_buf->Command != SMB_COM_LOGOFF_ANDX) { in allocate_mid()
726 *ppmidQ = alloc_mid(in_buf, ses->server); in allocate_mid()
869 char *in_buf, int flags) in SendReceiveNoRsp()
876 iov[0].iov_base = in_buf; in SendReceiveNoRsp()
877 iov[0].iov_len = get_rfc1002_length(in_buf) + 4; in SendReceiveNoRsp()
1350 struct smb_hdr *in_buf, struct smb_hdr *out_buf, in SendReceive()
1355 unsigned int len = be32_to_cpu(in_buf in SendReceive()
868 SendReceiveNoRsp(const unsigned int xid, struct cifs_ses *ses, char *in_buf, int flags) SendReceiveNoRsp() argument
1349 SendReceive(const unsigned int xid, struct cifs_ses *ses, struct smb_hdr *in_buf, struct smb_hdr *out_buf, int *pbytes_returned, const int flags) SendReceive() argument
1467 send_lock_cancel(const unsigned int xid, struct cifs_tcon *tcon, struct smb_hdr *in_buf, struct smb_hdr *out_buf) send_lock_cancel() argument
1489 SendReceiveBlockingLock(const unsigned int xid, struct cifs_tcon *tcon, struct smb_hdr *in_buf, struct smb_hdr *out_buf, int *pbytes_returned) SendReceiveBlockingLock() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/netronome/nfp/nfpcore/
H A Dnfp_nsp.c165 * @in_buf: Buffer with data for input
166 * @in_size: Size of @in_buf
172 const void *in_buf; member
456 if (arg->in_buf && arg->in_size) { in nfp_nsp_command_buf_def()
458 arg->in_buf, arg->in_size); in nfp_nsp_command_buf_def()
536 memcpy(chunks[i].chunk, arg->in_buf + off, coff); in nfp_nsp_command_buf_dma_sg()
799 .in_buf = fw->data, in nfp_nsp_load_fw()
820 .in_buf = fw->data, in nfp_nsp_write_flash()
849 .in_buf = buf, in nfp_nsp_write_eth_table()
911 .in_buf in __nfp_nsp_hwinfo_lookup()
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/
H A Ddvo_sil164.c74 u8 in_buf[2]; in sil164_readb() local
87 .buf = in_buf, in sil164_readb()
95 *ch = in_buf[0]; in sil164_readb()
H A Ddvo_ivch.c197 u8 in_buf[2]; in ivch_read() local
215 .buf = in_buf, in ivch_read()
222 *data = (in_buf[1] << 8) | in_buf[0]; in ivch_read()
H A Ddvo_tfp410.c99 u8 in_buf[2]; in tfp410_readb() local
112 .buf = in_buf, in tfp410_readb()
120 *ch = in_buf[0]; in tfp410_readb()
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/nfpcore/
H A Dnfp_nsp.c164 * @in_buf: Buffer with data for input
165 * @in_size: Size of @in_buf
171 const void *in_buf; member
455 if (arg->in_buf && arg->in_size) { in nfp_nsp_command_buf_def()
457 arg->in_buf, arg->in_size); in nfp_nsp_command_buf_def()
535 memcpy(chunks[i].chunk, arg->in_buf + off, coff); in nfp_nsp_command_buf_dma_sg()
798 .in_buf = fw->data, in nfp_nsp_load_fw()
819 .in_buf = fw->data, in nfp_nsp_write_flash()
848 .in_buf = buf, in nfp_nsp_write_eth_table()
910 .in_buf in __nfp_nsp_hwinfo_lookup()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/display/
H A Ddvo_ivch.c197 u8 in_buf[2]; in ivch_read() local
215 .buf = in_buf, in ivch_read()
222 *data = (in_buf[1] << 8) | in_buf[0]; in ivch_read()
H A Ddvo_tfp410.c99 u8 in_buf[2]; in tfp410_readb() local
112 .buf = in_buf, in tfp410_readb()
120 *ch = in_buf[0]; in tfp410_readb()
H A Ddvo_sil164.c78 u8 in_buf[2]; in sil164_readb() local
91 .buf = in_buf, in sil164_readb()
99 *ch = in_buf[0]; in sil164_readb()

Completed in 17 milliseconds

1234