Searched refs:in_buf (Results 1 - 31 of 31) sorted by relevance

/linux-4.1.27/lib/
H A Ddecompress_unlzo.c122 u8 *in_buf, *in_buf_save, *out_buf; unlzo() local
142 in_buf = input; unlzo()
147 in_buf = malloc(lzo1x_worst_compress(LZO_BLOCK_SIZE)); unlzo()
148 if (!in_buf) { unlzo()
153 in_buf_save = in_buf; unlzo()
160 * Start from in_buf + HEADER_SIZE_MAX to make it possible unlzo()
165 in_buf += HEADER_SIZE_MAX; unlzo()
166 in_len = fill(in_buf, HEADER_SIZE_MAX); unlzo()
169 if (!parse_header(in_buf, &skip, in_len)) { unlzo()
173 in_buf += skip; unlzo()
178 memcpy(in_buf_save, in_buf, in_len); unlzo()
179 in_buf = in_buf_save; unlzo()
188 skip = fill(in_buf + in_len, 4 - in_len); unlzo()
196 dst_len = get_unaligned_be32(in_buf); unlzo()
197 in_buf += 4; unlzo()
214 skip = fill(in_buf + in_len, 8 - in_len); unlzo()
222 src_len = get_unaligned_be32(in_buf); unlzo()
223 in_buf += 8; unlzo()
233 skip = fill(in_buf + in_len, src_len - in_len); unlzo()
247 memcpy(out_buf, in_buf, src_len); unlzo()
249 r = lzo1x_decompress_safe((u8 *) in_buf, src_len, unlzo()
265 in_buf += src_len; unlzo()
270 * in_buf, move it to the beginning of the buffer. unlzo()
275 in_buf_save[skip] = in_buf[skip]; unlzo()
276 in_buf = in_buf_save; unlzo()
/linux-4.1.27/drivers/mfd/
H A Dcros_ec_i2c.c41 u8 *in_buf = NULL; cros_ec_cmd_xfer_i2c() local
55 in_buf = kzalloc(packet_len, GFP_KERNEL); cros_ec_cmd_xfer_i2c()
56 if (!in_buf) cros_ec_cmd_xfer_i2c()
59 i2c_msg[1].buf = (char *)in_buf; cros_ec_cmd_xfer_i2c()
101 len = in_buf[1]; cros_ec_cmd_xfer_i2c()
110 sum = in_buf[0] + in_buf[1]; cros_ec_cmd_xfer_i2c()
112 msg->indata[i] = in_buf[2 + i]; cros_ec_cmd_xfer_i2c()
113 sum += in_buf[2 + i]; cros_ec_cmd_xfer_i2c()
116 i2c_msg[1].len, in_buf, sum); cros_ec_cmd_xfer_i2c()
117 if (sum != in_buf[2 + len]) { cros_ec_cmd_xfer_i2c()
125 kfree(in_buf); cros_ec_cmd_xfer_i2c()
/linux-4.1.27/fs/ubifs/
H A Dcompress.c79 * @in_buf: data to compress
86 * This function compresses input buffer @in_buf of length @in_len and stores
95 void ubifs_compress(const struct ubifs_info *c, const void *in_buf, ubifs_compress() argument
110 err = crypto_comp_compress(compr->cc, in_buf, in_len, out_buf, ubifs_compress()
130 memcpy(out_buf, in_buf, in_len); ubifs_compress()
137 * @in_buf: data to decompress
143 * This function decompresses data from buffer @in_buf into buffer @out_buf.
147 int ubifs_decompress(const struct ubifs_info *c, const void *in_buf, ubifs_decompress() argument
166 memcpy(out_buf, in_buf, in_len); ubifs_decompress()
173 err = crypto_comp_decompress(compr->cc, in_buf, in_len, out_buf, ubifs_decompress()
H A Dubifs.h1794 void ubifs_compress(const struct ubifs_info *c, const void *in_buf, int in_len,
/linux-4.1.27/fs/cifs/
H A Dtransport.c460 static int allocate_mid(struct cifs_ses *ses, struct smb_hdr *in_buf, allocate_mid() argument
473 if ((in_buf->Command != SMB_COM_SESSION_SETUP_ANDX) && allocate_mid()
474 (in_buf->Command != SMB_COM_NEGOTIATE)) allocate_mid()
481 if (in_buf->Command != SMB_COM_LOGOFF_ANDX) allocate_mid()
486 *ppmidQ = AllocMidQEntry(in_buf, ses->server); allocate_mid()
604 char *in_buf, int flags) SendReceiveNoRsp()
610 iov[0].iov_base = in_buf; SendReceiveNoRsp()
611 iov[0].iov_len = get_rfc1002_length(in_buf) + 4; SendReceiveNoRsp()
838 struct smb_hdr *in_buf, struct smb_hdr *out_buf, SendReceive()
860 if (be32_to_cpu(in_buf->smb_buf_length) > CIFSMaxBufSize + SendReceive()
863 be32_to_cpu(in_buf->smb_buf_length)); SendReceive()
877 rc = allocate_mid(ses, in_buf, &midQ); SendReceive()
885 rc = cifs_sign_smb(in_buf, ses->server, &midQ->sequence_number); SendReceive()
894 rc = smb_send(ses->server, in_buf, be32_to_cpu(in_buf->smb_buf_length)); SendReceive()
911 send_cancel(ses->server, in_buf, midQ); SendReceive()
951 struct smb_hdr *in_buf, send_lock_cancel()
956 LOCK_REQ *pSMB = (LOCK_REQ *)in_buf; send_lock_cancel()
958 /* We just modify the current in_buf to change send_lock_cancel()
967 return SendReceive(xid, ses, in_buf, out_buf, send_lock_cancel()
973 struct smb_hdr *in_buf, struct smb_hdr *out_buf, SendReceiveBlockingLock()
999 if (be32_to_cpu(in_buf->smb_buf_length) > CIFSMaxBufSize + SendReceiveBlockingLock()
1002 be32_to_cpu(in_buf->smb_buf_length)); SendReceiveBlockingLock()
1016 rc = allocate_mid(ses, in_buf, &midQ); SendReceiveBlockingLock()
1022 rc = cifs_sign_smb(in_buf, ses->server, &midQ->sequence_number); SendReceiveBlockingLock()
1031 rc = smb_send(ses->server, in_buf, be32_to_cpu(in_buf->smb_buf_length)); SendReceiveBlockingLock()
1057 if (in_buf->Command == SMB_COM_TRANSACTION2) { SendReceiveBlockingLock()
1060 rc = send_cancel(ses->server, in_buf, midQ); SendReceiveBlockingLock()
1069 rc = send_lock_cancel(xid, tcon, in_buf, out_buf); SendReceiveBlockingLock()
1081 send_cancel(ses->server, in_buf, midQ); SendReceiveBlockingLock()
603 SendReceiveNoRsp(const unsigned int xid, struct cifs_ses *ses, char *in_buf, int flags) SendReceiveNoRsp() argument
837 SendReceive(const unsigned int xid, struct cifs_ses *ses, struct smb_hdr *in_buf, struct smb_hdr *out_buf, int *pbytes_returned, const int timeout) SendReceive() argument
950 send_lock_cancel(const unsigned int xid, struct cifs_tcon *tcon, struct smb_hdr *in_buf, struct smb_hdr *out_buf) send_lock_cancel() argument
972 SendReceiveBlockingLock(const unsigned int xid, struct cifs_tcon *tcon, struct smb_hdr *in_buf, struct smb_hdr *out_buf, int *pbytes_returned) SendReceiveBlockingLock() argument
H A Dsmb1ops.c43 struct smb_hdr *in_buf = (struct smb_hdr *)buf; send_nt_cancel() local
46 in_buf->smb_buf_length = cpu_to_be32(sizeof(struct smb_hdr) - 4 + 2); send_nt_cancel()
47 in_buf->Command = SMB_COM_NT_CANCEL; send_nt_cancel()
48 in_buf->WordCount = 0; send_nt_cancel()
49 put_bcc(0, in_buf); send_nt_cancel()
52 rc = cifs_sign_smb(in_buf, server, &mid->sequence_number); send_nt_cancel()
64 rc = smb_send(server, in_buf, be32_to_cpu(in_buf->smb_buf_length)); send_nt_cancel()
71 get_mid(in_buf), rc); send_nt_cancel()
H A Dcifsproto.h88 char *in_buf, int flags);
103 struct smb_hdr *in_buf ,
/linux-4.1.27/drivers/net/irda/
H A Dkingsun-sir.c109 __u8 *in_buf; /* receive buffer */ member in struct:kingsun_cb
112 (usually 8), also size of in_buf */
297 kingsun->in_buf, kingsun->max_rx, kingsun_net_open()
496 kingsun->in_buf = NULL; kingsun_probe()
509 kingsun->in_buf = kmalloc(kingsun->max_rx, GFP_KERNEL); kingsun_probe()
510 if (!kingsun->in_buf) kingsun_probe()
554 kfree(kingsun->in_buf); kingsun_probe()
585 kfree(kingsun->in_buf); kingsun_disconnect()
H A Dmcs7780.h114 char in_buf[4096]; /* transmit/receive buffer */ member in struct:mcs_cb
H A Dmcs7780.c524 mcs->in_buf, 4096, mcs_receive_irq, mcs); mcs_receive_start()
/linux-4.1.27/drivers/gpu/drm/i915/
H A Ddvo_ivch.c171 u8 in_buf[2]; ivch_read() local
189 .buf = in_buf, ivch_read()
196 *data = (in_buf[1] << 8) | in_buf[0]; ivch_read()
H A Ddvo_ch7xxx.c140 u8 in_buf[2]; ch7xxx_readb() local
153 .buf = in_buf, ch7xxx_readb()
161 *ch = in_buf[0]; ch7xxx_readb()
H A Ddvo_sil164.c73 u8 in_buf[2]; sil164_readb() local
86 .buf = in_buf, sil164_readb()
94 *ch = in_buf[0]; sil164_readb()
H A Ddvo_tfp410.c98 u8 in_buf[2]; tfp410_readb() local
111 .buf = in_buf, tfp410_readb()
119 *ch = in_buf[0]; tfp410_readb()
H A Ddvo_ns2501.c382 u8 in_buf[2]; ns2501_readb() local
395 .buf = in_buf, ns2501_readb()
403 *ch = in_buf[0]; ns2501_readb()
/linux-4.1.27/drivers/staging/rtl8192u/ieee80211/
H A Dieee80211_crypt.h62 * allocated with extra_prefix_len bytes, copy of in_buf, and
/linux-4.1.27/include/net/
H A Dlib80211.h82 * allocated with extra_prefix_len bytes, copy of in_buf, and
/linux-4.1.27/arch/s390/kernel/
H A Ddebug.c93 char *out_buf, const char *in_buf);
96 const char *in_buf);
1417 char *out_buf, const char *in_buf) debug_raw_format_fn()
1422 memcpy(out_buf, in_buf, id->buf_size); debug_raw_format_fn()
1432 char *out_buf, const char *in_buf) debug_hex_ascii_format_fn()
1438 ((unsigned char *) in_buf)[i]); debug_hex_ascii_format_fn()
1442 unsigned char c = in_buf[i]; debug_hex_ascii_format_fn()
1416 debug_raw_format_fn(debug_info_t * id, struct debug_view *view, char *out_buf, const char *in_buf) debug_raw_format_fn() argument
1431 debug_hex_ascii_format_fn(debug_info_t * id, struct debug_view *view, char *out_buf, const char *in_buf) debug_hex_ascii_format_fn() argument
/linux-4.1.27/drivers/net/wireless/rtlwifi/btcoexist/
H A Dhalbtcoutsrc.c363 static bool halbtc_set(void *void_btcoexist, u8 set_type, void *in_buf) halbtc_set() argument
366 bool *bool_tmp = (bool *)in_buf; halbtc_set()
367 u8 *u8_tmp = (u8 *)in_buf; halbtc_set()
368 u32 *u32_tmp = (u32 *)in_buf; halbtc_set()
H A Dhalbtcoutsrc.h388 typedef bool (*bfp_btc_set)(void *btcoexist, u8 set_type, void *in_buf);
/linux-4.1.27/drivers/crypto/
H A Dmxs-dcp.c262 uint8_t *in_buf = sdcp->coh->aes_in_buf; mxs_dcp_aes_block_crypt() local
299 memcpy(in_buf + actx->fill, src_buf, clen); mxs_dcp_aes_block_crypt()
570 uint8_t *in_buf = sdcp->coh->sha_in_buf; dcp_sha_req_to_buf() local
593 memcpy(in_buf + actx->fill, src_buf, clen); dcp_sha_req_to_buf()
/linux-4.1.27/drivers/target/iscsi/
H A Discsi_target_nego.c61 const char *in_buf, extract_param()
70 if (!in_buf || !pattern || !out_buf || !type) extract_param()
73 ptr = strstr(in_buf, pattern); extract_param()
105 char *in_buf, iscsi_handle_authentication()
162 return srp_main_loop(conn, auth, in_buf, out_buf, iscsi_handle_authentication()
166 return chap_main_loop(conn, auth, in_buf, out_buf, iscsi_handle_authentication()
60 extract_param( const char *in_buf, const char *pattern, unsigned int max_length, char *out_buf, unsigned char *type) extract_param() argument
103 iscsi_handle_authentication( struct iscsi_conn *conn, char *in_buf, char *out_buf, int in_length, int *out_length, unsigned char *authtype) iscsi_handle_authentication() argument
/linux-4.1.27/drivers/staging/comedi/drivers/
H A Dusbdux.c194 __le16 *in_buf; member in struct:usbdux_private
265 uint16_t val = le16_to_cpu(devpriv->in_buf[i]); usbduxsub_ai_handle_urb()
311 memcpy(devpriv->in_buf, urb->transfer_buffer, SIZEINBUF); usbduxsub_ai_isoc_irq()
1469 devpriv->in_buf = kzalloc(SIZEINBUF, GFP_KERNEL); usbdux_alloc_usb_buffers()
1475 if (!devpriv->dux_commands || !devpriv->in_buf || !devpriv->insn_buf || usbdux_alloc_usb_buffers()
1576 kfree(devpriv->in_buf); usbdux_free_usb_buffers()
H A Dusbduxsigma.c156 __be32 *in_buf; member in struct:usbduxsigma_private
227 val = be32_to_cpu(devpriv->in_buf[i+1]); usbduxsigma_ai_handle_urb()
269 memcpy(devpriv->in_buf, urb->transfer_buffer, SIZEINBUF); usbduxsigma_ai_urb_complete()
1370 devpriv->in_buf = kzalloc(SIZEINBUF, GFP_KERNEL); usbduxsigma_alloc_usb_buffers()
1374 if (!devpriv->dux_commands || !devpriv->in_buf || !devpriv->insn_buf || usbduxsigma_alloc_usb_buffers()
1473 kfree(devpriv->in_buf); usbduxsigma_free_usb_buffers()
/linux-4.1.27/arch/s390/include/asm/
H A Ddebug.h60 const char* in_buf);
/linux-4.1.27/drivers/gpu/drm/radeon/
H A Dradeon_i2c.c1057 u8 in_buf[2]; radeon_i2c_get_byte() local
1069 .buf = in_buf, radeon_i2c_get_byte()
1077 *val = in_buf[0]; radeon_i2c_get_byte()
/linux-4.1.27/tools/hv/
H A Dhv_kvp_daemon.c1096 static int parse_ip_val_buffer(char *in_buf, int *offset, parse_ip_val_buffer() argument
1103 * in_buf has sequence of characters that are seperated by parse_ip_val_buffer()
1107 start = in_buf + *offset; parse_ip_val_buffer()
/linux-4.1.27/drivers/staging/speakup/
H A Dmain.c119 static void spkup_write(const char *in_buf, int count);
1067 static void spkup_write(const char *in_buf, int count) spkup_write() argument
1078 if ((in_buf == sentmarks[bn][currsentence]) && spkup_write()
1082 ch = (u_char) *in_buf++; spkup_write()
/linux-4.1.27/drivers/tty/
H A Dn_gsm.c2699 unsigned char *in_buf, int size) gsm_mux_rx_netchar()
2715 memcpy(skb_put(skb, size), in_buf, size); gsm_mux_rx_netchar() local
2698 gsm_mux_rx_netchar(struct gsm_dlci *dlci, unsigned char *in_buf, int size) gsm_mux_rx_netchar() argument
/linux-4.1.27/drivers/net/wireless/ipw2x00/
H A Dipw2100.c2358 static u32 ipw2100_match_buf(struct ipw2100_priv *priv, u8 * in_buf, ipw2100_match_buf() argument
2366 s = in_buf; ipw2100_match_buf()
2380 s = in_buf; ipw2100_match_buf()
2387 if ((s - in_buf) == len) ipw2100_match_buf()
/linux-4.1.27/drivers/scsi/
H A Dosst.c1331 "%s:D: Seek success at ppos %d fsq %d in_buf %d, bytes %d, ptr %d*%d\n", osst_seek_logical_blk()

Completed in 918 milliseconds