Home
last modified time | relevance | path

Searched refs:in_buf (Results 1 – 25 of 69) sorted by relevance

123

/openbmc/linux/lib/
H A Ddecompress_unlzo.c107 u8 *in_buf, *in_buf_save, *out_buf; in unlzo() local
127 in_buf = input; in unlzo()
133 if (!in_buf) { in unlzo()
138 in_buf_save = in_buf; in unlzo()
150 in_buf += HEADER_SIZE_MAX; in unlzo()
158 in_buf += skip; in unlzo()
164 in_buf = in_buf_save; in unlzo()
182 in_buf += 4; in unlzo()
208 in_buf += 8; in unlzo()
250 in_buf += src_len; 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()
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()
293 in_len = fill ? fill(in_buf, ZSTD_IOBUF_SIZE) : -1; in __unzstd()
/openbmc/obmc-console/test/
H A Dtest-ringbuffer-boundary-read.c12 uint8_t in_buf[] = { 'a', 'b', 'c', 'd', 'e', 'f' }; in test_boundary_read() local
19 static_assert(sizeof(in_buf) * 2 > 10, ""); in test_boundary_read()
25 ringbuffer_queue(rb, in_buf, sizeof(in_buf)); in test_boundary_read()
26 ringbuffer_dequeue_commit(rbc, sizeof(in_buf)); in test_boundary_read()
29 in_buf[0] = 'A'; in test_boundary_read()
32 rc = ringbuffer_queue(rb, in_buf, sizeof(in_buf)); in test_boundary_read()
42 assert(!memcmp(in_buf + pos, out_buf, len)); in test_boundary_read()
45 assert(pos == sizeof(in_buf)); in test_boundary_read()
H A Dtest-ringbuffer-boundary-poll.c11 uint8_t in_buf[] = { 'a', 'b', 'c', 'd', 'e', 'f' }; in test_boundary_poll() local
28 ringbuffer_queue(rb, in_buf, sizeof(in_buf)); in test_boundary_poll()
29 ringbuffer_dequeue_commit(ctx->rbc, sizeof(in_buf)); in test_boundary_poll()
35 in_buf[0] = 'A'; in test_boundary_poll()
37 rc = ringbuffer_queue(rb, in_buf, sizeof(in_buf)); in test_boundary_poll()
41 assert(ctx->len == sizeof(in_buf)); in test_boundary_poll()
42 assert(!memcmp(in_buf, ctx->data, ctx->len)); in test_boundary_poll()
H A Dtest-ringbuffer-contained-read.c12 uint8_t in_buf[] = { 'a', 'b', 'c' }; in test_contained_read() local
21 rc = ringbuffer_queue(rb, in_buf, sizeof(in_buf)); in test_contained_read()
25 assert(len == sizeof(in_buf)); in test_contained_read()
26 assert(!memcmp(in_buf, out_buf, sizeof(in_buf))); in test_contained_read()
H A Dtest-ringbuffer-contained-offset-read.c12 uint8_t in_buf[] = { 'a', 'b', 'c' }; in test_contained_offset_read() local
22 rc = ringbuffer_queue(rb, in_buf, sizeof(in_buf)); in test_contained_offset_read()
26 for (i = 0; i <= sizeof(in_buf); i++) { in test_contained_offset_read()
28 assert(len == sizeof(in_buf) - i); in test_contained_offset_read()
30 assert(!memcmp(in_buf + i, out_buf, len)); in test_contained_offset_read()
H A Dtest-ringbuffer-simple-poll.c11 uint8_t in_buf[] = { 'a', 'b', 'c' }; in test_simple_poll() local
24 rc = ringbuffer_queue(rb, in_buf, sizeof(in_buf)); in test_simple_poll()
28 assert(ctx->len == sizeof(in_buf)); in test_simple_poll()
29 assert(!memcmp(in_buf, ctx->data, ctx->len)); in test_simple_poll()
H A Dtest-ringbuffer-poll-force.c11 uint8_t in_buf[] = { in test_poll_force() local
29 rc = ringbuffer_queue(rb, in_buf, 4); in test_poll_force()
35 rc = ringbuffer_queue(rb, in_buf + 4, 2); in test_poll_force()
41 assert(!memcmp(in_buf, ctx->data, 2)); in test_poll_force()
H A Dtest-ringbuffer-read-commit.c12 uint8_t in_buf[] = { in test_read_commit() local
24 ringbuffer_queue(rb, in_buf, sizeof(in_buf)); in test_read_commit()
/openbmc/linux/fs/btrfs/
H A Dzstd.c51 zstd_in_buffer in_buf; member
407 workspace->in_buf.pos = 0; in zstd_compress_pages()
426 &workspace->in_buf); in zstd_compress_pages()
476 if (workspace->in_buf.pos == workspace->in_buf.size) { in zstd_compress_pages()
563 workspace->in_buf.pos = 0; in zstd_decompress_bio()
574 &workspace->in_buf); in zstd_decompress_bio()
597 if (workspace->in_buf.pos == workspace->in_buf.size) { in zstd_decompress_bio()
613 if (workspace->in_buf.src) in zstd_decompress_bio()
640 workspace->in_buf.pos = 0; in zstd_decompress()
649 && workspace->in_buf.pos < workspace->in_buf.size) { in zstd_decompress()
[all …]
/openbmc/linux/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()
197 u8 *in_buf = NULL; in cros_ec_cmd_xfer_i2c() local
212 if (!in_buf) in cros_ec_cmd_xfer_i2c()
257 len = in_buf[1]; in cros_ec_cmd_xfer_i2c()
266 sum = in_buf[0] + in_buf[1]; in cros_ec_cmd_xfer_i2c()
268 msg->data[i] = in_buf[2 + i]; in cros_ec_cmd_xfer_i2c()
269 sum += in_buf[2 + i]; in cros_ec_cmd_xfer_i2c()
272 i2c_msg[1].len, in_buf, sum); in cros_ec_cmd_xfer_i2c()
273 if (sum != in_buf[2 + len]) { in cros_ec_cmd_xfer_i2c()
[all …]
/openbmc/qemu/scsi/
H A Dutils.c101 fixed_in = (in_buf[0] & 2) == 0; in scsi_parse_sense_buf()
106 sense.key = in_buf[2]; in scsi_parse_sense_buf()
107 sense.asc = in_buf[12]; in scsi_parse_sense_buf()
108 sense.ascq = in_buf[13]; in scsi_parse_sense_buf()
113 sense.key = in_buf[1]; in scsi_parse_sense_buf()
114 sense.asc = in_buf[2]; in scsi_parse_sense_buf()
115 sense.ascq = in_buf[3]; in scsi_parse_sense_buf()
345 fixed_in = (in_buf[0] & 2) == 0; in scsi_convert_sense()
347 memcpy(buf, in_buf, MIN(len, in_len)); in scsi_convert_sense()
442 sense = scsi_parse_sense_buf(in_buf, in_len); in scsi_sense_buf_to_errno()
[all …]
/openbmc/qemu/chardev/
H A Dtestdev.c37 uint8_t in_buf[32]; member
49 const uint8_t *cur = testdev->in_buf; in DECLARE_INSTANCE_CHECKER()
84 return cur - testdev->in_buf; in DECLARE_INSTANCE_CHECKER()
97 memcpy(testdev->in_buf + testdev->in_buf_used, buf, tocopy); in testdev_chr_write()
105 memmove(testdev->in_buf, testdev->in_buf + eaten, in testdev_chr_write()
/openbmc/linux/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()
/openbmc/linux/fs/ubifs/
H A Dcompress.c101 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()
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_len, out_buf, in ubifs_decompress()
/openbmc/linux/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()
164 in_buf.type = ACPI_TYPE_INTEGER; in set_pfrt_log_level()
165 in_buf.integer.value = level; in set_pfrt_log_level()
H A Dpfr_update.c332 union acpi_object *out_obj, in_obj, in_buf; in start_update() local
338 memset(&in_buf, 0, sizeof(in_buf)); in start_update()
341 in_obj.package.elements = &in_buf; in start_update()
342 in_buf.type = ACPI_TYPE_INTEGER; in start_update()
343 in_buf.integer.value = action; in start_update()
/openbmc/linux/crypto/
H A Drsa-pkcs1pad.c103 uint8_t *in_buf, *out_buf; member
208 kfree(req_ctx->in_buf); in pkcs1pad_encrypt_sign_complete()
247 if (!req_ctx->in_buf) in pkcs1pad_encrypt()
251 req_ctx->in_buf[0] = 0x02; 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()
401 if (!req_ctx->in_buf) in pkcs1pad_sign()
405 req_ctx->in_buf[0] = 0x01; in pkcs1pad_sign()
406 memset(req_ctx->in_buf + 1, 0xff, ps_end - 1); in pkcs1pad_sign()
407 req_ctx->in_buf[ps_end] = 0x00; in pkcs1pad_sign()
[all …]
/openbmc/linux/fs/smb/client/
H A Dtransport.c709 (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() argument
876 iov[0].iov_base = in_buf; in SendReceiveNoRsp()
1403 rc = allocate_mid(ses, in_buf, &midQ); in SendReceive()
1419 rc = smb_send(server, in_buf, len); in SendReceive()
1473 struct smb_hdr *in_buf, in send_lock_cancel() argument
1478 LOCK_REQ *pSMB = (LOCK_REQ *)in_buf; in send_lock_cancel()
1547 rc = allocate_mid(ses, in_buf, &midQ); in SendReceiveBlockingLock()
[all …]
/openbmc/linux/drivers/gpu/drm/i915/display/
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()
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_ch7xxx.c152 u8 in_buf[2]; in ch7xxx_readb() local
165 .buf = in_buf, in ch7xxx_readb()
173 *ch = in_buf[0]; in ch7xxx_readb()
/openbmc/linux/drivers/net/ethernet/netronome/nfp/nfpcore/
H A Dnfp_nsp.c172 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 = buf, in __nfp_nsp_hwinfo_lookup()
982 .in_buf = buf, in nfp_nsp_hwinfo_set()
1055 .in_buf = buf, in __nfp_nsp_module_eeprom()
[all …]
/openbmc/qemu/include/scsi/
H A Dutils.h50 SCSISense scsi_parse_sense_buf(const uint8_t *in_buf, int in_len);
129 int scsi_convert_sense(uint8_t *in_buf, int in_len,

123