Searched refs:obuf (Results 1 - 25 of 45) sorted by relevance

12

/linux-master/include/linux/mfd/
H A Ddln2.h54 * @obuf - the buffer to be sent to the device; it can be NULL if the user
65 const void *obuf, unsigned obuf_len,
92 * @obuf - the buffer to be sent to the device; it can be NULL if the
99 const void *obuf, unsigned obuf_len)
101 return dln2_transfer(pdev, cmd, obuf, obuf_len, NULL, NULL);
98 dln2_transfer_tx(struct platform_device *pdev, u16 cmd, const void *obuf, unsigned obuf_len) argument
/linux-master/include/linux/
H A Dppp-comp.h51 unsigned char *obuf, int isize, int osize);
72 unsigned char *obuf, int osize);
/linux-master/drivers/misc/mei/
H A Dvsc-tp.h31 int vsc_tp_rom_xfer(struct vsc_tp *tp, const void *obuf, void *ibuf,
34 int vsc_tp_xfer(struct vsc_tp *tp, u8 cmd, const void *obuf, size_t olen,
H A Dvsc-tp.c144 static int vsc_tp_dev_xfer(struct vsc_tp *tp, void *obuf, void *ibuf, size_t len) argument
148 .tx_buf = obuf,
264 * @obuf: the tx buffer to be sent to the device
271 int vsc_tp_xfer(struct vsc_tp *tp, u8 cmd, const void *obuf, size_t olen, argument
278 if (!obuf || !ibuf || olen > VSC_TP_MAX_MSG_SIZE)
287 memcpy(pkt->buf, obuf, olen);
307 * @obuf: the data buffer to be sent to the device
312 int vsc_tp_rom_xfer(struct vsc_tp *tp, const void *obuf, void *ibuf, size_t len) argument
323 cpu_to_be32_array(tp->tx_buf, obuf, words);
/linux-master/drivers/crypto/ccp/
H A Dccp-debugfs.c16 #define OBUFP (obuf + oboff)
49 char *obuf; local
54 obuf = kmalloc(OBUFLEN, GFP_KERNEL);
55 if (!obuf)
88 ret = simple_read_from_buffer(ubuf, count, offp, obuf, oboff);
89 kfree(obuf);
112 char *obuf; local
127 obuf = kmalloc(OBUFLEN, GFP_KERNEL);
128 if (!obuf)
150 ret = simple_read_from_buffer(ubuf, count, offp, obuf, obof
198 char *obuf; local
[all...]
/linux-master/arch/um/drivers/
H A Dslip_common.h86 unsigned char obuf[ENC_BUF_SIZE]; member in struct:slip_proto
95 memset(slip->obuf, 0, sizeof(slip->obuf));
H A Dslip_common.c50 actual = slip_esc(buf, slip->obuf, len);
51 n = net_write(fd, slip->obuf, actual);
/linux-master/drivers/net/ppp/
H A Dppp_mppe.c337 mppe_compress(void *arg, unsigned char *ibuf, unsigned char *obuf, argument
364 obuf[0] = PPP_ADDRESS(ibuf);
365 obuf[1] = PPP_CONTROL(ibuf);
366 put_unaligned_be16(PPP_COMP, obuf + 2);
367 obuf += PPP_HDRLEN;
373 put_unaligned_be16(state->ccount, obuf);
385 obuf[0] |= state->bits;
388 obuf += MPPE_OVHD;
392 arc4_crypt(&state->arc4, obuf, ibuf, isize);
434 mppe_decompress(void *arg, unsigned char *ibuf, int isize, unsigned char *obuf, argument
[all...]
H A Dppp_deflate.c47 unsigned char *obuf,
51 int isize, unsigned char *obuf, int osize);
178 * @obuf: compressed packet (output)
180 * @osize: space available at @obuf
185 static int z_compress(void *arg, unsigned char *rptr, unsigned char *obuf, argument
204 wptr = obuf;
394 * @obuf: pointer to space for output (decompressed) packet
395 * @osize: amount of space available at @obuf
411 unsigned char *obuf, int osize)
439 obuf[
410 z_decompress(void *arg, unsigned char *ibuf, int isize, unsigned char *obuf, int osize) argument
[all...]
H A Dbsd_comp.c185 unsigned char *obuf, int isize, int osize);
189 unsigned char *obuf, int osize);
563 static int bsd_compress (void *state, unsigned char *rptr, unsigned char *obuf, argument
630 wptr = obuf;
828 unsigned char *obuf, int osize)
893 wptr = obuf;
827 bsd_decompress(void *state, unsigned char *ibuf, int isize, unsigned char *obuf, int osize) argument
/linux-master/drivers/media/usb/dvb-usb/
H A Ddw2102.c303 u8 ibuf[MAX_XFER_SIZE], obuf[3]; local
305 if (2 + msg[0].len != sizeof(obuf)) {
319 obuf[0] = msg[0].addr << 1;
320 obuf[1] = msg[0].len;
321 obuf[2] = msg[0].buf[0];
323 obuf, msg[0].len + 2, DW210X_WRITE_MSG);
335 u8 obuf[MAX_XFER_SIZE]; local
337 if (2 + msg[0].len > sizeof(obuf)) {
344 obuf[0] = msg[0].addr << 1;
345 obuf[
353 u8 obuf[MAX_XFER_SIZE]; local
377 u8 obuf[2]; local
415 u8 obuf[2]; local
449 u8 obuf[19]; local
466 u8 obuf[MAX_XFER_SIZE]; local
510 u8 ibuf[MAX_XFER_SIZE], obuf[3]; local
541 u8 obuf[MAX_XFER_SIZE]; local
603 u8 obuf[2]; local
616 u8 obuf[2]; local
649 u8 obuf[19]; local
667 u8 obuf[MAX_XFER_SIZE]; local
687 u8 obuf[MAX_XFER_SIZE]; local
875 u8 ibuf[] = { 0 }, obuf[] = { 0 }; local
953 u8 obuf[] = { 0x1f, 0xf0 }; local
1335 u8 obuf[] = {7, 1}; local
1359 u8 obuf[] = {7, 1}; local
1382 u8 obuf[] = {7, 1}; local
[all...]
H A Dttusb2.c371 static u8 obuf[60], ibuf[60]; local
384 if (3 + msg[i].len > sizeof(obuf)) {
400 obuf[0] = (msg[i].addr << 1) | (write_read | read);
402 obuf[1] = 0;
404 obuf[1] = msg[i].len;
408 obuf[2] = msg[i+1].len;
410 obuf[2] = msg[i].len;
412 obuf[2] = 0;
414 memcpy(&obuf[3], msg[i].buf, msg[i].len);
416 if (ttusb2_msg(d, CMD_I2C_XFER, obuf, obu
[all...]
H A Dvp7045.c83 u8 obuf[2] = { 0 },v; local
84 obuf[1] = reg;
86 vp7045_usb_op(d,TUNER_REG_READ,obuf,2,&v,1,30);
H A Dcxusb.c202 u8 obuf[3], ibuf[MAX_XFER_SIZE]; local
210 obuf[0] = 0;
211 obuf[1] = msg[i].len;
212 obuf[2] = msg[i].addr;
214 obuf, 3,
223 u8 obuf[MAX_XFER_SIZE], ibuf[MAX_XFER_SIZE]; local
225 if (3 + msg[i].len > sizeof(obuf)) {
237 obuf[0] = msg[i].len;
238 obuf[1] = msg[i + 1].len;
239 obuf[
255 u8 obuf[MAX_XFER_SIZE], ibuf; local
[all...]
/linux-master/drivers/media/usb/dvb-usb-v2/
H A Ddvbsky.c26 u8 obuf[DVBSKY_BUF_LEN]; member in struct:dvbsky_state
47 memcpy(state->obuf, wbuf, wlen);
49 ret = dvb_usbv2_generic_rw_locked(d, state->obuf, wlen,
67 memcpy(state->obuf, obuf_pre, 3);
68 ret = dvb_usbv2_generic_write_locked(d, state->obuf, 3);
71 memcpy(state->obuf, obuf_post, 3);
72 ret = dvb_usbv2_generic_write_locked(d, state->obuf, 3);
89 u8 obuf[3], ibuf[2]; local
91 obuf[0] = 0x0e;
92 obuf[
104 u8 ibuf[64], obuf[64]; local
182 u8 obuf[2], ibuf[2], toggle; local
235 u8 obuf[] = { 0x1e, 0x00 }; local
[all...]
/linux-master/include/linux/usb/
H A Dljca.h118 * @obuf: the buffer to be sent to the device; it can be NULL if the user
121 * be 0 when obuf is NULL
128 int ljca_transfer(struct ljca_client *client, u8 cmd, const u8 *obuf,
136 * @obuf: the buffer to be sent to the device; it can be NULL if the user
142 int ljca_transfer_noack(struct ljca_client *client, u8 cmd, const u8 *obuf,
/linux-master/arch/mips/boot/
H A Delf2ecoff.c570 char obuf[1024]; local
580 memset(obuf, 0, sizeof obuf);
583 write(outfile, obuf,
585 sizeof obuf ? sizeof
586 obuf : gap));
610 char obuf[4096]; local
611 memset(obuf, 0, sizeof obuf);
612 if (write(outfile, obuf, sizeo
[all...]
/linux-master/drivers/infiniband/core/
H A Duverbs.h57 void __user *obuf,
61 udata->outbuf = obuf;
69 void __user *obuf,
73 ilen ? ibuf : NULL, olen ? obuf : NULL,
55 ib_uverbs_init_udata(struct ib_udata *udata, const void __user *ibuf, void __user *obuf, size_t ilen, size_t olen) argument
67 ib_uverbs_init_udata_buf_or_null(struct ib_udata *udata, const void __user *ibuf, void __user *obuf, size_t ilen, size_t olen) argument
/linux-master/drivers/media/usb/au0828/
H A Dau0828-input.c62 char obuf[3]; local
64 .buf = obuf, .len = 2 },
68 obuf[0] = 0x40 | reg >> 8;
69 obuf[1] = reg & 0xff;
71 obuf[2] = val;
/linux-master/drivers/media/usb/gspca/
H A Dkinect.c51 uint8_t obuf[0x400]; /* output buffer for control commands */ member in struct:sd
126 uint8_t *obuf = sd->obuf; local
128 struct cam_hdr *chdr = (void *)obuf;
142 memcpy(obuf+sizeof(*chdr), cmdbuf, cmd_len);
144 res = kinect_write(udev, obuf, cmd_len + sizeof(*chdr));
/linux-master/drivers/i2c/busses/
H A Di2c-ljca.c59 u8 obuf[LJCA_I2C_BUF_SIZE]; member in struct:ljca_i2c_dev
66 (struct ljca_i2c_rw_packet *)ljca_i2c->obuf;
83 (struct ljca_i2c_rw_packet *)ljca_i2c->obuf;
113 (struct ljca_i2c_rw_packet *)ljca_i2c->obuf;
143 (struct ljca_i2c_rw_packet *)ljca_i2c->obuf;
189 (struct ljca_i2c_rw_packet *)ljca_i2c->obuf;
/linux-master/drivers/media/tuners/
H A Dtuner-i2c.h45 unsigned char *obuf, int olen,
49 .buf = obuf, .len = olen },
44 tuner_i2c_xfer_send_recv(struct tuner_i2c_props *props, unsigned char *obuf, int olen, unsigned char *ibuf, int ilen) argument
/linux-master/fs/
H A Dsplice.c1743 struct pipe_buffer *ibuf, *obuf; local
1814 obuf = &opipe->bufs[o_head & o_mask];
1820 *obuf = *ibuf;
1825 o_len = obuf->len;
1838 *obuf = *ibuf;
1844 obuf->flags &= ~PIPE_BUF_FLAG_GIFT;
1845 obuf->flags &= ~PIPE_BUF_FLAG_CAN_MERGE;
1847 obuf->len = len;
1880 struct pipe_buffer *ibuf, *obuf; local
1918 obuf
[all...]
/linux-master/drivers/mfd/
H A Ddln2.c302 static void *dln2_prep_buf(u16 handle, u16 cmd, u16 echo, const void *obuf, argument
320 memcpy(buf + sizeof(*hdr), obuf, *obuf_len);
328 const void *obuf, int obuf_len)
335 buf = dln2_prep_buf(handle, cmd, echo, obuf, &len, GFP_KERNEL);
427 const void *obuf, unsigned obuf_len,
455 ret = dln2_send_wait(dln2, handle, cmd, rx_slot, obuf, obuf_len);
514 const void *obuf, unsigned obuf_len,
525 return _dln2_transfer(dln2, handle, cmd, obuf, obuf_len, ibuf,
327 dln2_send_wait(struct dln2_dev *dln2, u16 handle, u16 cmd, u16 echo, const void *obuf, int obuf_len) argument
426 _dln2_transfer(struct dln2_dev *dln2, u16 handle, u16 cmd, const void *obuf, unsigned obuf_len, void *ibuf, unsigned *ibuf_len) argument
513 dln2_transfer(struct platform_device *pdev, u16 cmd, const void *obuf, unsigned obuf_len, void *ibuf, unsigned *ibuf_len) argument
/linux-master/drivers/spi/
H A Dspi-ljca.c76 u8 obuf[LJCA_SPI_BUF_SIZE]; member in struct:ljca_spi_dev
85 (struct ljca_spi_xfer_packet *)ljca_spi->obuf;

Completed in 224 milliseconds

12