Home
last modified time | relevance | path

Searched refs:iobuf (Results 1 – 25 of 32) sorted by relevance

12

/openbmc/linux/tools/usb/ffs-aio-example/multibuff/device_app/
H A Daio_multibuff.c211 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()
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()
299 for (i = 0; i < sizeof(iobuf)/sizeof(*iobuf); ++i) in main()
327 for (i = 0; i < sizeof(iobuf)/sizeof(*iobuf); ++i) { in main()
340 ret = io_submit(ctx, iobuf[i].cnt, iobuf[i].iocb); in main()
367 actual = (actual + 1)%(sizeof(iobuf)/sizeof(*iobuf)); in main()
[all …]
/openbmc/linux/drivers/char/tpm/
H A Dtpm_tis_spi_main.c64 if (phy->iobuf[0] & 0x01) in tpm_tis_spi_flow_control()
95 phy->iobuf[1] = 0xd4; in tpm_tis_spi_transfer_half()
96 phy->iobuf[2] = addr >> 8; in tpm_tis_spi_transfer_half()
97 phy->iobuf[3] = addr; in tpm_tis_spi_transfer_half()
156 phy->iobuf[1] = 0xd4; in tpm_tis_spi_transfer_full()
157 phy->iobuf[2] = addr >> 8; in tpm_tis_spi_transfer_full()
158 phy->iobuf[3] = addr; in tpm_tis_spi_transfer_full()
161 spi_xfer.tx_buf = phy->iobuf; in tpm_tis_spi_transfer_full()
162 spi_xfer.rx_buf = phy->iobuf; in tpm_tis_spi_transfer_full()
184 spi_xfer.tx_buf = phy->iobuf; in tpm_tis_spi_transfer_full()
[all …]
H A Dtpm_tis_spi.h20 u8 *iobuf; member
/openbmc/u-boot/drivers/block/
H A Dide.c467 memset(iobuf, 0, sizeof(iobuf)); in atapi_inquiry()
486 dev_desc->type = iobuf[0] & 0x1f; in atapi_inquiry()
488 if ((iobuf[1] & 0x80) == 0x80) in atapi_inquiry()
494 memset(iobuf, 0, sizeof(iobuf)); in atapi_inquiry()
505 memset(iobuf, 0, sizeof(iobuf)); in atapi_inquiry()
513 memset(iobuf, 0, sizeof(iobuf)); in atapi_inquiry()
521 iobuf[0], iobuf[1], iobuf[2], iobuf[3], in atapi_inquiry()
522 iobuf[4], iobuf[5], iobuf[6], iobuf[7]); in atapi_inquiry()
525 ((unsigned long) iobuf[1] << 16) + in atapi_inquiry()
526 ((unsigned long) iobuf[2] << 8) + ((unsigned long) iobuf[3]); in atapi_inquiry()
[all …]
/openbmc/linux/drivers/mtd/tests/
H A Dspeedtest.c34 static unsigned char *iobuf; variable
67 return mtdtest_write(mtd, addr, mtd->erasesize, iobuf); in write_eraseblock()
74 void *buf = iobuf; in write_eraseblock_by_page()
92 void *buf = iobuf; in write_eraseblock_by_2pages()
111 return mtdtest_read(mtd, addr, mtd->erasesize, iobuf); in read_eraseblock()
118 void *buf = iobuf; in read_eraseblock_by_page()
136 void *buf = iobuf; in read_eraseblock_by_2pages()
222 iobuf = kmalloc(mtd->erasesize, GFP_KERNEL); in mtd_speedtest_init()
223 if (!iobuf) in mtd_speedtest_init()
226 get_random_bytes(iobuf, mtd->erasesize); in mtd_speedtest_init()
[all …]
H A Dreadtest.c27 static unsigned char *iobuf; variable
39 void *buf = iobuf; in read_eraseblock_by_page()
92 p += sprintf(p, "%02x", (unsigned int)iobuf[i]); in dump_eraseblock()
154 iobuf = kmalloc(mtd->erasesize, GFP_KERNEL); in mtd_readtest_init()
155 if (!iobuf) in mtd_readtest_init()
196 kfree(iobuf); in mtd_readtest_init()
/openbmc/linux/drivers/usb/storage/
H A Dkarma.c102 memset(us->iobuf, 0, RIO_SEND_LEN); in rio_karma_send_command()
103 memcpy(us->iobuf, RIO_PREFIX, RIO_PREFIX_LEN); in rio_karma_send_command()
104 us->iobuf[5] = cmd; in rio_karma_send_command()
105 us->iobuf[6] = seq; in rio_karma_send_command()
110 us->iobuf, RIO_SEND_LEN, NULL); in rio_karma_send_command()
125 us->iobuf[4] = 0x80; in rio_karma_send_command()
126 us->iobuf[5] = 0; in rio_karma_send_command()
H A Dtransport.c1015 us->iobuf[0], us->iobuf[1]); in usb_stor_CB_transport()
1031 if (us->iobuf[0]) in usb_stor_CB_transport()
1043 if (us->iobuf[0]) { in usb_stor_CB_transport()
1045 us->iobuf[0]); in usb_stor_CB_transport()
1080 us->iobuf[0] = 0; in usb_stor_Bulk_max_lun()
1088 result, us->iobuf[0]); in usb_stor_Bulk_max_lun()
1096 if (us->iobuf[0] < 16) { in usb_stor_Bulk_max_lun()
1097 return us->iobuf[0]; in usb_stor_Bulk_max_lun()
1101 us->iobuf[0]); in usb_stor_Bulk_max_lun()
1129 us->iobuf[31] = 0; in usb_stor_Bulk_transport()
[all …]
H A Djumpshot.c140 0, 0xA0, 0, 7, us->iobuf, 1); in jumpshot_get_status()
145 if (us->iobuf[0] != 0x50) { in jumpshot_get_status()
146 usb_stor_dbg(us, "0x%2x\n", us->iobuf[0]); in jumpshot_get_status()
158 unsigned char *command = us->iobuf; in jumpshot_read_data()
235 unsigned char *command = us->iobuf; in jumpshot_write_data()
324 unsigned char *command = us->iobuf; in jumpshot_id_device()
385 unsigned char *ptr = us->iobuf; in jumpshot_handle_mode_sense()
479 unsigned char *ptr = us->iobuf; in jumpshot_transport()
H A Dshuttle_usbat.c316 unsigned char *reply = us->iobuf; in usbat_check_status()
346 unsigned char *command = us->iobuf; in usbat_set_shuttle_features()
398 unsigned char *status = us->iobuf; in usbat_wait_not_busy()
449 unsigned char *command = us->iobuf; in usbat_read_block()
483 unsigned char *command = us->iobuf; in usbat_write_block()
531 unsigned char *command = us->iobuf; in usbat_hp8200e_rw_block_test()
534 unsigned char *data = us->iobuf; in usbat_hp8200e_rw_block_test()
535 unsigned char *status = us->iobuf; in usbat_hp8200e_rw_block_test()
683 unsigned char *data = us->iobuf; in usbat_multiple_write()
929 unsigned char *uio = us->iobuf; in usbat_flash_check_media()
[all …]
H A Dsddr55.c130 unsigned char *command = us->iobuf; in sddr55_status()
131 unsigned char *status = us->iobuf; in sddr55_status()
193 unsigned char *command = us->iobuf; in sddr55_read_data()
194 unsigned char *status = us->iobuf; in sddr55_read_data()
312 unsigned char *command = us->iobuf; in sddr55_write_data()
313 unsigned char *status = us->iobuf; in sddr55_write_data()
517 unsigned char *command = us->iobuf; in sddr55_read_deviceID()
518 unsigned char *content = us->iobuf; in sddr55_read_deviceID()
644 unsigned char *command = us->iobuf; in sddr55_read_map()
787 unsigned char *ptr = us->iobuf; in sddr55_transport()
H A Dinitializers.c53 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap*) us->iobuf; in usb_stor_ucr61s2b_init()
54 struct bulk_cs_wrap *bcs = (struct bulk_cs_wrap*) us->iobuf; in usb_stor_ucr61s2b_init()
H A Ddatafab.c140 unsigned char *command = us->iobuf; in datafab_read_data()
223 unsigned char *command = us->iobuf; in datafab_write_data()
224 unsigned char *reply = us->iobuf; in datafab_write_data()
323 unsigned char *command = us->iobuf; in datafab_determine_lun()
388 unsigned char *command = us->iobuf; in datafab_id_device()
455 unsigned char *ptr = us->iobuf; in datafab_handle_mode_sense()
552 unsigned char *ptr = us->iobuf; in datafab_transport()
H A Dfreecom.c156 (struct freecom_xfer_wrap *) us->iobuf; in freecom_readdata()
189 (struct freecom_xfer_wrap *) us->iobuf; in freecom_writedata()
230 fcb = (struct freecom_cb_wrap *) us->iobuf; in freecom_transport()
231 fst = (struct freecom_status *) us->iobuf; in freecom_transport()
442 char *buffer = us->iobuf; in init_freecom()
H A Dsddr09.c328 unsigned char *command = us->iobuf;
349 unsigned char *command = us->iobuf; in sddr09_request_sense()
393 unsigned char *command = us->iobuf; in sddr09_readX()
523 unsigned char *command = us->iobuf; in sddr09_erase()
575 unsigned char *command = us->iobuf; in sddr09_writeX()
637 unsigned char *command = us->iobuf;
711 unsigned char *command = us->iobuf; in sddr09_read_status()
712 unsigned char *data = us->iobuf; in sddr09_read_status()
1072 unsigned char *command = us->iobuf; in sddr09_read_deviceID()
1449 unsigned char *data = us->iobuf; in usb_stor_sddr09_dpcm_init()
[all …]
H A Drealtek_cr.c205 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *)us->iobuf; in rts51x_bulk_transport()
206 struct bulk_cs_wrap *bcs = (struct bulk_cs_wrap *)us->iobuf; in rts51x_bulk_transport()
295 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; in rts51x_bulk_transport_special()
296 struct bulk_cs_wrap *bcs = (struct bulk_cs_wrap *) us->iobuf; in rts51x_bulk_transport_special()
343 us->iobuf[0] = 0; in rts51x_get_max_lun()
348 0, us->ifnum, us->iobuf, 1, 10 * HZ); in rts51x_get_max_lun()
351 result, us->iobuf[0]); in rts51x_get_max_lun()
355 return us->iobuf[0]; in rts51x_get_max_lun()
H A Dene_ub6250.c492 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; in ene_send_scsi_cmd()
493 struct bulk_cs_wrap *bcs = (struct bulk_cs_wrap *) us->iobuf; in ene_send_scsi_cmd()
675 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; in sd_scsi_read()
715 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; in sd_scsi_write()
873 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; in ms_read_readpage()
1156 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; in ms_read_copyblock()
1188 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; in ms_read_eraseblock()
1266 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; in ms_lib_overwrite_extra()
1350 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; in ms_lib_read_extra()
1535 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; in ms_lib_read_extrablock()
[all …]
H A Dusb.h131 unsigned char *iobuf; /* I/O buffer */ member
H A Dalauda.c368 unsigned char *command = us->iobuf; in alauda_reset_media()
384 unsigned char *data = us->iobuf; in alauda_init_media()
460 unsigned char *status = us->iobuf; in alauda_check_media()
570 unsigned char *data = us->iobuf; in alauda_read_map()
1134 unsigned char *ptr = us->iobuf; in alauda_transport()
H A Dusb.c462 us->iobuf = usb_alloc_coherent(us->pusb_dev, US_IOBUF_SIZE, in associate_dev()
464 if (!us->iobuf) { in associate_dev()
833 usb_free_coherent(us->pusb_dev, US_IOBUF_SIZE, us->iobuf, us->iobuf_dma); in dissociate_dev()
/openbmc/linux/drivers/usb/misc/
H A Dcypress_cy7c63.c74 unsigned char *iobuf; in vendor_command() local
77 iobuf = kzalloc(CYPRESS_MAX_REQSIZE, GFP_KERNEL); in vendor_command()
78 if (!iobuf) { in vendor_command()
89 address, data, iobuf, CYPRESS_MAX_REQSIZE, in vendor_command()
99 dev->port[0] = iobuf[1]; in vendor_command()
105 dev->port[1] = iobuf[1]; in vendor_command()
114 kfree(iobuf); in vendor_command()
/openbmc/qemu/hw/block/
H A Dnand.c673 uint8_t iobuf[(PAGE_SECTORS + 2) * 0x200];
711 mem_and(iobuf + soff, s->io, s->iolen);
725 uint8_t iobuf[0x200] = { [0 ... 0x1ff] = 0xff, };
742 BDRV_SECTOR_SIZE, iobuf, 0) < 0) {
749 BDRV_SECTOR_SIZE, iobuf, 0) < 0) {
752 memset(iobuf + (addr & 0x1ff), 0xff, (~addr & 0x1ff) + 1);
754 BDRV_SECTOR_SIZE, iobuf, 0) < 0) {
758 memset(iobuf, 0xff, 0x200);
770 BDRV_SECTOR_SIZE, iobuf, 0) < 0) {
773 memset(iobuf, 0xff, ((addr - 1) & 0x1ff) + 1);
[all …]
/openbmc/u-boot/drivers/ata/
H A Dsata_sil3114.c105 u16 iobuf[ATA_SECTOR_WORDS]; in sata_identify() local
108 memset (iobuf, 0, sizeof (iobuf)); in sata_identify()
130 input_data (&port[num].ioaddr, iobuf, ATA_SECTOR_WORDS); in sata_identify()
132 ata_swap_buf_le16 (iobuf, ATA_SECTOR_WORDS); in sata_identify()
134 debug ("Specific config: %x\n", iobuf[2]); in sata_identify()
137 if (!ata_id_has_dma (iobuf) || !ata_id_has_lba (iobuf)) { in sata_identify()
141 ata_dump_id (iobuf); in sata_identify()
143 n_sectors = ata_id_n_sectors (iobuf); in sata_identify()
151 ata_id_c_string (iobuf, (unsigned char *)sata_dev_desc[devno].vendor, in sata_identify()
153 ata_id_c_string (iobuf, (unsigned char *)sata_dev_desc[devno].product, in sata_identify()
[all …]
/openbmc/linux/net/atm/
H A Dioctl.c181 struct atm_iobuf __user *iobuf = argp; in do_vcc_ioctl() local
182 len = &iobuf->length; in do_vcc_ioctl()
183 if (get_user(buf, &iobuf->buffer)) in do_vcc_ioctl()
/openbmc/qemu/block/
H A Dblock-backend.c1491 void *iobuf; member
1570 void *iobuf, CoroutineEntry co_entry, in blk_aio_prwv() argument
1582 .iobuf = iobuf, in blk_aio_prwv()
1605 QEMUIOVector *qiov = rwco->iobuf; in blk_aio_read_entry()
1617 QEMUIOVector *qiov = rwco->iobuf; in blk_aio_write_entry()
1871 rwco->iobuf); in blk_aio_zone_report_entry()
1889 .iobuf = zones, in blk_aio_zone_report()
1913 (BlockZoneOp)(uintptr_t)rwco->iobuf, in blk_aio_zone_mgmt_entry()
1930 .iobuf = (void *)(uintptr_t)op, in blk_aio_zone_mgmt()
1954 rwco->iobuf, rwco->flags); in blk_aio_zone_append_entry()
[all …]

12