/Linux-v4.19/drivers/staging/gasket/ |
D | gasket_ioctl.c | 47 struct gasket_page_table_ioctl ibuf; in gasket_read_page_table_size() local 49 if (copy_from_user(&ibuf, argp, sizeof(struct gasket_page_table_ioctl))) in gasket_read_page_table_size() 52 if (ibuf.page_table_index >= gasket_dev->num_page_tables) in gasket_read_page_table_size() 55 ibuf.size = gasket_page_table_num_entries( in gasket_read_page_table_size() 56 gasket_dev->page_table[ibuf.page_table_index]); in gasket_read_page_table_size() 59 ibuf.page_table_index, ibuf.size, ibuf.host_address, in gasket_read_page_table_size() 60 ibuf.device_address); in gasket_read_page_table_size() 62 if (copy_to_user(argp, &ibuf, sizeof(ibuf))) in gasket_read_page_table_size() 74 struct gasket_page_table_ioctl ibuf; in gasket_read_simple_page_table_size() local 76 if (copy_from_user(&ibuf, argp, sizeof(struct gasket_page_table_ioctl))) in gasket_read_simple_page_table_size() [all …]
|
D | apex_driver.c | 464 struct apex_gate_clock_ioctl ibuf; in apex_clock_gating() local 469 if (copy_from_user(&ibuf, argp, sizeof(ibuf))) in apex_clock_gating() 472 dev_dbg(gasket_dev->dev, "%s %llu\n", __func__, ibuf.enable); in apex_clock_gating() 474 if (ibuf.enable) { in apex_clock_gating()
|
/Linux-v4.19/arch/um/drivers/ |
D | slip_common.c | 13 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()
|
D | slip_common.h | 85 unsigned char ibuf[ENC_BUF_SIZE]; member 94 memset(slip->ibuf, 0, sizeof(slip->ibuf)); in slip_proto_init()
|
/Linux-v4.19/drivers/net/ppp/ |
D | ppp_mppe.c | 365 mppe_compress(void *arg, unsigned char *ibuf, unsigned char *obuf, in mppe_compress() argument 377 proto = PPP_PROTOCOL(ibuf); in mppe_compress() 395 obuf[0] = PPP_ADDRESS(ibuf); in mppe_compress() 396 obuf[1] = PPP_CONTROL(ibuf); in mppe_compress() 420 ibuf += 2; /* skip to proto field */ in mppe_compress() 426 setup_sg(sg_in, ibuf, isize); in mppe_compress() 479 mppe_decompress(void *arg, unsigned char *ibuf, int isize, unsigned char *obuf, in mppe_decompress() argument 485 int flushed = MPPE_BITS(ibuf) & MPPE_BIT_FLUSHED; in mppe_decompress() 510 ccount = MPPE_CCOUNT(ibuf); in mppe_decompress() 516 if (!(MPPE_BITS(ibuf) & MPPE_BIT_ENCRYPTED)) { in mppe_decompress() [all …]
|
D | ppp_deflate.c | 52 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()
|
D | bsd_comp.c | 186 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-v4.19/drivers/media/usb/dvb-usb-v2/ |
D | lmedm04.c | 310 u8 *ibuf, *rbuf; in lme2510_int_response() local 334 ibuf = (u8 *)&rbuf[i*8]; in lme2510_int_response() 336 offset, i, ibuf[0], ibuf[1]); in lme2510_int_response() 338 switch (ibuf[0]) { in lme2510_int_response() 340 debug_data_snipet(1, "INT Remote data snipet", ibuf); in lme2510_int_response() 344 key = RC_SCANCODE_NEC32(ibuf[2] << 24 | in lme2510_int_response() 345 ibuf[3] << 16 | in lme2510_int_response() 346 ibuf[4] << 8 | in lme2510_int_response() 347 ibuf[5]); in lme2510_int_response() 356 signal_lock = ibuf[2] & BIT(5); in lme2510_int_response() [all …]
|
D | dvbsky.c | 34 u8 ibuf[DVBSKY_BUF_LEN]; member 59 state->ibuf, rlen); in dvbsky_usb_generic_rw() 62 memcpy(rbuf, state->ibuf, rlen); in dvbsky_usb_generic_rw() 95 u8 obuf[3], ibuf[2]; in dvbsky_gpio_ctrl() local 100 ret = dvbsky_usb_generic_rw(d, obuf, 3, ibuf, 1); in dvbsky_gpio_ctrl() 112 u8 ibuf[64], obuf[64]; in dvbsky_i2c_xfer() local 139 ibuf, msg[0].len + 1); in dvbsky_i2c_xfer() 143 memcpy(msg[0].buf, &ibuf[1], msg[0].len); in dvbsky_i2c_xfer() 151 msg[0].len + 3, ibuf, 1); in dvbsky_i2c_xfer() 170 msg[0].len + 4, ibuf, msg[1].len + 1); in dvbsky_i2c_xfer() [all …]
|
/Linux-v4.19/include/linux/mfd/ |
D | dln2.h | 66 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-v4.19/drivers/media/usb/dvb-usb/ |
D | dw2102.c | 282 u8 ibuf[MAX_XFER_SIZE], obuf[3]; in dw2102_earda_i2c_transfer() local 291 if (2 + msg[1].len > sizeof(ibuf)) { in dw2102_earda_i2c_transfer() 305 ibuf, msg[1].len + 2, DW210X_READ_MSG); in dw2102_earda_i2c_transfer() 306 memcpy(msg[1].buf, ibuf + 2, msg[1].len); in dw2102_earda_i2c_transfer() 349 u8 ibuf[2]; in dw2102_earda_i2c_transfer() local 351 ibuf, 2, DW210X_READ_MSG); in dw2102_earda_i2c_transfer() 352 memcpy(msg[0].buf, ibuf , 2); in dw2102_earda_i2c_transfer() 387 u8 ibuf[2]; in dw2104_i2c_transfer() local 389 ibuf, 2, DW210X_READ_MSG); in dw2104_i2c_transfer() 390 memcpy(msg[j].buf, ibuf , 2); in dw2104_i2c_transfer() [all …]
|
D | ttusb2.c | 374 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()
|
D | cxusb.c | 177 u8 obuf[3], ibuf[MAX_XFER_SIZE]; in cxusb_i2c_xfer() local 179 if (1 + msg[i].len > sizeof(ibuf)) { in cxusb_i2c_xfer() 190 ibuf, 1+msg[i].len) < 0) { in cxusb_i2c_xfer() 194 memcpy(msg[i].buf, &ibuf[1], msg[i].len); in cxusb_i2c_xfer() 198 u8 obuf[MAX_XFER_SIZE], ibuf[MAX_XFER_SIZE]; in cxusb_i2c_xfer() local 206 if (1 + msg[i + 1].len > sizeof(ibuf)) { in cxusb_i2c_xfer() 219 ibuf, 1+msg[i+1].len) < 0) in cxusb_i2c_xfer() 222 if (ibuf[0] != 0x08) in cxusb_i2c_xfer() 225 memcpy(msg[i+1].buf, &ibuf[1], msg[i+1].len); in cxusb_i2c_xfer() 230 u8 obuf[MAX_XFER_SIZE], ibuf; in cxusb_i2c_xfer() local [all …]
|
/Linux-v4.19/drivers/usb/misc/ |
D | rio500.c | 51 char *obuf, *ibuf; /* transfer buffers */ member 354 char *ibuf; in read_rio() local 366 ibuf = rio->ibuf; in read_rio() 384 ibuf, this_read, &partial, in read_rio() 416 if (copy_to_user(buffer, ibuf, this_read)) { in read_rio() 471 if (!(rio->ibuf = kmalloc(IBUF_SIZE, GFP_KERNEL))) { in probe_rio() 478 dev_dbg(&intf->dev, "ibuf address:%p\n", rio->ibuf); in probe_rio() 506 kfree(rio->ibuf); in disconnect_rio()
|
/Linux-v4.19/arch/x86/kernel/ |
D | paravirt_patch_32.c | 33 unsigned native_patch(u8 type, u16 clobbers, void *ibuf, in native_patch() argument 73 ret = paravirt_patch_default(type, clobbers, ibuf, addr, len); in native_patch() 77 ret = paravirt_patch_insns(ibuf, len, start, end); in native_patch()
|
D | paravirt_patch_64.c | 41 unsigned native_patch(u8 type, u16 clobbers, void *ibuf, in native_patch() argument 83 ret = paravirt_patch_default(type, clobbers, ibuf, addr, len); in native_patch() 87 ret = paravirt_patch_insns(ibuf, len, start, end); in native_patch()
|
D | vsmp_64.c | 72 static unsigned __init vsmp_patch(u8 type, u16 clobbers, void *ibuf, in vsmp_patch() argument 80 return paravirt_patch_default(type, clobbers, ibuf, addr, len); in vsmp_patch() 82 return native_patch(type, clobbers, ibuf, addr, len); in vsmp_patch()
|
/Linux-v4.19/drivers/media/usb/gspca/ |
D | kinect.c | 61 uint8_t ibuf[0x200]; /* input buffer for control commands */ member 136 uint8_t *ibuf = sd->ibuf; in send_cmd() local 138 struct cam_hdr *rhdr = (void *)ibuf; in send_cmd() 163 actual_len = kinect_read(udev, ibuf, 0x200); in send_cmd() 197 memcpy(replybuf, ibuf+sizeof(*rhdr), reply_len); in send_cmd() 199 memcpy(replybuf, ibuf+sizeof(*rhdr), actual_len); in send_cmd()
|
/Linux-v4.19/include/linux/ |
D | ppp-comp.h | 74 int (*decompress) (void *state, unsigned char *ibuf, int isize, 78 void (*incomp) (void *state, unsigned char *ibuf, int icnt);
|
/Linux-v4.19/drivers/infiniband/core/ |
D | uverbs.h | 56 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-v4.19/fs/ |
D | splice.c | 1512 struct pipe_buffer *ibuf, *obuf; in splice_pipe_to_pipe() local 1568 ibuf = ipipe->bufs + ipipe->curbuf; in splice_pipe_to_pipe() 1572 if (len >= ibuf->len) { in splice_pipe_to_pipe() 1576 *obuf = *ibuf; in splice_pipe_to_pipe() 1577 ibuf->ops = NULL; in splice_pipe_to_pipe() 1587 pipe_buf_get(ipipe, ibuf); in splice_pipe_to_pipe() 1588 *obuf = *ibuf; in splice_pipe_to_pipe() 1598 ibuf->offset += obuf->len; in splice_pipe_to_pipe() 1599 ibuf->len -= obuf->len; in splice_pipe_to_pipe() 1627 struct pipe_buffer *ibuf, *obuf; in link_pipe() local [all …]
|
/Linux-v4.19/drivers/macintosh/ |
D | macio-adb.c | 205 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()
|
/Linux-v4.19/drivers/media/tuners/ |
D | tuner-i2c.h | 58 unsigned char *ibuf, int ilen) in tuner_i2c_xfer_send_recv() argument 63 .buf = ibuf, .len = ilen } }; in tuner_i2c_xfer_send_recv()
|
/Linux-v4.19/arch/mips/boot/ |
D | elf2ecoff.c | 70 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-v4.19/drivers/mfd/ |
D | dln2.c | 427 void *ibuf, unsigned *ibuf_len) in _dln2_transfer() argument 492 if (!ibuf) in _dln2_transfer() 498 memcpy(ibuf, rsp + 1, *ibuf_len); in _dln2_transfer() 514 void *ibuf, unsigned *ibuf_len) in dln2_transfer() argument 524 return _dln2_transfer(dln2, handle, cmd, obuf, obuf_len, ibuf, in dln2_transfer()
|