Lines Matching refs:ldio
1515 struct megasas_io_frame *ldio; in megasas_build_ldio() local
1518 ldio = (struct megasas_io_frame *)cmd->frame; in megasas_build_ldio()
1532 ldio->cmd = (sc & 0x02) ? MFI_CMD_LD_WRITE : MFI_CMD_LD_READ; in megasas_build_ldio()
1533 ldio->cmd_status = 0x0; in megasas_build_ldio()
1534 ldio->scsi_status = 0x0; in megasas_build_ldio()
1535 ldio->target_id = device_id; in megasas_build_ldio()
1536 ldio->timeout = 0; in megasas_build_ldio()
1537 ldio->reserved_0 = 0; in megasas_build_ldio()
1538 ldio->pad_0 = 0; in megasas_build_ldio()
1539 ldio->flags = cpu_to_le16(flags); in megasas_build_ldio()
1540 ldio->start_lba_hi = 0; in megasas_build_ldio()
1541 ldio->access_byte = (scp->cmd_len != 6) ? scp->cmnd[1] : 0; in megasas_build_ldio()
1547 ldio->lba_count = cpu_to_le32((u32) scp->cmnd[4]); in megasas_build_ldio()
1548 ldio->start_lba_lo = cpu_to_le32(((u32) scp->cmnd[1] << 16) | in megasas_build_ldio()
1552 ldio->start_lba_lo &= cpu_to_le32(0x1FFFFF); in megasas_build_ldio()
1559 ldio->lba_count = cpu_to_le32((u32) scp->cmnd[8] | in megasas_build_ldio()
1561 ldio->start_lba_lo = cpu_to_le32(((u32) scp->cmnd[2] << 24) | in megasas_build_ldio()
1571 ldio->lba_count = cpu_to_le32(((u32) scp->cmnd[6] << 24) | in megasas_build_ldio()
1576 ldio->start_lba_lo = cpu_to_le32(((u32) scp->cmnd[2] << 24) | in megasas_build_ldio()
1586 ldio->lba_count = cpu_to_le32(((u32) scp->cmnd[10] << 24) | in megasas_build_ldio()
1591 ldio->start_lba_lo = cpu_to_le32(((u32) scp->cmnd[6] << 24) | in megasas_build_ldio()
1596 ldio->start_lba_hi = cpu_to_le32(((u32) scp->cmnd[2] << 24) | in megasas_build_ldio()
1607 ldio->flags |= cpu_to_le16(MFI_FRAME_SGL64); in megasas_build_ldio()
1608 ldio->sge_count = megasas_make_sgl_skinny(instance, scp, in megasas_build_ldio()
1609 &ldio->sgl); in megasas_build_ldio()
1611 ldio->flags |= cpu_to_le16(MFI_FRAME_SGL64); in megasas_build_ldio()
1612 ldio->sge_count = megasas_make_sgl64(instance, scp, &ldio->sgl); in megasas_build_ldio()
1614 ldio->sge_count = megasas_make_sgl32(instance, scp, &ldio->sgl); in megasas_build_ldio()
1616 if (ldio->sge_count > instance->max_num_sge) { in megasas_build_ldio()
1618 ldio->sge_count); in megasas_build_ldio()
1625 ldio->sense_len = SCSI_SENSE_BUFFERSIZE; in megasas_build_ldio()
1626 ldio->sense_buf_phys_addr_hi = 0; in megasas_build_ldio()
1627 ldio->sense_buf_phys_addr_lo = cpu_to_le32(cmd->sense_phys_addr); in megasas_build_ldio()
1634 ldio->sge_count, IO_FRAME); in megasas_build_ldio()
1679 struct megasas_io_frame *ldio; in megasas_dump_pending_frames() local
1698 ldio = (struct megasas_io_frame *)cmd->frame; in megasas_dump_pending_frames()
1699 mfi_sgl = &ldio->sgl; in megasas_dump_pending_frames()
1700 sgcount = ldio->sge_count; in megasas_dump_pending_frames()
1703 instance->host->host_no, cmd->frame_count, ldio->cmd, ldio->target_id, in megasas_dump_pending_frames()
1704 le32_to_cpu(ldio->start_lba_lo), le32_to_cpu(ldio->start_lba_hi), in megasas_dump_pending_frames()
1705 le32_to_cpu(ldio->sense_buf_phys_addr_lo), sgcount); in megasas_dump_pending_frames()