Lines Matching refs:pthru

1415 	struct megasas_pthru_frame *pthru;  in megasas_build_dcdb()  local
1419 pthru = (struct megasas_pthru_frame *)cmd->frame; in megasas_build_dcdb()
1435 pthru->cmd = (is_logical) ? MFI_CMD_LD_SCSI_IO : MFI_CMD_PD_SCSI_IO; in megasas_build_dcdb()
1436 pthru->cmd_status = 0x0; in megasas_build_dcdb()
1437 pthru->scsi_status = 0x0; in megasas_build_dcdb()
1438 pthru->target_id = device_id; in megasas_build_dcdb()
1439 pthru->lun = scp->device->lun; in megasas_build_dcdb()
1440 pthru->cdb_len = scp->cmd_len; in megasas_build_dcdb()
1441 pthru->timeout = 0; in megasas_build_dcdb()
1442 pthru->pad_0 = 0; in megasas_build_dcdb()
1443 pthru->flags = cpu_to_le16(flags); in megasas_build_dcdb()
1444 pthru->data_xfer_len = cpu_to_le32(scsi_bufflen(scp)); in megasas_build_dcdb()
1446 memcpy(pthru->cdb, scp->cmnd, scp->cmd_len); in megasas_build_dcdb()
1454 pthru->timeout = cpu_to_le16(0xFFFF); in megasas_build_dcdb()
1456 pthru->timeout = cpu_to_le16(scsi_cmd_to_rq(scp)->timeout / HZ); in megasas_build_dcdb()
1463 pthru->flags |= cpu_to_le16(MFI_FRAME_SGL64); in megasas_build_dcdb()
1464 pthru->sge_count = megasas_make_sgl_skinny(instance, scp, in megasas_build_dcdb()
1465 &pthru->sgl); in megasas_build_dcdb()
1467 pthru->flags |= cpu_to_le16(MFI_FRAME_SGL64); in megasas_build_dcdb()
1468 pthru->sge_count = megasas_make_sgl64(instance, scp, in megasas_build_dcdb()
1469 &pthru->sgl); in megasas_build_dcdb()
1471 pthru->sge_count = megasas_make_sgl32(instance, scp, in megasas_build_dcdb()
1472 &pthru->sgl); in megasas_build_dcdb()
1474 if (pthru->sge_count > instance->max_num_sge) { in megasas_build_dcdb()
1476 pthru->sge_count); in megasas_build_dcdb()
1483 pthru->sense_len = SCSI_SENSE_BUFFERSIZE; in megasas_build_dcdb()
1484 pthru->sense_buf_phys_addr_hi = in megasas_build_dcdb()
1486 pthru->sense_buf_phys_addr_lo = in megasas_build_dcdb()
1493 cmd->frame_count = megasas_get_frame_count(instance, pthru->sge_count, in megasas_build_dcdb()
1679 struct megasas_pthru_frame *pthru; in megasas_dump_pending_frames() local
1706 pthru = (struct megasas_pthru_frame *) cmd->frame; in megasas_dump_pending_frames()
1707 mfi_sgl = &pthru->sgl; in megasas_dump_pending_frames()
1708 sgcount = pthru->sge_count; in megasas_dump_pending_frames()
1711 instance->host->host_no, cmd->frame_count, pthru->cmd, pthru->target_id, in megasas_dump_pending_frames()
1712 pthru->lun, pthru->cdb_len, le32_to_cpu(pthru->data_xfer_len), in megasas_dump_pending_frames()
1713 le32_to_cpu(pthru->sense_buf_phys_addr_lo), sgcount); in megasas_dump_pending_frames()