Lines Matching refs:pthru

1333  * @frame_type		: type of frame- io or pthru frame
1358 * 2 SGEs for 32-bit SGLs for pthru frame
1406 struct megasas_pthru_frame *pthru;
1410 pthru = (struct megasas_pthru_frame *)cmd->frame;
1426 pthru->cmd = (is_logical) ? MFI_CMD_LD_SCSI_IO : MFI_CMD_PD_SCSI_IO;
1427 pthru->cmd_status = 0x0;
1428 pthru->scsi_status = 0x0;
1429 pthru->target_id = device_id;
1430 pthru->lun = scp->device->lun;
1431 pthru->cdb_len = scp->cmd_len;
1432 pthru->timeout = 0;
1433 pthru->pad_0 = 0;
1434 pthru->flags = cpu_to_le16(flags);
1435 pthru->data_xfer_len = cpu_to_le32(scsi_bufflen(scp));
1437 memcpy(pthru->cdb, scp->cmnd, scp->cmd_len);
1441 * pthru timeout to the os layer timeout value.
1445 pthru->timeout = cpu_to_le16(0xFFFF);
1447 pthru->timeout = cpu_to_le16(scp->request->timeout / HZ);
1454 pthru->flags |= cpu_to_le16(MFI_FRAME_SGL64);
1455 pthru->sge_count = megasas_make_sgl_skinny(instance, scp,
1456 &pthru->sgl);
1458 pthru->flags |= cpu_to_le16(MFI_FRAME_SGL64);
1459 pthru->sge_count = megasas_make_sgl64(instance, scp,
1460 &pthru->sgl);
1462 pthru->sge_count = megasas_make_sgl32(instance, scp,
1463 &pthru->sgl);
1465 if (pthru->sge_count > instance->max_num_sge) {
1467 pthru->sge_count);
1474 pthru->sense_len = SCSI_SENSE_BUFFERSIZE;
1475 pthru->sense_buf_phys_addr_hi =
1477 pthru->sense_buf_phys_addr_lo =
1484 cmd->frame_count = megasas_get_frame_count(instance, pthru->sge_count,
1670 struct megasas_pthru_frame *pthru;
1697 pthru = (struct megasas_pthru_frame *) cmd->frame;
1698 mfi_sgl = &pthru->sgl;
1699 sgcount = pthru->sge_count;
1702 instance->host->host_no, cmd->frame_count, pthru->cmd, pthru->target_id,
1703 pthru->lun, pthru->cdb_len, le32_to_cpu(pthru->data_xfer_len),
1704 le32_to_cpu(pthru->sense_buf_phys_addr_lo), sgcount);