| /drivers/media/usb/dvb-usb/ |
| A D | dw2102.c | 376 u8 obuf[2]; in dw2102_earda_i2c_transfer() local 416 u8 obuf[2]; in dw2104_i2c_transfer() local 450 u8 obuf[19]; in dw2104_i2c_transfer() local 606 u8 obuf[2]; in s6x0_i2c_transfer() local 608 obuf[0] = 1; in s6x0_i2c_transfer() 612 obuf[0] = 3; in s6x0_i2c_transfer() 619 u8 obuf[2]; in s6x0_i2c_transfer() local 621 obuf[0] = 5; in s6x0_i2c_transfer() 910 .buf = obuf, in s6x0_read_mac_address() 921 obuf[0] = i; in s6x0_read_mac_address() [all …]
|
| A D | ttusb2.c | 371 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()
|
| A D | cxusb.c | 209 obuf[0] = 0; in cxusb_i2c_xfer() 210 obuf[1] = msg[i].len; in cxusb_i2c_xfer() 211 obuf[2] = msg[i].addr; in cxusb_i2c_xfer() 213 obuf, 3, in cxusb_i2c_xfer() 236 obuf[0] = msg[i].len; in cxusb_i2c_xfer() 237 obuf[1] = msg[i + 1].len; in cxusb_i2c_xfer() 238 obuf[2] = msg[i].addr; in cxusb_i2c_xfer() 242 obuf, 3 + msg[i].len, in cxusb_i2c_xfer() 254 u8 obuf[MAX_XFER_SIZE], ibuf; in cxusb_i2c_xfer() local 262 obuf[0] = msg[i].addr; in cxusb_i2c_xfer() [all …]
|
| A D | vp7045.c | 83 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/ |
| A D | dvbsky.c | 26 u8 obuf[DVBSKY_BUF_LEN]; member 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() 93 obuf[2] = value; in dvbsky_gpio_ctrl() 126 obuf[0] = 0x09; in dvbsky_i2c_xfer() 127 obuf[1] = 0; in dvbsky_i2c_xfer() 136 obuf[0] = 0x08; in dvbsky_i2c_xfer() 152 obuf[0] = 0x09; in dvbsky_i2c_xfer() 185 obuf[0] = 0x10; in dvbsky_rc_query() [all …]
|
| A D | lmedm04.c | 500 static u8 obuf[64], ibuf[64]; in lme2510_i2c_xfer() local 515 obuf[0] = gate | (read << 7); in lme2510_i2c_xfer() 518 obuf[1] = (read) ? 2 : msg[i].len + 1; in lme2510_i2c_xfer() 520 obuf[1] = msg[i].len + read + 1; in lme2510_i2c_xfer() 522 obuf[2] = msg[i].addr << 1; in lme2510_i2c_xfer() 528 memcpy(&obuf[3], msg[i].buf, msg[i].len); in lme2510_i2c_xfer() 529 obuf[msg[i].len+3] = msg[i+1].len; in lme2510_i2c_xfer() 533 memcpy(&obuf[3], msg[i].buf, msg[i].len); in lme2510_i2c_xfer() 537 if (lme2510_msg(d, obuf, len, ibuf, 64) < 0) { in lme2510_i2c_xfer()
|
| /drivers/crypto/ccp/ |
| A D | ccp-debugfs.c | 16 #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() 89 kfree(obuf); in ccp5_debugfs_info_read() 112 char *obuf; in ccp5_debugfs_stats_read() local 128 if (!obuf) in ccp5_debugfs_stats_read() 151 kfree(obuf); in ccp5_debugfs_stats_read() 198 char *obuf; in ccp5_debugfs_queue_read() local 204 if (!obuf) in ccp5_debugfs_queue_read() [all …]
|
| /drivers/net/ppp/ |
| A D | ppp_mppe.c | 364 obuf[0] = PPP_ADDRESS(ibuf); in mppe_compress() 365 obuf[1] = PPP_CONTROL(ibuf); in mppe_compress() 367 obuf += PPP_HDRLEN; in mppe_compress() 385 obuf[0] |= state->bits; in mppe_compress() 388 obuf += MPPE_OVHD; in mppe_compress() 555 obuf[0] = PPP_ADDRESS(ibuf); /* +1 */ in mppe_decompress() 557 obuf += 2; in mppe_decompress() 573 if ((obuf[0] & 0x01) != 0) { in mppe_decompress() 574 obuf[1] = obuf[0]; in mppe_decompress() 575 obuf[0] = 0; in mppe_decompress() [all …]
|
| A D | ppp_deflate.c | 47 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 …]
|
| A 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()
|
| A D | ppp_async.c | 71 unsigned char obuf[OBUFSIZE]; member 178 ap->optr = ap->obuf; in ppp_asynctty_open() 179 ap->olim = ap->obuf; in ppp_asynctty_open() 531 buf = ap->obuf; in ppp_async_encode() 577 buflim = ap->obuf + OBUFSIZE - 6; in ppp_async_encode()
|
| /drivers/i2c/busses/ |
| A D | i2c-ljca.c | 59 u8 obuf[LJCA_I2C_BUF_SIZE]; member 66 (struct ljca_i2c_rw_packet *)ljca_i2c->obuf; in ljca_i2c_init() 83 (struct ljca_i2c_rw_packet *)ljca_i2c->obuf; in ljca_i2c_start() 113 (struct ljca_i2c_rw_packet *)ljca_i2c->obuf; in ljca_i2c_stop() 143 (struct ljca_i2c_rw_packet *)ljca_i2c->obuf; in ljca_i2c_pure_read() 189 (struct ljca_i2c_rw_packet *)ljca_i2c->obuf; in ljca_i2c_pure_write()
|
| /drivers/media/usb/gspca/ |
| A D | kinect.c | 51 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/ |
| A D | uverbs.h | 57 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/misc/mei/ |
| A D | vsc-tp.c | 151 static int vsc_tp_dev_xfer(struct vsc_tp *tp, void *obuf, void *ibuf, size_t len) in vsc_tp_dev_xfer() argument 155 .tx_buf = obuf, in vsc_tp_dev_xfer() 278 int vsc_tp_xfer(struct vsc_tp *tp, u8 cmd, const void *obuf, size_t olen, in vsc_tp_xfer() argument 285 if (!obuf || !ibuf || olen > VSC_TP_MAX_MSG_SIZE) in vsc_tp_xfer() 294 memcpy(pkt->buf, obuf, olen); in vsc_tp_xfer() 319 int vsc_tp_rom_xfer(struct vsc_tp *tp, const void *obuf, void *ibuf, size_t len) in vsc_tp_rom_xfer() argument 330 cpu_to_be32_array((__be32 *)tp->tx_buf, obuf, words); in vsc_tp_rom_xfer()
|
| A D | vsc-tp.h | 31 int vsc_tp_rom_xfer(struct vsc_tp *tp, const void *obuf, void *ibuf, 34 int vsc_tp_xfer(struct vsc_tp *tp, u8 cmd, const void *obuf, size_t olen,
|
| /drivers/media/usb/au0828/ |
| A D | au0828-input.c | 62 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/ |
| A D | dln2.c | 302 static void *dln2_prep_buf(u16 handle, u16 cmd, u16 echo, const void *obuf, in dln2_prep_buf() argument 320 memcpy(buf + sizeof(*hdr), obuf, *obuf_len); in dln2_prep_buf() 328 const void *obuf, int obuf_len) in dln2_send_wait() argument 335 buf = dln2_prep_buf(handle, cmd, echo, obuf, &len, GFP_KERNEL); in dln2_send_wait() 427 const void *obuf, unsigned obuf_len, in _dln2_transfer() argument 455 ret = dln2_send_wait(dln2, handle, cmd, rx_slot, obuf, obuf_len); in _dln2_transfer() 514 const void *obuf, unsigned obuf_len, in dln2_transfer() argument 525 return _dln2_transfer(dln2, handle, cmd, obuf, obuf_len, ibuf, in dln2_transfer()
|
| /drivers/usb/misc/ |
| A D | usb-ljca.c | 294 const u8 *obuf, u8 obuf_len, u8 *ibuf, u8 ibuf_len, in ljca_send() argument 316 if (obuf) in ljca_send() 317 memcpy(header->data, obuf, obuf_len); in ljca_send() 368 int ljca_transfer(struct ljca_client *client, u8 cmd, const u8 *obuf, in ljca_transfer() argument 372 obuf, obuf_len, ibuf, ibuf_len, true, in ljca_transfer() 377 int ljca_transfer_noack(struct ljca_client *client, u8 cmd, const u8 *obuf, in ljca_transfer_noack() argument 380 return ljca_send(client->adapter, client->type, cmd, obuf, in ljca_transfer_noack()
|
| /drivers/gpio/ |
| A D | gpio-ljca.c | 73 u8 obuf[LJCA_GPIO_BUF_SIZE]; member 81 (struct ljca_gpio_packet *)ljca_gpio->obuf; in ljca_gpio_config() 101 (struct ljca_gpio_packet *)ljca_gpio->obuf; in ljca_gpio_read() 125 (struct ljca_gpio_packet *)ljca_gpio->obuf; in ljca_gpio_write() 253 (struct ljca_gpio_packet *)ljca_gpio->obuf; in ljca_enable_irq()
|
| /drivers/media/tuners/ |
| A D | tuner-i2c.h | 45 unsigned char *obuf, int olen, in tuner_i2c_xfer_send_recv() argument 49 .buf = obuf, .len = olen }, in tuner_i2c_xfer_send_recv()
|
| /drivers/net/can/usb/peak_usb/ |
| A D | pcan_usb.c | 774 u8 *obuf, size_t *size) in pcan_usb_encode_msg() argument 782 obuf[0] = PCAN_USB_MSG_TX_CAN; in pcan_usb_encode_msg() 783 obuf[1] = 1; /* only one CAN frame is stored in the packet */ in pcan_usb_encode_msg() 785 pc = obuf + PCAN_USB_MSG_HEADER_LEN; in pcan_usb_encode_msg() 833 obuf[(*size)-1] = (u8)(stats->tx_packets & 0xff); in pcan_usb_encode_msg()
|
| A D | pcan_usb_core.h | 67 u8 *obuf, size_t *size);
|
| /drivers/spi/ |
| A D | spi-ljca.c | 76 u8 obuf[LJCA_SPI_BUF_SIZE]; member 85 (struct ljca_spi_xfer_packet *)ljca_spi->obuf; in ljca_spi_read_write()
|
| /drivers/staging/media/av7110/ |
| A D | av7110_av.c | 770 u8 obuf[TS_SIZE]; in p_to_t() local 796 memset(obuf, 0, TS_SIZE); in p_to_t() 799 obuf, (TS_SIZE - 4)); in p_to_t() 800 memcpy(obuf + l, buf + c, TS_SIZE - l); in p_to_t() 804 obuf, length - c); in p_to_t() 805 memcpy(obuf + l, buf + c, TS_SIZE - l); in p_to_t() 808 feed->cb.ts(obuf, 188, NULL, 0, &feed->feed.ts, NULL); in p_to_t()
|