Home
last modified time | relevance | path

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

/drivers/media/dvb/dvb-usb/
Ddw2102.c222 u8 ibuf [msg[1].len + 2], obuf[3]; in dw2102_earda_i2c_transfer() local
223 obuf[0] = 0xd0; in dw2102_earda_i2c_transfer()
224 obuf[1] = msg[0].len; in dw2102_earda_i2c_transfer()
225 obuf[2] = msg[0].buf[0]; in dw2102_earda_i2c_transfer()
227 obuf, msg[0].len + 2, DW210X_WRITE_MSG); in dw2102_earda_i2c_transfer()
239 u8 obuf[msg[0].len + 2]; in dw2102_earda_i2c_transfer() local
240 obuf[0] = 0xd0; in dw2102_earda_i2c_transfer()
241 obuf[1] = msg[0].len; in dw2102_earda_i2c_transfer()
242 memcpy(obuf + 2, msg[0].buf, msg[0].len); in dw2102_earda_i2c_transfer()
244 obuf, msg[0].len + 2, DW210X_WRITE_MSG); in dw2102_earda_i2c_transfer()
[all …]
Daf9005.c105 u8 obuf[16] = { 0 }; in af9005_generic_read_write() local
120 obuf[0] = 14; /* rest of buffer length low */ in af9005_generic_read_write()
121 obuf[1] = 0; /* rest of buffer length high */ in af9005_generic_read_write()
123 obuf[2] = AF9005_REGISTER_RW; /* register operation */ in af9005_generic_read_write()
124 obuf[3] = 12; /* rest of buffer length */ in af9005_generic_read_write()
126 obuf[4] = st->sequence++; /* sequence number */ in af9005_generic_read_write()
128 obuf[5] = (u8) (reg >> 8); /* register address */ in af9005_generic_read_write()
129 obuf[6] = (u8) (reg & 0xff); in af9005_generic_read_write()
143 obuf[8 + i] = values[i]; in af9005_generic_read_write()
146 obuf[8] = values[0]; in af9005_generic_read_write()
[all …]
Dttusb2.c81 static u8 obuf[60], ibuf[60]; in ttusb2_i2c_xfer() local
93 obuf[0] = (msg[i].addr << 1) | read; in ttusb2_i2c_xfer()
94 obuf[1] = msg[i].len; in ttusb2_i2c_xfer()
98 obuf[2] = msg[i+1].len; in ttusb2_i2c_xfer()
100 obuf[2] = 0; in ttusb2_i2c_xfer()
102 memcpy(&obuf[3],msg[i].buf,msg[i].len); in ttusb2_i2c_xfer()
104 if (ttusb2_msg(d, CMD_I2C_XFER, obuf, msg[i].len+3, ibuf, obuf[2] + 3) < 0) { in ttusb2_i2c_xfer()
Dcxusb.c158 u8 obuf[3], ibuf[1+msg[i].len]; in cxusb_i2c_xfer() local
159 obuf[0] = 0; in cxusb_i2c_xfer()
160 obuf[1] = msg[i].len; in cxusb_i2c_xfer()
161 obuf[2] = msg[i].addr; in cxusb_i2c_xfer()
163 obuf, 3, in cxusb_i2c_xfer()
172 u8 obuf[3+msg[i].len], ibuf[1+msg[i+1].len]; in cxusb_i2c_xfer() local
173 obuf[0] = msg[i].len; in cxusb_i2c_xfer()
174 obuf[1] = msg[i+1].len; in cxusb_i2c_xfer()
175 obuf[2] = msg[i].addr; in cxusb_i2c_xfer()
176 memcpy(&obuf[3], msg[i].buf, msg[i].len); in cxusb_i2c_xfer()
[all …]
Dvp7045.c84 u8 obuf[2] = { 0 },v; in vp7045_read_reg() local
85 obuf[1] = reg; in vp7045_read_reg()
87 vp7045_usb_op(d,TUNER_REG_READ,obuf,2,&v,1,30); in vp7045_read_reg()
/drivers/net/
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 obuf[2] = PPP_COMP >> 8; /* isize + MPPE_OVHD + 1 */ in mppe_compress()
399 obuf[3] = PPP_COMP; /* isize + MPPE_OVHD + 2 */ in mppe_compress()
400 obuf += PPP_HDRLEN; in mppe_compress()
406 obuf[0] = state->ccount >> 8; in mppe_compress()
407 obuf[1] = state->ccount & 0xff; in mppe_compress()
419 obuf[0] |= state->bits; in mppe_compress()
422 obuf += MPPE_OVHD; in mppe_compress()
[all …]
Dppp_deflate.c71 unsigned char *obuf,
75 int isize, unsigned char *obuf, int osize);
209 static int z_compress(void *arg, unsigned char *rptr, unsigned char *obuf, in z_compress() argument
228 wptr = obuf; in z_compress()
439 unsigned char *obuf, int osize) in z_decompress() argument
467 obuf[0] = PPP_ADDRESS(ibuf); in z_decompress()
468 obuf[1] = PPP_CONTROL(ibuf); in z_decompress()
469 obuf[2] = 0; in z_decompress()
478 state->strm.next_out = obuf + 3; in z_decompress()
498 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.c72 unsigned char obuf[OBUFSIZE]; member
177 ap->optr = ap->obuf; in ppp_asynctty_open()
178 ap->olim = ap->obuf; in ppp_asynctty_open()
539 buf = ap->obuf; in ppp_async_encode()
585 buflim = ap->obuf + OBUFSIZE - 6; in ppp_async_encode()
/drivers/usb/misc/
Drio500.c68 char *obuf, *ibuf; /* transfer buffers */ member
289 char *obuf = rio->obuf; in write_rio() local
293 if (copy_from_user(rio->obuf, buffer, copy_size)) { in write_rio()
310 obuf, thistime, &partial, 5000); in write_rio()
325 obuf += partial; in write_rio()
464 if (!(rio->obuf = kmalloc(OBUF_SIZE, GFP_KERNEL))) { in probe_rio()
469 dbg("probe_rio: obuf address:%p", rio->obuf); in probe_rio()
474 kfree(rio->obuf); in probe_rio()
504 kfree(rio->obuf); in disconnect_rio()
/drivers/media/common/tuners/
Dtuner-i2c.h54 char *obuf, int olen, in tuner_i2c_xfer_send_recv() argument
58 .buf = obuf, .len = olen }, in tuner_i2c_xfer_send_recv()
Dtuner-xc2028.c114 #define i2c_send_recv(priv, obuf, osize, ibuf, isize) ({ \ argument
116 _rc = tuner_i2c_xfer_send_recv(&priv->i2c_props, obuf, osize, \
/drivers/ata/
Dpdc_adma.c380 static char obuf[2048]; in adma_qc_prep()
382 len += sprintf(obuf+len, "%02x ", buf[j]); in adma_qc_prep()
384 printk("%s\n", obuf); in adma_qc_prep()
389 printk("%s\n", obuf); in adma_qc_prep()
/drivers/media/dvb/ttpci/
Dav7110_av.c739 u8 obuf[TS_SIZE]; in p_to_t() local
765 memset(obuf, 0, TS_SIZE); in p_to_t()
768 obuf, (TS_SIZE - 4)); in p_to_t()
769 memcpy(obuf + l, buf + c, TS_SIZE - l); in p_to_t()
773 obuf, length - c); in p_to_t()
774 memcpy(obuf + l, buf + c, TS_SIZE - l); in p_to_t()
777 feed->cb.ts(obuf, 188, NULL, 0, &feed->feed.ts, DMX_OK); in p_to_t()
/drivers/char/
Dser_a2232.c518 volatile u_char *ibuf, *cbuf, *obuf; in a2232_vbl_inter() local
577 obuf = mem->OutBuf[p]; in a2232_vbl_inter()
585 obuf[bufpos++] = ch; /* put it into the A2232 buffer */ in a2232_vbl_inter()
Dser_a2232fw.ax275 lda obuf\1,x ; get a char from buffer ;
/drivers/media/video/
Dcpia.c2039 u8 *obuf, *ibuf, *end_obuf; in parse_picture() local
2046 obuf = cam->decompressed_frame.data; in parse_picture()
2047 end_obuf = obuf+CPIA_MAX_FRAME_SIZE; in parse_picture()
2134 obuf += yuvconvert(ibuf, obuf, out_fmt, in parse_picture()
2140 obuf += convert420(ibuf, obuf, in parse_picture()
2148 obuf += skipcount(*ibuf >> 1, out_fmt); in parse_picture()
2149 if (obuf > end_obuf) { in parse_picture()
2174 obuf += linesize; in parse_picture()
2195 obuf = prev+linesize; in parse_picture()
2196 next = obuf+linesize; in parse_picture()
[all …]
/drivers/usb/misc/sisusbvga/
Dsisusb.h124 char *obuf[NUMOBUFS], *ibuf; /* transfer buffers */ member
Dsisusb.c81 if (sisusb->obuf[i]) { in sisusb_free_buffers()
83 sisusb->obuf[i], sisusb->transfer_dma_out[i]); in sisusb_free_buffers()
84 sisusb->obuf[i] = NULL; in sisusb_free_buffers()
396 buffer = sisusb->obuf[index]; in sisusb_send_bulk_msg()
824 kernbuffer = sisusb->obuf[index]; in sisusb_write_mem_bulk()
1447 memset(sisusb->obuf[i], 0, sisusb->obufsize); in sisusb_clear_vram()
3145 if (!(sisusb->obuf[i] = usb_buffer_alloc(dev, SISUSB_OBUF_SIZE, in sisusb_probe()
/drivers/serial/cpm_uart/
Dcpm_uart_core.c934 static int poll_wait_key(char *obuf, struct uart_cpm_port *pinfo) in poll_wait_key() argument
951 if (obuf) { in poll_wait_key()
954 *obuf++ = *cp++; in poll_wait_key()
/drivers/media/dvb/frontends/
Daf9013.c100 u8 obuf[3] = { reg >> 8, reg & 0xff, 0 }; in af9013_read_reg() local
106 .len = sizeof(obuf), in af9013_read_reg()
107 .buf = obuf in af9013_read_reg()
Dbcm3510.c202 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
209 memcpy(&ob[2],obuf,olen); in bcm3510_do_hab_cmd()
/drivers/serial/
D68360serial.c2230 static int my_console_wait_key(int idx, int xmon, char *obuf) in my_console_wait_key() argument
2272 if (obuf) { in my_console_wait_key()
2275 *obuf++ = *cp++; in my_console_wait_key()
/drivers/staging/at76_usb/
Dat76_usb.c539 char *obuf = ret; in hex2str() local
551 *obuf++ = BIN2HEX(*ibuf >> 4); in hex2str()
552 *obuf++ = BIN2HEX(*ibuf & 0xf); in hex2str()
553 *obuf++ = '-'; in hex2str()
556 *(--obuf) = '\0'; in hex2str()
/drivers/infiniband/core/
Duverbs_cmd.c50 #define INIT_UDATA(udata, ibuf, obuf, ilen, olen) \ argument
53 (udata)->outbuf = (void __user *) (obuf); \