Home
last modified time | relevance | path

Searched refs:out_buf (Results 1 – 25 of 87) sorted by relevance

1234

/OK3568_Linux_fs/kernel/drivers/input/touchscreen/cyttsp5/
H A Dcyttsp5_device_access.c1849 static int prepare_print_string(char *out_buf, char *in_buf, int index) in prepare_print_string() argument
1851 if ((out_buf == NULL) || (in_buf == NULL)) in prepare_print_string()
1853 index += scnprintf(&out_buf[index], MAX_BUF_LEN - index, in prepare_print_string()
1858 static int prepare_print_data(char *out_buf, int32_t *in_buf, int index, int data_num) in prepare_print_data() argument
1862 if ((out_buf == NULL) || (in_buf == NULL)) in prepare_print_data()
1865 index += scnprintf(&out_buf[index], MAX_BUF_LEN - index, in prepare_print_data()
1870 static int save_header(char *out_buf, int index, struct result *result) in save_header() argument
1881 index = prepare_print_string(out_buf, ",.header,\n", index); in save_header()
1882 index = prepare_print_string(out_buf, ",DATE,", index); in save_header()
1883 index = prepare_print_string(out_buf, &time_buf[0], index); in save_header()
[all …]
/OK3568_Linux_fs/kernel/lib/
H A Ddecompress_inflate.c45 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 Ddecompress_unlzo.c108 u8 *in_buf, *in_buf_save, *out_buf; in unlzo() local
112 out_buf = output; in unlzo()
117 out_buf = malloc(LZO_BLOCK_SIZE); in unlzo()
118 if (!out_buf) { in unlzo()
233 memcpy(out_buf, in_buf, src_len); in unlzo()
236 out_buf, &tmp); in unlzo()
244 if (flush && flush(out_buf, dst_len) != dst_len) in unlzo()
247 out_buf += dst_len; in unlzo()
272 free(out_buf); in unlzo()
281 unsigned char *out_buf, long olen, in __decompress() argument
[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
148 ret = ZSTD_decompressDCtx(dctx, out_buf, out_len, in_buf, in_len); in decompress_single()
166 unsigned char *out_buf, long out_len, in __unzstd() argument
187 out_len = UINTPTR_MAX - (uintptr_t)out_buf; in __unzstd()
194 return decompress_single(in_buf, in_len, out_buf, out_len, in __unzstd()
232 out_buf = out_allocated; in __unzstd()
236 out.dst = out_buf; in __unzstd()
334 unsigned char *out_buf, in unzstd() argument
338 return __unzstd(buf, len, fill, flush, out_buf, 0, pos, error); in unzstd()
344 unsigned char *out_buf, long out_len, in __decompress() argument
[all …]
/OK3568_Linux_fs/kernel/fs/btrfs/
H A Dzstd.c52 ZSTD_outBuffer out_buf; member
414 workspace->out_buf.dst = kmap(out_page); in zstd_compress_pages()
415 workspace->out_buf.pos = 0; in zstd_compress_pages()
416 workspace->out_buf.size = min_t(size_t, max_out, PAGE_SIZE); in zstd_compress_pages()
421 ret2 = ZSTD_compressStream(stream, &workspace->out_buf, in zstd_compress_pages()
433 tot_out + workspace->out_buf.pos) { in zstd_compress_pages()
439 if (workspace->out_buf.pos >= max_out) { in zstd_compress_pages()
440 tot_out += workspace->out_buf.pos; in zstd_compress_pages()
446 if (workspace->out_buf.pos == workspace->out_buf.size) { in zstd_compress_pages()
461 workspace->out_buf.dst = kmap(out_page); in zstd_compress_pages()
[all …]
/OK3568_Linux_fs/kernel/fs/quota/
H A Dquota_tree.c125 goto out_buf; in get_free_dqblk()
128 goto out_buf; in get_free_dqblk()
136 goto out_buf; in get_free_dqblk()
141 out_buf: in get_free_dqblk()
178 goto out_buf; in remove_free_dqentry()
183 goto out_buf; in remove_free_dqentry()
188 goto out_buf; in remove_free_dqentry()
193 goto out_buf; in remove_free_dqentry()
205 out_buf: in remove_free_dqentry()
224 goto out_buf; in insert_free_dqentry()
[all …]
/OK3568_Linux_fs/kernel/fs/squashfs/
H A Dzstd_wrapper.c70 ZSTD_outBuffer 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()
105 if (out_buf.pos == out_buf.size) { in zstd_uncompress()
106 out_buf.dst = squashfs_next_page(output); in zstd_uncompress()
107 if (out_buf.dst == NULL) { in zstd_uncompress()
114 out_buf.pos = 0; in zstd_uncompress()
115 out_buf.size = PAGE_SIZE; in zstd_uncompress()
118 total_out -= out_buf.pos; in zstd_uncompress()
119 zstd_err = ZSTD_decompressStream(stream, &out_buf, &in_buf); in zstd_uncompress()
[all …]
/OK3568_Linux_fs/kernel/crypto/
H A Drsa-pkcs1pad.c103 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_KERNEL); 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()
284 u8 *out_buf; in pkcs1pad_decrypt_complete() local
294 out_buf = req_ctx->out_buf; in pkcs1pad_decrypt_complete()
296 if (out_buf[0] != 0x00) in pkcs1pad_decrypt_complete()
[all …]
/OK3568_Linux_fs/kernel/drivers/platform/chrome/
H A Dcros_ec_i2c.c59 u8 *out_buf = NULL; in cros_ec_pkt_xfer_i2c() local
82 out_buf = ec_dev->dout; in cros_ec_pkt_xfer_i2c()
84 i2c_msg[0].buf = (char *) out_buf; in cros_ec_pkt_xfer_i2c()
87 ec_request_i2c = (struct ec_host_request_i2c *) out_buf; in cros_ec_pkt_xfer_i2c()
188 u8 *out_buf = NULL; in cros_ec_cmd_xfer_i2c() local
214 out_buf = kzalloc(packet_len, GFP_KERNEL); in cros_ec_cmd_xfer_i2c()
215 if (!out_buf) in cros_ec_cmd_xfer_i2c()
218 i2c_msg[0].buf = (char *)out_buf; in cros_ec_cmd_xfer_i2c()
220 out_buf[0] = EC_CMD_VERSION0 + msg->version; in cros_ec_cmd_xfer_i2c()
221 out_buf[1] = msg->command; in cros_ec_cmd_xfer_i2c()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/display/
H A Ddvo_sil164.c73 u8 out_buf[2]; in sil164_readb() local
81 .buf = out_buf, in sil164_readb()
91 out_buf[0] = addr; in sil164_readb()
92 out_buf[1] = 0; in sil164_readb()
110 u8 out_buf[2]; in sil164_writeb() local
115 .buf = out_buf, in sil164_writeb()
118 out_buf[0] = addr; in sil164_writeb()
119 out_buf[1] = ch; in sil164_writeb()
H A Ddvo_tfp410.c98 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 Ddvo_ch7xxx.c140 u8 out_buf[2]; in ch7xxx_readb() local
148 .buf = out_buf, in ch7xxx_readb()
158 out_buf[0] = addr; in ch7xxx_readb()
159 out_buf[1] = 0; in ch7xxx_readb()
178 u8 out_buf[2]; in ch7xxx_writeb() local
183 .buf = out_buf, in ch7xxx_writeb()
186 out_buf[0] = addr; in ch7xxx_writeb()
187 out_buf[1] = ch; in ch7xxx_writeb()
H A Ddvo_ivch.c196 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()
H A Ddvo_ns2501.c397 u8 out_buf[2]; in ns2501_readb() local
405 .buf = out_buf, in ns2501_readb()
415 out_buf[0] = addr; in ns2501_readb()
416 out_buf[1] = 0; in ns2501_readb()
442 u8 out_buf[2]; in ns2501_writeb() local
448 .buf = out_buf, in ns2501_writeb()
451 out_buf[0] = addr; in ns2501_writeb()
452 out_buf[1] = ch; in ns2501_writeb()
/OK3568_Linux_fs/kernel/drivers/w1/slaves/
H A Dw1_ds2423.c31 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()
/OK3568_Linux_fs/u-boot/tools/rockchip/
H A Dbmp2gray16.c199 int convert_one_image(char *in_path, void *out_buf, uint32_t offset, in convert_one_image() argument
208 uint8_t *gr16_data = (uint8_t *)out_buf; in convert_one_image()
210 if (!out_buf || !in_path) { in convert_one_image()
370 void *out_buf; in init_grayscale_logo_buf() local
380 out_buf = calloc(1, size); in init_grayscale_logo_buf()
382 return out_buf; in init_grayscale_logo_buf()
396 void *out_buf; in main() local
523 out_buf = init_grayscale_logo_buf(logo_count, one_img_size); in main()
524 if (!out_buf) { in main()
530 logo_hdr = (struct logo_info *)out_buf; in main()
[all …]
/OK3568_Linux_fs/kernel/fs/ubifs/
H A Dcompress.c102 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()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_i2c.c288 u8 out_buf[2]; in amdgpu_i2c_get_byte() local
295 .buf = out_buf, in amdgpu_i2c_get_byte()
305 out_buf[0] = addr; in amdgpu_i2c_get_byte()
306 out_buf[1] = 0; in amdgpu_i2c_get_byte()
322 uint8_t out_buf[2]; in amdgpu_i2c_put_byte() local
327 .buf = out_buf, in amdgpu_i2c_put_byte()
330 out_buf[0] = addr; in amdgpu_i2c_put_byte()
331 out_buf[1] = val; in amdgpu_i2c_put_byte()
/OK3568_Linux_fs/kernel/arch/s390/kernel/
H A Ddebug.c80 struct debug_view *view, char *out_buf);
85 struct debug_view *view, char *out_buf);
93 char *out_buf, const char *in_buf);
95 char *out_buf, debug_sprintf_entry_t *curr_event);
1250 char *out_buf) in debug_prolog_pages_fn() argument
1252 return sprintf(out_buf, "%i\n", id->pages_per_area); in debug_prolog_pages_fn()
1299 char *out_buf) in debug_prolog_level_fn() argument
1304 rc = sprintf(out_buf, "-\n"); in debug_prolog_level_fn()
1306 rc = sprintf(out_buf, "%i\n", id->level); in debug_prolog_level_fn()
1423 char *out_buf, const char *in_buf) in debug_hex_ascii_format_fn() argument
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/
H A Ddhd_bitpack.c160 dhd_base64_encode(char* in_buf, int32 in_buf_len, char* out_buf, int32 out_buf_len) in dhd_base64_encode() argument
172 if (!in_buf || !out_buf || in_buf_len == 0 || out_buf_len == 0) { in dhd_base64_encode()
179 base64_out = out_buf; in dhd_base64_encode()
181 base64_output_end = out_buf + out_buf_len - BASE64_PADDING_MARGIN; in dhd_base64_encode()
/OK3568_Linux_fs/external/rkwifibt/drivers/bcmdhd/
H A Ddhd_bitpack.c160 dhd_base64_encode(char* in_buf, int32 in_buf_len, char* out_buf, int32 out_buf_len) in dhd_base64_encode() argument
172 if (!in_buf || !out_buf || in_buf_len == 0 || out_buf_len == 0) { in dhd_base64_encode()
179 base64_out = out_buf; in dhd_base64_encode()
181 base64_output_end = out_buf + out_buf_len - BASE64_PADDING_MARGIN; in dhd_base64_encode()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/netronome/nfp/nfpcore/
H A Dnfp_nsp.c173 void *out_buf; member
462 if (arg->out_buf && arg->out_size && arg->out_size > arg->in_size) { in nfp_nsp_command_buf_def()
464 arg->out_buf, arg->out_size - arg->in_size); in nfp_nsp_command_buf_def()
482 if (arg->out_buf && arg->out_size) { in nfp_nsp_command_buf_def()
484 arg->out_buf, arg->out_size); in nfp_nsp_command_buf_def()
595 memcpy(arg->out_buf + off, chunks[i].chunk, len); in nfp_nsp_command_buf_dma_sg()
678 if (arg->out_buf && arg->out_size && arg->out_size > arg->in_size) in nfp_nsp_command_buf()
679 memset(arg->out_buf, 0, arg->out_size - arg->in_size); in nfp_nsp_command_buf()
833 .out_buf = buf, in nfp_nsp_read_eth_table()
862 .out_buf = buf, in nfp_nsp_read_identify()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/gma500/
H A Dpsb_intel_modes.c18 u8 out_buf[] = { 0x0, 0x0 }; in psb_intel_ddc_probe() local
26 .buf = out_buf, in psb_intel_ddc_probe()
/OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/xcore/
H A Ddrm_buffer.cpp148 SmartPtr<DrmBufferProxy> out_buf = new DrmBufferProxy(info, buffer_data); in create_buffer_from_data() local
149 XCAM_ASSERT(out_buf.ptr()); in create_buffer_from_data()
150 return out_buf; in create_buffer_from_data()
/OK3568_Linux_fs/kernel/fs/xfs/scrub/
H A Ddir.c362 goto out_buf; in xchk_directory_data_bestfree()
373 goto out_buf; in xchk_directory_data_bestfree()
383 goto out_buf; in xchk_directory_data_bestfree()
389 goto out_buf; in xchk_directory_data_bestfree()
412 goto out_buf; in xchk_directory_data_bestfree()
422 goto out_buf; in xchk_directory_data_bestfree()
431 goto out_buf; in xchk_directory_data_bestfree()
437 goto out_buf; in xchk_directory_data_bestfree()
451 out_buf: in xchk_directory_data_bestfree()

1234