/linux/tools/usb/ffs-aio-example/multibuff/device_app/ |
H A 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/drivers/char/tpm/ |
H A D | tpm_tis_spi_main.c | 55 if ((phy->iobuf[3] & 0x01) == 0) { in tpm_tis_spi_flow_control() 64 if (phy->iobuf[0] & 0x01) in tpm_tis_spi_flow_control() 94 phy->iobuf[0] = (in ? 0x80 : 0) | (transfer_len - 1); in tpm_tis_spi_transfer_half() 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() 101 spi_xfer[0].tx_buf = phy->iobuf; in tpm_tis_spi_transfer_half() 105 spi_xfer[1].tx_buf = phy->iobuf + 1; in tpm_tis_spi_transfer_half() 110 spi_xfer[2].tx_buf = &phy->iobuf[4]; in tpm_tis_spi_transfer_half() 112 memcpy(&phy->iobuf[4], out, transfer_len); in tpm_tis_spi_transfer_half() [all …]
|
H A D | tpm_tis_spi.h | 20 u8 *iobuf; member
|
H A D | tpm_tis_spi_cr50.c | 183 } while (!(phy->iobuf[0] & 0x01)); in cr50_spi_flow_control()
|
/linux/drivers/mtd/tests/ |
H A D | speedtest.c | 34 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 D | readtest.c | 27 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/drivers/usb/storage/ |
H A D | karma.c | 102 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 D | shuttle_usbat.c | 316 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 …]
|
H A D | jumpshot.c | 140 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 D | sddr55.c | 130 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 D | datafab.c | 140 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 D | initializers.c | 53 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 D | sddr09.c | 328 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 …]
|
H A D | freecom.c | 156 (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 D | realtek_cr.c | 205 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 D | ene_ub6250.c | 492 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 D | alauda.c | 368 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 D | usb.h | 131 unsigned char *iobuf; /* I/O buffer */ member
|
H A D | usb.c | 544 us->iobuf = usb_alloc_coherent(us->pusb_dev, US_IOBUF_SIZE, in associate_dev() 546 if (!us->iobuf) { in associate_dev() 915 usb_free_coherent(us->pusb_dev, US_IOBUF_SIZE, us->iobuf, us->iobuf_dma); in dissociate_dev()
|
/linux/drivers/usb/misc/ |
H A D | cypress_cy7c63.c | 74 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()
|
/linux/net/atm/ |
H A D | ioctl.c | 181 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()
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | token.c | 152 char iobuf[1]; in sendfd() local 154 .iov_base = iobuf, in sendfd() 155 .iov_len = sizeof(iobuf), in sendfd() 187 char iobuf[1]; in recvfd() local 189 .iov_base = iobuf, in recvfd() 190 .iov_len = sizeof(iobuf), in recvfd()
|
/linux/drivers/staging/media/av7110/ |
H A D | av7110.h | 126 void *iobuf; /* memory for all buffers */ member
|
/linux/drivers/mmc/core/ |
H A D | sdio_uart.c | 412 u8 iobuf[16]; in sdio_uart_transmit_chars() local 431 len = kfifo_out_locked(xmit, iobuf, 16, &port->write_lock); in sdio_uart_transmit_chars() 433 sdio_out(port, UART_TX, iobuf[count]); in sdio_uart_transmit_chars()
|
/linux/drivers/media/pci/ddbridge/ |
H A D | ddbridge.h | 335 u8 iobuf[1028]; member
|