Home
last modified time | relevance | path

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

12

/Linux-v6.1/tools/usb/ffs-aio-example/multibuff/device_app/
Daio_multibuff.c208 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-v6.1/drivers/char/tpm/
Dtpm_tis_spi_main.c54 if ((phy->iobuf[3] & 0x01) == 0) { in tpm_tis_spi_flow_control()
63 if (phy->iobuf[0] & 0x01) in tpm_tis_spi_flow_control()
88 phy->iobuf[0] = (in ? 0x80 : 0) | (transfer_len - 1); in tpm_tis_spi_transfer()
89 phy->iobuf[1] = 0xd4; in tpm_tis_spi_transfer()
90 phy->iobuf[2] = addr >> 8; in tpm_tis_spi_transfer()
91 phy->iobuf[3] = addr; in tpm_tis_spi_transfer()
94 spi_xfer.tx_buf = phy->iobuf; in tpm_tis_spi_transfer()
95 spi_xfer.rx_buf = phy->iobuf; in tpm_tis_spi_transfer()
117 spi_xfer.tx_buf = phy->iobuf; in tpm_tis_spi_transfer()
119 memcpy(phy->iobuf, out, transfer_len); in tpm_tis_spi_transfer()
[all …]
Dtpm_tis_spi.h20 u8 *iobuf; member
Dtpm_tis_spi_cr50.c183 } while (!(phy->iobuf[0] & 0x01)); in cr50_spi_flow_control()
/Linux-v6.1/drivers/mtd/tests/
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 …]
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()
/Linux-v6.1/drivers/usb/storage/
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()
Dtransport.c138 if (us->current_urb->transfer_buffer == us->iobuf) in usb_stor_msg_common()
969 memcpy(us->iobuf, srb->cmnd, srb->cmd_len); in usb_stor_CB_transport()
973 us->ifnum, us->iobuf, srb->cmd_len); in usb_stor_CB_transport()
1013 result = usb_stor_intr_transfer(us, us->iobuf, 2); in usb_stor_CB_transport()
1015 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()
1051 switch (us->iobuf[1] & 0x0F) { in usb_stor_CB_transport()
1080 us->iobuf[0] = 0; in usb_stor_Bulk_max_lun()
[all …]
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()
684 unsigned char *command = us->iobuf; in usbat_multiple_write()
[all …]
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()
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()
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()
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()
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()
1073 unsigned char *content = us->iobuf; in sddr09_read_deviceID()
[all …]
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()
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()
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 …]
Dusb.h131 unsigned char *iobuf; /* I/O buffer */ member
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()
Dalauda.c365 unsigned char *command = us->iobuf; in alauda_reset_media()
381 unsigned char *data = us->iobuf; in alauda_init_media()
559 unsigned char *data = us->iobuf; in alauda_read_map()
1123 unsigned char *ptr = us->iobuf; in alauda_transport()
/Linux-v6.1/drivers/usb/misc/
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()
96 dev->port[0] = iobuf[1]; in vendor_command()
102 dev->port[1] = iobuf[1]; in vendor_command()
110 kfree(iobuf); in vendor_command()
/Linux-v6.1/net/atm/
Dioctl.c178 struct atm_iobuf __user *iobuf = argp; in do_vcc_ioctl() local
179 len = &iobuf->length; in do_vcc_ioctl()
180 if (get_user(buf, &iobuf->buffer)) in do_vcc_ioctl()
/Linux-v6.1/drivers/staging/media/deprecated/saa7146/av7110/
Dav7110.h124 void *iobuf; /* memory for all buffers */ member
/Linux-v6.1/drivers/mmc/core/
Dsdio_uart.c416 u8 iobuf[16]; in sdio_uart_transmit_chars() local
435 len = kfifo_out_locked(xmit, iobuf, 16, &port->write_lock); in sdio_uart_transmit_chars()
437 sdio_out(port, UART_TX, iobuf[count]); in sdio_uart_transmit_chars()
/Linux-v6.1/drivers/media/pci/ddbridge/
Dddbridge.h335 u8 iobuf[1028]; member

12