Home
last modified time | relevance | path

Searched refs:obuf (Results 1 – 43 of 43) sorted by relevance

/linux-4.1.27/drivers/media/usb/dvb-usb/
Ddw2102.c307 u8 ibuf[MAX_XFER_SIZE], obuf[3]; in dw2102_earda_i2c_transfer() local
316 obuf[0] = msg[0].addr << 1; in dw2102_earda_i2c_transfer()
317 obuf[1] = msg[0].len; in dw2102_earda_i2c_transfer()
318 obuf[2] = msg[0].buf[0]; in dw2102_earda_i2c_transfer()
320 obuf, msg[0].len + 2, DW210X_WRITE_MSG); in dw2102_earda_i2c_transfer()
332 u8 obuf[MAX_XFER_SIZE]; in dw2102_earda_i2c_transfer() local
334 if (2 + msg[0].len > sizeof(obuf)) { in dw2102_earda_i2c_transfer()
341 obuf[0] = msg[0].addr << 1; in dw2102_earda_i2c_transfer()
342 obuf[1] = msg[0].len; in dw2102_earda_i2c_transfer()
343 memcpy(obuf + 2, msg[0].buf, msg[0].len); in dw2102_earda_i2c_transfer()
[all …]
Daf9005.c61 u8 obuf[16] = { 0 }; in af9005_generic_read_write() local
76 obuf[0] = 14; /* rest of buffer length low */ in af9005_generic_read_write()
77 obuf[1] = 0; /* rest of buffer length high */ in af9005_generic_read_write()
79 obuf[2] = AF9005_REGISTER_RW; /* register operation */ in af9005_generic_read_write()
80 obuf[3] = 12; /* rest of buffer length */ in af9005_generic_read_write()
82 obuf[4] = st->sequence++; /* sequence number */ in af9005_generic_read_write()
84 obuf[5] = (u8) (reg >> 8); /* register address */ in af9005_generic_read_write()
85 obuf[6] = (u8) (reg & 0xff); in af9005_generic_read_write()
99 obuf[8 + i] = values[i]; in af9005_generic_read_write()
102 obuf[8] = values[0]; in af9005_generic_read_write()
[all …]
Dttusb2.c371 static u8 obuf[60], ibuf[60]; in ttusb2_i2c_xfer() local
384 obuf[0] = (msg[i].addr << 1) | (write_read | read); in ttusb2_i2c_xfer()
386 obuf[1] = 0; in ttusb2_i2c_xfer()
388 obuf[1] = msg[i].len; in ttusb2_i2c_xfer()
392 obuf[2] = msg[i+1].len; in ttusb2_i2c_xfer()
394 obuf[2] = msg[i].len; in ttusb2_i2c_xfer()
396 obuf[2] = 0; in ttusb2_i2c_xfer()
398 memcpy(&obuf[3], msg[i].buf, msg[i].len); in ttusb2_i2c_xfer()
400 if (ttusb2_msg(d, CMD_I2C_XFER, obuf, obuf[1]+3, ibuf, obuf[2] + 3) < 0) { in ttusb2_i2c_xfer()
Dcxusb.c174 u8 obuf[3], ibuf[MAX_XFER_SIZE]; in cxusb_i2c_xfer() local
182 obuf[0] = 0; in cxusb_i2c_xfer()
183 obuf[1] = msg[i].len; in cxusb_i2c_xfer()
184 obuf[2] = msg[i].addr; in cxusb_i2c_xfer()
186 obuf, 3, in cxusb_i2c_xfer()
195 u8 obuf[MAX_XFER_SIZE], ibuf[MAX_XFER_SIZE]; in cxusb_i2c_xfer() local
197 if (3 + msg[i].len > sizeof(obuf)) { in cxusb_i2c_xfer()
209 obuf[0] = msg[i].len; in cxusb_i2c_xfer()
210 obuf[1] = msg[i+1].len; in cxusb_i2c_xfer()
211 obuf[2] = msg[i].addr; in cxusb_i2c_xfer()
[all …]
Dvp7045.c86 u8 obuf[2] = { 0 },v; in vp7045_read_reg() local
87 obuf[1] = reg; in vp7045_read_reg()
89 vp7045_usb_op(d,TUNER_REG_READ,obuf,2,&v,1,30); in vp7045_read_reg()
/linux-4.1.27/sound/oss/
Dvidc.h20 unsigned long obuf, int mask);
22 unsigned long obuf, int mask);
24 unsigned long obuf, int mask);
26 unsigned long obuf, int mask);
28 unsigned long obuf, int mask);
30 unsigned long obuf, int mask);
43 unsigned long obuf, int mask);
Dmidi_synth.c34 unsigned char obuf[8]; \
36 seq_input_event(obuf, len); \
39 #define _seqbuf obuf
Dmpu401.c166 unsigned char obuf[8]; \
168 seq_input_event(obuf, len); \
171 #define _seqbuf obuf
/linux-4.1.27/drivers/net/ppp/
Dppp_mppe.c367 mppe_compress(void *arg, unsigned char *ibuf, unsigned char *obuf, in mppe_compress() argument
396 obuf[0] = PPP_ADDRESS(ibuf); in mppe_compress()
397 obuf[1] = PPP_CONTROL(ibuf); in mppe_compress()
398 put_unaligned_be16(PPP_COMP, obuf + 2); in mppe_compress()
399 obuf += PPP_HDRLEN; in mppe_compress()
405 put_unaligned_be16(state->ccount, obuf); in mppe_compress()
417 obuf[0] |= state->bits; in mppe_compress()
420 obuf += MPPE_OVHD; in mppe_compress()
428 setup_sg(sg_out, obuf, osize); in mppe_compress()
474 mppe_decompress(void *arg, unsigned char *ibuf, int isize, unsigned char *obuf, in mppe_decompress() argument
[all …]
Dppp_deflate.c50 unsigned char *obuf,
54 int isize, unsigned char *obuf, int osize);
188 static int z_compress(void *arg, unsigned char *rptr, unsigned char *obuf, in z_compress() argument
207 wptr = obuf; in z_compress()
415 unsigned char *obuf, int osize) in z_decompress() argument
443 obuf[0] = PPP_ADDRESS(ibuf); in z_decompress()
444 obuf[1] = PPP_CONTROL(ibuf); in z_decompress()
445 obuf[2] = 0; in z_decompress()
454 state->strm.next_out = obuf + 3; in z_decompress()
474 if ((obuf[3] & 1) == 0) { in z_decompress()
[all …]
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, in bsd_compress() argument
630 wptr = obuf; in bsd_compress()
828 unsigned char *obuf, int osize) in bsd_decompress() argument
893 wptr = obuf; in bsd_decompress()
Dppp_async.c75 unsigned char obuf[OBUFSIZE]; member
181 ap->optr = ap->obuf; in ppp_asynctty_open()
182 ap->olim = ap->obuf; in ppp_asynctty_open()
540 buf = ap->obuf; in ppp_async_encode()
586 buflim = ap->obuf + OBUFSIZE - 6; in ppp_async_encode()
/linux-4.1.27/drivers/media/usb/dvb-usb-v2/
Ddvbsky.c40 u8 obuf[DVBSKY_BUF_LEN]; member
61 memcpy(state->obuf, wbuf, wlen); in dvbsky_usb_generic_rw()
63 ret = dvb_usbv2_generic_rw_locked(d, state->obuf, wlen, in dvbsky_usb_generic_rw()
101 u8 obuf[3], ibuf[2]; in dvbsky_gpio_ctrl() local
103 obuf[0] = 0x0e; in dvbsky_gpio_ctrl()
104 obuf[1] = gport; in dvbsky_gpio_ctrl()
105 obuf[2] = value; in dvbsky_gpio_ctrl()
106 ret = dvbsky_usb_generic_rw(d, obuf, 3, ibuf, 1); in dvbsky_gpio_ctrl()
118 u8 ibuf[64], obuf[64]; in dvbsky_i2c_xfer() local
140 obuf[0] = 0x09; in dvbsky_i2c_xfer()
[all …]
Dlmedm04.c478 static u8 obuf[64], ibuf[64]; in lme2510_i2c_xfer() local
496 obuf[0] = gate | (read << 7); in lme2510_i2c_xfer()
499 obuf[1] = (read) ? 2 : msg[i].len + 1; in lme2510_i2c_xfer()
501 obuf[1] = msg[i].len + read + 1; in lme2510_i2c_xfer()
503 obuf[2] = msg[i].addr << 1; in lme2510_i2c_xfer()
509 memcpy(&obuf[3], msg[i].buf, msg[i].len); in lme2510_i2c_xfer()
510 obuf[msg[i].len+3] = msg[i+1].len; in lme2510_i2c_xfer()
514 memcpy(&obuf[3], msg[i].buf, msg[i].len); in lme2510_i2c_xfer()
518 if (lme2510_msg(d, obuf, len, ibuf, 64) < 0) { in lme2510_i2c_xfer()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/core/
Dprintk.c63 char obuf[64], *ofmt = ""; in nv_printk_() local
78 snprintf(obuf, sizeof(obuf), "[0x%08x]", in nv_printk_()
80 ofmt = obuf; in nv_printk_()
/linux-4.1.27/include/linux/mfd/
Ddln2.h64 const void *obuf, unsigned obuf_len,
98 const void *obuf, unsigned obuf_len) in dln2_transfer_tx() argument
100 return dln2_transfer(pdev, cmd, obuf, obuf_len, NULL, NULL); in dln2_transfer_tx()
/linux-4.1.27/drivers/usb/misc/
Drio500.c68 char *obuf, *ibuf; /* transfer buffers */ member
299 char *obuf = rio->obuf; in write_rio() local
303 if (copy_from_user(rio->obuf, buffer, copy_size)) { in write_rio()
320 obuf, thistime, &partial, 5000); in write_rio()
336 obuf += partial; in write_rio()
480 if (!(rio->obuf = kmalloc(OBUF_SIZE, GFP_KERNEL))) { in probe_rio()
486 dev_dbg(&intf->dev, "obuf address:%p\n", rio->obuf); in probe_rio()
492 kfree(rio->obuf); in probe_rio()
524 kfree(rio->obuf); in disconnect_rio()
/linux-4.1.27/arch/um/drivers/
Dslip_common.h85 unsigned char obuf[ENC_BUF_SIZE]; member
94 memset(slip->obuf, 0, sizeof(slip->obuf)); in slip_proto_init()
Dslip_common.c49 actual = slip_esc(buf, slip->obuf, len); in slip_proto_write()
50 n = net_write(fd, slip->obuf, actual); in slip_proto_write()
/linux-4.1.27/arch/mips/boot/
Delf2ecoff.c569 char obuf[1024]; in main() local
579 memset(obuf, 0, sizeof obuf); in main()
582 write(outfile, obuf, in main()
584 sizeof obuf ? sizeof in main()
585 obuf : gap)); in main()
609 char obuf[4096]; in main() local
610 memset(obuf, 0, sizeof obuf); in main()
611 if (write(outfile, obuf, sizeof(obuf)) != sizeof(obuf)) { in main()
/linux-4.1.27/drivers/infiniband/core/
Duverbs.h50 #define INIT_UDATA(udata, ibuf, obuf, ilen, olen) \ argument
53 (udata)->outbuf = (void __user *) (obuf); \
58 #define INIT_UDATA_BUF_OR_NULL(udata, ibuf, obuf, ilen, olen) \ argument
61 (udata)->outbuf = (olen) ? (void __user *) (obuf) : NULL; \
/linux-4.1.27/drivers/media/usb/gspca/
Dkinect.c64 uint8_t obuf[0x400]; /* output buffer for control commands */ member
139 uint8_t *obuf = sd->obuf; in send_cmd() local
141 struct cam_hdr *chdr = (void *)obuf; in send_cmd()
155 memcpy(obuf+sizeof(*chdr), cmdbuf, cmd_len); in send_cmd()
157 res = kinect_write(udev, obuf, cmd_len + sizeof(*chdr)); in send_cmd()
/linux-4.1.27/include/linux/
Dppp-comp.h54 unsigned char *obuf, int isize, int osize);
75 unsigned char *obuf, int osize);
/linux-4.1.27/drivers/media/usb/au0828/
Dau0828-input.c73 char obuf[3]; in au8522_rc_read() local
75 .buf = obuf, .len = 2 }, in au8522_rc_read()
79 obuf[0] = 0x40 | reg >> 8; in au8522_rc_read()
80 obuf[1] = reg & 0xff; in au8522_rc_read()
82 obuf[2] = val; in au8522_rc_read()
/linux-4.1.27/fs/
Dsplice.c1794 struct pipe_buffer *ibuf, *obuf; in splice_pipe_to_pipe() local
1852 obuf = opipe->bufs + nbuf; in splice_pipe_to_pipe()
1858 *obuf = *ibuf; in splice_pipe_to_pipe()
1870 *obuf = *ibuf; in splice_pipe_to_pipe()
1876 obuf->flags &= ~PIPE_BUF_FLAG_GIFT; in splice_pipe_to_pipe()
1878 obuf->len = len; in splice_pipe_to_pipe()
1880 ibuf->offset += obuf->len; in splice_pipe_to_pipe()
1881 ibuf->len -= obuf->len; in splice_pipe_to_pipe()
1883 ret += obuf->len; in splice_pipe_to_pipe()
1884 len -= obuf->len; in splice_pipe_to_pipe()
[all …]
/linux-4.1.27/drivers/mfd/
Ddln2.c305 static void *dln2_prep_buf(u16 handle, u16 cmd, u16 echo, const void *obuf, in dln2_prep_buf() argument
323 memcpy(buf + sizeof(*hdr), obuf, *obuf_len); in dln2_prep_buf()
331 const void *obuf, int obuf_len) in dln2_send_wait() argument
338 buf = dln2_prep_buf(handle, cmd, echo, obuf, &len, GFP_KERNEL); in dln2_send_wait()
430 const void *obuf, unsigned obuf_len, in _dln2_transfer() argument
458 ret = dln2_send_wait(dln2, handle, cmd, rx_slot, obuf, obuf_len); in _dln2_transfer()
517 const void *obuf, unsigned obuf_len, in dln2_transfer() argument
528 return _dln2_transfer(dln2, handle, cmd, obuf, obuf_len, ibuf, in dln2_transfer()
/linux-4.1.27/net/ceph/
Dauth_x.c48 void *ibuf, int ilen, void *obuf, size_t olen) in ceph_x_encrypt() argument
57 ret = ceph_encrypt2(secret, obuf + sizeof(u32), &len, in ceph_x_encrypt()
61 ceph_encode_32(&obuf, len); in ceph_x_encrypt()
66 void **p, void *end, void **obuf, size_t olen) in ceph_x_decrypt() argument
77 if (*obuf == NULL) { in ceph_x_decrypt()
78 *obuf = kmalloc(len, GFP_NOFS); in ceph_x_decrypt()
79 if (!*obuf) in ceph_x_decrypt()
84 ret = ceph_decrypt2(secret, &head, &head_len, *obuf, &olen, *p, len); in ceph_x_decrypt()
/linux-4.1.27/drivers/media/tuners/
Dtuner-i2c.h55 char *obuf, int olen, in tuner_i2c_xfer_send_recv() argument
59 .buf = obuf, .len = olen }, in tuner_i2c_xfer_send_recv()
Dtuner-xc2028.c137 #define i2c_send_recv(priv, obuf, osize, ibuf, isize) ({ \ argument
139 _rc = tuner_i2c_xfer_send_recv(&priv->i2c_props, obuf, osize, \
/linux-4.1.27/drivers/net/can/usb/peak_usb/
Dpcan_usb.c730 u8 *obuf, size_t *size) in pcan_usb_encode_msg() argument
737 obuf[0] = 2; in pcan_usb_encode_msg()
738 obuf[1] = 1; in pcan_usb_encode_msg()
740 pc = obuf + PCAN_USB_MSG_HEADER_LEN; in pcan_usb_encode_msg()
767 obuf[(*size)-1] = (u8)(stats->tx_packets & 0xff); in pcan_usb_encode_msg()
Dpcan_usb_core.h70 u8 *obuf, size_t *size);
Dpcan_usb_core.c312 u8 *obuf; in peak_usb_ndo_start_xmit() local
331 obuf = urb->transfer_buffer; in peak_usb_ndo_start_xmit()
333 err = dev->adapter->dev_encode_msg(dev, skb, obuf, &size); in peak_usb_ndo_start_xmit()
Dpcan_usb_fd.c721 struct sk_buff *skb, u8 *obuf, size_t *size) in pcan_usb_fd_encode_msg() argument
723 struct pucan_tx_msg *tx_msg = (struct pucan_tx_msg *)obuf; in pcan_usb_fd_encode_msg()
765 tx_msg = (struct pucan_tx_msg *)(obuf + tx_msg_size); in pcan_usb_fd_encode_msg()
Dpcan_usb_pro.c771 struct sk_buff *skb, u8 *obuf, size_t *size) in pcan_usb_pro_encode_msg() argument
777 pcan_msg_init_empty(&usb_msg, obuf, *size); in pcan_usb_pro_encode_msg()
/linux-4.1.27/drivers/ata/
Dpdc_adma.c378 static char obuf[2048]; in adma_qc_prep()
380 len += sprintf(obuf+len, "%02x ", buf[j]); in adma_qc_prep()
382 printk("%s\n", obuf); in adma_qc_prep()
387 printk("%s\n", obuf); in adma_qc_prep()
/linux-4.1.27/drivers/media/pci/ttpci/
Dav7110_av.c780 u8 obuf[TS_SIZE]; in p_to_t() local
806 memset(obuf, 0, TS_SIZE); in p_to_t()
809 obuf, (TS_SIZE - 4)); in p_to_t()
810 memcpy(obuf + l, buf + c, TS_SIZE - l); in p_to_t()
814 obuf, length - c); in p_to_t()
815 memcpy(obuf + l, buf + c, TS_SIZE - l); in p_to_t()
818 feed->cb.ts(obuf, 188, NULL, 0, &feed->feed.ts, DMX_OK); in p_to_t()
/linux-4.1.27/fs/fuse/
Ddev.c2017 struct pipe_buffer *obuf; in fuse_dev_splice_write() local
2022 obuf = &bufs[nbuf]; in fuse_dev_splice_write()
2025 *obuf = *ibuf; in fuse_dev_splice_write()
2031 *obuf = *ibuf; in fuse_dev_splice_write()
2032 obuf->flags &= ~PIPE_BUF_FLAG_GIFT; in fuse_dev_splice_write()
2033 obuf->len = rem; in fuse_dev_splice_write()
2034 ibuf->offset += obuf->len; in fuse_dev_splice_write()
2035 ibuf->len -= obuf->len; in fuse_dev_splice_write()
2038 rem -= obuf->len; in fuse_dev_splice_write()
/linux-4.1.27/drivers/usb/misc/sisusbvga/
Dsisusb.h124 char *obuf[NUMOBUFS], *ibuf; /* transfer buffers */ member
Dsisusb.c80 if (sisusb->obuf[i]) { in sisusb_free_buffers()
81 kfree(sisusb->obuf[i]); in sisusb_free_buffers()
82 sisusb->obuf[i] = NULL; in sisusb_free_buffers()
386 buffer = sisusb->obuf[index]; in sisusb_send_bulk_msg()
799 kernbuffer = sisusb->obuf[index]; in sisusb_write_mem_bulk()
1422 memset(sisusb->obuf[i], 0, sisusb->obufsize); in sisusb_clear_vram()
3122 if (!(sisusb->obuf[i] = kmalloc(SISUSB_OBUF_SIZE, GFP_KERNEL))) { in sisusb_probe()
/linux-4.1.27/drivers/input/touchscreen/
Datmel_mxt_ts.c2129 u8 *obuf; in mxt_object_show() local
2132 obuf = kmalloc(256, GFP_KERNEL); in mxt_object_show()
2133 if (!obuf) in mxt_object_show()
2150 error = __mxt_read_reg(data->client, addr, size, obuf); in mxt_object_show()
2154 count = mxt_show_instance(buf, count, object, j, obuf); in mxt_object_show()
2159 kfree(obuf); in mxt_object_show()
/linux-4.1.27/drivers/media/dvb-frontends/
Dbcm3510.c205 static int bcm3510_do_hab_cmd(struct bcm3510_state *st, u8 cmd, u8 msgid, u8 *obuf, u8 olen, u8 *ib… in bcm3510_do_hab_cmd() argument
222 memcpy(&ob[2],obuf,olen); in bcm3510_do_hab_cmd()
/linux-4.1.27/drivers/tty/serial/cpm_uart/
Dcpm_uart_core.c1062 static int poll_wait_key(char *obuf, struct uart_cpm_port *pinfo) in poll_wait_key() argument
1079 if (obuf) { in poll_wait_key()
1082 *obuf++ = *cp++; in poll_wait_key()
/linux-4.1.27/drivers/scsi/bfa/
Dbfa_ioc.c5311 bfa_phy_ntoh32(u32 *obuf, u32 *ibuf, int sz) in bfa_phy_ntoh32() argument
5316 obuf[i] = be32_to_cpu(ibuf[i]); in bfa_phy_ntoh32()