Home
last modified time | relevance | path

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

12

/drivers/media/usb/dvb-usb/
Ddw2102.c303 u8 ibuf[MAX_XFER_SIZE], obuf[3]; in dw2102_earda_i2c_transfer() local
305 if (2 + msg[0].len != sizeof(obuf)) { in dw2102_earda_i2c_transfer()
319 obuf[0] = msg[0].addr << 1; in dw2102_earda_i2c_transfer()
320 obuf[1] = msg[0].len; in dw2102_earda_i2c_transfer()
321 obuf[2] = msg[0].buf[0]; in dw2102_earda_i2c_transfer()
323 obuf, msg[0].len + 2, DW210X_WRITE_MSG); in dw2102_earda_i2c_transfer()
335 u8 obuf[MAX_XFER_SIZE]; in dw2102_earda_i2c_transfer() local
337 if (2 + msg[0].len > sizeof(obuf)) { in dw2102_earda_i2c_transfer()
344 obuf[0] = msg[0].addr << 1; in dw2102_earda_i2c_transfer()
345 obuf[1] = msg[0].len; in dw2102_earda_i2c_transfer()
[all …]
Dttusb2.c371 static u8 obuf[60], ibuf[60]; in ttusb2_i2c_xfer() local
384 if (3 + msg[i].len > sizeof(obuf)) { in ttusb2_i2c_xfer()
400 obuf[0] = (msg[i].addr << 1) | (write_read | read); in ttusb2_i2c_xfer()
402 obuf[1] = 0; in ttusb2_i2c_xfer()
404 obuf[1] = msg[i].len; in ttusb2_i2c_xfer()
408 obuf[2] = msg[i+1].len; in ttusb2_i2c_xfer()
410 obuf[2] = msg[i].len; in ttusb2_i2c_xfer()
412 obuf[2] = 0; in ttusb2_i2c_xfer()
414 memcpy(&obuf[3], msg[i].buf, msg[i].len); in ttusb2_i2c_xfer()
416 if (ttusb2_msg(d, CMD_I2C_XFER, obuf, obuf[1]+3, ibuf, obuf[2] + 3) < 0) { in ttusb2_i2c_xfer()
Dcxusb.c202 u8 obuf[3], ibuf[MAX_XFER_SIZE]; in cxusb_i2c_xfer() local
210 obuf[0] = 0; in cxusb_i2c_xfer()
211 obuf[1] = msg[i].len; in cxusb_i2c_xfer()
212 obuf[2] = msg[i].addr; in cxusb_i2c_xfer()
214 obuf, 3, in cxusb_i2c_xfer()
223 u8 obuf[MAX_XFER_SIZE], ibuf[MAX_XFER_SIZE]; in cxusb_i2c_xfer() local
225 if (3 + msg[i].len > sizeof(obuf)) { in cxusb_i2c_xfer()
237 obuf[0] = msg[i].len; in cxusb_i2c_xfer()
238 obuf[1] = msg[i + 1].len; in cxusb_i2c_xfer()
239 obuf[2] = msg[i].addr; in cxusb_i2c_xfer()
[all …]
Dvp7045.c83 u8 obuf[2] = { 0 },v; in vp7045_read_reg() local
84 obuf[1] = reg; in vp7045_read_reg()
86 vp7045_usb_op(d,TUNER_REG_READ,obuf,2,&v,1,30); in vp7045_read_reg()
/drivers/media/usb/dvb-usb-v2/
Ddvbsky.c26 u8 obuf[DVBSKY_BUF_LEN]; member
47 memcpy(state->obuf, wbuf, wlen); in dvbsky_usb_generic_rw()
49 ret = dvb_usbv2_generic_rw_locked(d, state->obuf, wlen, in dvbsky_usb_generic_rw()
67 memcpy(state->obuf, obuf_pre, 3); in dvbsky_stream_ctrl()
68 ret = dvb_usbv2_generic_write_locked(d, state->obuf, 3); in dvbsky_stream_ctrl()
71 memcpy(state->obuf, obuf_post, 3); in dvbsky_stream_ctrl()
72 ret = dvb_usbv2_generic_write_locked(d, state->obuf, 3); in dvbsky_stream_ctrl()
89 u8 obuf[3], ibuf[2]; in dvbsky_gpio_ctrl() local
91 obuf[0] = 0x0e; in dvbsky_gpio_ctrl()
92 obuf[1] = gport; in dvbsky_gpio_ctrl()
[all …]
Dlmedm04.c487 static u8 obuf[64], ibuf[64]; in lme2510_i2c_xfer() local
502 obuf[0] = gate | (read << 7); in lme2510_i2c_xfer()
505 obuf[1] = (read) ? 2 : msg[i].len + 1; in lme2510_i2c_xfer()
507 obuf[1] = msg[i].len + read + 1; in lme2510_i2c_xfer()
509 obuf[2] = msg[i].addr << 1; in lme2510_i2c_xfer()
515 memcpy(&obuf[3], msg[i].buf, msg[i].len); in lme2510_i2c_xfer()
516 obuf[msg[i].len+3] = msg[i+1].len; in lme2510_i2c_xfer()
520 memcpy(&obuf[3], msg[i].buf, msg[i].len); in lme2510_i2c_xfer()
524 if (lme2510_msg(d, obuf, len, ibuf, 64) < 0) { in lme2510_i2c_xfer()
/drivers/crypto/ccp/
Dccp-debugfs.c16 #define OBUFP (obuf + oboff)
49 char *obuf; in ccp5_debugfs_info_read() local
54 obuf = kmalloc(OBUFLEN, GFP_KERNEL); in ccp5_debugfs_info_read()
55 if (!obuf) in ccp5_debugfs_info_read()
88 ret = simple_read_from_buffer(ubuf, count, offp, obuf, oboff); in ccp5_debugfs_info_read()
89 kfree(obuf); in ccp5_debugfs_info_read()
112 char *obuf; in ccp5_debugfs_stats_read() local
127 obuf = kmalloc(OBUFLEN, GFP_KERNEL); in ccp5_debugfs_stats_read()
128 if (!obuf) in ccp5_debugfs_stats_read()
150 ret = simple_read_from_buffer(ubuf, count, offp, obuf, oboff); in ccp5_debugfs_stats_read()
[all …]
/drivers/net/ppp/
Dppp_mppe.c337 mppe_compress(void *arg, unsigned char *ibuf, unsigned char *obuf, in mppe_compress() argument
364 obuf[0] = PPP_ADDRESS(ibuf); in mppe_compress()
365 obuf[1] = PPP_CONTROL(ibuf); in mppe_compress()
366 put_unaligned_be16(PPP_COMP, obuf + 2); in mppe_compress()
367 obuf += PPP_HDRLEN; in mppe_compress()
373 put_unaligned_be16(state->ccount, obuf); in mppe_compress()
385 obuf[0] |= state->bits; in mppe_compress()
388 obuf += MPPE_OVHD; in mppe_compress()
392 arc4_crypt(&state->arc4, obuf, ibuf, isize); in mppe_compress()
434 mppe_decompress(void *arg, unsigned char *ibuf, int isize, unsigned char *obuf, in mppe_decompress() argument
[all …]
Dppp_deflate.c47 unsigned char *obuf,
51 int isize, unsigned char *obuf, int osize);
185 static int z_compress(void *arg, unsigned char *rptr, unsigned char *obuf, in z_compress() argument
204 wptr = obuf; in z_compress()
411 unsigned char *obuf, int osize) in z_decompress() argument
439 obuf[0] = PPP_ADDRESS(ibuf); in z_decompress()
440 obuf[1] = PPP_CONTROL(ibuf); in z_decompress()
441 obuf[2] = 0; in z_decompress()
450 state->strm.next_out = obuf + 3; in z_decompress()
470 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.c71 unsigned char obuf[OBUFSIZE]; member
177 ap->optr = ap->obuf; in ppp_asynctty_open()
178 ap->olim = ap->obuf; in ppp_asynctty_open()
541 buf = ap->obuf; in ppp_async_encode()
587 buflim = ap->obuf + OBUFSIZE - 6; in ppp_async_encode()
/drivers/media/usb/gspca/
Dkinect.c51 uint8_t obuf[0x400]; /* output buffer for control commands */ member
126 uint8_t *obuf = sd->obuf; in send_cmd() local
128 struct cam_hdr *chdr = (void *)obuf; in send_cmd()
142 memcpy(obuf+sizeof(*chdr), cmdbuf, cmd_len); in send_cmd()
144 res = kinect_write(udev, obuf, cmd_len + sizeof(*chdr)); in send_cmd()
/drivers/infiniband/core/
Duverbs.h57 void __user *obuf, in ib_uverbs_init_udata() argument
61 udata->outbuf = obuf; in ib_uverbs_init_udata()
69 void __user *obuf, in ib_uverbs_init_udata_buf_or_null() argument
73 ilen ? ibuf : NULL, olen ? obuf : NULL, in ib_uverbs_init_udata_buf_or_null()
/drivers/media/usb/au0828/
Dau0828-input.c62 char obuf[3]; in au8522_rc_read() local
64 .buf = obuf, .len = 2 }, in au8522_rc_read()
68 obuf[0] = 0x40 | reg >> 8; in au8522_rc_read()
69 obuf[1] = reg & 0xff; in au8522_rc_read()
71 obuf[2] = val; in au8522_rc_read()
/drivers/mfd/
Ddln2.c308 static void *dln2_prep_buf(u16 handle, u16 cmd, u16 echo, const void *obuf, in dln2_prep_buf() argument
326 memcpy(buf + sizeof(*hdr), obuf, *obuf_len); in dln2_prep_buf()
334 const void *obuf, int obuf_len) in dln2_send_wait() argument
341 buf = dln2_prep_buf(handle, cmd, echo, obuf, &len, GFP_KERNEL); in dln2_send_wait()
433 const void *obuf, unsigned obuf_len, in _dln2_transfer() argument
461 ret = dln2_send_wait(dln2, handle, cmd, rx_slot, obuf, obuf_len); in _dln2_transfer()
520 const void *obuf, unsigned obuf_len, in dln2_transfer() argument
531 return _dln2_transfer(dln2, handle, cmd, obuf, obuf_len, ibuf, in dln2_transfer()
/drivers/media/tuners/
Dtuner-i2c.h45 unsigned char *obuf, int olen, in tuner_i2c_xfer_send_recv() argument
49 .buf = obuf, .len = olen }, in tuner_i2c_xfer_send_recv()
/drivers/ata/
Dpdc_adma.c362 static char obuf[2048]; in adma_qc_prep()
364 len += sprintf(obuf+len, "%02x ", buf[j]); in adma_qc_prep()
366 printk("%s\n", obuf); in adma_qc_prep()
371 printk("%s\n", obuf); in adma_qc_prep()
/drivers/net/can/usb/peak_usb/
Dpcan_usb.c753 u8 *obuf, size_t *size) in pcan_usb_encode_msg() argument
761 obuf[0] = PCAN_USB_MSG_TX_CAN; in pcan_usb_encode_msg()
762 obuf[1] = 1; /* only one CAN frame is stored in the packet */ in pcan_usb_encode_msg()
764 pc = obuf + PCAN_USB_MSG_HEADER_LEN; in pcan_usb_encode_msg()
812 obuf[(*size)-1] = (u8)(stats->tx_packets & 0xff); in pcan_usb_encode_msg()
Dpcan_usb_core.h66 u8 *obuf, size_t *size);
Dpcan_usb_core.c336 u8 *obuf; in peak_usb_ndo_start_xmit() local
355 obuf = urb->transfer_buffer; in peak_usb_ndo_start_xmit()
357 err = dev->adapter->dev_encode_msg(dev, skb, obuf, &size); in peak_usb_ndo_start_xmit()
Dpcan_usb_fd.c733 struct sk_buff *skb, u8 *obuf, size_t *size) in pcan_usb_fd_encode_msg() argument
735 struct pucan_tx_msg *tx_msg = (struct pucan_tx_msg *)obuf; in pcan_usb_fd_encode_msg()
785 tx_msg = (struct pucan_tx_msg *)(obuf + tx_msg_size); in pcan_usb_fd_encode_msg()
/drivers/staging/media/av7110/
Dav7110_av.c766 u8 obuf[TS_SIZE]; in p_to_t() local
792 memset(obuf, 0, TS_SIZE); in p_to_t()
795 obuf, (TS_SIZE - 4)); in p_to_t()
796 memcpy(obuf + l, buf + c, TS_SIZE - l); in p_to_t()
800 obuf, length - c); in p_to_t()
801 memcpy(obuf + l, buf + c, TS_SIZE - l); in p_to_t()
804 feed->cb.ts(obuf, 188, NULL, 0, &feed->feed.ts, NULL); in p_to_t()
/drivers/usb/misc/sisusbvga/
Dsisusb.h112 char *obuf[NUMOBUFS], *ibuf; /* transfer buffers */ member
Dsisusb.c80 kfree(sisusb->obuf[i]); in sisusb_free_buffers()
81 sisusb->obuf[i] = NULL; in sisusb_free_buffers()
371 buffer = sisusb->obuf[index]; in sisusb_send_bulk_msg()
770 kernbuffer = sisusb->obuf[index]; in sisusb_write_mem_bulk()
1380 memset(sisusb->obuf[i], 0, sisusb->obufsize); in sisusb_clear_vram()
3074 sisusb->obuf[i] = kmalloc(SISUSB_OBUF_SIZE, GFP_KERNEL); in sisusb_probe()
3075 if (!sisusb->obuf[i]) { in sisusb_probe()
/drivers/tty/serial/cpm_uart/
Dcpm_uart_core.c1026 static int poll_wait_key(char *obuf, struct uart_cpm_port *pinfo) in poll_wait_key() argument
1043 if (obuf) { in poll_wait_key()
1046 *obuf++ = *cp++; in poll_wait_key()

12