Home
last modified time | relevance | path

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

12

/drivers/media/usb/dvb-usb/
Ddw2102.c306 u8 ibuf[MAX_XFER_SIZE], obuf[3]; in dw2102_earda_i2c_transfer() local
315 obuf[0] = msg[0].addr << 1; in dw2102_earda_i2c_transfer()
316 obuf[1] = msg[0].len; in dw2102_earda_i2c_transfer()
317 obuf[2] = msg[0].buf[0]; in dw2102_earda_i2c_transfer()
319 obuf, msg[0].len + 2, DW210X_WRITE_MSG); in dw2102_earda_i2c_transfer()
331 u8 obuf[MAX_XFER_SIZE]; in dw2102_earda_i2c_transfer() local
333 if (2 + msg[0].len > sizeof(obuf)) { in dw2102_earda_i2c_transfer()
340 obuf[0] = msg[0].addr << 1; in dw2102_earda_i2c_transfer()
341 obuf[1] = msg[0].len; in dw2102_earda_i2c_transfer()
342 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.c374 static u8 obuf[60], ibuf[60]; in ttusb2_i2c_xfer() local
387 if (3 + msg[i].len > sizeof(obuf)) { in ttusb2_i2c_xfer()
403 obuf[0] = (msg[i].addr << 1) | (write_read | read); in ttusb2_i2c_xfer()
405 obuf[1] = 0; in ttusb2_i2c_xfer()
407 obuf[1] = msg[i].len; in ttusb2_i2c_xfer()
411 obuf[2] = msg[i+1].len; in ttusb2_i2c_xfer()
413 obuf[2] = msg[i].len; in ttusb2_i2c_xfer()
415 obuf[2] = 0; in ttusb2_i2c_xfer()
417 memcpy(&obuf[3], msg[i].buf, msg[i].len); in ttusb2_i2c_xfer()
419 if (ttusb2_msg(d, CMD_I2C_XFER, obuf, obuf[1]+3, ibuf, obuf[2] + 3) < 0) { in ttusb2_i2c_xfer()
Dcxusb.c191 u8 obuf[3], ibuf[MAX_XFER_SIZE]; in cxusb_i2c_xfer() local
199 obuf[0] = 0; in cxusb_i2c_xfer()
200 obuf[1] = msg[i].len; in cxusb_i2c_xfer()
201 obuf[2] = msg[i].addr; in cxusb_i2c_xfer()
203 obuf, 3, in cxusb_i2c_xfer()
212 u8 obuf[MAX_XFER_SIZE], ibuf[MAX_XFER_SIZE]; in cxusb_i2c_xfer() local
214 if (3 + msg[i].len > sizeof(obuf)) { in cxusb_i2c_xfer()
226 obuf[0] = msg[i].len; in cxusb_i2c_xfer()
227 obuf[1] = msg[i+1].len; in cxusb_i2c_xfer()
228 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()
/drivers/media/usb/dvb-usb-v2/
Ddvbsky.c33 u8 obuf[DVBSKY_BUF_LEN]; member
52 memcpy(state->obuf, wbuf, wlen); in dvbsky_usb_generic_rw()
54 ret = dvb_usbv2_generic_rw_locked(d, state->obuf, wlen, in dvbsky_usb_generic_rw()
92 u8 obuf[3], ibuf[2]; in dvbsky_gpio_ctrl() local
94 obuf[0] = 0x0e; in dvbsky_gpio_ctrl()
95 obuf[1] = gport; in dvbsky_gpio_ctrl()
96 obuf[2] = value; in dvbsky_gpio_ctrl()
97 ret = dvbsky_usb_generic_rw(d, obuf, 3, ibuf, 1); in dvbsky_gpio_ctrl()
110 u8 ibuf[64], obuf[64]; in dvbsky_i2c_xfer() local
132 obuf[0] = 0x09; in dvbsky_i2c_xfer()
[all …]
Dlmedm04.c629 static u8 obuf[64], ibuf[64]; in lme2510_i2c_xfer() local
647 obuf[0] = gate | (read << 7); in lme2510_i2c_xfer()
650 obuf[1] = (read) ? 2 : msg[i].len + 1; in lme2510_i2c_xfer()
652 obuf[1] = msg[i].len + read + 1; in lme2510_i2c_xfer()
654 obuf[2] = msg[i].addr << 1; in lme2510_i2c_xfer()
660 memcpy(&obuf[3], msg[i].buf, msg[i].len); in lme2510_i2c_xfer()
661 obuf[msg[i].len+3] = msg[i+1].len; in lme2510_i2c_xfer()
665 memcpy(&obuf[3], msg[i].buf, msg[i].len); in lme2510_i2c_xfer()
669 if (lme2510_msg(d, obuf, len, ibuf, 64) < 0) { in lme2510_i2c_xfer()
/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()
/drivers/gpu/drm/nouveau/core/core/
Dprintk.c65 char obuf[64], *ofmt = ""; in nv_printk_() local
68 snprintf(obuf, sizeof(obuf), "[0x%08x][%p]", in nv_printk_()
70 ofmt = obuf; in nv_printk_()
/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()
/drivers/tty/serial/
Dmrst_max3110.c118 u16 *obuf, *ibuf; in max3110_out() local
125 obuf = buf; in max3110_out()
127 *obuf = out; in max3110_out()
128 ret = max3110_write_then_read(max, obuf, ibuf, 2, 1); in max3110_out()
151 u16 *obuf, *ibuf; in max3110_read_multi() local
162 obuf = buf; in max3110_read_multi()
165 if (max3110_write_then_read(max, obuf, ibuf, blen, 1)) { in max3110_read_multi()
271 u16 *obuf, *ibuf; in send_circ_buf() local
279 obuf = buf; in send_circ_buf()
290 obuf[i] = (u8)xmit->buf[xmit->tail] | WD_TAG; in send_circ_buf()
[all …]
/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()
/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; \
/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()
/drivers/net/can/usb/peak_usb/
Dpcan_usb.c729 u8 *obuf, size_t *size) in pcan_usb_encode_msg() argument
736 obuf[0] = 2; in pcan_usb_encode_msg()
737 obuf[1] = 1; in pcan_usb_encode_msg()
739 pc = obuf + PCAN_USB_MSG_HEADER_LEN; in pcan_usb_encode_msg()
766 obuf[(*size)-1] = (u8)(stats->tx_packets & 0xff); in pcan_usb_encode_msg()
Dpcan_usb_core.h64 u8 *obuf, size_t *size);
Dpcan_usb_core.c294 u8 *obuf; in peak_usb_ndo_start_xmit() local
313 obuf = urb->transfer_buffer; in peak_usb_ndo_start_xmit()
315 err = dev->adapter->dev_encode_msg(dev, skb, obuf, &size); in peak_usb_ndo_start_xmit()
/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()
/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()
/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()
/drivers/input/touchscreen/
Datmel_mxt_ts.c1876 u8 *obuf; in mxt_object_show() local
1879 obuf = kmalloc(256, GFP_KERNEL); in mxt_object_show()
1880 if (!obuf) in mxt_object_show()
1897 error = __mxt_read_reg(data->client, addr, size, obuf); in mxt_object_show()
1901 count = mxt_show_instance(buf, count, object, j, obuf); in mxt_object_show()
1906 kfree(obuf); in mxt_object_show()
/drivers/usb/misc/sisusbvga/
Dsisusb.h124 char *obuf[NUMOBUFS], *ibuf; /* transfer buffers */ member

12