Home
last modified time | relevance | path

Searched refs:io_header (Results 1 – 2 of 2) sorted by relevance

/openbmc/qemu/hw/scsi/
H A Dscsi-generic.c41 sg_io_hdr_t io_header; member
78 sg_io_hdr_t *io_hdr = &r->io_header; in scsi_command_complete_noio()
125 r->io_header.interface_id = 'S'; in execute_command()
126 r->io_header.dxfer_direction = direction; in execute_command()
127 r->io_header.dxferp = r->buf; in execute_command()
128 r->io_header.dxfer_len = r->buflen; in execute_command()
129 r->io_header.cmdp = r->req.cmd.buf; in execute_command()
130 r->io_header.cmd_len = r->req.cmd.len; in execute_command()
131 r->io_header.mx_sb_len = sizeof(r->req.sense); in execute_command()
132 r->io_header.sbp = r->req.sense; in execute_command()
[all …]
H A Dscsi-disk.c2839 sg_io_hdr_t io_header; member
2854 sg_io_hdr_t *io_hdr = &req->io_header; in scsi_block_sgio_complete()
2879 sg_io_hdr_t *io_header = &req->io_header; in scsi_block_do_sgio() local
2893 io_header->interface_id = 'S'; in scsi_block_do_sgio()
2896 io_header->dxfer_direction = direction; in scsi_block_do_sgio()
2897 io_header->dxfer_len = iov->size; in scsi_block_do_sgio()
2898 io_header->dxferp = (void *)iov->iov; in scsi_block_do_sgio()
2899 io_header->iovec_count = iov->niov; in scsi_block_do_sgio()
2900 assert(io_header->iovec_count == iov->niov); /* no overflow! */ in scsi_block_do_sgio()
2907 io_header->cmdp = req->cdb; in scsi_block_do_sgio()
[all …]