Home
last modified time | relevance | path

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

123

/linux/fs/squashfs/
H A Dzstd_wrapper.c70 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 …]
/linux/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.c107 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 Ddecompress_unzstd.c125 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 …]
/linux/fs/quota/
H A Dquota_tree.c127 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 …]
/linux/fs/btrfs/
H A Dzstd.c54 zstd_out_buffer out_buf; member
436 workspace->out_buf.dst = folio_address(out_folio); in zstd_compress_folios()
437 workspace->out_buf.pos = 0; in zstd_compress_folios()
438 workspace->out_buf.size = min_t(size_t, max_out, PAGE_SIZE); in zstd_compress_folios()
443 ret2 = zstd_compress_stream(stream, &workspace->out_buf, in zstd_compress_folios()
460 tot_out + workspace->out_buf.pos) { in zstd_compress_folios()
466 if (workspace->out_buf.pos >= max_out) { in zstd_compress_folios()
467 tot_out += workspace->out_buf.pos; in zstd_compress_folios()
473 if (workspace->out_buf.pos == workspace->out_buf.size) { in zstd_compress_folios()
486 workspace->out_buf.dst = folio_address(out_folio); in zstd_compress_folios()
[all …]
/linux/fs/erofs/
H A Ddecompressor_zstd.c150 zstd_out_buffer out_buf = { NULL, 0, 0 }; in z_erofs_zstd_decompress() local
181 dctx.avail_out = out_buf.size - out_buf.pos; in z_erofs_zstd_decompress()
184 err = z_erofs_stream_switch_bufs(&dctx, &out_buf.dst, in z_erofs_zstd_decompress()
189 if (out_buf.size == out_buf.pos) { in z_erofs_zstd_decompress()
190 out_buf.size = dctx.avail_out; in z_erofs_zstd_decompress()
191 out_buf.pos = 0; in z_erofs_zstd_decompress()
196 zerr = zstd_decompress_stream(stream, &out_buf, &in_buf); in z_erofs_zstd_decompress()
204 } while (rq->outputsize || out_buf.pos < out_buf.size); in z_erofs_zstd_decompress()
/linux/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()
/linux/drivers/gpu/drm/i915/display/
H A Ddvo_sil164.c77 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 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.c151 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 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.c396 u8 out_buf[2]; in ns2501_readb() local
404 .buf = out_buf, in ns2501_readb()
414 out_buf[0] = addr; in ns2501_readb()
415 out_buf[1] = 0; in ns2501_readb()
441 u8 out_buf[2]; in ns2501_writeb() local
447 .buf = out_buf, in ns2501_writeb()
450 out_buf[0] = addr; in ns2501_writeb()
451 out_buf[1] = ch; in ns2501_writeb()
/linux/crypto/
H A Drsassa-pkcs1.c230 u8 *out_buf; in rsassa_pkcs1_verify() local
245 out_buf = (u8 *)(child_req + 1) + child_reqsize; in rsassa_pkcs1_verify()
246 memcpy(out_buf, src, slen); in rsassa_pkcs1_verify()
249 sg_init_one(&sg, out_buf, slen); in rsassa_pkcs1_verify()
266 if (out_buf[0] != 0x00) in rsassa_pkcs1_verify()
271 out_buf++; in rsassa_pkcs1_verify()
274 if (out_buf[0] != 0x01) in rsassa_pkcs1_verify()
278 if (out_buf[pos] != 0xff) in rsassa_pkcs1_verify()
281 if (pos < 9 || pos == dst_len || out_buf[pos] != 0x00) in rsassa_pkcs1_verify()
287 if (crypto_memneq(out_buf + pos, hash_prefix->data, hash_prefix->size)) in rsassa_pkcs1_verify()
[all …]
/linux/fs/ubifs/
H A Dcompress.c103 int in_len, void *out_buf, int *out_len, int *compr_type) in ubifs_compress() argument
117 err = crypto_comp_compress(compr->cc, in_buf, in_len, out_buf, in ubifs_compress()
137 memcpy(out_buf, in_buf, in_len); in ubifs_compress()
156 int in_len, void *out_buf, int *out_len, int compr_type) in ubifs_decompress() argument
174 memcpy(out_buf, in_buf, in_len); in ubifs_decompress()
181 err = crypto_comp_decompress(compr->cc, in_buf, in_len, out_buf, in ubifs_decompress()
/linux/drivers/net/ethernet/netronome/nfp/nfpcore/
H A Dnfp_nsp.c174 void *out_buf; member
463 if (arg->out_buf && arg->out_size && arg->out_size > arg->in_size) { in nfp_nsp_command_buf_def()
465 arg->out_buf, arg->out_size - arg->in_size); in nfp_nsp_command_buf_def()
483 if (arg->out_buf && arg->out_size) { in nfp_nsp_command_buf_def()
485 arg->out_buf, arg->out_size); in nfp_nsp_command_buf_def()
596 memcpy(arg->out_buf + off, chunks[i].chunk, len); in nfp_nsp_command_buf_dma_sg()
679 if (arg->out_buf && arg->out_size && arg->out_size > arg->in_size) in nfp_nsp_command_buf()
680 memset(arg->out_buf, 0, arg->out_size - arg->in_size); in nfp_nsp_command_buf()
834 .out_buf = buf, in nfp_nsp_read_eth_table()
863 .out_buf = buf, in nfp_nsp_read_identify()
[all …]
/linux/drivers/ras/amd/atl/
H A Dprm.c29 void *out_buf; member
45 p_buf.out_buf = &ret_addr; in prm_umc_norm_to_sys_addr()
/linux/drivers/gpu/drm/gma500/
H A Dpsb_intel_modes.c20 u8 out_buf[] = { 0x0, 0x0 }; in psb_intel_ddc_probe() local
28 .buf = out_buf, in psb_intel_ddc_probe()
H A Dpsb_intel_lvds.c95 u8 out_buf[2]; in psb_lvds_i2c_set_brightness() local
103 .buf = out_buf, in psb_lvds_i2c_set_brightness()
114 out_buf[0] = dev_priv->lvds_bl->brightnesscmd; in psb_lvds_i2c_set_brightness()
115 out_buf[1] = (u8)blc_i2c_brightness; in psb_lvds_i2c_set_brightness()
/linux/arch/powerpc/platforms/pseries/
H A Dpapr_platform_attributes.c108 goto out_buf; in papr_get_attr()
117 goto out_buf; in papr_get_attr()
128 goto out_buf; in papr_get_attr()
133 out_buf: in papr_get_attr()
/linux/drivers/gpu/drm/radeon/
H A Dradeon_i2c.c1045 u8 out_buf[2]; in radeon_i2c_get_byte() local
1052 .buf = out_buf, in radeon_i2c_get_byte()
1062 out_buf[0] = addr; in radeon_i2c_get_byte()
1063 out_buf[1] = 0; in radeon_i2c_get_byte()
1079 uint8_t out_buf[2]; in radeon_i2c_put_byte() local
1084 .buf = out_buf, in radeon_i2c_put_byte()
1087 out_buf[0] = addr; in radeon_i2c_put_byte()
1088 out_buf[1] = val; in radeon_i2c_put_byte()
/linux/drivers/hid/
H A Dhid-logitech-dj.c1353 u8 *out_buf; in logi_dj_ll_raw_request() local
1386 out_buf = kzalloc(DJREPORT_SHORT_LENGTH, GFP_ATOMIC); in logi_dj_ll_raw_request()
1387 if (!out_buf) in logi_dj_ll_raw_request()
1393 out_buf[0] = REPORT_ID_DJ_SHORT; in logi_dj_ll_raw_request()
1394 out_buf[1] = djdev->device_index; in logi_dj_ll_raw_request()
1395 memcpy(out_buf + 2, buf, count); in logi_dj_ll_raw_request()
1397 ret = hid_hw_raw_request(djrcv_dev->hidpp, out_buf[0], out_buf, in logi_dj_ll_raw_request()
1400 kfree(out_buf); in logi_dj_ll_raw_request()
/linux/include/uapi/linux/
H A Dndctl.h33 __u8 out_buf[]; member
51 __u8 out_buf[]; member
/linux/drivers/usb/early/
H A Dxhci-dbc.c242 memset(xdbc.out_buf, 0, PAGE_SIZE); in xdbc_mem_init()
344 xdbc.in_buf = xdbc.out_buf + XDBC_MAX_PACKET; in xdbc_mem_init()
502 memcpy_and_pad(xdbc.out_buf, XDBC_MAX_PACKET, data, size, 0); in xdbc_bulk_transfer()
568 xdbc.out_buf = xdbc_get_page(&xdbc.out_dma); in xdbc_early_setup()
569 if (!xdbc.out_buf) in xdbc_early_setup()
683 xdbc.out_buf = NULL; in early_xdbc_setup_hardware()
/linux/drivers/target/iscsi/
H A Discsi_target_nego.c59 char *out_buf, in extract_param() argument
65 if (!in_buf || !pattern || !out_buf || !type) in extract_param()
95 memcpy(out_buf, ptr, len); in extract_param()
96 out_buf[len] = '\0'; in extract_param()
129 char *out_buf, in iscsi_handle_authentication() argument
148 return chap_main_loop(conn, auth, in_buf, out_buf, in iscsi_handle_authentication()

123