Home
last modified time | relevance | path

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

12

/drivers/net/ppp/
Dppp_mppe.c368 mppe_compress(void *arg, unsigned char *ibuf, unsigned char *obuf, in mppe_compress() argument
380 proto = PPP_PROTOCOL(ibuf); in mppe_compress()
398 obuf[0] = PPP_ADDRESS(ibuf); in mppe_compress()
399 obuf[1] = PPP_CONTROL(ibuf); in mppe_compress()
423 ibuf += 2; /* skip to proto field */ in mppe_compress()
429 setup_sg(sg_in, ibuf, isize); in mppe_compress()
482 mppe_decompress(void *arg, unsigned char *ibuf, int isize, unsigned char *obuf, in mppe_decompress() argument
488 int flushed = MPPE_BITS(ibuf) & MPPE_BIT_FLUSHED; in mppe_decompress()
513 ccount = MPPE_CCOUNT(ibuf); in mppe_decompress()
519 if (!(MPPE_BITS(ibuf) & MPPE_BIT_ENCRYPTED)) { in mppe_decompress()
[all …]
Dppp_deflate.c52 static void z_incomp(void *state, unsigned char *ibuf, int icnt);
53 static int z_decompress(void *state, unsigned char *ibuf,
414 static int z_decompress(void *arg, unsigned char *ibuf, int isize, in z_decompress() argument
430 seq = get_unaligned_be16(ibuf + PPP_HDRLEN); in z_decompress()
443 obuf[0] = PPP_ADDRESS(ibuf); in z_decompress()
444 obuf[1] = PPP_CONTROL(ibuf); in z_decompress()
452 state->strm.next_in = ibuf + PPP_HDRLEN + DEFLATE_OVHD; in z_decompress()
520 static void z_incomp(void *arg, unsigned char *ibuf, int icnt) in z_incomp() argument
528 proto = PPP_PROTOCOL(ibuf); in z_incomp()
538 state->strm.next_in = ibuf + 3; in z_incomp()
Dbsd_comp.c186 static void bsd_incomp (void *state, unsigned char *ibuf, int icnt);
188 static int bsd_decompress (void *state, unsigned char *ibuf, int isize,
805 static void bsd_incomp (void *state, unsigned char *ibuf, int icnt) in bsd_incomp() argument
807 (void) bsd_compress (state, ibuf, (char *) 0, icnt, 0); in bsd_incomp()
827 static int bsd_decompress (void *state, unsigned char *ibuf, int isize, in bsd_decompress() argument
862 adrs = PPP_ADDRESS (ibuf); in bsd_decompress()
863 ctrl = PPP_CONTROL (ibuf); in bsd_decompress()
865 seq = (ibuf[4] << 8) + ibuf[5]; in bsd_decompress()
867 ibuf += (PPP_HDRLEN + 2); in bsd_decompress()
921 accm |= *ibuf++ << bitno; in bsd_decompress()
/drivers/media/usb/dvb-usb-v2/
Dlmedm04.c320 static u8 *ibuf, *rbuf; in lme2510_int_response() local
344 ibuf = (u8 *)&rbuf[i*8]; in lme2510_int_response()
346 offset, i, ibuf[0], ibuf[1]); in lme2510_int_response()
348 switch (ibuf[0]) { in lme2510_int_response()
350 debug_data_snipet(1, "INT Remote data snipet", ibuf); in lme2510_int_response()
354 key = RC_SCANCODE_NEC32(ibuf[2] << 24 | in lme2510_int_response()
355 ibuf[3] << 16 | in lme2510_int_response()
356 ibuf[4] << 8 | in lme2510_int_response()
357 ibuf[5]); in lme2510_int_response()
366 signal_lock = ibuf[2] & BIT(5); in lme2510_int_response()
[all …]
Ddvbsky.c39 u8 ibuf[DVBSKY_BUF_LEN]; member
64 state->ibuf, rlen); in dvbsky_usb_generic_rw()
67 memcpy(rbuf, state->ibuf, rlen); in dvbsky_usb_generic_rw()
101 u8 obuf[3], ibuf[2]; in dvbsky_gpio_ctrl() local
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
145 ibuf, msg[0].len + 1); in dvbsky_i2c_xfer()
149 memcpy(msg[0].buf, &ibuf[1], msg[0].len); in dvbsky_i2c_xfer()
157 msg[0].len + 3, ibuf, 1); in dvbsky_i2c_xfer()
176 msg[0].len + 4, ibuf, msg[1].len + 1); in dvbsky_i2c_xfer()
[all …]
/drivers/media/usb/dvb-usb/
Ddw2102.c285 u8 ibuf[MAX_XFER_SIZE], obuf[3]; in dw2102_earda_i2c_transfer() local
294 if (2 + msg[1].len > sizeof(ibuf)) { in dw2102_earda_i2c_transfer()
308 ibuf, msg[1].len + 2, DW210X_READ_MSG); in dw2102_earda_i2c_transfer()
309 memcpy(msg[1].buf, ibuf + 2, msg[1].len); in dw2102_earda_i2c_transfer()
352 u8 ibuf[2]; in dw2102_earda_i2c_transfer() local
354 ibuf, 2, DW210X_READ_MSG); in dw2102_earda_i2c_transfer()
355 memcpy(msg[0].buf, ibuf , 2); in dw2102_earda_i2c_transfer()
390 u8 ibuf[2]; in dw2104_i2c_transfer() local
392 ibuf, 2, DW210X_READ_MSG); in dw2104_i2c_transfer()
393 memcpy(msg[j].buf, ibuf , 2); in dw2104_i2c_transfer()
[all …]
Dttusb2.c374 static u8 obuf[60], ibuf[60]; in ttusb2_i2c_xfer() local
392 if (3 + msg[i+1].len > sizeof(ibuf)) { in ttusb2_i2c_xfer()
397 if (3 + msg[i].len > sizeof(ibuf)) { 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()
425 memcpy(msg[i+1].buf, &ibuf[3], msg[i+1].len); in ttusb2_i2c_xfer()
428 memcpy(msg[i].buf, &ibuf[3], msg[i].len); in ttusb2_i2c_xfer()
Dcxusb.c176 u8 obuf[3], ibuf[MAX_XFER_SIZE]; in cxusb_i2c_xfer() local
178 if (1 + msg[i].len > sizeof(ibuf)) { in cxusb_i2c_xfer()
189 ibuf, 1+msg[i].len) < 0) { in cxusb_i2c_xfer()
193 memcpy(msg[i].buf, &ibuf[1], msg[i].len); in cxusb_i2c_xfer()
197 u8 obuf[MAX_XFER_SIZE], ibuf[MAX_XFER_SIZE]; in cxusb_i2c_xfer() local
205 if (1 + msg[i + 1].len > sizeof(ibuf)) { in cxusb_i2c_xfer()
218 ibuf, 1+msg[i+1].len) < 0) in cxusb_i2c_xfer()
221 if (ibuf[0] != 0x08) in cxusb_i2c_xfer()
224 memcpy(msg[i+1].buf, &ibuf[1], msg[i+1].len); in cxusb_i2c_xfer()
229 u8 obuf[MAX_XFER_SIZE], ibuf; in cxusb_i2c_xfer() local
[all …]
/drivers/usb/misc/
Drio500.c68 char *obuf, *ibuf; /* transfer buffers */ member
371 char *ibuf; in read_rio() local
383 ibuf = rio->ibuf; in read_rio()
401 ibuf, this_read, &partial, in read_rio()
433 if (copy_to_user(buffer, ibuf, this_read)) { in read_rio()
488 if (!(rio->ibuf = kmalloc(IBUF_SIZE, GFP_KERNEL))) { in probe_rio()
495 dev_dbg(&intf->dev, "ibuf address:%p\n", rio->ibuf); in probe_rio()
523 kfree(rio->ibuf); in disconnect_rio()
/drivers/media/usb/gspca/
Dkinect.c65 uint8_t ibuf[0x200]; /* input buffer for control commands */ member
140 uint8_t *ibuf = sd->ibuf; in send_cmd() local
142 struct cam_hdr *rhdr = (void *)ibuf; in send_cmd()
166 actual_len = kinect_read(udev, ibuf, 0x200); in send_cmd()
200 memcpy(replybuf, ibuf+sizeof(*rhdr), reply_len); in send_cmd()
202 memcpy(replybuf, ibuf+sizeof(*rhdr), actual_len); in send_cmd()
/drivers/infiniband/core/
Duverbs.h50 #define INIT_UDATA(udata, ibuf, obuf, ilen, olen) \ argument
52 (udata)->inbuf = (const void __user *) (ibuf); \
58 #define INIT_UDATA_BUF_OR_NULL(udata, ibuf, obuf, ilen, olen) \ argument
60 (udata)->inbuf = (ilen) ? (const void __user *) (ibuf) : NULL; \
/drivers/macintosh/
Dmacio-adb.c205 unsigned char ibuf[16]; in macio_adb_interrupt() local
252 ibuf[i] = in_8(&adb->data[i].r); in macio_adb_interrupt()
271 adb_input(ibuf, ibuf_len, autopoll); in macio_adb_interrupt()
Dvia-cuda.c452 unsigned char ibuf[16]; in cuda_interrupt() local
582 memcpy(ibuf, cuda_rbuf, ibuf_len); in cuda_interrupt()
610 cuda_input(ibuf, ibuf_len); in cuda_interrupt()
/drivers/media/tuners/
Dtuner-i2c.h58 unsigned char *ibuf, int ilen) in tuner_i2c_xfer_send_recv() argument
63 .buf = ibuf, .len = ilen } }; in tuner_i2c_xfer_send_recv()
Dtuner-xc2028.c137 #define i2c_send_recv(priv, obuf, osize, ibuf, isize) ({ \ argument
140 ibuf, isize); \
164 unsigned char ibuf[2]; in xc2028_get_reg() local
171 if (i2c_send_recv(priv, buf, 2, ibuf, 2) != 2) in xc2028_get_reg()
174 *val = (ibuf[1]) | (ibuf[0] << 8); in xc2028_get_reg()
/drivers/mfd/
Ddln2.c431 void *ibuf, unsigned *ibuf_len) in _dln2_transfer() argument
496 if (!ibuf) in _dln2_transfer()
502 memcpy(ibuf, rsp + 1, *ibuf_len); in _dln2_transfer()
518 void *ibuf, unsigned *ibuf_len) in dln2_transfer() argument
528 return _dln2_transfer(dln2, handle, cmd, obuf, obuf_len, ibuf, in dln2_transfer()
/drivers/media/dvb-frontends/
Dmt352.c72 static int _mt352_write(struct dvb_frontend* fe, const u8 ibuf[], int ilen) in _mt352_write() argument
76 if ((err = mt352_single_write(fe,ibuf[0]+i,ibuf[i+1]))) in _mt352_write()
Dzl10353.c67 static int zl10353_write(struct dvb_frontend *fe, const u8 ibuf[], int ilen) in zl10353_write() argument
71 if ((err = zl10353_single_write(fe, ibuf[0] + i, ibuf[i + 1]))) in zl10353_write()
/drivers/net/can/usb/peak_usb/
Dpcan_usb.c678 static int pcan_usb_decode_msg(struct peak_usb_device *dev, u8 *ibuf, u32 lbuf) in pcan_usb_decode_msg() argument
681 .rec_cnt = ibuf[1], in pcan_usb_decode_msg()
682 .ptr = ibuf + PCAN_USB_MSG_HEADER_LEN, in pcan_usb_decode_msg()
683 .end = ibuf + lbuf, in pcan_usb_decode_msg()
/drivers/scsi/megaraid/
Dmegaraid_mbox.c1008 adapter->ibuf = pci_zalloc_consistent(pdev, MBOX_IBUF_SIZE, in megaraid_alloc_cmd_packets()
1010 if (!adapter->ibuf) { in megaraid_alloc_cmd_packets()
1103 pci_free_consistent(pdev, MBOX_IBUF_SIZE, (void *)adapter->ibuf, in megaraid_alloc_cmd_packets()
1129 (void *)adapter->ibuf, adapter->ibuf_dma_h); in megaraid_free_cmd_packets()
2965 memset((void *)adapter->ibuf, 0, MBOX_IBUF_SIZE); in megaraid_mbox_product_info()
2987 mraid_inq3 = (mraid_inquiry3_t *)adapter->ibuf; in megaraid_mbox_product_info()
3070 memset((void *)adapter->ibuf, 0, MBOX_IBUF_SIZE); in megaraid_mbox_extended_cdb()
3108 memset((void *)adapter->ibuf, 0, MBOX_IBUF_SIZE); in megaraid_mbox_support_ha()
3117 *init_id = *(uint8_t *)adapter->ibuf; in megaraid_mbox_support_ha()
3203 memset((void *)adapter->ibuf, 0, MBOX_IBUF_SIZE); in megaraid_mbox_get_max_sg()
[all …]
Dmega_common.h180 caddr_t ibuf; member
/drivers/net/wireless/ath/carl9170/
Dusb.c484 void *ibuf; in carl9170_usb_send_rx_irq_urb() local
491 ibuf = kmalloc(AR9170_USB_EP_CTRL_MAX, GFP_KERNEL); in carl9170_usb_send_rx_irq_urb()
492 if (!ibuf) in carl9170_usb_send_rx_irq_urb()
496 AR9170_USB_EP_IRQ), ibuf, AR9170_USB_EP_CTRL_MAX, in carl9170_usb_send_rx_irq_urb()
/drivers/isdn/i4l/
Disdn_bsdcomp.c655 unsigned char *p, *ibuf; in bsd_decompress() local
683 ibuf = skb_in->data; in bsd_decompress()
725 accm |= *ibuf++ << bitno; in bsd_decompress()
/drivers/usb/misc/sisusbvga/
Dsisusb.h124 char *obuf[NUMOBUFS], *ibuf; /* transfer buffers */ member
/drivers/net/can/usb/
Dems_usb.c442 u8 *ibuf = urb->transfer_buffer; in ems_usb_read_bulk_callback() local
445 msg_count = ibuf[0] & ~0x80; in ems_usb_read_bulk_callback()
450 msg = (struct ems_cpc_msg *)&ibuf[start]; in ems_usb_read_bulk_callback()

12