/openbmc/linux/fs/squashfs/ |
H A D | zstd_wrapper.c | 70 zstd_out_buffer out_buf = { NULL, 0, 0 }; in zstd_uncompress() local 81 out_buf.size = PAGE_SIZE; in zstd_uncompress() 82 out_buf.dst = squashfs_first_page(output); in zstd_uncompress() 83 if (IS_ERR(out_buf.dst)) { in zstd_uncompress() 84 error = PTR_ERR(out_buf.dst); in zstd_uncompress() 109 if (out_buf.pos == out_buf.size) { in zstd_uncompress() 110 out_buf.dst = squashfs_next_page(output); in zstd_uncompress() 111 if (IS_ERR(out_buf.dst)) { in zstd_uncompress() 112 error = PTR_ERR(out_buf.dst); in zstd_uncompress() 114 } else if (out_buf.dst == NULL) { in zstd_uncompress() [all …]
|
/openbmc/linux/lib/ |
H A D | decompress_inflate.c | 45 unsigned char *out_buf, long out_len, in __gunzip() argument 55 out_buf = malloc(out_len); in __gunzip() 58 out_len = ((size_t)~0) - (size_t)out_buf; /* no limit */ in __gunzip() 60 if (!out_buf) { in __gunzip() 130 strm->next_out = out_buf; in __gunzip() 159 if (flush && strm->next_out > out_buf) { in __gunzip() 160 long l = strm->next_out - out_buf; in __gunzip() 161 if (l != flush(out_buf, l)) { in __gunzip() 166 strm->next_out = out_buf; in __gunzip() 194 free(out_buf); in __gunzip() [all …]
|
H A D | decompress_unlzo.c | 107 u8 *in_buf, *in_buf_save, *out_buf; in unlzo() local 111 out_buf = output; in unlzo() 116 out_buf = malloc(LZO_BLOCK_SIZE); in unlzo() 117 if (!out_buf) { in unlzo() 232 memcpy(out_buf, in_buf, src_len); in unlzo() 235 out_buf, &tmp); in unlzo() 243 if (flush && flush(out_buf, dst_len) != dst_len) in unlzo() 246 out_buf += dst_len; in unlzo() 271 free(out_buf); in unlzo() 280 unsigned char *out_buf, long olen, in __decompress() argument [all …]
|
H A D | decompress_unzstd.c | 125 static int INIT decompress_single(const u8 *in_buf, long in_len, u8 *out_buf, 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 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() 234 out_buf = out_allocated; in __unzstd() 238 out.dst = out_buf; in __unzstd() 336 unsigned char *out_buf, in unzstd() argument 340 return __unzstd(buf, len, fill, flush, out_buf, 0, pos, error); in unzstd() 346 unsigned char *out_buf, long out_len, in __decompress() argument [all …]
|
/openbmc/linux/fs/quota/ |
H A D | quota_tree.c | 127 goto out_buf; in get_free_dqblk() 130 goto out_buf; in get_free_dqblk() 138 goto out_buf; in get_free_dqblk() 143 out_buf: in get_free_dqblk() 180 goto out_buf; in remove_free_dqentry() 185 goto out_buf; in remove_free_dqentry() 190 goto out_buf; in remove_free_dqentry() 195 goto out_buf; in remove_free_dqentry() 207 out_buf: in remove_free_dqentry() 226 goto out_buf; in insert_free_dqentry() [all …]
|
/openbmc/linux/fs/btrfs/ |
H A D | zstd.c | 52 zstd_out_buffer out_buf; member 418 workspace->out_buf.dst = page_address(out_page); in zstd_compress_pages() 419 workspace->out_buf.pos = 0; in zstd_compress_pages() 420 workspace->out_buf.size = min_t(size_t, max_out, PAGE_SIZE); in zstd_compress_pages() 425 ret2 = zstd_compress_stream(stream, &workspace->out_buf, in zstd_compress_pages() 437 tot_out + workspace->out_buf.pos) { in zstd_compress_pages() 443 if (workspace->out_buf.pos >= max_out) { in zstd_compress_pages() 444 tot_out += workspace->out_buf.pos; in zstd_compress_pages() 450 if (workspace->out_buf.pos == workspace->out_buf.size) { in zstd_compress_pages() 463 workspace->out_buf.dst = page_address(out_page); in zstd_compress_pages() [all …]
|
/openbmc/linux/crypto/ |
H A D | rsa-pkcs1pad.c | 103 uint8_t *in_buf, *out_buf; member 181 u8 *out_buf; in pkcs1pad_encrypt_sign_complete() local 193 out_buf = kzalloc(ctx->key_size, GFP_ATOMIC); in pkcs1pad_encrypt_sign_complete() 195 if (!out_buf) in pkcs1pad_encrypt_sign_complete() 199 out_buf + pad_len, len); in pkcs1pad_encrypt_sign_complete() 202 out_buf, ctx->key_size); in pkcs1pad_encrypt_sign_complete() 203 kfree_sensitive(out_buf); in pkcs1pad_encrypt_sign_complete() 281 u8 *out_buf; in pkcs1pad_decrypt_complete() local 291 out_buf = req_ctx->out_buf; in pkcs1pad_decrypt_complete() 293 if (out_buf[0] != 0x00) in pkcs1pad_decrypt_complete() [all …]
|
/openbmc/linux/drivers/platform/chrome/ |
H A D | cros_ec_i2c.c | 59 u8 *out_buf = NULL; in cros_ec_pkt_xfer_i2c() local 88 out_buf = ec_dev->dout; in cros_ec_pkt_xfer_i2c() 90 i2c_msg[0].buf = (char *) out_buf; in cros_ec_pkt_xfer_i2c() 93 ec_request_i2c = (struct ec_host_request_i2c *) out_buf; in cros_ec_pkt_xfer_i2c() 196 u8 *out_buf = NULL; in cros_ec_cmd_xfer_i2c() local 222 out_buf = kzalloc(packet_len, GFP_KERNEL); in cros_ec_cmd_xfer_i2c() 223 if (!out_buf) in cros_ec_cmd_xfer_i2c() 226 i2c_msg[0].buf = (char *)out_buf; in cros_ec_cmd_xfer_i2c() 228 out_buf[0] = EC_CMD_VERSION0 + msg->version; in cros_ec_cmd_xfer_i2c() 229 out_buf[1] = msg->command; in cros_ec_cmd_xfer_i2c() [all …]
|
/openbmc/qemu/migration/ |
H A D | multifd-qatzip.c | 41 uint8_t *out_buf; member 110 q->out_buf = qzMalloc(q->out_len, 0, PINNED_MEM); in qatzip_send_setup() 111 if (!q->out_buf) { in qatzip_send_setup() 112 q->out_buf = qzMalloc(q->out_len, 0, COMMON_MEM); in qatzip_send_setup() 113 if (!q->out_buf) { in qatzip_send_setup() 141 if (q->out_buf) { in qatzip_send_cleanup() 142 qzFree(q->out_buf); in qatzip_send_cleanup() 195 ret = qzCompress(&q->sess, q->in_buf, &in_len, q->out_buf, &out_len, 1); in qatzip_send_prepare() 207 p->iov[p->iovs_num].iov_base = q->out_buf; in qatzip_send_prepare() 278 q->out_buf = qzMalloc(q->out_len, 0, PINNED_MEM); in qatzip_recv_setup() [all …]
|
/openbmc/openbmc-test-automation/lib/ |
H A D | vpd_utils.py | 58 out_buf, stderr, rc = bsu.bmc_execute_command( 65 out_buf = json.loads(out_buf) 67 return out_buf 69 return out_buf[0]
|
H A D | host.tcl | 22 lassign [cmd_fnc "host $host" "${quiet}" "" "${print_output}"] rc out_buf 25 if { [regexp "has address" $out_buf] } { 29 lassign [split $out_buf " "] host_name fill1 fill2 ip_address 30 } elseif { [regexp "domain name pointer" $out_buf] } { 35 lassign [split $out_buf " "] fill0 fill1 fill2 fill3 host_name 203 ${quiet} "" ${print_output}] rc out_buf 204 if {[string match *broadcast* $out_buf]} {
|
H A D | utils.py | 141 out_buf, stderr, rc = bsu.bmc_execute_command("timedatectl") 152 initial_time_dict = vf.key_value_outbuf_to_dict(out_buf) 203 out_buf, stderr, rc = bsu.bmc_execute_command("df " + df_parm_string) 204 return vf.outbuf_to_report(out_buf) 213 out_buf, stderr, rc = bsu.bmc_execute_command(cmd_buf) 215 return int(out_buf, 16) 351 out_buf, stderr, rc = bsu.bmc_execute_command("cat /etc/os-release") 352 return vf.key_value_outbuf_to_dict(out_buf, delim="=", strip='"') 384 out_buf, stderr, rc = bsu.os_execute_command("cat /etc/os-release") 385 return vf.key_value_outbuf_to_dict(out_buf, delim="=", strip='"')
|
H A D | cmd.tcl | 61 if { [ catch {set out_buf [eval exec bash -c {$cmd_buf}]} result ] } { 62 set out_buf $result 66 if { $print_output } { puts "${out_buf}" } 79 append error_message "out_buf:\n${out_buf}" 91 return [list $shell_rc $out_buf]
|
H A D | gen_call_robot.py | 130 shell_rc, out_buf = gc.shell_cmd( 135 executable_base_dir_path = os.path.realpath(out_buf.rstrip()) + "/" 225 shell_rc, out_buf = gc.shell_cmd( 228 robot_file_search_paths = out_buf 257 shell_rc, out_buf = gc.shell_cmd(cmd_buf, quiet=1, print_output=0) 259 return out_buf.split("\n") 363 shell_rc, out_buf = gc.shell_cmd( 366 file_list = re.sub("\n", " ", out_buf.rstrip("\n")) 480 rc, out_buf = gc.shell_cmd(cmd_buf, quiet=1, print_output=0) 483 NEW_PATH_LIST.extend(list(set(out_buf.rstrip("\n").split("\n"))))
|
H A D | utils_files.py | 122 rc, out_buf = cmd_fnc_u(command, quiet=0, print_output=0, show_err=0) 126 BuiltIn().log_to_console("DIFF:\n" + out_buf) 128 print("DIFF:\n", out_buf) 130 file.write(out_buf)
|
/openbmc/linux/drivers/w1/slaves/ |
H A D | w1_ds2423.c | 31 struct device_attribute *attr, char *out_buf) in w1_slave_show() argument 65 c -= snprintf(out_buf + PAGE_SIZE - c, in w1_slave_show() 74 c -= snprintf(out_buf + PAGE_SIZE - c, in w1_slave_show() 97 c -= snprintf(out_buf + PAGE_SIZE - c, in w1_slave_show() 100 c -= snprintf(out_buf + PAGE_SIZE - c, in w1_slave_show() 106 c -= snprintf(out_buf + PAGE_SIZE - c, c, "Connection error"); in w1_slave_show()
|
/openbmc/linux/drivers/gpu/drm/i915/display/ |
H A D | dvo_sil164.c | 77 u8 out_buf[2]; in sil164_readb() local 85 .buf = out_buf, in sil164_readb() 95 out_buf[0] = addr; in sil164_readb() 96 out_buf[1] = 0; in sil164_readb() 114 u8 out_buf[2]; in sil164_writeb() local 119 .buf = out_buf, in sil164_writeb() 122 out_buf[0] = addr; in sil164_writeb() 123 out_buf[1] = ch; in sil164_writeb()
|
H A D | dvo_tfp410.c | 98 u8 out_buf[2]; in tfp410_readb() local 106 .buf = out_buf, in tfp410_readb() 116 out_buf[0] = addr; in tfp410_readb() 117 out_buf[1] = 0; in tfp410_readb() 135 u8 out_buf[2]; in tfp410_writeb() local 140 .buf = out_buf, in tfp410_writeb() 143 out_buf[0] = addr; in tfp410_writeb() 144 out_buf[1] = ch; in tfp410_writeb()
|
H A D | dvo_ch7xxx.c | 151 u8 out_buf[2]; in ch7xxx_readb() local 159 .buf = out_buf, in ch7xxx_readb() 169 out_buf[0] = addr; in ch7xxx_readb() 170 out_buf[1] = 0; in ch7xxx_readb() 189 u8 out_buf[2]; in ch7xxx_writeb() local 194 .buf = out_buf, in ch7xxx_writeb() 197 out_buf[0] = addr; in ch7xxx_writeb() 198 out_buf[1] = ch; in ch7xxx_writeb()
|
H A D | dvo_ivch.c | 196 u8 out_buf[1]; in ivch_read() local 209 .buf = out_buf, in ivch_read() 219 out_buf[0] = addr; in ivch_read() 239 u8 out_buf[3]; in ivch_write() local 244 .buf = out_buf, in ivch_write() 247 out_buf[0] = addr; in ivch_write() 248 out_buf[1] = data & 0xff; in ivch_write() 249 out_buf[2] = data >> 8; in ivch_write()
|
/openbmc/linux/fs/ubifs/ |
H A D | compress.c | 102 int in_len, void *out_buf, int *out_len, int *compr_type) 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() 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() 179 err = crypto_comp_decompress(compr->cc, in_buf, in_len, out_buf, in ubifs_decompress()
|
/openbmc/obmc-console/test/ |
H A D | test-ringbuffer-read-commit.c | 11 uint8_t *out_buf; in test_read_commit() local 25 len = ringbuffer_dequeue_peek(rbc, 0, &out_buf); in test_read_commit() 28 len = ringbuffer_dequeue_peek(rbc, 0, &out_buf); in test_read_commit()
|
H A D | test-ringbuffer-contained-read.c | 11 uint8_t *out_buf; in test_contained_read() local 24 len = ringbuffer_dequeue_peek(rbc, 0, &out_buf); in test_contained_read() 26 assert(!memcmp(in_buf, out_buf, sizeof(in_buf))); in test_contained_read()
|
H A D | test-ringbuffer-contained-offset-read.c | 11 uint8_t *out_buf; in test_contained_offset_read() local 27 len = ringbuffer_dequeue_peek(rbc, i, &out_buf); in test_contained_offset_read() 30 assert(!memcmp(in_buf + i, out_buf, len)); in test_contained_offset_read()
|
H A D | test-ringbuffer-boundary-read.c | 11 uint8_t *out_buf; in test_boundary_read() local 38 len = ringbuffer_dequeue_peek(rbc, pos, &out_buf); in test_boundary_read() 42 assert(!memcmp(in_buf + pos, out_buf, len)); in test_boundary_read()
|