Home
last modified time | relevance | path

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

12

/linux-5.19.10/arch/um/drivers/
Dslip_common.c13 size = slip_unesc(slip->ibuf[i++], slip->ibuf, in slip_proto_read()
16 memcpy(buf, slip->ibuf, size); in slip_proto_read()
17 memmove(slip->ibuf, &slip->ibuf[i], in slip_proto_read()
26 n = net_read(fd, &slip->ibuf[slip->pos], in slip_proto_read()
27 sizeof(slip->ibuf) - slip->pos); in slip_proto_read()
33 size = slip_unesc(slip->ibuf[start + i], slip->ibuf,&slip->pos, in slip_proto_read()
36 memcpy(buf, slip->ibuf, size); in slip_proto_read()
37 memmove(slip->ibuf, &slip->ibuf[start+i+1], in slip_proto_read()
Dslip_common.h85 unsigned char ibuf[ENC_BUF_SIZE]; member
94 memset(slip->ibuf, 0, sizeof(slip->ibuf)); in slip_proto_init()
/linux-5.19.10/drivers/net/ppp/
Dppp_mppe.c337 mppe_compress(void *arg, unsigned char *ibuf, unsigned char *obuf, in mppe_compress() argument
346 proto = PPP_PROTOCOL(ibuf); in mppe_compress()
364 obuf[0] = PPP_ADDRESS(ibuf); in mppe_compress()
365 obuf[1] = PPP_CONTROL(ibuf); in mppe_compress()
389 ibuf += 2; /* skip to proto field */ 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
439 int flushed = MPPE_BITS(ibuf) & MPPE_BIT_FLUSHED; in mppe_decompress()
463 ccount = MPPE_CCOUNT(ibuf); in mppe_decompress()
469 if (!(MPPE_BITS(ibuf) & MPPE_BIT_ENCRYPTED)) { in mppe_decompress()
[all …]
Dppp_deflate.c49 static void z_incomp(void *state, unsigned char *ibuf, int icnt);
50 static int z_decompress(void *state, unsigned char *ibuf,
410 static int z_decompress(void *arg, unsigned char *ibuf, int isize, in z_decompress() argument
426 seq = get_unaligned_be16(ibuf + PPP_HDRLEN); in z_decompress()
439 obuf[0] = PPP_ADDRESS(ibuf); in z_decompress()
440 obuf[1] = PPP_CONTROL(ibuf); in z_decompress()
448 state->strm.next_in = ibuf + PPP_HDRLEN + DEFLATE_OVHD; in z_decompress()
516 static void z_incomp(void *arg, unsigned char *ibuf, int icnt) in z_incomp() argument
524 proto = PPP_PROTOCOL(ibuf); in z_incomp()
534 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()
/linux-5.19.10/drivers/media/usb/dvb-usb-v2/
Dlmedm04.c271 u8 *ibuf, *rbuf; in lme2510_int_response() local
295 ibuf = (u8 *)&rbuf[i*8]; in lme2510_int_response()
297 offset, i, ibuf[0], ibuf[1]); in lme2510_int_response()
299 switch (ibuf[0]) { in lme2510_int_response()
301 debug_data_snipet(1, "INT Remote data snippet", ibuf); in lme2510_int_response()
305 key = RC_SCANCODE_NEC32(ibuf[2] << 24 | in lme2510_int_response()
306 ibuf[3] << 16 | in lme2510_int_response()
307 ibuf[4] << 8 | in lme2510_int_response()
308 ibuf[5]); in lme2510_int_response()
317 signal_lock = ibuf[2] & BIT(5); in lme2510_int_response()
[all …]
Ddvbsky.c25 u8 ibuf[DVBSKY_BUF_LEN]; member
50 state->ibuf, rlen); in dvbsky_usb_generic_rw()
53 memcpy(rbuf, state->ibuf, rlen); in dvbsky_usb_generic_rw()
89 u8 obuf[3], ibuf[2]; in dvbsky_gpio_ctrl() local
94 ret = dvbsky_usb_generic_rw(d, obuf, 3, ibuf, 1); in dvbsky_gpio_ctrl()
104 u8 ibuf[64], obuf[64]; in dvbsky_i2c_xfer() local
131 ibuf, msg[0].len + 1); in dvbsky_i2c_xfer()
133 memcpy(msg[0].buf, &ibuf[1], msg[0].len); in dvbsky_i2c_xfer()
141 msg[0].len + 3, ibuf, 1); in dvbsky_i2c_xfer()
158 msg[0].len + 4, ibuf, msg[1].len + 1); in dvbsky_i2c_xfer()
[all …]
/linux-5.19.10/drivers/input/joystick/
Dfsia6b.c51 u16 ibuf; member
70 fsia6b->packet.ibuf = (data << 8) | ((fsia6b->packet.ibuf >> 8) & 0xFF); in fsia6b_serio_irq()
74 if (fsia6b->packet.ibuf == 0x4020) in fsia6b_serio_irq()
84 fsia6b->packet.ibuf; in fsia6b_serio_irq()
139 fsia6b->packet.ibuf = 0; in fsia6b_serio_connect()
/linux-5.19.10/include/linux/mfd/
Ddln2.h66 void *ibuf, unsigned *ibuf_len);
82 void *ibuf, unsigned *ibuf_len) in dln2_transfer_rx() argument
84 return dln2_transfer(pdev, cmd, NULL, 0, ibuf, ibuf_len); in dln2_transfer_rx()
/linux-5.19.10/drivers/media/usb/dvb-usb/
Ddw2102.c279 u8 ibuf[MAX_XFER_SIZE], obuf[3]; in dw2102_earda_i2c_transfer() local
288 if (2 + msg[1].len > sizeof(ibuf)) { in dw2102_earda_i2c_transfer()
302 ibuf, msg[1].len + 2, DW210X_READ_MSG); in dw2102_earda_i2c_transfer()
303 memcpy(msg[1].buf, ibuf + 2, msg[1].len); in dw2102_earda_i2c_transfer()
346 u8 ibuf[2]; in dw2102_earda_i2c_transfer() local
348 ibuf, 2, DW210X_READ_MSG); in dw2102_earda_i2c_transfer()
349 memcpy(msg[0].buf, ibuf , 2); in dw2102_earda_i2c_transfer()
384 u8 ibuf[2]; in dw2104_i2c_transfer() local
386 ibuf, 2, DW210X_READ_MSG); in dw2104_i2c_transfer()
387 memcpy(msg[j].buf, ibuf , 2); in dw2104_i2c_transfer()
[all …]
Dttusb2.c371 static u8 obuf[60], ibuf[60]; in ttusb2_i2c_xfer() local
389 if (3 + msg[i+1].len > sizeof(ibuf)) { in ttusb2_i2c_xfer()
394 if (3 + msg[i].len > sizeof(ibuf)) { 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()
422 memcpy(msg[i+1].buf, &ibuf[3], msg[i+1].len); in ttusb2_i2c_xfer()
425 memcpy(msg[i].buf, &ibuf[3], msg[i].len); in ttusb2_i2c_xfer()
Dcxusb.c202 u8 obuf[3], ibuf[MAX_XFER_SIZE]; in cxusb_i2c_xfer() local
204 if (1 + msg[i].len > sizeof(ibuf)) { in cxusb_i2c_xfer()
215 ibuf, 1 + msg[i].len) < 0) { in cxusb_i2c_xfer()
219 memcpy(msg[i].buf, &ibuf[1], msg[i].len); in cxusb_i2c_xfer()
223 u8 obuf[MAX_XFER_SIZE], ibuf[MAX_XFER_SIZE]; in cxusb_i2c_xfer() local
231 if (1 + msg[i + 1].len > sizeof(ibuf)) { in cxusb_i2c_xfer()
244 ibuf, 1 + msg[i + 1].len) < 0) in cxusb_i2c_xfer()
247 if (ibuf[0] != 0x08) in cxusb_i2c_xfer()
250 memcpy(msg[i + 1].buf, &ibuf[1], msg[i + 1].len); in cxusb_i2c_xfer()
255 u8 obuf[MAX_XFER_SIZE], ibuf; in cxusb_i2c_xfer() local
[all …]
/linux-5.19.10/drivers/media/usb/gspca/
Dkinect.c52 uint8_t ibuf[0x200]; /* input buffer for control commands */ member
127 uint8_t *ibuf = sd->ibuf; in send_cmd() local
129 struct cam_hdr *rhdr = (void *)ibuf; in send_cmd()
154 actual_len = kinect_read(udev, ibuf, 0x200); in send_cmd()
188 memcpy(replybuf, ibuf+sizeof(*rhdr), reply_len); in send_cmd()
190 memcpy(replybuf, ibuf+sizeof(*rhdr), actual_len); in send_cmd()
/linux-5.19.10/drivers/infiniband/core/
Duverbs.h56 const void __user *ibuf, in ib_uverbs_init_udata() argument
60 udata->inbuf = ibuf; in ib_uverbs_init_udata()
68 const void __user *ibuf, in ib_uverbs_init_udata_buf_or_null() argument
73 ilen ? ibuf : NULL, olen ? obuf : NULL, in ib_uverbs_init_udata_buf_or_null()
/linux-5.19.10/include/linux/
Dppp-comp.h71 int (*decompress) (void *state, unsigned char *ibuf, int isize,
75 void (*incomp) (void *state, unsigned char *ibuf, int icnt);
/linux-5.19.10/fs/
Dsplice.c1439 struct pipe_buffer *ibuf, *obuf; in splice_pipe_to_pipe() local
1509 ibuf = &ipipe->bufs[i_tail & i_mask]; in splice_pipe_to_pipe()
1512 if (len >= ibuf->len) { in splice_pipe_to_pipe()
1516 *obuf = *ibuf; in splice_pipe_to_pipe()
1517 ibuf->ops = NULL; in splice_pipe_to_pipe()
1529 if (!pipe_buf_get(ipipe, ibuf)) { in splice_pipe_to_pipe()
1534 *obuf = *ibuf; in splice_pipe_to_pipe()
1544 ibuf->offset += len; in splice_pipe_to_pipe()
1545 ibuf->len -= len; in splice_pipe_to_pipe()
1576 struct pipe_buffer *ibuf, *obuf; in link_pipe() local
[all …]
/linux-5.19.10/drivers/macintosh/
Dmacio-adb.c207 unsigned char ibuf[16]; in macio_adb_interrupt() local
254 ibuf[i] = in_8(&adb->data[i].r); in macio_adb_interrupt()
273 adb_input(ibuf, ibuf_len, autopoll); in macio_adb_interrupt()
/linux-5.19.10/drivers/media/tuners/
Dtuner-i2c.h46 unsigned char *ibuf, int ilen) in tuner_i2c_xfer_send_recv() argument
51 .buf = ibuf, .len = ilen } }; in tuner_i2c_xfer_send_recv()
Dxc2028.c134 #define i2c_send_recv(priv, obuf, osize, ibuf, isize) ({ \ argument
137 ibuf, isize); \
161 unsigned char ibuf[2]; in xc2028_get_reg() local
168 if (i2c_send_recv(priv, buf, 2, ibuf, 2) != 2) in xc2028_get_reg()
171 *val = (ibuf[1]) | (ibuf[0] << 8); in xc2028_get_reg()
/linux-5.19.10/arch/mips/boot/
Delf2ecoff.c70 char ibuf[4096]; in copy() local
82 if (cur > sizeof ibuf) in copy()
83 cur = sizeof ibuf; in copy()
85 if ((count = read(in, ibuf, cur)) != cur) { in copy()
91 if ((count = write(out, ibuf, cur)) != cur) { in copy()
/linux-5.19.10/drivers/mfd/
Ddln2.c434 void *ibuf, unsigned *ibuf_len) in _dln2_transfer() argument
499 if (!ibuf) in _dln2_transfer()
505 memcpy(ibuf, rsp + 1, *ibuf_len); in _dln2_transfer()
521 void *ibuf, unsigned *ibuf_len) in dln2_transfer() argument
531 return _dln2_transfer(dln2, handle, cmd, obuf, obuf_len, ibuf, in dln2_transfer()
/linux-5.19.10/drivers/media/dvb-frontends/
Dmt352.c58 static int _mt352_write(struct dvb_frontend* fe, const u8 ibuf[], int ilen) in _mt352_write() argument
62 if ((err = mt352_single_write(fe,ibuf[0]+i,ibuf[i+1]))) in _mt352_write()
Dzl10353.c53 static int zl10353_write(struct dvb_frontend *fe, const u8 ibuf[], int ilen) in zl10353_write() argument
57 if ((err = zl10353_single_write(fe, ibuf[0] + i, ibuf[i + 1]))) in zl10353_write()
/linux-5.19.10/drivers/scsi/megaraid/
Dmegaraid_mbox.c996 adapter->ibuf = dma_alloc_coherent(&pdev->dev, MBOX_IBUF_SIZE, in megaraid_alloc_cmd_packets()
998 if (!adapter->ibuf) { in megaraid_alloc_cmd_packets()
1091 dma_free_coherent(&pdev->dev, MBOX_IBUF_SIZE, (void *)adapter->ibuf, in megaraid_alloc_cmd_packets()
1117 (void *)adapter->ibuf, adapter->ibuf_dma_h); in megaraid_free_cmd_packets()
2900 memset((void *)adapter->ibuf, 0, MBOX_IBUF_SIZE); in megaraid_mbox_product_info()
2922 mraid_inq3 = (mraid_inquiry3_t *)adapter->ibuf; in megaraid_mbox_product_info()
3005 memset((void *)adapter->ibuf, 0, MBOX_IBUF_SIZE); in megaraid_mbox_extended_cdb()
3043 memset((void *)adapter->ibuf, 0, MBOX_IBUF_SIZE); in megaraid_mbox_support_ha()
3052 *init_id = *(uint8_t *)adapter->ibuf; in megaraid_mbox_support_ha()
3135 memset((void *)adapter->ibuf, 0, MBOX_IBUF_SIZE); in megaraid_mbox_get_max_sg()
[all …]
/linux-5.19.10/drivers/net/can/usb/peak_usb/
Dpcan_usb.c703 static int pcan_usb_decode_msg(struct peak_usb_device *dev, u8 *ibuf, u32 lbuf) in pcan_usb_decode_msg() argument
706 .rec_cnt = ibuf[1], in pcan_usb_decode_msg()
707 .ptr = ibuf + PCAN_USB_MSG_HEADER_LEN, in pcan_usb_decode_msg()
708 .end = ibuf + lbuf, in pcan_usb_decode_msg()

12