Home
last modified time | relevance | path

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

12

/Linux-v5.4/lib/
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()
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 += skip; in unlzo()
164 memcpy(in_buf_save, in_buf, in_len); in unlzo()
[all …]
/Linux-v5.4/fs/btrfs/
Dzstd.c51 ZSTD_inBuffer in_buf; member
407 workspace->in_buf.src = kmap(in_page); in zstd_compress_pages()
408 workspace->in_buf.pos = 0; in zstd_compress_pages()
409 workspace->in_buf.size = min_t(size_t, len, PAGE_SIZE); in zstd_compress_pages()
427 &workspace->in_buf); in zstd_compress_pages()
436 if (tot_in + workspace->in_buf.pos > 8192 && in zstd_compress_pages()
437 tot_in + workspace->in_buf.pos < in zstd_compress_pages()
473 if (workspace->in_buf.pos >= len) { in zstd_compress_pages()
474 tot_in += workspace->in_buf.pos; in zstd_compress_pages()
479 if (workspace->in_buf.pos == workspace->in_buf.size) { in zstd_compress_pages()
[all …]
/Linux-v5.4/drivers/platform/chrome/
Dcros_ec_i2c.c58 u8 *in_buf = NULL; in cros_ec_pkt_xfer_i2c() local
74 in_buf = ec_dev->din; in cros_ec_pkt_xfer_i2c()
76 i2c_msg[1].buf = (char *) in_buf; in cros_ec_pkt_xfer_i2c()
103 ec_response_i2c = (struct ec_host_response_i2c *) in_buf; in cros_ec_pkt_xfer_i2c()
157 in_buf + response_header_size, in cros_ec_pkt_xfer_i2c()
187 u8 *in_buf = NULL; in cros_ec_cmd_xfer_i2c() local
201 in_buf = kzalloc(packet_len, GFP_KERNEL); in cros_ec_cmd_xfer_i2c()
202 if (!in_buf) in cros_ec_cmd_xfer_i2c()
205 i2c_msg[1].buf = (char *)in_buf; in cros_ec_cmd_xfer_i2c()
247 len = in_buf[1]; in cros_ec_cmd_xfer_i2c()
[all …]
/Linux-v5.4/fs/squashfs/
Dzstd_wrapper.c70 ZSTD_inBuffer in_buf = { NULL, 0, 0 }; in zstd_uncompress() local
84 if (in_buf.pos == in_buf.size && k < b) { in zstd_uncompress()
88 in_buf.src = bh[k]->b_data + offset; in zstd_uncompress()
89 in_buf.size = avail; in zstd_uncompress()
90 in_buf.pos = 0; in zstd_uncompress()
108 zstd_err = ZSTD_decompressStream(stream, &out_buf, &in_buf); in zstd_uncompress()
111 if (in_buf.pos == in_buf.size && k < b) in zstd_uncompress()
/Linux-v5.4/fs/ubifs/
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()
/Linux-v5.4/fs/cifs/
Dtransport.c668 static int allocate_mid(struct cifs_ses *ses, struct smb_hdr *in_buf, in allocate_mid() argument
681 if ((in_buf->Command != SMB_COM_SESSION_SETUP_ANDX) && in allocate_mid()
682 (in_buf->Command != SMB_COM_NEGOTIATE)) in allocate_mid()
689 if (in_buf->Command != SMB_COM_LOGOFF_ANDX) in allocate_mid()
694 *ppmidQ = AllocMidQEntry(in_buf, ses->server); in allocate_mid()
837 char *in_buf, int flags) in SendReceiveNoRsp() argument
844 iov[0].iov_base = in_buf; in SendReceiveNoRsp()
845 iov[0].iov_len = get_rfc1002_length(in_buf) + 4; in SendReceiveNoRsp()
1244 struct smb_hdr *in_buf, struct smb_hdr *out_buf, in SendReceive() argument
1249 unsigned int len = be32_to_cpu(in_buf->smb_buf_length); in SendReceive()
[all …]
Dsmb1ops.c31 struct smb_hdr *in_buf = (struct smb_hdr *)rqst->rq_iov[0].iov_base; in send_nt_cancel() local
34 in_buf->smb_buf_length = cpu_to_be32(sizeof(struct smb_hdr) - 4 + 2); in send_nt_cancel()
35 in_buf->Command = SMB_COM_NT_CANCEL; in send_nt_cancel()
36 in_buf->WordCount = 0; in send_nt_cancel()
37 put_bcc(0, in_buf); in send_nt_cancel()
40 rc = cifs_sign_smb(in_buf, server, &mid->sequence_number); in send_nt_cancel()
52 rc = smb_send(server, in_buf, be32_to_cpu(in_buf->smb_buf_length)); in send_nt_cancel()
59 get_mid(in_buf), rc); in send_nt_cancel()
/Linux-v5.4/crypto/
Drsa-pkcs1pad.c102 uint8_t *in_buf, *out_buf; member
207 kfree(req_ctx->in_buf); in pkcs1pad_encrypt_sign_complete()
247 req_ctx->in_buf = kmalloc(ctx->key_size - 1 - req->src_len, in pkcs1pad_encrypt()
249 if (!req_ctx->in_buf) in pkcs1pad_encrypt()
253 req_ctx->in_buf[0] = 0x02; in pkcs1pad_encrypt()
255 req_ctx->in_buf[i] = 1 + prandom_u32_max(255); in pkcs1pad_encrypt()
256 req_ctx->in_buf[ps_end] = 0x00; in pkcs1pad_encrypt()
258 pkcs1pad_sg_set_buf(req_ctx->in_sg, req_ctx->in_buf, in pkcs1pad_encrypt()
403 req_ctx->in_buf = kmalloc(ctx->key_size - 1 - req->src_len, in pkcs1pad_sign()
405 if (!req_ctx->in_buf) in pkcs1pad_sign()
[all …]
/Linux-v5.4/drivers/gpu/drm/i915/display/
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()
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()
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()
Ddvo_ch7xxx.c141 u8 in_buf[2]; in ch7xxx_readb() local
154 .buf = in_buf, in ch7xxx_readb()
162 *ch = in_buf[0]; in ch7xxx_readb()
Ddvo_ns2501.c398 u8 in_buf[2]; in ns2501_readb() local
411 .buf = in_buf, in ns2501_readb()
419 *ch = in_buf[0]; in ns2501_readb()
/Linux-v5.4/drivers/net/ethernet/netronome/nfp/nfpcore/
Dnfp_nsp.c171 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 = buf, in __nfp_nsp_hwinfo_lookup()
981 .in_buf = buf, in nfp_nsp_hwinfo_set()
1054 .in_buf = buf, in __nfp_nsp_module_eeprom()
/Linux-v5.4/drivers/nfc/pn533/
Dusb.c456 unsigned char *in_buf; in pn533_usb_probe() local
465 in_buf = kzalloc(in_buf_len, GFP_KERNEL); in pn533_usb_probe()
466 if (!in_buf) in pn533_usb_probe()
499 in_buf, in_buf_len, NULL, phy); in pn533_usb_probe()
567 kfree(in_buf); in pn533_usb_probe()
/Linux-v5.4/include/uapi/linux/
Dndctl.h39 __u8 in_buf[0]; member
45 __u8 in_buf[0]; member
/Linux-v5.4/arch/powerpc/platforms/pseries/
Dpapr_scm.c218 data = *(uint64_t *)(hdr->in_buf + data_offset); in papr_scm_meta_set()
222 data = *(uint32_t *)(hdr->in_buf + data_offset); in papr_scm_meta_set()
227 data = *(uint16_t *)(hdr->in_buf + data_offset); in papr_scm_meta_set()
232 data_be = *(uint8_t *)(hdr->in_buf + data_offset); in papr_scm_meta_set()
/Linux-v5.4/drivers/gpu/drm/amd/amdgpu/
Damdgpu_i2c.c289 u8 in_buf[2]; in amdgpu_i2c_get_byte() local
301 .buf = in_buf, in amdgpu_i2c_get_byte()
309 *val = in_buf[0]; in amdgpu_i2c_get_byte()
/Linux-v5.4/arch/s390/kernel/
Ddebug.c92 char *out_buf, const char *in_buf);
95 const char *in_buf);
1404 char *out_buf, const char *in_buf) in debug_raw_format_fn() argument
1409 memcpy(out_buf, in_buf, id->buf_size); in debug_raw_format_fn()
1417 char *out_buf, const char *in_buf) in debug_hex_ascii_format_fn() argument
1422 rc += sprintf(out_buf + rc, "%02x ", ((unsigned char *) in_buf)[i]); in debug_hex_ascii_format_fn()
1425 unsigned char c = in_buf[i]; in debug_hex_ascii_format_fn()
/Linux-v5.4/drivers/acpi/nfit/
Dcore.c443 union acpi_object in_obj, in_buf, *out_obj; in acpi_nfit_ctl() local
502 in_obj.package.elements = &in_buf; in acpi_nfit_ctl()
503 in_buf.type = ACPI_TYPE_BUFFER; in acpi_nfit_ctl()
504 in_buf.buffer.pointer = buf; in acpi_nfit_ctl()
505 in_buf.buffer.length = 0; in acpi_nfit_ctl()
509 in_buf.buffer.length += nd_cmd_in_size(nvdimm, cmd, desc, in acpi_nfit_ctl()
514 in_buf.buffer.pointer = (void *) &call_pkg->nd_payload; in acpi_nfit_ctl()
515 in_buf.buffer.length = call_pkg->nd_size_in; in acpi_nfit_ctl()
519 dimm_name, cmd, func, in_buf.buffer.length); in acpi_nfit_ctl()
522 in_buf.buffer.pointer, in acpi_nfit_ctl()
[all …]
/Linux-v5.4/drivers/target/iscsi/
Discsi_target_nego.c56 const char *in_buf, in extract_param() argument
65 if (!in_buf || !pattern || !out_buf || !type) in extract_param()
68 ptr = strstr(in_buf, pattern); in extract_param()
100 char *in_buf, in iscsi_handle_authentication() argument
156 return chap_main_loop(conn, auth, in_buf, out_buf, in iscsi_handle_authentication()
/Linux-v5.4/drivers/staging/comedi/drivers/
Dusbduxsigma.c148 __be32 *in_buf; member
222 val = be32_to_cpu(devpriv->in_buf[i + 1]); in usbduxsigma_ai_handle_urb()
264 memcpy(devpriv->in_buf, urb->transfer_buffer, SIZEINBUF); in usbduxsigma_ai_urb_complete()
1338 devpriv->in_buf = kzalloc(SIZEINBUF, GFP_KERNEL); in usbduxsigma_alloc_usb_buffers()
1342 if (!devpriv->dux_commands || !devpriv->in_buf || !devpriv->insn_buf || in usbduxsigma_alloc_usb_buffers()
1438 kfree(devpriv->in_buf); in usbduxsigma_free_usb_buffers()
Dusbdux.c185 __le16 *in_buf; member
256 u16 val = le16_to_cpu(devpriv->in_buf[i]); in usbduxsub_ai_handle_urb()
302 memcpy(devpriv->in_buf, urb->transfer_buffer, SIZEINBUF); in usbduxsub_ai_isoc_irq()
1445 devpriv->in_buf = kzalloc(SIZEINBUF, GFP_KERNEL); in usbdux_alloc_usb_buffers()
1451 if (!devpriv->dux_commands || !devpriv->in_buf || !devpriv->insn_buf || in usbdux_alloc_usb_buffers()
1552 kfree(devpriv->in_buf); in usbdux_free_usb_buffers()
/Linux-v5.4/drivers/soc/qcom/
Dqmi_encdec.c65 const void *in_buf, u32 in_buf_len, int dec_level);
594 const void *in_buf, u32 in_buf_len, in qmi_decode() argument
605 const void *buf_src = in_buf; in qmi_decode()
/Linux-v5.4/drivers/crypto/
Dmxs-dcp.c286 uint8_t *in_buf = sdcp->coh->aes_in_buf; in mxs_dcp_aes_block_crypt() local
330 memcpy(in_buf + actx->fill, src_buf, clen); in mxs_dcp_aes_block_crypt()
381 memcpy(req->info, in_buf+(last_out_len-AES_BLOCK_SIZE), in mxs_dcp_aes_block_crypt()
626 uint8_t *in_buf = sdcp->coh->sha_in_buf; in dcp_sha_req_to_buf() local
650 memcpy(in_buf + actx->fill, src_buf, clen); in dcp_sha_req_to_buf()

12