Lines Matching refs:pthru
1327 struct megasas_pthru_frame *pthru; in megasas_build_dcdb() local
1331 pthru = (struct megasas_pthru_frame *)cmd->frame; in megasas_build_dcdb()
1347 pthru->cmd = (is_logical) ? MFI_CMD_LD_SCSI_IO : MFI_CMD_PD_SCSI_IO; in megasas_build_dcdb()
1348 pthru->cmd_status = 0x0; in megasas_build_dcdb()
1349 pthru->scsi_status = 0x0; in megasas_build_dcdb()
1350 pthru->target_id = device_id; in megasas_build_dcdb()
1351 pthru->lun = scp->device->lun; in megasas_build_dcdb()
1352 pthru->cdb_len = scp->cmd_len; in megasas_build_dcdb()
1353 pthru->timeout = 0; in megasas_build_dcdb()
1354 pthru->pad_0 = 0; in megasas_build_dcdb()
1355 pthru->flags = cpu_to_le16(flags); in megasas_build_dcdb()
1356 pthru->data_xfer_len = cpu_to_le32(scsi_bufflen(scp)); in megasas_build_dcdb()
1358 memcpy(pthru->cdb, scp->cmnd, scp->cmd_len); in megasas_build_dcdb()
1366 pthru->timeout = cpu_to_le16(0xFFFF); in megasas_build_dcdb()
1368 pthru->timeout = cpu_to_le16(scp->request->timeout / HZ); in megasas_build_dcdb()
1375 pthru->flags |= cpu_to_le16(MFI_FRAME_SGL64); in megasas_build_dcdb()
1376 pthru->sge_count = megasas_make_sgl_skinny(instance, scp, in megasas_build_dcdb()
1377 &pthru->sgl); in megasas_build_dcdb()
1379 pthru->flags |= cpu_to_le16(MFI_FRAME_SGL64); in megasas_build_dcdb()
1380 pthru->sge_count = megasas_make_sgl64(instance, scp, in megasas_build_dcdb()
1381 &pthru->sgl); in megasas_build_dcdb()
1383 pthru->sge_count = megasas_make_sgl32(instance, scp, in megasas_build_dcdb()
1384 &pthru->sgl); in megasas_build_dcdb()
1386 if (pthru->sge_count > instance->max_num_sge) { in megasas_build_dcdb()
1388 pthru->sge_count); in megasas_build_dcdb()
1395 pthru->sense_len = SCSI_SENSE_BUFFERSIZE; in megasas_build_dcdb()
1396 pthru->sense_buf_phys_addr_hi = in megasas_build_dcdb()
1398 pthru->sense_buf_phys_addr_lo = in megasas_build_dcdb()
1405 cmd->frame_count = megasas_get_frame_count(instance, pthru->sge_count, in megasas_build_dcdb()
1591 struct megasas_pthru_frame *pthru; in megasas_dump_pending_frames() local
1618 pthru = (struct megasas_pthru_frame *) cmd->frame; in megasas_dump_pending_frames()
1619 mfi_sgl = &pthru->sgl; in megasas_dump_pending_frames()
1620 sgcount = pthru->sge_count; in megasas_dump_pending_frames()
1623 instance->host->host_no, cmd->frame_count, pthru->cmd, pthru->target_id, in megasas_dump_pending_frames()
1624 pthru->lun, pthru->cdb_len, le32_to_cpu(pthru->data_xfer_len), in megasas_dump_pending_frames()
1625 le32_to_cpu(pthru->sense_buf_phys_addr_lo), sgcount); in megasas_dump_pending_frames()