/drivers/media/usb/dvb-usb/ |
D | dw2102.c | 285 u8 ibuf[MAX_XFER_SIZE], obuf[3]; in dw2102_earda_i2c_transfer() local 287 if (2 + msg[0].len != sizeof(obuf)) { in dw2102_earda_i2c_transfer() 301 obuf[0] = msg[0].addr << 1; in dw2102_earda_i2c_transfer() 302 obuf[1] = msg[0].len; in dw2102_earda_i2c_transfer() 303 obuf[2] = msg[0].buf[0]; in dw2102_earda_i2c_transfer() 305 obuf, msg[0].len + 2, DW210X_WRITE_MSG); in dw2102_earda_i2c_transfer() 317 u8 obuf[MAX_XFER_SIZE]; in dw2102_earda_i2c_transfer() local 319 if (2 + msg[0].len > sizeof(obuf)) { in dw2102_earda_i2c_transfer() 326 obuf[0] = msg[0].addr << 1; in dw2102_earda_i2c_transfer() 327 obuf[1] = msg[0].len; in dw2102_earda_i2c_transfer() [all …]
|
D | ttusb2.c | 374 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()
|
D | cxusb.c | 176 u8 obuf[3], ibuf[MAX_XFER_SIZE]; in cxusb_i2c_xfer() local 184 obuf[0] = 0; in cxusb_i2c_xfer() 185 obuf[1] = msg[i].len; in cxusb_i2c_xfer() 186 obuf[2] = msg[i].addr; in cxusb_i2c_xfer() 188 obuf, 3, in cxusb_i2c_xfer() 197 u8 obuf[MAX_XFER_SIZE], ibuf[MAX_XFER_SIZE]; in cxusb_i2c_xfer() local 199 if (3 + msg[i].len > sizeof(obuf)) { in cxusb_i2c_xfer() 211 obuf[0] = msg[i].len; in cxusb_i2c_xfer() 212 obuf[1] = msg[i+1].len; in cxusb_i2c_xfer() 213 obuf[2] = msg[i].addr; in cxusb_i2c_xfer() [all …]
|
D | vp7045.c | 86 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/ |
D | dvbsky.c | 40 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 …]
|
D | lmedm04.c | 543 static u8 obuf[64], ibuf[64]; in lme2510_i2c_xfer() local 561 obuf[0] = gate | (read << 7); in lme2510_i2c_xfer() 564 obuf[1] = (read) ? 2 : msg[i].len + 1; in lme2510_i2c_xfer() 566 obuf[1] = msg[i].len + read + 1; in lme2510_i2c_xfer() 568 obuf[2] = msg[i].addr << 1; in lme2510_i2c_xfer() 574 memcpy(&obuf[3], msg[i].buf, msg[i].len); in lme2510_i2c_xfer() 575 obuf[msg[i].len+3] = msg[i+1].len; in lme2510_i2c_xfer() 579 memcpy(&obuf[3], msg[i].buf, msg[i].len); in lme2510_i2c_xfer() 583 if (lme2510_msg(d, obuf, len, ibuf, 64) < 0) { in lme2510_i2c_xfer()
|
/drivers/net/ppp/ |
D | ppp_mppe.c | 368 mppe_compress(void *arg, unsigned char *ibuf, unsigned char *obuf, in mppe_compress() argument 398 obuf[0] = PPP_ADDRESS(ibuf); in mppe_compress() 399 obuf[1] = PPP_CONTROL(ibuf); in mppe_compress() 400 put_unaligned_be16(PPP_COMP, obuf + 2); in mppe_compress() 401 obuf += PPP_HDRLEN; in mppe_compress() 407 put_unaligned_be16(state->ccount, obuf); in mppe_compress() 419 obuf[0] |= state->bits; in mppe_compress() 422 obuf += MPPE_OVHD; in mppe_compress() 430 setup_sg(sg_out, obuf, osize); in mppe_compress() 482 mppe_decompress(void *arg, unsigned char *ibuf, int isize, unsigned char *obuf, in mppe_decompress() argument [all …]
|
D | ppp_deflate.c | 50 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 …]
|
D | bsd_comp.c | 185 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()
|
D | ppp_async.c | 75 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/usb/misc/ |
D | rio500.c | 68 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/media/usb/gspca/ |
D | kinect.c | 64 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/media/usb/au0828/ |
D | au0828-input.c | 73 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/infiniband/core/ |
D | uverbs.h | 50 #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/mfd/ |
D | dln2.c | 305 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()
|
/drivers/media/tuners/ |
D | tuner-i2c.h | 57 unsigned char *obuf, int olen, in tuner_i2c_xfer_send_recv() argument 61 .buf = obuf, .len = olen }, in tuner_i2c_xfer_send_recv()
|
/drivers/net/can/usb/peak_usb/ |
D | pcan_usb.c | 729 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()
|
D | pcan_usb_core.h | 71 u8 *obuf, size_t *size);
|
D | pcan_usb_core.c | 314 u8 *obuf; in peak_usb_ndo_start_xmit() local 333 obuf = urb->transfer_buffer; in peak_usb_ndo_start_xmit() 335 err = dev->adapter->dev_encode_msg(dev, skb, obuf, &size); in peak_usb_ndo_start_xmit()
|
D | pcan_usb_fd.c | 722 struct sk_buff *skb, u8 *obuf, size_t *size) in pcan_usb_fd_encode_msg() argument 724 struct pucan_tx_msg *tx_msg = (struct pucan_tx_msg *)obuf; in pcan_usb_fd_encode_msg() 766 tx_msg = (struct pucan_tx_msg *)(obuf + tx_msg_size); in pcan_usb_fd_encode_msg()
|
/drivers/ata/ |
D | pdc_adma.c | 378 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/ |
D | av7110_av.c | 782 u8 obuf[TS_SIZE]; in p_to_t() local 808 memset(obuf, 0, TS_SIZE); in p_to_t() 811 obuf, (TS_SIZE - 4)); in p_to_t() 812 memcpy(obuf + l, buf + c, TS_SIZE - l); in p_to_t() 816 obuf, length - c); in p_to_t() 817 memcpy(obuf + l, buf + c, TS_SIZE - l); in p_to_t() 820 feed->cb.ts(obuf, 188, NULL, 0, &feed->feed.ts); in p_to_t()
|
/drivers/usb/misc/sisusbvga/ |
D | sisusb.h | 124 char *obuf[NUMOBUFS], *ibuf; /* transfer buffers */ member
|
D | sisusb.c | 79 kfree(sisusb->obuf[i]); in sisusb_free_buffers() 80 sisusb->obuf[i] = NULL; in sisusb_free_buffers() 370 buffer = sisusb->obuf[index]; in sisusb_send_bulk_msg() 771 kernbuffer = sisusb->obuf[index]; in sisusb_write_mem_bulk() 1383 memset(sisusb->obuf[i], 0, sisusb->obufsize); in sisusb_clear_vram() 3073 sisusb->obuf[i] = kmalloc(SISUSB_OBUF_SIZE, GFP_KERNEL); in sisusb_probe() 3074 if (!sisusb->obuf[i]) { in sisusb_probe()
|
/drivers/tty/serial/cpm_uart/ |
D | cpm_uart_core.c | 1062 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()
|