/linux-4.4.14/tools/usb/ffs-aio-example/multibuff/device_app/ |
D | aio_multibuff.c | 208 void init_bufs(struct io_buffer *iobuf, unsigned n, unsigned len) in init_bufs() argument 211 iobuf->buf = malloc(n*sizeof(*iobuf->buf)); in init_bufs() 212 iobuf->iocb = malloc(n*sizeof(*iobuf->iocb)); in init_bufs() 213 iobuf->cnt = n; in init_bufs() 214 iobuf->len = len; in init_bufs() 215 iobuf->requested = 0; in init_bufs() 217 iobuf->buf[i] = malloc(len*sizeof(**iobuf->buf)); in init_bufs() 218 iobuf->iocb[i] = malloc(sizeof(**iobuf->iocb)); in init_bufs() 220 iobuf->cnt = n; in init_bufs() 223 void delete_bufs(struct io_buffer *iobuf) in delete_bufs() argument [all …]
|
/linux-4.4.14/drivers/mtd/tests/ |
D | speedtest.c | 46 static unsigned char *iobuf; variable 86 return mtdtest_write(mtd, addr, mtd->erasesize, iobuf); in write_eraseblock() 93 void *buf = iobuf; in write_eraseblock_by_page() 111 void *buf = iobuf; in write_eraseblock_by_2pages() 130 return mtdtest_read(mtd, addr, mtd->erasesize, iobuf); in read_eraseblock() 137 void *buf = iobuf; in read_eraseblock_by_page() 155 void *buf = iobuf; in read_eraseblock_by_2pages() 242 iobuf = kmalloc(mtd->erasesize, GFP_KERNEL); in mtd_speedtest_init() 243 if (!iobuf) in mtd_speedtest_init() 246 prandom_bytes(iobuf, mtd->erasesize); in mtd_speedtest_init() [all …]
|
D | readtest.c | 39 static unsigned char *iobuf; variable 51 void *buf = iobuf; in read_eraseblock_by_page() 104 p += sprintf(p, "%02x", (unsigned int)iobuf[i]); in dump_eraseblock() 166 iobuf = kmalloc(mtd->erasesize, GFP_KERNEL); in mtd_readtest_init() 167 if (!iobuf) in mtd_readtest_init() 208 kfree(iobuf); in mtd_readtest_init()
|
/linux-4.4.14/drivers/usb/storage/ |
D | karma.c | 113 memset(us->iobuf, 0, RIO_SEND_LEN); in rio_karma_send_command() 114 memcpy(us->iobuf, RIO_PREFIX, RIO_PREFIX_LEN); in rio_karma_send_command() 115 us->iobuf[5] = cmd; in rio_karma_send_command() 116 us->iobuf[6] = seq; in rio_karma_send_command() 121 us->iobuf, RIO_SEND_LEN, &partial); in rio_karma_send_command() 136 us->iobuf[4] = 0x80; in rio_karma_send_command() 137 us->iobuf[5] = 0; in rio_karma_send_command()
|
D | transport.c | 149 if (us->current_urb->transfer_buffer == us->iobuf) in usb_stor_msg_common() 964 result = usb_stor_intr_transfer(us, us->iobuf, 2); in usb_stor_CB_transport() 966 us->iobuf[0], us->iobuf[1]); in usb_stor_CB_transport() 981 if (us->iobuf[0]) in usb_stor_CB_transport() 992 if (us->iobuf[0]) { in usb_stor_CB_transport() 994 us->iobuf[0]); in usb_stor_CB_transport() 1000 switch (us->iobuf[1] & 0x0F) { in usb_stor_CB_transport() 1028 us->iobuf[0] = 0; in usb_stor_Bulk_max_lun() 1033 0, us->ifnum, us->iobuf, 1, 10*HZ); in usb_stor_Bulk_max_lun() 1036 result, us->iobuf[0]); in usb_stor_Bulk_max_lun() [all …]
|
D | jumpshot.c | 151 0, 0xA0, 0, 7, us->iobuf, 1); in jumpshot_get_status() 156 if (us->iobuf[0] != 0x50) { in jumpshot_get_status() 157 usb_stor_dbg(us, "0x%2x\n", us->iobuf[0]); in jumpshot_get_status() 169 unsigned char *command = us->iobuf; in jumpshot_read_data() 246 unsigned char *command = us->iobuf; in jumpshot_write_data() 335 unsigned char *command = us->iobuf; in jumpshot_id_device() 396 unsigned char *ptr = us->iobuf; in jumpshot_handle_mode_sense() 490 unsigned char *ptr = us->iobuf; in jumpshot_transport()
|
D | shuttle_usbat.c | 327 unsigned char *reply = us->iobuf; in usbat_check_status() 357 unsigned char *command = us->iobuf; in usbat_set_shuttle_features() 409 unsigned char *status = us->iobuf; in usbat_wait_not_busy() 459 unsigned char *command = us->iobuf; in usbat_read_block() 493 unsigned char *command = us->iobuf; in usbat_write_block() 541 unsigned char *command = us->iobuf; in usbat_hp8200e_rw_block_test() 544 unsigned char *data = us->iobuf; in usbat_hp8200e_rw_block_test() 545 unsigned char *status = us->iobuf; in usbat_hp8200e_rw_block_test() 693 unsigned char *data = us->iobuf; in usbat_multiple_write() 694 unsigned char *command = us->iobuf; in usbat_multiple_write() [all …]
|
D | sddr55.c | 140 unsigned char *command = us->iobuf; in sddr55_status() 141 unsigned char *status = us->iobuf; in sddr55_status() 203 unsigned char *command = us->iobuf; in sddr55_read_data() 204 unsigned char *status = us->iobuf; in sddr55_read_data() 322 unsigned char *command = us->iobuf; in sddr55_write_data() 323 unsigned char *status = us->iobuf; in sddr55_write_data() 527 unsigned char *command = us->iobuf; in sddr55_read_deviceID() 528 unsigned char *content = us->iobuf; in sddr55_read_deviceID() 653 unsigned char *command = us->iobuf; in sddr55_read_map() 792 unsigned char *ptr = us->iobuf; in sddr55_transport()
|
D | initializers.c | 64 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap*) us->iobuf; in usb_stor_ucr61s2b_init() 65 struct bulk_cs_wrap *bcs = (struct bulk_cs_wrap*) us->iobuf; in usb_stor_ucr61s2b_init()
|
D | datafab.c | 151 unsigned char *command = us->iobuf; in datafab_read_data() 234 unsigned char *command = us->iobuf; in datafab_write_data() 235 unsigned char *reply = us->iobuf; in datafab_write_data() 335 unsigned char *command = us->iobuf; in datafab_determine_lun() 400 unsigned char *command = us->iobuf; in datafab_id_device() 467 unsigned char *ptr = us->iobuf; in datafab_handle_mode_sense() 564 unsigned char *ptr = us->iobuf; in datafab_transport()
|
D | freecom.c | 159 (struct freecom_xfer_wrap *) us->iobuf; in freecom_readdata() 192 (struct freecom_xfer_wrap *) us->iobuf; in freecom_writedata() 233 fcb = (struct freecom_cb_wrap *) us->iobuf; in freecom_transport() 234 fst = (struct freecom_status *) us->iobuf; in freecom_transport() 432 char *buffer = us->iobuf; in init_freecom()
|
D | sddr09.c | 339 unsigned char *command = us->iobuf; 360 unsigned char *command = us->iobuf; in sddr09_request_sense() 404 unsigned char *command = us->iobuf; in sddr09_readX() 534 unsigned char *command = us->iobuf; in sddr09_erase() 586 unsigned char *command = us->iobuf; in sddr09_writeX() 648 unsigned char *command = us->iobuf; 722 unsigned char *command = us->iobuf; in sddr09_read_status() 723 unsigned char *data = us->iobuf; in sddr09_read_status() 1080 unsigned char *command = us->iobuf; in sddr09_read_deviceID() 1081 unsigned char *content = us->iobuf; in sddr09_read_deviceID() [all …]
|
D | realtek_cr.c | 216 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *)us->iobuf; in rts51x_bulk_transport() 217 struct bulk_cs_wrap *bcs = (struct bulk_cs_wrap *)us->iobuf; in rts51x_bulk_transport() 303 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; in rts51x_bulk_transport_special() 304 struct bulk_cs_wrap *bcs = (struct bulk_cs_wrap *) us->iobuf; in rts51x_bulk_transport_special() 351 us->iobuf[0] = 0; in rts51x_get_max_lun() 356 0, us->ifnum, us->iobuf, 1, 10 * HZ); in rts51x_get_max_lun() 359 result, us->iobuf[0]); in rts51x_get_max_lun() 363 return us->iobuf[0]; in rts51x_get_max_lun()
|
D | ene_ub6250.c | 502 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; in ene_send_scsi_cmd() 503 struct bulk_cs_wrap *bcs = (struct bulk_cs_wrap *) us->iobuf; in ene_send_scsi_cmd() 667 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; in sd_scsi_read() 707 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; in sd_scsi_write() 860 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; in ms_read_readpage() 1141 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; in ms_read_copyblock() 1175 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; in ms_read_eraseblock() 1255 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; in ms_lib_overwrite_extra() 1341 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; in ms_lib_read_extra() 1541 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; in ms_lib_read_extrablock() [all …]
|
D | usb.h | 144 unsigned char *iobuf; /* I/O buffer */ member
|
D | usb.c | 457 us->iobuf = usb_alloc_coherent(us->pusb_dev, US_IOBUF_SIZE, in associate_dev() 459 if (!us->iobuf) { in associate_dev() 833 usb_free_coherent(us->pusb_dev, US_IOBUF_SIZE, us->iobuf, us->iobuf_dma); in dissociate_dev()
|
D | alauda.c | 377 unsigned char *command = us->iobuf; in alauda_reset_media() 393 unsigned char *data = us->iobuf; in alauda_init_media() 572 unsigned char *data = us->iobuf; in alauda_read_map() 1137 unsigned char *ptr = us->iobuf; in alauda_transport()
|
/linux-4.4.14/drivers/usb/misc/ |
D | cypress_cy7c63.c | 77 unsigned char *iobuf; in vendor_command() local 80 iobuf = kzalloc(CYPRESS_MAX_REQSIZE, GFP_KERNEL); in vendor_command() 81 if (!iobuf) { in vendor_command() 93 address, data, iobuf, CYPRESS_MAX_REQSIZE, in vendor_command() 100 dev->port[0] = iobuf[1]; in vendor_command() 106 dev->port[1] = iobuf[1]; in vendor_command() 114 kfree(iobuf); in vendor_command()
|
/linux-4.4.14/drivers/nvdimm/ |
D | blk.c | 83 void *iobuf; in nd_blk_rw_integrity() local 93 iobuf = kmap_atomic(bv.bv_page); in nd_blk_rw_integrity() 94 err = ndbr->do_io(ndbr, dev_offset, iobuf + bv.bv_offset, in nd_blk_rw_integrity() 96 kunmap_atomic(iobuf); in nd_blk_rw_integrity() 125 void *iobuf; in nd_blk_do_bvec() local 145 iobuf = kmap_atomic(page); in nd_blk_do_bvec() 146 err = ndbr->do_io(ndbr, dev_offset, iobuf + off, cur_len, rw); in nd_blk_do_bvec() 147 kunmap_atomic(iobuf); in nd_blk_do_bvec() 215 resource_size_t offset, void *iobuf, size_t n, int rw) in nd_blk_rw_bytes() argument 232 return ndbr->do_io(ndbr, dev_offset, iobuf, n, rw); in nd_blk_rw_bytes()
|
D | nd.h | 121 void *iobuf, u64 len, int rw);
|
/linux-4.4.14/net/atm/ |
D | ioctl.c | 248 struct atm_iobuf __user *iobuf; in do_atm_iobuf() local 254 iobuf = compat_alloc_user_space(sizeof(*iobuf)); in do_atm_iobuf() 261 if (put_user(len, &iobuf->length) || in do_atm_iobuf() 262 put_user(datap, &iobuf->buffer)) in do_atm_iobuf() 265 err = do_vcc_ioctl(sock, cmd, (unsigned long) iobuf, 0); in do_atm_iobuf() 268 if (copy_in_user(&iobuf32->length, &iobuf->length, in do_atm_iobuf()
|
D | resources.c | 221 struct atm_iobuf __user *iobuf = arg; in atm_dev_ioctl() local 222 iobuf_len = &iobuf->length; in atm_dev_ioctl() 223 if (get_user(buf, &iobuf->buffer)) in atm_dev_ioctl()
|
/linux-4.4.14/drivers/mfd/ |
D | rtsx_usb.c | 645 ucr->iobuf = usb_alloc_coherent(ucr->pusb_dev, IOBUF_SIZE, in rtsx_usb_probe() 647 if (!ucr->iobuf) in rtsx_usb_probe() 654 ucr->cmd_buf = ucr->rsp_buf = ucr->iobuf; in rtsx_usb_probe() 681 usb_free_coherent(ucr->pusb_dev, IOBUF_SIZE, ucr->iobuf, in rtsx_usb_probe() 695 usb_free_coherent(ucr->pusb_dev, IOBUF_SIZE, ucr->iobuf, in rtsx_usb_disconnect()
|
/linux-4.4.14/drivers/media/pci/ddbridge/ |
D | ddbridge.h | 167 u8 iobuf[1028]; member
|
D | ddbridge-core.c | 1456 wbuf = &dev->iobuf[0]; in ddb_ioctl()
|
/linux-4.4.14/drivers/acpi/ |
D | nfit.h | 116 void *iobuf, u64 len, int rw);
|
D | nfit.c | 1112 resource_size_t dpa, void *iobuf, size_t len, int rw, in acpi_nfit_blk_single_io() argument 1141 iobuf + copied, c); in acpi_nfit_blk_single_io() 1147 memcpy_from_pmem(iobuf + copied, in acpi_nfit_blk_single_io() 1163 resource_size_t dpa, void *iobuf, u64 len, int rw) in acpi_nfit_blk_region_do_io() argument 1176 iobuf + copied, c, rw, lane); in acpi_nfit_blk_region_do_io()
|
/linux-4.4.14/include/linux/ |
D | libnvdimm.h | 108 void *iobuf, u64 len, int rw);
|
/linux-4.4.14/drivers/media/pci/ttpci/ |
D | av7110.h | 132 void *iobuf; /* memory for all buffers */ member
|
D | av7110_av.c | 1623 dvb_ringbuffer_init(&av7110->avout, av7110->iobuf, AVOUTLEN); in av7110_av_init() 1624 dvb_ringbuffer_init(&av7110->aout, av7110->iobuf + AVOUTLEN, AOUTLEN); in av7110_av_init() 1626 av7110->kbuf[0] = (u8 *)(av7110->iobuf + AVOUTLEN + AOUTLEN + BMPLEN); in av7110_av_init()
|
D | av7110.c | 2672 av7110->iobuf = vmalloc(AVOUTLEN+AOUTLEN+BMPLEN+4*IPACKS); in av7110_attach() 2673 if (!av7110->iobuf) in av7110_attach() 2681 av7110->bmpbuf = av7110->iobuf+AVOUTLEN+AOUTLEN; in av7110_attach() 2753 vfree(av7110->iobuf); in av7110_attach() 2807 vfree(av7110->iobuf); in av7110_detach()
|
/linux-4.4.14/drivers/mmc/card/ |
D | sdio_uart.c | 435 u8 iobuf[16]; in sdio_uart_transmit_chars() local 454 len = kfifo_out_locked(xmit, iobuf, 16, &port->write_lock); in sdio_uart_transmit_chars() 456 sdio_out(port, UART_TX, iobuf[count]); in sdio_uart_transmit_chars()
|
/linux-4.4.14/drivers/net/wireless/ |
D | airo.c | 7790 unsigned char *iobuf; in readrids() local 7834 if ((iobuf = kmalloc(RIDSIZE, GFP_KERNEL)) == NULL) in readrids() 7837 PC4500_readrid(ai,ridcode,iobuf,RIDSIZE, 1); in readrids() 7844 if (copy_to_user(comp->data, iobuf, min(len, (int)RIDSIZE))) { in readrids() 7845 kfree (iobuf); in readrids() 7848 kfree (iobuf); in readrids() 7861 unsigned char *iobuf; in writerids() local 7910 if ((iobuf = kmalloc(RIDSIZE, GFP_KERNEL)) == NULL) in writerids() 7913 PC4500_readrid(ai,RID_STATSDELTACLEAR,iobuf,RIDSIZE, 1); in writerids() 7919 if (copy_to_user(comp->data, iobuf, in writerids() [all …]
|
/linux-4.4.14/include/linux/mfd/ |
D | rtsx_usb.h | 68 unsigned char *iobuf; member
|
/linux-4.4.14/tools/testing/nvdimm/test/ |
D | nfit.c | 1141 void *iobuf, u64 len, int rw) in nfit_test_blk_do_io() argument 1150 memcpy(mmio->addr.base + dpa, iobuf, len); in nfit_test_blk_do_io() 1152 memcpy(iobuf, mmio->addr.base + dpa, len); in nfit_test_blk_do_io()
|